13977 Commits

Author SHA1 Message Date
Yonas Habteab
a6483e6e28 Pane: Implement DashboardEntry & add some return type decs & fixlets 2023-07-14 20:05:35 +02:00
Yonas Habteab
94d3fd2ac4 DashboardHome: Check whether org home doesn't match the current one before moving a pane
When updating/creating a Dashlet, the current and the original home passed as param
might be identical, which is fine but this shouldn't cause any duplicate entry errors
2023-07-14 20:05:34 +02:00
Yonas Habteab
ffbdbb9e13 DashboardEntries: Implement countEntries() & enhance how widgets are reordered 2023-07-14 20:05:34 +02:00
Yonas Habteab
4a347362e2 DashboardEntry: Introduce counteEntries() method & add return type dec where applicable 2023-07-14 20:05:34 +02:00
Yonas Habteab
d0d33d990c Ensure to load dashlets of the current pane before creating/updating a dashlet 2023-07-14 20:05:34 +02:00
Yonas Habteab
51370a9e37 Don't perform DB updates when the home/pane hasn't been changed 2023-07-14 20:05:34 +02:00
Yonas Habteab
89cbc9f644 SetupNewDashbaordForm: Remove superfluous control sturcture 2023-07-14 20:05:34 +02:00
Yonas Habteab
af7263d216 CSS: Don't add padding top to the dashelt caption
When you add some text that exceeds the webkit line clamp, the dashlet caption
looks off to me. Since the caption doesn't have padding-bottom, we shouldn't
also add padding-top to it.
2023-07-14 20:05:34 +02:00
Yonas Habteab
628b270e51 Add custom form-controls minimal layout 2023-07-14 20:05:34 +02:00
Yonas Habteab
79ca930930 BaseDashboard: Don't implement DashboardEntry interface 2023-07-14 20:05:34 +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
a726348718 Drop all dashboards related legacy codes 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
22d483b515 Fix moving panes around using drag&drop doesn't update the tabs sometimes 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
raviks789
122505ced4 Ensure drag and drop of dashboard home happens correctly (caused by b6958b1) 2023-07-14 20:05:34 +02:00
raviks789
4369b121c6 Do not make first letter of dashboard key capital 2023-07-14 20:05:34 +02:00
raviks789
8f9a55fcbf Allow adding and editing of dashlet description. 2023-07-14 20:05:34 +02:00
Yonas Habteab
cc5e08da7d DashletTest: Add test for creating dashlets from multiple modules 2023-07-14 20:05:34 +02:00
Yonas Habteab
a2e9d3c946 Allow creating same dashlets from different modules 2023-07-14 20:05:34 +02:00
Yonas Habteab
ec4d246a3c Add minimal layout for the welcome page 2023-07-14 20:05:34 +02:00
Yonas Habteab
d38ad63c96 DashboardEntries: Perform case-insensitive key checks when searching for dashboard entry 2023-07-14 20:05:34 +02:00
Yonas Habteab
aa33940ded forms.less: Add also button style on minimal layout & add mirgin-right to the btn-remove 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
Yonas Habteab
05767811b3 DashboardsCommand: Avoid duplicating pane titles & remove unnecessary stuff 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
77e759fe8e Pane: Don't break the foreach prematurely when managing dashlets from multiple modules 2023-07-14 20:05:34 +02:00
Yonas Habteab
61cd09ab42 Ensure not to render custom url when updating a dashlet (caused by f8b9b02) 2023-07-14 20:05:34 +02:00
raviks789
f91e2769fb Show custom dashlet in case no dashlets are selected. 2023-07-14 20:05:34 +02:00
raviks789
abb78bb9ee Replace spl_object_hash($dashlet) with bin2hex($dashlet->getUuid()) and make $moduleDashlets attribute non-static 2023-07-14 20:05:34 +02:00
Yonas Habteab
509afbe6c4 Migrate command handle duplicate error correctly when the user supresses all the errors 2023-07-14 20:05:34 +02:00
Yonas Habteab
91272870a3 DBUtils: Make sure to use string types for hex/binary formats 2023-07-14 20:05:34 +02:00
Yonas Habteab
d454113941 DashboardsCommand: Handle also case where dashlets are defined before the actual dashboard panes 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
641e3042b3 DashboardManager: Don't raise an error when the passed name is the default home 2023-07-14 20:05:34 +02:00
Sukhwinder Dhillon
09a87f105d Database: Only pass string values as param to isBinary()
This fixes the error while loging in with remember-me checked
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
Sukhwinder Dhillon
23de575782 Set dark border for btn_use_defaults on hover and focus 2023-07-14 20:05:34 +02:00
Sukhwinder Dhillon
95c6b7cd7f Add edit icon 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
f9aba0c7ff Disable drag&drop events for the default home 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
fbd2192ddc Database: Add missing param to the func callback 2023-07-14 20:05:34 +02:00
Yonas Habteab
5313dfa345 Remove TODO comment 2023-07-14 20:05:34 +02:00