@7365admin1/layer-common 4.2.5-staging.271 → 4.2.5

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 +19 -4
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 7a6cc0f: Vehicle form: name a block/level/unit the picker cannot offer, instead of showing its id.
8
+
9
+ The Season Pass edit dialog fetches its record with a plain findOne, so block,
10
+ level and unit arrive as raw ids. The vehicle LIST already resolves those names
11
+ server-side, so the list row's names are handed down to the dialog. A value that
12
+ is no longer selectable now reads "Tower Ten (no longer selectable)"; a value no
13
+ name exists for reads a plain sentence and logs the id for support. A Mongo id
14
+ is never rendered. The stored value is untouched.
15
+
16
+ - bc4355f: Vehicle form: closing the "Matching Records" picker with the header X no longer clears a Unit the user had already chosen. Block / Level / Unit no longer render a raw Mongo ObjectId when the id is not in the site's list — a deleted building unit now says so instead. Also removes a stray `console.log` from the bulletin board form that shipped to the browser on every render.
17
+
3
18
  ## 4.2.4
4
19
 
5
20
  ### Patch Changes
@@ -492,11 +507,11 @@
492
507
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
493
508
  own rule from two endpoints the console already calls, unprojected:
494
509
 
495
- GET /api/members/user/:user/app/admin the Seven365 staff membership
496
- GET /api/roles/id/:role that membership's role document
510
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
511
+ GET /api/roles/id/:role that membership's role document
497
512
 
498
- owner = member.type === "admin" && role.type === "admin" && role.default === true
499
- staff = member.type === "admin" && role.type === "admin"
513
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
514
+ staff = member.type === "admin" && role.type === "admin"
500
515
 
501
516
  `role.default` is the marker because it is the only property of a platform
502
517
  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.5-staging.271",
5
+ "version": "4.2.5",
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.",