@7365admin1/layer-common 4.174.1 → 4.175.0
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.
- package/CHANGELOG.md +10 -4
- package/composables/useFeedback.ts +4 -0
- package/package.json +1 -1
- package/utils/nav-sections.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.175.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 39aafe0: Sidebar: Cleaning, M&E, Pest Control, Pool, Garden and iRanger365 group under SERVICES (Property Management "Services at this site"). getFeedbacks accepts providerService.
|
|
8
|
+
|
|
3
9
|
## 4.174.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -3921,11 +3927,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
|
|
|
3921
3927
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
3922
3928
|
own rule from two endpoints the console already calls, unprojected:
|
|
3923
3929
|
|
|
3924
|
-
|
|
3925
|
-
|
|
3930
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
3931
|
+
GET /api/roles/id/:role that membership's role document
|
|
3926
3932
|
|
|
3927
|
-
|
|
3928
|
-
|
|
3933
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
3934
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
3929
3935
|
|
|
3930
3936
|
`role.default` is the marker because it is the only property of a platform
|
|
3931
3937
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -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.
|
|
5
|
+
"version": "4.175.0",
|
|
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 };
|