This commit is contained in:
2020-11-02 19:37:46 +00:00
parent f9a429ce5d
commit cf2607d356
4 changed files with 75 additions and 20 deletions

View File

@@ -16,17 +16,17 @@ todo: DASHBOARD
See notes there
ELEMENTS
dash ui items that can self update and display properly in any form factor
central dash registry - collection of dash ui items, the roles they are available for, their unique ID's
Xcentral dash registry - collection of dash ui items, the roles they are available for, their unique ID's
stored at *client* statically, (server prevents out of role access to data anyway)
[{id:(unique id, probably human readable 'tag-dash-format'),roles:[role array available to]}]
User dash registry - user's selected dash widgets to display and the order to display them in plus any unique settings to each one
XUser dash registry - user's selected dash widgets to display and the order to display them in plus any unique settings to each one
Index in array is their display order
[{id:(unique dashitem id),settings:{refreshfrequencymaybe:22,other:'setting'}},{id:(second item id)}]
dashboard host page
iterates user registry, instantiates the dash items in order desired if user is in allowed role (user may have changed roles)
handles removal, re-ordering events
dashboard selection UI
UI accessed from dashboard menu allowing user to add widgets
Xdashboard selection UI
XUI accessed from dashboard menu allowing user to add widgets
todo: wireframe / mockup dashboard item objects
mockup dash items with all commonality built in, better to start mocking up now than try to design perfectly in advance and then implement