@7365admin1/layer-common 4.174.1 → 4.176.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.176.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b81d864: Liza (resident chat assistant): new `chatbot-mgmt` permission family (`see-chatbot`, `manage-chatbot`) in `PERMISSIONS` and the property-management role catalogue, labelled "Liza (chat assistant)"; route `org-site-liza` gated by `chatbot-mgmt`; and the `chatbot` resident-app module in `RESIDENT_APP_MODULES`, so Super Admin can switch Liza on or off per client.
8
+
9
+ ### Patch Changes
10
+
11
+ - 1070e52: TableMain: the refresh button now shows a "Refresh: reload this list" hover tip and has the accessible name "Refresh". Nothing else about the table changes.
12
+
13
+ ## 4.175.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 39aafe0: Sidebar: Cleaning, M&E, Pest Control, Pool, Garden and iRanger365 group under SERVICES (Property Management "Services at this site"). getFeedbacks accepts providerService.
18
+
3
19
  ## 4.174.1
4
20
 
5
21
  ### Patch Changes
@@ -3921,11 +3937,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
3921
3937
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
3922
3938
  own rule from two endpoints the console already calls, unprojected:
3923
3939
 
3924
- GET /api/members/user/:user/app/admin the Seven365 staff membership
3925
- GET /api/roles/id/:role that membership's role document
3940
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
3941
+ GET /api/roles/id/:role that membership's role document
3926
3942
 
3927
- owner = member.type === "admin" && role.type === "admin" && role.default === true
3928
- staff = member.type === "admin" && role.type === "admin"
3943
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
3944
+ staff = member.type === "admin" && role.type === "admin"
3929
3945
 
3930
3946
  `role.default` is the marker because it is the only property of a platform
3931
3947
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -161,17 +161,26 @@
161
161
 
162
162
  A caller that passes no `loading` renders exactly what it renders
163
163
  today (the prop defaults to false).
164
+
165
+ The icon alone didn't say what it does (DV-0958): a hover tip and
166
+ an accessible name now both say "Refresh".
164
167
  -->
165
- <v-btn
166
- fab
167
- icon
168
- density="comfortable"
169
- variant="text"
170
- :disabled="loading"
171
- @click="emits('refresh')"
172
- >
173
- <v-icon>mdi-refresh</v-icon>
174
- </v-btn>
168
+ <v-tooltip text="Refresh: reload this list" location="top" :open-delay="300">
169
+ <template #activator="{ props: tip }">
170
+ <v-btn
171
+ v-bind="tip"
172
+ fab
173
+ icon
174
+ density="comfortable"
175
+ variant="text"
176
+ aria-label="Refresh"
177
+ :disabled="loading"
178
+ @click="emits('refresh')"
179
+ >
180
+ <v-icon>mdi-refresh</v-icon>
181
+ </v-btn>
182
+ </template>
183
+ </v-tooltip>
175
184
  <slot name="prepend-additional" />
176
185
  </template>
177
186
 
@@ -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,
@@ -212,6 +212,19 @@ export default function usePropertyPermission() {
212
212
  "Allows the user to remove a bulletin-video from the system permanently.",
213
213
  },
214
214
  },
215
+
216
+ "chatbot-mgmt": {
217
+ "see-chatbot": {
218
+ check: true,
219
+ description:
220
+ "Allows the user to open the Liza page and read its Q&As, documents, suggested and unanswered questions.",
221
+ },
222
+ "manage-chatbot": {
223
+ check: true,
224
+ description:
225
+ "Allows the user to add, edit, import, publish and archive Liza's Q&As and documents, and edit her greeting.",
226
+ },
227
+ },
215
228
  "document-mgmt": {
216
229
  "see-all-documents": {
217
230
  check: true,
@@ -134,6 +134,8 @@ export const PERMISSIONS = {
134
134
  "update-bulletin-video",
135
135
  "delete-bulletin-video",
136
136
  ],
137
+ // Liza, the resident chat assistant: see = read the page, manage = every write.
138
+ "chatbot-mgmt": ["see-chatbot", "manage-chatbot"],
137
139
 
138
140
  // ---- site settings: the server reads five of these, so it decides ----
139
141
  "site-settings": [
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.174.1",
5
+ "version": "4.176.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.",
@@ -56,6 +56,7 @@ export const RESIDENT_APP_MODULES: readonly { value: string; label: string }[] =
56
56
  { value: "facilityBooking", label: "Facility booking" },
57
57
  { value: "onlineForm", label: "Online form" },
58
58
  { value: "emergencyContact", label: "Emergency contact" },
59
+ { value: "chatbot", label: "Liza (chat assistant)" },
59
60
  ]);
60
61
 
61
62
  /** Does a new client of this nature get the Service365 resident app? */
@@ -32,6 +32,7 @@ export const MODULE_ROUTES: Readonly<Record<string, string>> = Object.freeze({
32
32
  "org-site-incident-reports": "incident-reports",
33
33
  "org-site-bulletin-board": "bulletin-board",
34
34
  "org-site-bulletin-videos": "bulletin-videos-mgmt",
35
+ "org-site-liza": "chatbot-mgmt",
35
36
  "org-site-visitor-mgmt": "visitor-mgmt",
36
37
  "org-site-visitor-management": "visitor-mgmt",
37
38
  "org-site-vehicle-management": "vehicle-mgmt",
@@ -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 };
@@ -48,6 +48,7 @@ export const RESOURCE_LABELS: Record<string, string> = {
48
48
  "my-attendance": "My attendance",
49
49
  "online-form-configuration": "Online forms",
50
50
  "bulletin-videos-mgmt": "Bulletin videos",
51
+ "chatbot-mgmt": "Liza (chat assistant)",
51
52
  "access-card-mgmt": "Access cards",
52
53
  feedbacks: "Feedback",
53
54
  // The legacy singular resource: its own permission, same module (see `feedbacks`).