@7365admin1/layer-common 4.185.2 → 4.185.3

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,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.185.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 1edb15b: Show the cleaning service as "Cleaning" instead of "Hygiene" in labels.
8
+
3
9
  ## 4.185.2
4
10
 
5
11
  ### Patch Changes
@@ -4041,11 +4047,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
4041
4047
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
4042
4048
  own rule from two endpoints the console already calls, unprojected:
4043
4049
 
4044
- GET /api/members/user/:user/app/admin the Seven365 staff membership
4045
- GET /api/roles/id/:role that membership's role document
4050
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
4051
+ GET /api/roles/id/:role that membership's role document
4046
4052
 
4047
- owner = member.type === "admin" && role.type === "admin" && role.default === true
4048
- staff = member.type === "admin" && role.type === "admin"
4053
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
4054
+ staff = member.type === "admin" && role.type === "admin"
4049
4055
 
4050
4056
  `role.default` is the marker because it is the only property of a platform
4051
4057
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -205,7 +205,7 @@ const APP_CONFIG: Record<string, any> = {
205
205
  },
206
206
  cleaning_services: {
207
207
  id: 'hygiene',
208
- title: 'Hygiene',
208
+ title: 'Cleaning',
209
209
  icon: 'mdi-spray-bottle',
210
210
  link: APP_HYGIENE
211
211
  },
@@ -4070,8 +4070,8 @@ function getServiceDisplayName(value: string) {
4070
4070
  const normalized = value.toLowerCase();
4071
4071
  const titleMap: Record<string, string> = {
4072
4072
  security_agency: "Security",
4073
- cleaning_services: "Hygiene",
4074
- hygiene: "Hygiene",
4073
+ cleaning_services: "Cleaning",
4074
+ hygiene: "Cleaning",
4075
4075
  mechanical_electrical: "Mechanical & Electrical",
4076
4076
  mechanical_electrical_services: "Mechanical & Electrical",
4077
4077
  pest_control_services: "Pest Control",
@@ -34,7 +34,12 @@
34
34
  </v-row>
35
35
  </v-col>
36
36
 
37
- <v-col v-if="props.siteState" cols="12" class="mt-2">
37
+ <!--
38
+ Read-only: a role made inside a site belongs to that site. With no
39
+ site (organisation-level roles) there is nothing to show, so say
40
+ where per-site roles are made instead of an empty locked box.
41
+ -->
42
+ <v-col v-if="props.siteState && props.siteId" cols="12" class="mt-2">
38
43
  <v-row no-gutters>
39
44
  <InputLabel title="Site" />
40
45
  <v-col cols="12">
@@ -48,6 +53,12 @@
48
53
  </v-col>
49
54
  </v-row>
50
55
  </v-col>
56
+ <v-col v-else-if="props.siteState" cols="12" class="mt-2">
57
+ <p class="text-body-2 text-medium-emphasis mb-0" data-test="role-form-no-site-hint">
58
+ This role is for the whole organisation. To make a role for one site, open
59
+ Sites, choose the site, then Roles &amp; Permissions.
60
+ </p>
61
+ </v-col>
51
62
 
52
63
  <v-col cols="12" class="mt-2">
53
64
  <AppButton
@@ -102,7 +102,7 @@ const dashboardDataMap: Record<string, ModuleData> = {
102
102
  ],
103
103
  },
104
104
  hygiene: {
105
- name: 'Hygiene',
105
+ name: 'Cleaning',
106
106
  cards: [
107
107
  {
108
108
  title: 'Feedback',
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.185.2",
5
+ "version": "4.185.3",
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.",
@@ -41,7 +41,7 @@ export const ENTRYPASS_APPS: readonly {
41
41
  }[] = Object.freeze([
42
42
  { value: "ma", label: "MA App", group: "Management" },
43
43
  { value: "mechanical_electrical_services", label: "M&E", group: "Service Providers" },
44
- { value: "cleaning_services", label: "Hygiene", group: "Service Providers" },
44
+ { value: "cleaning_services", label: "Cleaning", group: "Service Providers" },
45
45
  { value: "pool_maintenance_services", label: "Pool Maintenance", group: "Service Providers" },
46
46
  { value: "pest_control_services", label: "Pest Control", group: "Service Providers" },
47
47
  { value: "landscaping_services", label: "Landscape", group: "Service Providers" },