From 1cbdb97d22e30fcde55b354f8873bb1a3effd548 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 24 Feb 2022 19:17:33 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 1 + ayanova/src/api/dash-registry.js | 11 +- ayanova/src/api/translation.js | 2 +- ayanova/src/components/dash-base.vue | 34 +- .../components/dash-labor-hours-personal.vue | 456 ++++++++++++++++++ ...dash-test-bar-widget-count-by-usertype.vue | 9 +- ayanova/src/views/home-dashboard.vue | 3 +- 7 files changed, 507 insertions(+), 9 deletions(-) create mode 100644 ayanova/src/components/dash-labor-hours-personal.vue diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index b2f53947..63664e39 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -847,6 +847,7 @@ Current v8 docs home: https://www.ayanova.com/docs/ BUILD 8.0.0-beta.1-rc3 CHANGES OF NOTE +- Database *must* be freshly generated for this update as it has schema changes - added dashboard docs page - added dashboard widget "Scheduled" available to scheduleable users (techs) which shows today's work orders they are scheduled on - added dashboard widget "Reviews" available to all dashboardable users which shows today's Reviews diff --git a/ayanova/src/api/dash-registry.js b/ayanova/src/api/dash-registry.js index b5b0a3d3..0738d951 100644 --- a/ayanova/src/api/dash-registry.js +++ b/ayanova/src/api/dash-registry.js @@ -55,6 +55,15 @@ export default { singleOnly: true, settings: {} }, + { + id: "dash-labor-hours-personal", + roles: [role.Tech, role.TechRestricted], + title: "Labor hours", + type: "GzDashLaborHoursPersonal", + scheduleableUserOnly: true, + singleOnly: false, + settings: { endDate: window.$gz.locale.nowUTC8601String() } + }, { id: "TestBarWidgetCountByUserType", @@ -68,7 +77,7 @@ export default { type: "GzDashTestBarWidgetCountByUserType", scheduleableUserOnly: false, singleOnly: false, - settings: {} + settings: { customTitle: "my custom title" } }, { id: "TestLineWidgetMonthlyTotalPrice", diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 04b61d7f..b5e0157e 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -284,7 +284,7 @@ export default { "DateRangeToday", "ReportRenderTimeOut", "RenderingReport", - "AllFieldsHidden" + "Settings" ], //////////////////////////////////////////////////////// diff --git a/ayanova/src/components/dash-base.vue b/ayanova/src/components/dash-base.vue index 347cef5a..1c4f16db 100644 --- a/ayanova/src/components/dash-base.vue +++ b/ayanova/src/components/dash-base.vue @@ -35,7 +35,7 @@ {{ icon }} - {{ translatedTitle }} + {{ displayTitle }}