diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index cf6aac7e..c62f79e7 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -14,22 +14,9 @@ todo: v8 MIGRATE do not export empty strings, do null instead confirm whatever method I use works for certain -todo: dumb idea: have all date fields in grid display a color based on their relative age - unless already a color column - past = grayer and grayer to a max value - future = shades of blue or something to a max value beyond a year are all violet or something, under a year future are shades of blue? - Or even just past dates one color future dates another color - or within a month one shade and mooe than a month another shade? - Negative numbers red? - just a subtle visual cue - -todo: investigate if a picklist control can implement a feature to select *all* items it returns - this came up when looking at Reminder, in v7b could select a zone and send to all, would be nice if could search for zone tag then just select all those users - this would make it an actual substitute for the old ways of picking things by a group of some kind - if don't do this then need to manually click each selection to include it - todo: All biz objects getasync should be notracking? or would thast fuck up internal ops like batch jobs or duplicate? + todo: db consistency check should also check for the stored procedures / functions as they are critical todo: AyaFormFieldDefinitions looking a little suspect now as it gets huge. diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index aecb4ad0..2f52ec18 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -227,6 +227,19 @@ export default { }); } }, + /////////////////////////////////////////////// + // Date/time past or future evaluation + // + dateIsPast(value) { + if (!value) { + return false; + } + if (value == "") { + return false; + } + + return new Date(value) < new Date(); + }, /////////////////////////////////////////// // Turn a decimal number into a local // currency display diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 62409f8c..810ac024 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -772,6 +772,9 @@ function buildRecords(listData, columndefinitions) { languageName, hour12 ); + if (!window.$gz.locale.dateIsPast(column.v)) { + cstStyle = { "font-weight": "bold" }; //warning, don't put a semicolon after the style or it will not work + } break; case 2: //date only display = window.$gz.locale.utcDateToShortDateLocalized(