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

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.
@@ -251,27 +251,9 @@ watch(
251
251
  const roles = ref<any[]>([])
252
252
  const { getRoles } = useRole()
253
253
 
254
- /*
255
- * `type` is the ROLE type, not the service the client subscribes to, and the
256
- * only caller (`ClientMain.vue` "Invite Client") passes no `app` prop -- so
257
- * this sent `type: ""` and the endpoint applied no type filter at all. The
258
- * dropdown therefore listed every org-less role of every type, which includes
259
- * the platform's OWN staff roles (`type: "admin"` -- the two rows the console's
260
- * `/super-admin/role-permissions` screen edits). Offering a Seven365 console
261
- * staff role on a CLIENT invitation is the defect.
262
- *
263
- * A client admin's role is `type: "organization"`, which is what the client
264
- * roles screen (`org/[organization]/roles-permissions.vue`) already lists. This
265
- * narrows to exactly that. It is a narrowing of this one picker only: no role
266
- * changes, no permission changes, and the org-less `organization` roles that
267
- * were already being picked are all still offered.
268
- *
269
- * Keying off the selected service instead would empty the dropdown -- no
270
- * org-less role carries a service type -- so `props.app` is not the filter.
271
- */
272
254
  const { data: roleData, refresh: refreshRoles } = await useLazyAsyncData(
273
255
  "roles",
274
- () => getRoles({ org: org.value?._id, type: "organization", limit: 50 }),
256
+ () => getRoles({ org: org.value?._id, type: props.app, limit: 50 }),
275
257
  { watch: [() => props.app] }
276
258
  )
277
259
 
@@ -272,18 +272,11 @@
272
272
  <v-divider class="mb-4" />
273
273
  <PhotoUpload
274
274
  title="Take/Upload Photos"
275
- :required="true"
275
+ :required="false"
276
276
  v-model="modalData.photos"
277
277
  v-model:photo-ids="modalData.photoIds"
278
278
  @error="handlePhotoError"
279
279
  />
280
- <p
281
- v-if="!modalData.photoIds.length"
282
- class="text-caption text-medium-emphasis mt-1"
283
- >
284
- At least one photo is required to complete this task. You can take
285
- or upload more than one.
286
- </p>
287
280
  </v-col>
288
281
  </v-row>
289
282
  </v-card-text>
@@ -646,33 +639,8 @@ const modalData = reactive({
646
639
  lastApprovedKey: null as string | null,
647
640
  });
648
641
 
649
- /*
650
- * A PHOTO IS REQUIRED TO COMPLETE A TASK.
651
- *
652
- * Owner requirement, 2026-09-10: *"once task was completed they required to take
653
- * photo before completing the task ... all the services that has this module
654
- * must be the same process."*
655
- *
656
- * The server refuses a completion with no attachment
657
- * (`module-hygiene hygiene-area-checklist.controller.ts`), which is what makes
658
- * the rule true for every service and every client at once. This is the half
659
- * that tells somebody BEFORE they lose their typing: the Submit button stays
660
- * disabled and the uploader is marked required, rather than letting them fill
661
- * the form in and answering with a 400.
662
- *
663
- * `photoIds`, not `photos`: the ids are what is actually submitted as
664
- * `attachment`. A preview that never finished uploading is not evidence, and
665
- * gating on it would let a failed upload through to a server that then refuses
666
- * it.
667
- *
668
- * The REJECT dialog is deliberately NOT gated — a reject is somebody reporting a
669
- * problem, and demanding a photograph first would stop them reporting it. The
670
- * server takes the same view.
671
- */
672
642
  const isModalValid = computed(() => {
673
- return (
674
- modalData.remark?.trim().length > 0 && modalData.photoIds.length > 0
675
- );
643
+ return modalData.remark?.trim().length > 0;
676
644
  });
677
645
 
678
646
  const showRejectModal = ref(false);
@@ -52,7 +52,7 @@
52
52
  <v-list-item
53
53
  density="compact"
54
54
  class="switch-context__row"
55
- v-for="item in uniqueItems"
55
+ v-for="item in prop.items"
56
56
  :key="item.value"
57
57
  @click="selectItem(item.value)"
58
58
  >
@@ -158,52 +158,8 @@ const search = defineModel<string>("search", {
158
158
 
159
159
  const emit = defineEmits(["search", "select", "manage", "add"]);
160
160
 
161
- /**
162
- * ONE ROW PER DESTINATION.
163
- *
164
- * Owner report, 2026-09-10: the site switcher showed a tick against TWO sites at
165
- * once. It was not a comparison bug — `selected === item.value` is a strict
166
- * equality and it was true for both rows, because BOTH ROWS WERE THE SAME SITE.
167
- *
168
- * The seven service applications all build this list from `customer-sites`,
169
- * mapping `value: i.site`. A `customer-sites` row is an ENGAGEMENT, not a site,
170
- * and one site can carry more than one — measured on production, provider org
171
- * `69251bc6…` has two active rows for site `6923d666…`, identical in `site`,
172
- * `siteOrg`, `org` and `status`, differing only in a stale `name` snapshot
173
- * ("Seventh Condominium" from the older row, "NCC" from the newer). So the same
174
- * site was listed twice and, being selected, was ticked twice.
175
- *
176
- * Picking either row sets the SAME `siteId`, so the two entries were
177
- * indistinguishable in effect — the list offered a choice that was not a choice.
178
- *
179
- * Deduplicating belongs here rather than in seven layouts: this component's
180
- * whole contract is "pick ONE of these", so two entries that do the same thing
181
- * are its problem to reject. It also means a duplicate arriving from any other
182
- * caller is handled without waiting for that caller to notice.
183
- *
184
- * FIRST OCCURRENCE WINS, deliberately. The applications receive these rows
185
- * newest-first, so the surviving label is the current one — "NCC", which is what
186
- * the breadcrumb already resolves from the site itself. Keeping the last would
187
- * show the stale snapshot beside a breadcrumb that disagreed with it.
188
- *
189
- * An item with no `value` is left alone: it cannot collide, and silently
190
- * dropping it would hide a malformed row instead of showing it.
191
- */
192
- const uniqueItems = computed(() => {
193
- const items = Array.isArray(prop.items) ? prop.items : [];
194
- const seen = new Set<unknown>();
195
-
196
- return items.filter((item) => {
197
- const value = item?.value;
198
- if (value === undefined || value === null || value === "") return true;
199
- if (seen.has(value)) return false;
200
- seen.add(value);
201
- return true;
202
- });
203
- });
204
-
205
161
  const name = computed(() => {
206
- return uniqueItems.value.find((item) => item.value === selected.value)?.text ?? "";
162
+ return prop.items.find((item) => item.value === selected.value)?.text ?? "";
207
163
  });
208
164
 
209
165
  /**
@@ -742,35 +742,11 @@
742
742
  class="visitor-preview__row"
743
743
  >
744
744
  <div class="visitor-preview__label">{{ label }}</div>
745
- <div>
746
- <!-- Was a hover tooltip on the value: the full NRIC only
747
- reachable by hovering, which says nothing is there to
748
- reach and cannot be reached at all on a touch screen.
749
- The eye alone, at the 14px the Incident Report screens
750
- draw it, is a 14px target - the floor is 24px. So the
751
- NUMBER is the control and the eye is its affordance:
752
- the whole masked value is pressable, which makes the
753
- target the width of the digits rather than of a glyph,
754
- and being a real `button` it also takes a tab stop,
755
- which a `v-icon` with a click handler never did. -->
756
- <button
757
- type="button"
758
- class="visitor-preview__reveal"
759
- :aria-label="showVisitorNric ? 'Hide NRIC' : 'Show NRIC'"
760
- :aria-pressed="showVisitorNric"
761
- @click="showVisitorNric = !showVisitorNric"
762
- >
763
- <span class="visitor-preview__value">
764
- {{
765
- showVisitorNric
766
- ? selectedVisitorObject[key]
767
- : maskNRIC(selectedVisitorObject[key])
768
- }}
769
- </span>
770
- <v-icon size="16" class="visitor-preview__eye">
771
- {{ showVisitorNric ? "mdi-eye-off-outline" : "mdi-eye-outline" }}
772
- </v-icon>
773
- </button>
745
+ <div
746
+ v-tooltip:top="selectedVisitorObject[key]"
747
+ class="visitor-preview__value"
748
+ >
749
+ {{ maskNRIC(selectedVisitorObject[key]) }}
774
750
  </div>
775
751
  </div>
776
752
 
@@ -820,84 +796,6 @@
820
796
  </div>
821
797
  </div>
822
798
 
823
- <!--
824
- THE CONTRACTOR'S PARTY.
825
-
826
- The list row has always said `( +2 members)` beside the name
827
- and then had nowhere to send you for the names themselves. The
828
- block spans both columns rather than sitting in the 116px
829
- value track: a member is a record, not a value, and several of
830
- them in a 250px column is unreadable.
831
-
832
- Read off `selectedVisitorDataObject` (the raw row) and not
833
- `selectedVisitorObject`, which filters itself down to
834
- `typeFieldMap` plus five fixed keys - `members` is on neither
835
- list, and widening that computed would change what four other
836
- dialogs on this screen see.
837
- -->
838
- <div
839
- v-else-if="key === 'members' && selectedVisitorMembers.length"
840
- class="visitor-preview__row visitor-preview__row--block"
841
- >
842
- <div class="visitor-preview__label">
843
- {{ label }} ({{ selectedVisitorMembers.length }})
844
- </div>
845
- <div class="visitor-preview__members">
846
- <div
847
- v-for="(member, index) in selectedVisitorMembers"
848
- :key="member?.nric || member?.name || index"
849
- class="visitor-preview__member"
850
- >
851
- <div class="visitor-preview__value">
852
- {{ member?.name || "N/A" }}
853
- </div>
854
- <template v-for="field in memberDetailFields" :key="field.key">
855
- <div
856
- v-if="member?.[field.key]"
857
- class="visitor-preview__member-line"
858
- >
859
- <span class="visitor-preview__member-key">
860
- {{ field.label }}
861
- </span>
862
- <!-- A member's NRIC is the same class of data as the
863
- visitor's, so it gets the same control. Each
864
- member reveals separately - one toggle for the
865
- whole card would show three people's NRICs to
866
- read one. -->
867
- <button
868
- v-if="field.key === 'nric'"
869
- type="button"
870
- class="visitor-preview__reveal"
871
- :aria-label="
872
- isMemberNricShown(index)
873
- ? `Hide NRIC for ${member?.name || 'this member'}`
874
- : `Show NRIC for ${member?.name || 'this member'}`
875
- "
876
- :aria-pressed="isMemberNricShown(index)"
877
- @click="toggleMemberNric(index)"
878
- >
879
- <span>
880
- {{
881
- isMemberNricShown(index)
882
- ? member.nric
883
- : maskNRIC(member.nric)
884
- }}
885
- </span>
886
- <v-icon size="16" class="visitor-preview__eye">
887
- {{
888
- isMemberNricShown(index)
889
- ? "mdi-eye-off-outline"
890
- : "mdi-eye-outline"
891
- }}
892
- </v-icon>
893
- </button>
894
- <span v-else>{{ member[field.key] }}</span>
895
- </div>
896
- </template>
897
- </div>
898
- </div>
899
- </div>
900
-
901
799
  <div
902
800
  v-else-if="selectedVisitorObject[key]"
903
801
  class="visitor-preview__row"
@@ -2000,71 +1898,6 @@ const isSelectedVisitorPendingApproval = computed(
2000
1898
  () => selectedVisitorStatus.value === "pending"
2001
1899
  );
2002
1900
 
2003
- /**
2004
- * The members a contractor brought with them. Not gated on the Guests tab: the
2005
- * list row's own `( +N members)` count is not either, and a contractor with a
2006
- * party has one wherever the screen shows it.
2007
- *
2008
- * Blank entries are dropped rather than drawn as an empty card - the payload
2009
- * carries `""` for every detail nobody filled in, so a member with no name and
2010
- * no details would otherwise render as a bare inset box.
2011
- */
2012
- const selectedVisitorMembers = computed<Record<string, any>[]>(() => {
2013
- const members = selectedVisitorDataObject.value?.members;
2014
- if (!Array.isArray(members)) return [];
2015
-
2016
- return members.filter(
2017
- (member: Record<string, any>) =>
2018
- member?.name || member?.nric || member?.contact || member?.plateNumber
2019
- );
2020
- });
2021
-
2022
- /**
2023
- * WHICH NRICs ARE UNCOVERED RIGHT NOW.
2024
- *
2025
- * Per member and not per card, so revealing one person's number does not
2026
- * uncover the rest of the party's. Both are cleared when the dialog closes -
2027
- * a preview must not open on the next visitor with the last one's NRIC
2028
- * already showing, and it is the same `selectedVisitorId` that would carry it
2029
- * across if the same row were reopened.
2030
- */
2031
- const showVisitorNric = ref(false);
2032
- const shownMemberNrics = ref<number[]>([]);
2033
-
2034
- function isMemberNricShown(index: number) {
2035
- return shownMemberNrics.value.includes(index);
2036
- }
2037
-
2038
- function toggleMemberNric(index: number) {
2039
- shownMemberNrics.value = isMemberNricShown(index)
2040
- ? shownMemberNrics.value.filter((x) => x !== index)
2041
- : [...shownMemberNrics.value, index];
2042
- }
2043
-
2044
- watch(
2045
- () => dialog.viewVisitor,
2046
- (open) => {
2047
- if (open) return;
2048
- showVisitorNric.value = false;
2049
- shownMemberNrics.value = [];
2050
- }
2051
- );
2052
-
2053
- /**
2054
- * What a member row prints under the name, in order. `plateNumber` is in here
2055
- * because the API returns it on `members[]` even though neither
2056
- * `TMemberInfo` (this package) nor `TContractorMembers` (API-core's visitor
2057
- * model, name and nric only) declares it - the two types have drifted from the
2058
- * document and from each other. Reading the key defensively costs nothing and
2059
- * shows the vehicle a member actually arrived in; the types are somebody's to
2060
- * reconcile separately.
2061
- */
2062
- const memberDetailFields = [
2063
- { key: "nric", label: "NRIC" },
2064
- { key: "contact", label: "Contact" },
2065
- { key: "plateNumber", label: "Vehicle" },
2066
- ] as const;
2067
-
2068
1901
  const formatType = (item: any) =>
2069
1902
  (item.deliveryType ? item.deliveryType + "-" : "") + item.type;
2070
1903
 
@@ -2078,7 +1911,6 @@ const formattedFields = {
2078
1911
  level: "Level",
2079
1912
  unit: "Unit",
2080
1913
  purpose: "Purpose",
2081
- members: "Members",
2082
1914
  checkIn: "Check In",
2083
1915
  snapshotEntryImage: "Entry Image",
2084
1916
  checkOut: "Check Out",
@@ -3057,100 +2889,6 @@ watchEffect(async () => {
3057
2889
  word-break: break-word;
3058
2890
  }
3059
2891
 
3060
- /* A row whose value is a set of records rather than a value - it drops the
3061
- two-column grid and runs the full width of the card body. */
3062
- .visitor-preview__row--block {
3063
- display: block;
3064
- }
3065
-
3066
- .visitor-preview__members {
3067
- display: flex;
3068
- flex-direction: column;
3069
- gap: 8px;
3070
- margin-top: 8px;
3071
- }
3072
-
3073
- /*
3074
- * An added member reads as an inset on the card it sits in - `--hover` on
3075
- * `--border` at the inner radius. Those are `Card/MemberInfoSummary`'s three
3076
- * decisions, unchanged, so a member looks the same in the preview as it does
3077
- * in the form that created it. Only the TYPE differs: that card still prints
3078
- * `<strong>Label:</strong> value`, which is the pattern this dialog just moved
3079
- * off, so the lines below are set on the scale rather than inherited.
3080
- */
3081
- .visitor-preview__member {
3082
- padding: 9px 12px;
3083
- border: 1px solid var(--border);
3084
- border-radius: var(--r-inner);
3085
- background: var(--hover);
3086
- }
3087
-
3088
- .visitor-preview__member-line {
3089
- display: flex;
3090
- gap: 8px;
3091
- margin-top: 3px;
3092
- font-size: var(--fs-breadcrumb);
3093
- color: var(--text2);
3094
- word-break: break-word;
3095
- }
3096
-
3097
- .visitor-preview__member-key {
3098
- flex: 0 0 52px;
3099
- color: var(--muted);
3100
- }
3101
-
3102
- /*
3103
- * THE NRIC REVEAL.
3104
- *
3105
- * The pressable thing is the masked number, not the glyph beside it: an eye on
3106
- * its own is a 14-16px target where 24px is the floor, and on a 12.5px member
3107
- * line an `AppButton variant="icon"` - the layer's 32px icon square - would
3108
- * make the NRIC line half again the height of the Contact line under it.
3109
- * Pressing the digits gives a target the width of the value at no cost to the
3110
- * rhythm, and reads the right way round: the number is what changes.
3111
- *
3112
- * It inherits its type rather than setting any, so the visitor's NRIC stays on
3113
- * `--fs-cell` and a member's on the `--fs-breadcrumb` of the line it sits in.
3114
- * The negative margin pays back the padding, so a revealed value starts on the
3115
- * same left edge as every other value in the card.
3116
- */
3117
- .visitor-preview__reveal {
3118
- display: inline-flex;
3119
- align-items: center;
3120
- gap: 6px;
3121
- margin: -3px -7px;
3122
- padding: 3px 7px;
3123
- border: none;
3124
- border-radius: var(--r-inner-sm);
3125
- background: transparent;
3126
- font: inherit;
3127
- color: inherit;
3128
- text-align: left;
3129
- cursor: pointer;
3130
- transition: background var(--motion) ease;
3131
- }
3132
-
3133
- .visitor-preview__reveal:hover {
3134
- background: var(--hover);
3135
- }
3136
-
3137
- .visitor-preview__reveal:focus-visible {
3138
- outline: 2px solid var(--accent);
3139
- outline-offset: 1px;
3140
- }
3141
-
3142
- /* The design's interactive ink - not Vuetify's fixed blue, which is one colour
3143
- on both themes. `affectedEntities` gives its NRIC eye the same value. */
3144
- .visitor-preview__eye {
3145
- color: var(--accent-text);
3146
- }
3147
-
3148
- @media (prefers-reduced-motion: reduce) {
3149
- .visitor-preview__reveal {
3150
- transition: none;
3151
- }
3152
- }
3153
-
3154
2892
  /* The width the type filter carried as `max-width="200"` on the v-select. */
3155
2893
  .visitor-type-filter {
3156
2894
  max-width: 200px;
@@ -3,7 +3,7 @@
3
3
  <v-row no-gutters class="fill-height">
4
4
  <v-col cols="12" xl="7" lg="7" md="7" class="fill-height">
5
5
  <div class="panel-container border-e">
6
- <ChatMessage :type="'workOrder'" :record-id="String(workOrder?._id || '')" />
6
+ <ChatMessage :type="'workOrder'" />
7
7
  </div>
8
8
  </v-col>
9
9
  <v-col cols="12" xl="5" lg="5" md="5" class="fill-height">
@@ -111,18 +111,10 @@ export default function useComment() {
111
111
  );
112
112
 
113
113
  if (Array.isArray(updateSeenIds) && updateSeenIds.length > 0) {
114
- const seenBy = await updateSeenBy(
115
- updateSeenIds,
116
- currentUser.value?._id
117
- );
114
+ const seenBy = await updateSeenBy(updateSeenIds, currentUser.value?._id);
118
115
  }
119
116
  } catch (error) {
120
- // Was swallowed here, which is why a thread that failed to load was
121
- // indistinguishable from a thread with no messages in it. The caller
122
- // decides what to tell the user.
123
117
  console.error("error :", error);
124
- comments.value = [];
125
- throw error;
126
118
  } finally {
127
119
  isCommentsLoaded.value = false;
128
120
  }
@@ -76,8 +76,6 @@ export default function usetFacility() {
76
76
  hourInterval?: number;
77
77
  isBookingFeeEnabled: boolean;
78
78
  isGuestEnabled: boolean;
79
- isResidentChecklistEnabled: boolean;
80
- isSecurityChecklistEnabled: boolean;
81
79
  bookingAmount: number | null;
82
80
  peakBookingFeeAmount?: number | null;
83
81
  bookingFeeGuestAmount?: number | null;
@@ -175,8 +173,6 @@ export default function usetFacility() {
175
173
  hourInterval = 1,
176
174
  isBookingFeeEnabled = false,
177
175
  isGuestEnabled = false,
178
- isResidentChecklistEnabled = false,
179
- isSecurityChecklistEnabled = false,
180
176
  bookingAmount = 0,
181
177
  peakBookingFeeAmount = 0,
182
178
  bookingFeeGuestAmount = 0,
@@ -240,13 +236,6 @@ export default function usetFacility() {
240
236
  this.hourInterval = hourInterval;
241
237
  this.isBookingFeeEnabled = isBookingFeeEnabled;
242
238
  this.isGuestEnabled = isGuestEnabled;
243
- // Exactly one owner, always. `isResidentChecklistEnabled` is the flag
244
- // the apps gate on, so it decides, and security is its complement —
245
- // stored rather than computed so each app can read its own flag without
246
- // knowing the rule. A facility predating both fields lands on security,
247
- // which is how every one of them already behaved.
248
- this.isResidentChecklistEnabled = isResidentChecklistEnabled === true;
249
- this.isSecurityChecklistEnabled = !this.isResidentChecklistEnabled;
250
239
  this.bookingAmount = bookingAmount;
251
240
  this.peakBookingFeeAmount = peakBookingFeeAmount;
252
241
  this.bookingFeeGuestAmount = bookingFeeGuestAmount;
@@ -28,22 +28,6 @@ export type HidReaderPayload = {
28
28
  lastCallbackType?: string;
29
29
  };
30
30
 
31
- export type HidProfileQr = {
32
- readerId: string;
33
- userId: string;
34
- memberId: string;
35
- hidUserId: string;
36
- registration: string;
37
- readerName: string;
38
- portalName: string;
39
- qrEnabled: boolean;
40
- issued: boolean;
41
- qrValue: string;
42
- issuedAt: string;
43
- /** null when the permission lookup itself failed, so "unknown" stays distinct from "no". */
44
- assigned: boolean | null;
45
- };
46
-
47
31
  type HidIdentityPayload = {
48
32
  site?: string;
49
33
  hidUserId?: string | number;
@@ -182,36 +166,6 @@ export default function useHidAmico() {
182
166
  });
183
167
  }
184
168
 
185
- /**
186
- * The signed-in member's own QR code on one reader.
187
- *
188
- * No user id in the path: the server takes the caller from the session, so
189
- * these cannot be pointed at somebody else. `assigned` in the response says
190
- * whether the HID permissions screen actually admits this member to the
191
- * reader - issuing a code does not grant access, and the screen has to be
192
- * able to say so.
193
- */
194
- function getProfileQr(readerId: string) {
195
- return useNuxtApp().$api<{ data: HidProfileQr }>(
196
- `${basePath}/readers/${readerId}/profile-qr`,
197
- { method: "GET" },
198
- );
199
- }
200
-
201
- function issueProfileQr(readerId: string) {
202
- return useNuxtApp().$api<{ data: HidProfileQr }>(
203
- `${basePath}/readers/${readerId}/profile-qr`,
204
- { method: "POST" },
205
- );
206
- }
207
-
208
- function deleteProfileQr(readerId: string) {
209
- return useNuxtApp().$api<{ data: HidProfileQr }>(
210
- `${basePath}/readers/${readerId}/profile-qr`,
211
- { method: "DELETE" },
212
- );
213
- }
214
-
215
169
  function createReader(payload: HidReaderPayload) {
216
170
  return useNuxtApp().$api<HidApiRecord>(`${basePath}/readers`, {
217
171
  method: "POST",
@@ -460,27 +414,6 @@ export default function useHidAmico() {
460
414
  );
461
415
  }
462
416
 
463
- function getUserPasswordStatus(readerId: string, hidUserId: string | number) {
464
- return useNuxtApp().$api<HidApiRecord>(
465
- `${basePath}/readers/${readerId}/users/${hidUserId}/password`,
466
- { method: "GET" },
467
- );
468
- }
469
-
470
- function setUserPassword(readerId: string, hidUserId: string | number, password: string) {
471
- return useNuxtApp().$api<HidApiRecord>(
472
- `${basePath}/readers/${readerId}/users/${hidUserId}/password`,
473
- { method: "PUT", body: { password } },
474
- );
475
- }
476
-
477
- function deleteUserPassword(readerId: string, hidUserId: string | number) {
478
- return useNuxtApp().$api<HidApiRecord>(
479
- `${basePath}/readers/${readerId}/users/${hidUserId}/password`,
480
- { method: "DELETE" },
481
- );
482
- }
483
-
484
417
  function deleteUserPin(readerId: string, hidUserId: string | number) {
485
418
  return useNuxtApp().$api<{ data: { pinEnrolled: boolean } }>(
486
419
  `${basePath}/readers/${readerId}/users/${hidUserId}/pin`,
@@ -572,9 +505,6 @@ export default function useHidAmico() {
572
505
 
573
506
  return {
574
507
  getReaders,
575
- getProfileQr,
576
- issueProfileQr,
577
- deleteProfileQr,
578
508
  discoverReader,
579
509
  createReader,
580
510
  updateReader,
@@ -600,9 +530,6 @@ export default function useHidAmico() {
600
530
  getUserPinStatus,
601
531
  setUserPin,
602
532
  deleteUserPin,
603
- getUserPasswordStatus,
604
- setUserPassword,
605
- deleteUserPassword,
606
533
  getIdentities,
607
534
  getReaderUsers,
608
535
  getReaderAccessLogs,
@@ -46,33 +46,9 @@ export default function useHidNavigation() {
46
46
  },
47
47
  },
48
48
  {
49
- // "HID Reader Users" now points at `access-mgmt/administrator`, not at
50
- // `access-mgmt/hid-users`.
51
- //
52
- // Both routes mount a roster of the reader's users, but only this one
53
- // can act on them. `administrator` renders HidUserEnrollment WITHOUT
54
- // `card-management`, and that prop is what gates the Enroll action:
55
- // <template v-if="!props.cardManagement" #actions>
56
- // `hid-users` renders HidReaderUserRoster, which is read-only apart
57
- // from PIN management. So the menu entry with this name used to lead
58
- // to the screen that cannot enrol, while the screen that can was
59
- // reachable only by typing the URL.
60
- //
61
- // `hid-users` is left in place and simply unlisted - the same state
62
- // `administrator` was in - so any existing link to it still resolves.
63
49
  title: "HID Reader Users",
64
50
  route: {
65
- name: "org-site-access-mgmt-administrator",
66
- params: { org, site },
67
- },
68
- },
69
- {
70
- // The signed-in member's own pass, not somebody else's. Every other
71
- // entry in this group acts on a resident or a visitor; this one has
72
- // no subject but the caller.
73
- title: "HID QR Code",
74
- route: {
75
- name: "org-site-access-mgmt-hid-qr-code",
51
+ name: "org-site-access-mgmt-hid-users",
76
52
  params: { org, site },
77
53
  },
78
54
  },