774 Commits

Author SHA1 Message Date
Yonas Habteab
b619dd2186 Add activateEntry() & getActiveEntry() interface methods 2023-07-14 20:05:35 +02:00
Yonas Habteab
ee829fd4dc Unify error messages & add some class docblocks 2023-07-14 20:05:35 +02:00
Yonas Habteab
73853c327c DashboardsController: Remove some superfluous control structures & keep all dashboard actions consistent 2023-07-14 20:05:35 +02:00
Yonas Habteab
303084e34a DashboardsController: Check whether the pane has been moved before redirecting
We only need to construct a proper redirection when the current pane has been
moved to another home.
2023-07-14 20:05:35 +02:00
Yonas Habteab
6e28912db7 DashboardController: Redirect reqeusts to the new route & mark it as deprecated 2023-07-14 20:05:35 +02:00
Yonas Habteab
c56cbf25d6 Replace count(getEntries()) with countEntries() 2023-07-14 20:05:35 +02:00
Yonas Habteab
7698baf5b8 IndexController: Redirect requests to the new dashboards route 2023-07-14 20:05:34 +02:00
Yonas Habteab
1ecbce7041 Render search hint without using a view script 2023-07-14 20:05:34 +02:00
Yonas Habteab
e689959839 Redirect properly when the currently active home/pane is removed/moved
When the currently request home/pane is being removed/moved and we're still redirecting
with the `__CLOSE__` url, the removed/moved home/pane will sill remain in the history
state and will produce http not found exceptions
2023-07-14 20:05:34 +02:00
Yonas Habteab
8685a0d247 Let Sortable detect sort direction dynamically & don't use invertSwap sortable option 2023-07-14 20:05:34 +02:00
Yonas Habteab
826e39ce91 DashboardsController: Ensure currently active home is still active when performing all kinds of dashboard actions 2023-07-14 20:05:34 +02:00
raviks789
533d329810 Revert "Add form controls in the correct order"
This reverts commit 61c3469fc63e559164016784034bcae18b3a2e04.
2023-07-14 20:05:34 +02:00
Yonas Habteab
4fa5d5d717 Add form controls in the correct order 2023-07-14 20:05:34 +02:00
raviks789
f3de1dd2b6 Fix Add to Dashboard feature 2023-07-14 20:05:34 +02:00
Yonas Habteab
474a26b1eb DashboardsController: Load all dashboard homes in the index action 2023-07-14 20:05:34 +02:00
Yonas Habteab
3be596641f Render also the cog icon when there is more than 1 home 2023-07-14 20:05:34 +02:00
Yonas Habteab
3058983011 Force to refresh the menu container when removing a home & unset moved entry from the original widget 2023-07-14 20:05:34 +02:00
Yonas Habteab
d27b654208 DashboardsController: Redirect also when moving the requested pane to another home 2023-07-14 20:05:34 +02:00
Yonas Habteab
d7dcfd7cd9 DashboardsController: Add requested params to the refresh url when reordering widgets 2023-07-14 20:05:34 +02:00
Yonas Habteab
4fc410c6e9 Don't ignore url params of the DM view when requesting Drag&Drop actions 2023-07-14 20:05:34 +02:00
Yonas Habteab
54c3b9e2c6 DashboardsController: Use the default home when pane is requested without a home param in the DM view 2023-07-14 20:05:34 +02:00
Yonas Habteab
e8741c961f DashboardsController: Preserve params when redirecting after successfully performed dashboard actions 2023-07-14 20:05:34 +02:00
Yonas Habteab
c4112b40d5 Don't access Request except in controller & activate home/pane by a given name 2023-07-14 20:04:31 +02:00
Yonas Habteab
a527946306 DashboardsController: Adjust usage of Dashboard::getActivePane() 2023-07-14 19:51:08 +02:00
Yonas Habteab
4a32ee7b60 DashboardsController: Add the welcomeFrom instance directly to the dashboard
Since we no longer use an additional wrapper for the dashboards,
the welcome form can be added directly to the dashboard instance
2023-07-14 19:51:08 +02:00
Yonas Habteab
be973d29e2 Use own form class for all dashboard types & cleanup Dashlet-/SetupNewDashboardForm classes 2023-07-14 19:51:08 +02:00
Johannes Meyer
84b462f57c dashboards/settings: Show tabs depending on where the user comes from 2023-07-14 19:51:08 +02:00
Johannes Meyer
2f09dbe68a DashboardsController: $this->httpNotFound() already accepts format params
there's no need to use `sprintf` explicitly
2023-07-14 19:51:08 +02:00
Johannes Meyer
d91795d815 dashboards/settings: Don't disguise action links as button links 2023-07-14 19:51:08 +02:00
Johannes Meyer
9a1f8816ae There can only be a single active home at a time
Cleans up various usages of `setActive` calls.
2023-07-14 19:51:08 +02:00
Johannes Meyer
7f0197333f DashboardsController: Use $this->getServerRequest() where applicable 2023-07-14 19:51:08 +02:00
Johannes Meyer
577d08938d dashboards/settings: Don't change refresh url due to re-order 2023-07-14 19:51:08 +02:00
Johannes Meyer
930898fd2f Decouple menu and dashboard code 2023-07-14 19:51:08 +02:00
Yonas Habteab
28021b61d3 Use handle icon to initiate the drag&drop events 2023-07-14 19:51:08 +02:00
Yonas Habteab
e5da8b1b73 DashboardsController: Perform a full reload when the drop action couldn't be performed successfully 2023-07-14 19:51:08 +02:00
Yonas Habteab
ee75d53daf Merge some related classes 2023-07-14 19:51:08 +02:00
Yonas Habteab
d859522c31 Allow browsing predefined dashlets when creating a new dashlet 2023-07-14 19:51:08 +02:00
Yonas Habteab
a978202d57 Fix accessing method on null 2023-07-14 19:51:08 +02:00
Yonas Habteab
c635102d4e Simulate removal of dashboard home Default Home 2023-07-14 19:51:08 +02:00
Yonas Habteab
dab6bdc7c6 Use own activate() method to activate dashboards 2023-07-14 19:51:08 +02:00
Yonas Habteab
b64c14b0c2 Use setTitle() instead of setting resp headrs directly 2023-07-14 19:51:08 +02:00
Yonas Habteab
443a963307 Adjust how module dashlets are handled 2023-07-14 19:51:08 +02:00
Yonas Habteab
4d47f710ae Clean up codes 2023-07-14 19:51:08 +02:00
Yonas Habteab
49267d6fa3 Use sendMultipartUpdate() for drag&drop actions & adjust some css styles 2023-07-14 19:51:08 +02:00
Yonas Habteab
98028d740c Introduce new-home action 2023-07-14 19:51:07 +02:00
Yonas Habteab
b597c7c489 Adjust dashbaord conent layouts & don't redirect when sorting only dashlets 2023-07-14 19:51:07 +02:00
Yonas Habteab
ac1534ab0d Use Menu class instead of HomeMenu 2023-07-14 19:51:07 +02:00
Yonas Habteab
cdd60f965b Do some code refactoring 2023-07-14 19:51:07 +02:00
Yonas Habteab
14bc749556 Dashboard: Provide mini welcome wizard for new users 2023-07-14 19:51:07 +02:00
Yonas Habteab
3d905cf8c0 LayoutController: Use dashboard home menu class to loadd the navigation items 2023-07-14 19:51:07 +02:00