@7365admin1/layer-common 4.97.1-staging.672 → 4.97.1-staging.674
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -347,6 +347,11 @@
|
|
|
347
347
|
<button class="dd-item" @click="viewClient(activeMenuItem)">
|
|
348
348
|
View Organization
|
|
349
349
|
</button>
|
|
350
|
+
<!-- Owner 12 Nov 2026: Super Admin can move a client to another nature.
|
|
351
|
+
The change is made (and previewed) on the client's details page. -->
|
|
352
|
+
<button class="dd-item" data-test="client-change-nature" @click="changeNature(activeMenuItem)">
|
|
353
|
+
Change nature
|
|
354
|
+
</button>
|
|
350
355
|
<button class="dd-item" @click="openSubscription(activeMenuItem)">
|
|
351
356
|
{{ activeMenuItem?.sub?.state === 'none' ? 'Set up subscription' : 'Edit subscription' }}
|
|
352
357
|
</button>
|
|
@@ -674,6 +679,11 @@ function viewClient(item: any) {
|
|
|
674
679
|
closeMenu()
|
|
675
680
|
}
|
|
676
681
|
|
|
682
|
+
function changeNature(item: any) {
|
|
683
|
+
closeMenu()
|
|
684
|
+
if (item?._id) navigateTo({ path: '/super-admin/client-details', query: { org: String(item._id), changeNature: '1' } })
|
|
685
|
+
}
|
|
686
|
+
|
|
677
687
|
function cancelView() {
|
|
678
688
|
selectedClient.value = null
|
|
679
689
|
viewMode.value = 'table'
|
|
@@ -72,6 +72,7 @@ export default function useFeedback() {
|
|
|
72
72
|
status = "",
|
|
73
73
|
provider = "",
|
|
74
74
|
service = "",
|
|
75
|
+
providerService = "",
|
|
75
76
|
userId = "",
|
|
76
77
|
category = "",
|
|
77
78
|
}: {
|
|
@@ -85,6 +86,8 @@ export default function useFeedback() {
|
|
|
85
86
|
status?: string;
|
|
86
87
|
provider?: string | any;
|
|
87
88
|
service?: string;
|
|
89
|
+
/** Optional: only this provider service's feedbacks (the stored `service` label, e.g. "Cleaning"). */
|
|
90
|
+
providerService?: string;
|
|
88
91
|
userId?: string;
|
|
89
92
|
/** Optional: one category (the feedback subject) or a comma list. Empty = all. */
|
|
90
93
|
category?: string;
|
|
@@ -103,6 +106,7 @@ export default function useFeedback() {
|
|
|
103
106
|
status,
|
|
104
107
|
provider,
|
|
105
108
|
service,
|
|
109
|
+
...(providerService && { providerService }),
|
|
106
110
|
...(category && { category }),
|
|
107
111
|
...(currentUser.value?.type != "site" && {
|
|
108
112
|
userId,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.97.1-staging.
|
|
5
|
+
"version": "4.97.1-staging.674",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
package/utils/nav-sections.ts
CHANGED
|
@@ -117,6 +117,14 @@ export const NAV_SECTIONS: Record<string, string> = {
|
|
|
117
117
|
"Pest Control Services": "SERVICES",
|
|
118
118
|
"Landscaping Services": "SERVICES",
|
|
119
119
|
"Pool Maintenance Services": "SERVICES",
|
|
120
|
+
// Property Management's "Services at this site" groups (owner, 12 Nov 2026):
|
|
121
|
+
// one per provider service at the site, in the client's own words.
|
|
122
|
+
Cleaning: "SERVICES",
|
|
123
|
+
"M&E": "SERVICES",
|
|
124
|
+
"Pest Control": "SERVICES",
|
|
125
|
+
Pool: "SERVICES",
|
|
126
|
+
Garden: "SERVICES",
|
|
127
|
+
iRanger365: "SERVICES",
|
|
120
128
|
};
|
|
121
129
|
|
|
122
130
|
export type TSectionedNavItem<T> = { item: T; section: string };
|