diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 34d68a2a..1da80204 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -383,13 +383,14 @@ todo: many biz objects are not using new PUT methodology CURRENTLY DOING: Work order notifications TODO: Notification related todos that came up: - Need to be able to open a wokrorder from a descendant and be taken directly to that item in the UI - scheduledonworkorder event for example will be a woitemscheduleduserid openable object - Need customer view of workorder just the basics - object opener needs to check if customer BEFORE it opens the work order as there needs to be a customer view with different data sent etc to avoid leaking private data - customerWorkorder object instead of workorder with summary I guess - Report can handle more detail when we get there - Need notifylinksubscription text in locale + OPENOBJECT HANDLER FOR WORKORDERS: + Need to be able to open a workorder from a descendant and be taken directly to that item in the UI + scheduledonworkorder event for example will be a woitemscheduleduserid openable object + Need customer view of workorder just the basics + object opener needs to check if customer BEFORE it opens the work order as there needs to be a customer view with different data sent etc to avoid leaking private data + customerWorkorder object instead of workorder with summary I guess + Report can handle more detail when we get there + Steps to test notifications: plain in app delivery @@ -405,19 +406,10 @@ Coded, tested, done: ScheduledOnWorkorderImminent OutsideServiceReceived OutsideServiceOverdue + CustomerServiceImminent todo 3: workorder notifications to code and test: - CustomerServiceImminent = 21,//* Workorder / WorkorderItemScheduledUser object?? THATS A LOT, MAYBE NO, WORKORDER SERVICE DATE OVERALL??K, notice that scheduled service is due, can set advance notice, CUSTOMER gets delivery - case 3725 - No tag match remove from UI when using this one so customers can't see tags - User notification: - An age type notification with the days,hours,minutes etc note and a regular workorder link which client sees they are a customer (or head office) so it shows an alternative work order form and this goes with the alternative work order list available to customers in the UI as well. - No dates are shown in notifications by email only relative times. All users log in to get their correct date display. - Special message specifically for this type of notification saying service is upcoming click on link to view details. - - - diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 533fcd3e..ee58405b 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -66,11 +66,11 @@ function initNavPanel() { sub.push({ title: "CustomerServiceRequestList", icon: "$ayiConciergeBell", - route: "/customer-csr-list", + route: "/customer-csr", key: key++ }); - window.$gz.store.commit("setHomePage", "/customer-csr-list"); + window.$gz.store.commit("setHomePage", "/customer-csr"); CustomerHomePageSet = true; } diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 48970e31..cb614978 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -788,11 +788,25 @@ export default new Router({ ) }, { - path: "/customer-csr-list", - name: "customer-csr-list", + path: "/customer-workorders/:recordid", + name: "customer-workorder-edit", component: () => import( - /* webpackChunkName: "customer" */ "./views/customer-csr-list.vue" + /* webpackChunkName: "customer" */ "./views/customer-workorder.vue" + ) + }, + { + path: "/customer-csr", + name: "customer-csr", + component: () => + import(/* webpackChunkName: "customer" */ "./views/customer-csr.vue") + }, + { + path: "/customer-csr/:recordid", + name: "customer-csr-edit", + component: () => + import( + /* webpackChunkName: "customer" */ "./views/customer-csr-edit.vue" ) }, diff --git a/ayanova/src/views/customer-csr-edit.vue b/ayanova/src/views/customer-csr-edit.vue new file mode 100644 index 00000000..ee6ff83b --- /dev/null +++ b/ayanova/src/views/customer-csr-edit.vue @@ -0,0 +1,909 @@ + + + diff --git a/ayanova/src/views/customer-csr-list.vue b/ayanova/src/views/customer-csr.vue similarity index 91% rename from ayanova/src/views/customer-csr-list.vue rename to ayanova/src/views/customer-csr.vue index e67522c1..3f1c1eac 100644 --- a/ayanova/src/views/customer-csr-list.vue +++ b/ayanova/src/views/customer-csr.vue @@ -14,7 +14,7 @@ export default { isMain: true, icon: "$ayiConciergeBell", title: "CustomerServiceRequestList", - helpUrl: "customer-csr-list" + helpUrl: "customer-csr" }); } }; diff --git a/ayanova/tests/e2e/specs/smoke.js b/ayanova/tests/e2e/specs/smoke.js index 2fd6cdb0..08a687f0 100644 --- a/ayanova/tests/e2e/specs/smoke.js +++ b/ayanova/tests/e2e/specs/smoke.js @@ -458,7 +458,7 @@ describe("SMOKE", () => { .clear() .type("CustomerFull{enter}"); - cy.url({ timeout: 10000 }).should("include", "/customer-csr-list"); + cy.url({ timeout: 10000 }).should("include", "/customer-csr"); cy.get("[data-cy=underconstruction]"); cy.visit("/customer-workorders"); diff --git a/ayanova/tests/e2e/specs/translation-about.js b/ayanova/tests/e2e/specs/translation-about.js index ddd97127..c31dc588 100644 --- a/ayanova/tests/e2e/specs/translation-about.js +++ b/ayanova/tests/e2e/specs/translation-about.js @@ -105,8 +105,8 @@ describe("TRANSLATION", () => { .clear() .type("CustomerLimited{enter}"); - // we should be redirected to /customer-csr-list - cy.url().should("include", "/customer-csr-list"); + // we should be redirected to /customer-csr + cy.url().should("include", "/customer-csr"); //nav to about form // cy.get("[data-cy=contextmenu]").click();