13600 Commits

Author SHA1 Message Date
Johannes Meyer
c736c7114a loader.js: Mark extra updates as scripted and refreshes
If a view is refreshed, this ensures that the scroll
position doesn't change now.
2022-04-25 12:11:22 +02:00
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
Johannes Meyer
fae7531879 DROP ME – I'm part of #4752 2022-04-22 10:48:31 +02:00
Johannes Meyer
fdc9b36ee5 Follow-up for 63802dfc4 2022-04-22 10:48:15 +02:00
Yonas Habteab
2732d7df66 SetupNewDashboardForm: Ensure to rerender dashlet parts with custom_url when autosubmitting 2022-04-22 09:36:59 +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
e588596d9e DashboardsController: Use $this->getServerRequest() where applicable 2022-04-20 16:46:24 +02:00
Johannes Meyer
7b90d0935a dashboards/settings: Don't change refresh url due to re-order 2022-04-20 15:13:57 +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
Johannes Meyer
8df2c9ea8c layout.less: Fully remove letter-spacing from .dashboard
Since ipl-html is used now, there is no whitespace between
tags which gets rendered due to display:inline-block.
2022-04-19 14:11:44 +02:00
Johannes Meyer
757a28bf4f dashboard.js: Only handle rendered events we're interested in 2022-04-19 13:41:50 +02:00
Yonas Habteab
8ed9af5746 dashboards.js: Don't use a variable for handle 2022-04-14 15:35:00 +02:00
Yonas Habteab
61213b23a2 dashboards.js: Don't delay drag&drop events anymore 2022-04-14 14:53:34 +02:00
Yonas Habteab
d8de5d71d6 Make the bars icon a bit bigger 2022-04-14 14:49:49 +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
d95c754f85 DashboardsController: Perform a full reload when the drop action couldn't be performed successfully 2022-04-14 14:07:49 +02:00
Yonas Habteab
b39f6ad48e Don't render the initial modal view over again when autosubmitting the form 2022-04-14 13:47:41 +02:00
Yonas Habteab
737f1d459a DashletForm: Ensure to dump unselected dashlets before updating the DB 2022-04-14 10:42:27 +02:00
Yonas Habteab
49b37ea522 Merge some related classes 2022-04-14 09:45:31 +02:00
Yonas Habteab
1429d4aa65 Fix code styling issue 2022-04-13 19:47:06 +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
037adcb975 Regroup dashboard input elements 2022-04-13 14:46:47 +02:00
Yonas Habteab
09b87eac90 Update mysql upgrade script 2022-04-13 14:19:29 +02:00
Yonas Habteab
89b0b4db57 Fix accessing method on null 2022-04-13 14:16:55 +02:00
Yonas Habteab
167d6c709c forms.less: Undo changed button styles 2022-04-13 12:28:22 +02:00
Yonas Habteab
a9b59d42ae Simulate removal of dashboard home Default Home 2022-04-13 12:27:06 +02:00
Yonas Habteab
9d2e90f93c Use own activate() method to activate dashboards 2022-04-12 19:06:38 +02:00
Yonas Habteab
f3dc6301ff Use setTitle() instead of setting resp headrs directly 2022-04-12 15:30:59 +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
fb54ed9b37 form.less: Adjust remove & cancel button style sheets 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
4fb6002a5d dashboard.js: Fix moving a dashlet to another home/pane throws an error 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
01280e6cb1 Fix typo 2022-04-12 15:30:59 +02:00
Yonas Habteab
595b4bead2 Introduce new-home action 2022-04-12 15:30:59 +02:00