stable

Clone or download

Read-only

Refactoring: extract mode change to a dedicated object

This is part of story #10495: have base cross tracker search widget - ReadingModeController now handles all the actions done on reading view. - QueryResultController handles the artifacts table. - ReadingTrackersController handles the list of report trackers shown in reading view. - RestQuerier is now instanciated and shows/hides the loader on its own (DRY). - ReportMode holds the current state (reading/writing) of the report. Components such as ReadingModeController watch it to adjust their display. No functional change Change-Id: Ia3ddcf2adc003377aede04e6ffda930ee565a37e

Modified Files

Name
M plugins/tracker/www/scripts/cross-tracker/src/app/index.js +41 −21 Go to diff View file
A plugins/tracker/www/scripts/cross-tracker/src/app/mode-change-controller.js +68 −0 Go to diff View file
R plugins/tracker/www/scripts/cross-tracker/src/app/tracker-query-loader-controller.js Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/reading-mode/reading-cross-tracker-report.js +6 −3 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/reading-mode/reading-mode-controller.js +89 −21 Go to diff View file
A plugins/tracker/www/scripts/cross-tracker/src/app/reading-mode/reading-trackers-controller.js +114 −0 Go to diff View file
D plugins/tracker/www/scripts/cross-tracker/src/app/reading-mode/tracker-loader-controller.js +0 −174 Go to diff View file
A plugins/tracker/www/scripts/cross-tracker/src/app/report-mode.js +32 −0 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/rest-querier.js +67 −46 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/project-selector.js +16 −8 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/tracker-selection-controller.js +4 −6 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/tracker-selector.js +9 −10 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/writing-cross-tracker-report.js +15 −7 Go to diff View file
M plugins/tracker/www/scripts/cross-tracker/src/app/writing-mode/writing-mode-controller.js +12 −25 Go to diff View file