1926 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
c56cbf25d6 Replace count(getEntries()) with countEntries() 2023-07-14 20:05:35 +02:00
Yonas Habteab
d0b3437995 Dashlet: Add return type decleration where applicable & use parent method in toArray() 2023-07-14 20:05:35 +02:00
Yonas Habteab
92226d4f08 DashboardList: Try to load dashlets when the current pane is empty
The controller only loads dashboards/dashlets either of the given name
or of the first home/pane that can be determined, so we need to load dashlets
for panes that aren't active when creating the list. Otherwise, we will end
up with empty dashboard panes.
2023-07-14 20:05:35 +02:00
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
79ca930930 BaseDashboard: Don't implement DashboardEntry interface 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
22d483b515 Fix moving panes around using drag&drop doesn't update the tabs sometimes 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
a2e9d3c946 Allow creating same dashlets from different modules 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
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
641e3042b3 DashboardManager: Don't raise an error when the passed name is the default home 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
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
f9aba0c7ff Disable drag&drop events for the default home 2023-07-14 20:05:34 +02:00
Yonas Habteab
77db6c3168 DashboardManager: Don't deploy module dashlets if we're not on web environment 2023-07-14 20:05:34 +02:00
Yonas Habteab
89b95d74bf Replace usage of LogicException with AlreadyExistsException where applicable 2023-07-14 20:05:34 +02:00
Yonas Habteab
12af0d2ce1 Don't silenty ignore duplicate errors when managing Panes/Dashlets 2023-07-14 20:05:34 +02:00
Yonas Habteab
a118831b38 Always load dashlets for all of the dashboard pane & activate only the given| the first one 2023-07-14 20:05:34 +02:00
Yonas Habteab
56bfe76a84 Remove unused method from ItemListControl & try to load dashboards in HomeList only when it's empty 2023-07-14 20:05:34 +02:00
Yonas Habteab
79dd4f37ff DashboardSettings: Don't manually cast url to string
Otherwise, the passed url params won't be decoded correctly
2023-07-14 20:05:34 +02:00
Yonas Habteab
d64515f5ec Adjust usage of Query::setColumns() & optimize imports 2023-07-14 20:05:32 +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
c773ad3ac7 SearchDashboardTest: Adjust unit tests according to the new dashboards 2023-07-14 20:04:28 +02:00
Yonas Habteab
2405c7a1fc DashboardManager: Ensure to insert dashboard homes with correct priority order 2023-07-14 19:51:08 +02:00
Yonas Habteab
d0d7e4ebd1 Move pane related codes from Dashboard -> DashboardHome class 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
a8a4738944 Update priority order of the widget being moved properly 2023-07-14 19:51:08 +02:00
Yonas Habteab
3048969cca DashboardManager: Try to activate homes based on the request params 2023-07-14 19:51:08 +02:00
Yonas Habteab
93c3c524ce DashboardEntries: Fix calling to fromArray that doesn't exist anymore 2023-07-14 19:51:08 +02:00
Yonas Habteab
0ad7fdca53 Fix some signature inconsistencies 2023-07-14 19:51:08 +02:00
Yonas Habteab
7fcc2caae5 DashboardManager: Remove unused property 2023-07-14 19:51:08 +02:00
Yonas Habteab
8ba46ac3d3 Don't load orphaned/unusable module dashlets 2023-07-14 19:51:08 +02:00
Yonas Habteab
84d57c622f Make use of WidgetState tratit & remove some obsolete codes 2023-07-14 19:51:08 +02:00
Yonas Habteab
408bb9c886 Introduce trait WidgetState 2023-07-14 19:51:08 +02:00
Yonas Habteab
83533d1641 Fix line indented incorrectly 2023-07-14 19:51:08 +02:00
Yonas Habteab
04495e6276 Adjust Dashboard::getConn() calls & filtering by username 2023-07-14 19:51:08 +02:00
Yonas Habteab
d540ad4c0e Cleanup DashboardManager trait 2023-07-14 19:51:08 +02:00
Yonas Habteab
3d5789d584 Introduce DashboardUserManager trait 2023-07-14 19:51:08 +02:00