From 951f0fafd66c430a951c302287ae4144ac56d318 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 4 Feb 2021 23:55:40 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 23 +++++++++---------- .../components/data-table-filter-control.vue | 2 ++ ayanova/src/store.js | 4 ++-- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index e9d7b837..6b1f1349 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -11,29 +11,28 @@ LISTVIEW REPLACE CURRENT <----HERE not THERE ---v (below this is all past for reference) TODO (now) - - CLIENT - + + SERVER + DataListSqlFilterCriteriaBuilder - modify to handle date tokens using client timestamp (old filter code already put back in comment form) + API docs - remove the outdated stuff if listview and specs are documented + no need to document the listview shit, let people figure it out if they have to, seems like something we don't need to push out there + as it's our UI specific and they can easily figure it out from the api explorer and examine the fetch ops from client + + + CLIENT Implement filter buttons for mobile mode Need filter drop down to select which columns to filter which triggers opening regular filter items Needs also to show a filter beside "headings" which are filtered so it's known Or maybe if it's not too ugly filter on each one, nahh theres no room I think - NON VISIBLE filters? - filter set on column then later hidden?? - filter should only apply to visible columns to avoid plenty of confusion that will undoubtedly come from support questions + Mobile view why does it not switch when switch widths and have to reset? - - SERVER - DataListSqlFilterCriteriaBuilder - modify to handle date tokens using client timestamp (old filter code already put back in comment form) - API docs - at least remove the outdated stuff if not outright replacing it - maybe no need to document the listview shit, let people figure it out if they have to, seems like something we don't need to push out there - + todo (after) diff --git a/ayanova/src/components/data-table-filter-control.vue b/ayanova/src/components/data-table-filter-control.vue index 84ba8690..e9cfef54 100644 --- a/ayanova/src/components/data-table-filter-control.vue +++ b/ayanova/src/components/data-table-filter-control.vue @@ -629,6 +629,7 @@ async function fetchTranslatedText(vm) { "DateRangePastYear", "DateRangePast90Days", "DateRangePast30Days", + "DateRangePast7Days", "DateRangePast24Hours", "DateRangeJanuary", "DateRangeFebruary", @@ -706,6 +707,7 @@ function populateSelectionLists(vm) { { name: vm.$ay.t("DateRangePastYear"), id: "*pastyear*" }, //last 365 days { name: vm.$ay.t("DateRangePast90Days"), id: "*past90days*" }, { name: vm.$ay.t("DateRangePast30Days"), id: "*past30days*" }, + { name: vm.$ay.t("DateRangePast7Days"), id: "*past7days*" }, { name: vm.$ay.t("DateRangePast24Hours"), id: "*past24hours*" }, { name: vm.$ay.t("DateRangeJanuary"), id: "*january*" }, diff --git a/ayanova/src/store.js b/ayanova/src/store.js index eb1e998b..a98b3a21 100644 --- a/ayanova/src/store.js +++ b/ayanova/src/store.js @@ -34,7 +34,7 @@ export default new Vuex.Store({ enums: {}, //all enum values with translated text to match stored as key e.g. enums:={AuthorizationRoles:{0:"no role",1:"Limited role"},UserTypes:{0:"Technician",1:"Client user"}} userOptions: { languageOverride: "en-US", - timeZoneOverride: "America/New_York", + timeZoneOverride: null, //use browser tz by default currencyName: "USD", hour12: true, uiColor: "#000000", @@ -85,7 +85,7 @@ export default new Vuex.Store({ state.formCustomTemplate = {}; state.apiUrl = ""; state.userOptions.languageOverride = "en-US"; - state.userOptions.timeZoneOverride = "America/New_York"; + state.userOptions.timeZoneOverride = null; state.userOptions.currencyName = "USD"; state.userOptions.hour12 = true; state.userOptions.uiColor = "#000000";