@7365admin1/layer-common 4.149.1 → 4.149.2

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.149.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d1c8392: Members list: role chips start with a capital letter (a role saved as "owner" reads "Owner").
8
+
3
9
  ## 4.149.1
4
10
 
5
11
  ### Patch Changes
@@ -3542,11 +3548,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
3542
3548
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
3543
3549
  own rule from two endpoints the console already calls, unprojected:
3544
3550
 
3545
- GET /api/members/user/:user/app/admin the Seven365 staff membership
3546
- GET /api/roles/id/:role that membership's role document
3551
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
3552
+ GET /api/roles/id/:role that membership's role document
3547
3553
 
3548
- owner = member.type === "admin" && role.type === "admin" && role.default === true
3549
- staff = member.type === "admin" && role.type === "admin"
3554
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
3555
+ staff = member.type === "admin" && role.type === "admin"
3550
3556
 
3551
3557
  `role.default` is the marker because it is the only property of a platform
3552
3558
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -155,7 +155,7 @@
155
155
  :title="r"
156
156
  data-test="member-role-chip"
157
157
  >
158
- {{ r }}
158
+ {{ r ? r.charAt(0).toUpperCase() + r.slice(1) : r }}
159
159
  </StatusChip>
160
160
  <span
161
161
  v-if="memberAccess(item, orgLevel).roles.length > 2"
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.149.1",
5
+ "version": "4.149.2",
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.",