This commit is contained in:
2021-01-29 17:11:59 +00:00
parent 2ac2d8732c
commit c2b2d4ead5

View File

@@ -5,12 +5,45 @@
MISC ITEMS THAT CAME UP
todo: column order and sort from grid form
LISTVIEW REPLACEMENT
columns and sort are a singleton per datalistkey,userid persisted automatically (no alternative "views" just one of these). User can set them or reset them to default.
filter is different: user can persist a filter by name for future selection, sharing with others (public). The default filter is no filter.
todo: column order and sort disentaglement from "filter" is first order of business
warp the listview to be the default column order and sort method now, remove filters from it is easiest path to proceed, filters are big and require most UI warpage so do them after
auto saved behind the scenes with fetch for data if changed as only user changes that
currently it's all that's in use since filters aren't coded yet and it's working
ACTIONS:
premise: DataTable has sort built in from underlying vuetify object but the names it stores are not our column names just "columns.c1, columns.c0" etc
can these be changed to be the actual column names somehow which saves a lot of fuckery or else I'll need a translator method?
"ColumnView" refers to the Columns visiblity/ prescence, order of columns and sort selections
Only location at client that ColumnView data is saved is inside the :options.sync="dataTablePagingOptions" property of the v-data-table itself
My code will translate into and out of the grid the ColumnView data for background save and fetch and reset
columndata and code on getdata coming from server are working code that doesn't need changing it's all about what gets persisted and SENT TO the server on post datalist
Changes:
Modify ay-data-list-view.vue to only handle column order and save to the server as the singleton default.
No need to persist anything locally in store or session, gzdatatable will pick it up from the server itself on refresh
remove all filter and sort aspects so it's only concerned with column order and visibility.
Change outer icon from a filter to whatever represents column order selection
Modify gzdatatable to fetch the columorder on getdata if it senses it's changed which I'm not sure how to do, need trigger
In gzdatatab
Do *not* save in session or store or anywhere, just in
make a local default for column order and sort and a route to save and fetch automatically
could update on same cycle as getdata because it can be compared if changed and saved
this would work since get data will be triggered immediately after column order sort change anyway
maybe it's more ideal to not have a local saving of it since that's a source of ongoing fuckery in v7
and it can fetch it from the server in a flash anyway as it's tiny
todo: filter, can be programmatic or user, user saves, can choose from list
warp listview in datatable to only be filter is easiest way to proceed
V7 style filtering:
Can save with a name
Defaults to none
@@ -18,6 +51,12 @@ todo: filter, can be programmatic or user, user saves, can choose from list
if code changes filter it goes to "unsaved filter" in selection
User can select no filter to get rid of it
Basically replicate the v7 ui experience without the shit code behind :)
ACTIONS:
IN DATATABLE:
UnTokenizeListView function deals heavily with filter specific code but almost nowhere else in gzdatatable
are the old listview filters actually handled at all since it's more a server concern
so that's actually where the bulk of the datatables interest in filters needs to be coded / changed
this change is relevant to the new system completely so not wasteful to do that whenever
TODO: LIST VIEW REPLACMENT OUTSTANDING TO DO
@@ -103,7 +142,7 @@ todo: DataList view and filter are combined and this is wrong
Indicator of filtered but not visible columns
COLUMN ORDER AND VISIBLITY
set column order and visibility in back
set column order and visibility in back USING EXISTING UI, just strip out filter stuff
Saves as a personal default at the server but easily reverted to server default
Removed columns don't filter or sort!
make sure non visible columns are removed from any saved filter or sort
@@ -113,6 +152,10 @@ todo: DataList view and filter are combined and this is wrong
DataTable accepts external filter on the fly and replaces internal filter with provided filter but *does not* change the view or sort settings
View doesn't change when on the fly filter applied from another form only the filter changes
DASHBOARD WIDGETS
Dashboard widgets will consume the same filters since they use the same datalists.
User will select from saved filters for them but can't make one in the widget itself but makes them in the datatable
DATA / OBJECTS
# ListView FORMAT SERVER and CLIENT
Current listview is a monolithic object combining filter and sort and column choice