4088 Commits

Author SHA1 Message Date
Johannes Meyer
6a593fa2f5 [WIP] Track changes made by users in dashlet views
* Does not signal the change yet
* Does not allow to save the change yet
* Too verbose code still, probably
* Error handling not final
2022-04-25 12:10:56 +02:00
Johannes Meyer
84373cdf34 Support _dashlet parameter
* It's bound to the `Window` object
* If there's a request header, it's set
* If there's a request param, it's set
* It's preserved trough redirects not changing the path
* If no redirect happens, a response header is set
* JS accepts the response header always, maintains a data-attribute
* JS transmits it in a request header, if it's not GET and not changing the path
2022-04-25 12:07:00 +02:00
Johannes Meyer
efcd14ce0a [WIP] Allow modules to register *framework* params
I'm not yet convinced about this solution. The name
*framework parameter* isn't always correct. (i.e. page)

Then there's also an alternative available by using the
`rel` attribute of anchors with a custom value. If it's
set our JS preserves (or doesn't) the `_dashlet` param.
It cannot do that for every url that's loaded into the
same container. (e.g. stat badges in the footer of lists)
2022-04-25 11:58:29 +02:00
Yonas Habteab
b358e1bb2c Move module related methods from to trait to Dashlet class 2022-04-22 09:30:21 +02:00
Yonas Habteab
0f562ab27e Remove ModuleDashlet trait 2022-04-22 09:29:52 +02:00
Yonas Habteab
90c0633354 Use some renamed tratis & move from/to array methods to BaseDashboard 2022-04-22 09:28:20 +02:00
Yonas Habteab
9729b0e99e Remove trait DataExtractor 2022-04-22 09:26:17 +02:00
Yonas Habteab
310335ecf0 Rename DashboardControls -> DashboardEntries & add an internal flag for sorting 2022-04-22 09:19:44 +02:00
Johannes Meyer
a3ee130be3 Change handling of the params showCompact and limit
* The editor should provide the full url in the title,
  to show the user the same view as in the dashboard.
* In the dashboard, `limit` and now also `view` need
  to be removed from the title's link. The user isn't
  editing and should see the default view.
2022-04-21 11:51:53 +02:00
Johannes Meyer
33eaccf5b4 Menu: Don't translate home titles
Homes can't be provided by modules, so there's no way
that a translation exists.
2022-04-20 14:37:54 +02:00
Johannes Meyer
7aa34bb444 DashboardControls: Ensure to use sorted entries in rewindEntries() 2022-04-20 12:57:01 +02:00
Johannes Meyer
63802dfc45 Decouple menu and dashboard code 2022-04-20 12:56:35 +02:00
Yonas Habteab
c71f738b31 Use spaceship operator for sorting assoc arrays 2022-04-14 14:31:57 +02:00
Yonas Habteab
7b22be2b28 Use handle icon to initiate the drag&drop events 2022-04-14 14:21:27 +02:00
Yonas Habteab
49b37ea522 Merge some related classes 2022-04-14 09:45:31 +02:00
Yonas Habteab
372ffa15c0 Allow browsing predefined dashlets when creating a new dashlet 2022-04-13 19:38:25 +02:00
Yonas Habteab
40092ef57c Fix return type mismatch 2022-04-13 15:03:18 +02:00
Yonas Habteab
a9b59d42ae Simulate removal of dashboard home Default Home 2022-04-13 12:27:06 +02:00
Yonas Habteab
a79e83cc24 Remove obsolete button styles & add a proper button class names 2022-04-12 15:30:59 +02:00
Yonas Habteab
a34dc9a8cf Adjust how module dashlets are handled 2022-04-12 15:30:59 +02:00
Yonas Habteab
217faab3fc Wrap getConn() into a try catch to prevent the menu from being broken 2022-04-12 15:30:59 +02:00
Yonas Habteab
a1ed493ad1 Clean up codes 2022-04-12 15:30:59 +02:00
Yonas Habteab
da4edb2274 Module: undo removed import 2022-04-12 15:30:59 +02:00
Yonas Habteab
d979d41ead Use sendMultipartUpdate() for drag&drop actions & adjust some css styles 2022-04-12 15:30:59 +02:00
Yonas Habteab
69fe8f7755 Menu: Swallow silently any DB issue in the main menu 2022-04-12 15:30:59 +02:00
Yonas Habteab
1f9d0547cd Adjust dashbaord conent layouts & don't redirect when sorting only dashlets 2022-04-12 15:30:59 +02:00
Yonas Habteab
b1c07d8122 Remove empty line 2022-04-12 15:30:59 +02:00
Yonas Habteab
adf2013c23 Fix some code styles and comments 2022-04-12 15:30:59 +02:00
Yonas Habteab
876c1097bd Module: Revert changed and removed legacy codes 2022-04-12 15:30:59 +02:00
Yonas Habteab
41f1ac4a90 Use Menu class instead of HomeMenu 2022-04-12 15:30:59 +02:00
Yonas Habteab
e5f501dae3 Remove some unnecessary classes 2022-04-12 15:30:59 +02:00
Yonas Habteab
85a53764f6 Remove some unused interfaces/attrs 2022-04-12 15:30:59 +02:00
Yonas Habteab
0a94adcaca Adjust param description & extract home properties from a homeitem properly 2022-04-12 15:30:59 +02:00
Yonas Habteab
2913a4fd44 Fix some logical inconsistencies 2022-04-12 15:30:58 +02:00
Yonas Habteab
654d9252d4 Pane: Utilize query with dashboard when selecting dashlets 2022-04-12 15:30:58 +02:00
Yonas Habteab
ac3f3a66ea Module: Restore removed imports 2022-04-12 15:30:58 +02:00
Yonas Habteab
96c3b31686 Delay sorting events for 100ms 2022-04-12 15:30:58 +02:00
Yonas Habteab
d6a2f1e775 Do some code refactoring 2022-04-12 15:30:58 +02:00
Yonas Habteab
731cd2aef8 Dashboard: Provide mini welcome wizard for new users 2022-04-12 15:30:58 +02:00
Yonas Habteab
9e4d09fd7e Dashboard: Introduce Settings class to manage to the new dashbaords 2022-04-12 15:30:58 +02:00
Yonas Habteab
3dcf9fa02a Dashboard: Introduce DashboardHomeList widget 2022-04-12 15:30:58 +02:00
Yonas Habteab
a121c9571d Dashboard: Introduce DashbaordList widget 2022-04-12 15:30:58 +02:00
Yonas Habteab
ff90450b70 DashboardSettings: Don't add Add Dashlet as a dropdown menu anymore 2022-04-12 15:30:58 +02:00
Yonas Habteab
ef528a0f3f Make use of the new controller by default 2022-04-12 15:30:58 +02:00
Yonas Habteab
4addf5291e Menu: Provide own class for dashboard homes navigation items 2022-04-12 15:30:58 +02:00
Yonas Habteab
1120bc0d60 SearchDashboard: Provide support for the enhanced dashboards 2022-04-12 15:30:58 +02:00
Yonas Habteab
c01d44dbf1 Introduce DashletlistMultiSelect class 2022-04-12 15:30:58 +02:00
Yonas Habteab
4548122a18 Introduce DashletListItem class 2022-04-12 15:30:58 +02:00
Yonas Habteab
42581e8d7f Dashboard: Introduce OverridingWidget interface 2022-04-12 15:30:58 +02:00
Yonas Habteab
b42fcd96f5 Module: Use the new dashbaord widget for providing dashbaords and dashlets 2022-04-12 15:30:58 +02:00