@7365admin1/layer-common 4.2.1-staging.259 → 4.2.1
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 +36 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b16f792: `EntryPassMain`: add the Invitation Note toggle to the Self-Service settings tab (DV-0080).
|
|
8
|
+
|
|
9
|
+
A new Invitation Note row between Auto-Approvals and Printer Setup — a switch plus a note
|
|
10
|
+
textarea — persisting to `settings.onboarding.invitationNote` through the existing save
|
|
11
|
+
payload, which the API attaches to self-service contractors at registration.
|
|
12
|
+
|
|
13
|
+
The toggle saves immediately, matching the Auto-Approvals switch above it; the note text saves
|
|
14
|
+
on blur, since the section has no Save button of its own. Turning the toggle on with an empty
|
|
15
|
+
note is refused inline rather than saved, and turning it off keeps the text so flipping it back
|
|
16
|
+
on does not lose what was typed.
|
|
17
|
+
|
|
18
|
+
- b16f792: `InvitationForm`: bind an invitation to a site the caller already knows, and stop `hideApp` deciding the app.
|
|
19
|
+
|
|
20
|
+
The `site` prop had been declared on the component since it was written and was never read
|
|
21
|
+
anywhere — `invite.site` was only ever filled by the Site picker. A caller that already knows
|
|
22
|
+
which site the invitation is for (onboarding step 6, "Invite Site Admin", which is about the
|
|
23
|
+
site created in step 4) had no way to say so, and the invitation went out unbound to any site.
|
|
24
|
+
The prop is now watched and wins over the picker; the picker still works when no site is passed.
|
|
25
|
+
|
|
26
|
+
`hideApp` hides the App field. It also overwrote the value with a literal
|
|
27
|
+
`"property_management_agency"`, so an organisation that hid the field could not choose what it
|
|
28
|
+
was hiding: a security, cleaning or landscaping client was invited into property management.
|
|
29
|
+
Hiding a field is not deciding it. `adminState: false` keeps its existing fallback — that flag
|
|
30
|
+
belongs to the organisation-admin invitation, a separate flow.
|
|
31
|
+
|
|
32
|
+
No new exported API: the prop already existed and no existing caller passes it, so this is a
|
|
33
|
+
behaviour correction inside an existing component rather than a new capability.
|
|
34
|
+
|
|
3
35
|
## 4.2.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
|
@@ -383,11 +415,11 @@
|
|
|
383
415
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
384
416
|
own rule from two endpoints the console already calls, unprojected:
|
|
385
417
|
|
|
386
|
-
|
|
387
|
-
|
|
418
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
419
|
+
GET /api/roles/id/:role that membership's role document
|
|
388
420
|
|
|
389
|
-
|
|
390
|
-
|
|
421
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
422
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
391
423
|
|
|
392
424
|
`role.default` is the marker because it is the only property of a platform
|
|
393
425
|
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.2.1
|
|
5
|
+
"version": "4.2.1",
|
|
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.",
|