@7365admin1/layer-common 4.5.1-staging.300 → 4.5.1-staging.301

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +72 -4
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,73 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ce15a17: Require a photo before a checklist task can be completed.
8
+
9
+ The Submit button in the completion dialog stays disabled until at least one
10
+ photo is attached, and the uploader is marked required. It gates on the uploaded
11
+ ids rather than previews, so a half-finished upload cannot slip through to a
12
+ server that then refuses it.
13
+
14
+ The reject dialog is deliberately not gated — a reject is somebody reporting a
15
+ problem, and demanding a photograph first would stop them reporting it. The
16
+ server scopes the rule the same way.
17
+
18
+ ## 4.7.1
19
+
20
+ ### Patch Changes
21
+
22
+ - fcb2938: Fix the context switcher showing a tick against two sites at once.
23
+
24
+ Not a comparison bug: `selected === item.value` was true for both rows because
25
+ both rows were the same site. The seven service apps build this list from
26
+ `customer-sites` with `value: i.site`, and a customer-sites row is an ENGAGEMENT,
27
+ not a site — one site can carry more than one. Production has two active rows for
28
+ the same site, identical except for a stale `name` snapshot.
29
+
30
+ The switcher now offers each destination once. First occurrence wins, so the
31
+ surviving label is the current one rather than the stale snapshot. Items with no
32
+ `value` are kept — they cannot collide, and dropping them would hide a malformed
33
+ row.
34
+
35
+ ## 4.7.0
36
+
37
+ ### Minor Changes
38
+
39
+ - a6f6af7: Add a derived module-to-application map (`utils/module-applications.ts`).
40
+
41
+ The Seven365 console listed the whole 47-entry catalogue as one flat list, so a
42
+ security client was offered Cleaning schedule management. R1 is written in terms
43
+ of applications, so the console needs to know which application each module
44
+ belongs to.
45
+
46
+ The map is DERIVED from each application's own `use*Permission` composable — the
47
+ same object that app passes to its role editor — so the console cannot disagree
48
+ with the apps. It is many-to-many on purpose: M&E reuses the cleaning schedule
49
+ module, and members/roles/attendance are shared by nearly all of them.
50
+
51
+ The seven app composables now import `useCommonPermissions` explicitly instead of
52
+ relying on Nuxt auto-import. Identical inside the app, and it is what makes the
53
+ catalogue readable outside Nuxt so the map can be derived at all.
54
+
55
+ ## 4.6.0
56
+
57
+ ### Minor Changes
58
+
59
+ - 40b7a6c: Add a search to both role dialogs, and stop Unselect All clearing what is hidden (R5).
60
+
61
+ A client builds a role out of up to 47 modules and about 127 actions inside a
62
+ modal. The search matches the names a person reads as well as the raw keys, so
63
+ "statements" and "soa" both find `SOA-mgmt`.
64
+
65
+ It filters the DISPLAY only — a permission ticked and then filtered out of view
66
+ is still ticked and still saved. Select All and Unselect All now act on the
67
+ visible set: with no search that is the whole catalogue, unchanged; with a search
68
+ active, Unselect All no longer discards every permission outside the filter,
69
+ which on the edit dialog would have been a role somebody is already using.
70
+
3
71
  ## 4.5.0
4
72
 
5
73
  ### Minor Changes
@@ -895,11 +963,11 @@
895
963
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
896
964
  own rule from two endpoints the console already calls, unprojected:
897
965
 
898
- GET /api/members/user/:user/app/admin the Seven365 staff membership
899
- GET /api/roles/id/:role that membership's role document
966
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
967
+ GET /api/roles/id/:role that membership's role document
900
968
 
901
- owner = member.type === "admin" && role.type === "admin" && role.default === true
902
- staff = member.type === "admin" && role.type === "admin"
969
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
970
+ staff = member.type === "admin" && role.type === "admin"
903
971
 
904
972
  `role.default` is the marker because it is the only property of a platform
905
973
  staff role no API caller can set - `role.controller.ts` validates create and
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.1-staging.300",
5
+ "version": "4.5.1-staging.301",
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.",