@aiquants/auth-react-router 0.42.0 → 0.44.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.
package/README.md CHANGED
@@ -304,7 +304,7 @@ first from the loader's `url`. The guard's own check is reached only by a sessio
304
304
  - **Names**: every field is named by its visible label, and its examples and what a search matches are its description,
305
305
  never a placeholder; the two upstream-group pickers, named by their visible labels too, keep select-box's search
306
306
  prompt (`pickUpstreamPlaceholder`, see Localization). The accessible name of a row operation contains its visible
307
- label by construction (WCAG 2.2 SC 2.5.3): each name template (`usersView.editUserAria` and the 15 other keys ending
307
+ label by construction (WCAG 2.2 SC 2.5.3): each name template (`usersView.editUserAria` and the 16 other keys ending
308
308
  in `Aria`) holds `{action}` exactly once, the view draws the visible label there and the rest of the template as text
309
309
  only assistive technology reads, and `resolveUserAdminLabels` refuses a template that holds `{action}` other than once.
310
310
  The spaces between the visible label and the hidden text are drawn outside the hidden text, so the space between the
@@ -318,11 +318,12 @@ first from the loader's `url`. The guard's own check is reached only by a sessio
318
318
  - **Upstream members not in a group are listed by reason**, never as one count under one label: someone who matches
319
319
  more than one user, someone whose address belongs to a user linked to another upstream account, someone the next
320
320
  synchronization adds, someone deactivated and someone not registered yet are different facts, cleared in different
321
- ways, and one label is false for some of them. The counts come from the host, in the link's
322
- `AuthGroupExternalLink.unresolved` (`AuthDirectoryUnresolvedCounts` of `@aiquants/auth-core`; a host on
323
- `@aiquants/auth-directory-drizzle` reads them from `listLinks` / `unresolvedByGroup`, which count with the
324
- synchronization's own resolver). The block sits on the group's card in the groups tab and in the group's cell of the
325
- directory tab — not beside the last sync time, since who is missing is a fact of the group, not of the run:
321
+ ways, and one label is false for some of them. The addresses come from the host, in the link's
322
+ `AuthGroupExternalLink.unresolved` (`AuthDirectoryUnresolvedMembers` of `@aiquants/auth-core`: one list of addresses
323
+ per reason, ascending by UTF-16 code unit; a host on `@aiquants/auth-directory-drizzle` reads them from `listLinks` /
324
+ `unresolvedByGroup`, which list them with the synchronization's own resolver). The block sits on the group's card in
325
+ the groups tab and in the group's cell of the directory tab — not beside the last sync time, since who is missing is a
326
+ fact of the group, not of the run:
326
327
 
327
328
  | Reason | Label (`directoryView.*`) | Text role | What the operator does |
328
329
  | --- | --- | --- | --- |
@@ -333,11 +334,18 @@ first from the loader's `url`. The guard's own check is reached only by a sessio
333
334
  | `unregistered` | `unresolvedUnregisteredTemplate` | `fg-muted` | Nothing: the person joins at their first sign-in |
334
335
 
335
336
  One line per reason that has anyone, in the order of `AUTH_DIRECTORY_UNRESOLVED_REASONS` (the reasons to check
336
- first); a count that is zero, negative or not a number draws no line, and a group with no line draws no block. The
337
- lead `directoryView.unresolvedLead` names the list (console-ui's `List`, drawn without markers, keeps its list role
338
- in WebKit). The colour only repeats the text: each reason is a sentence of its own, and the ones to check say so.
339
- Test hooks: the block is `group-unresolved-<id>` / `directory-unresolved-<id>`, each line `<block>-<reason>` with
340
- `data-reason="<reason>"`.
337
+ first); a reason whose list is empty draws no line, and a group with no line draws no block. Each line is a
338
+ console-ui `Disclosure`: its visible text is the reason's sentence with the count (the length of the list), and
339
+ opening it lists that reason's addresses, one per line, in the order received (the view never sorts them again).
340
+ Every line starts closed and opens on its own. The button is named by `directoryView.unresolvedMembersAria`
341
+ (`{action}` is the reason's sentence, `{group}` the group's name), so the same sentence on two groups' lines reads as
342
+ two buttons that can be told apart. The lead `directoryView.unresolvedLead` names the list (console-ui's `List`,
343
+ drawn without markers, keeps its list role in WebKit). The colour only repeats the text: each reason is a sentence of
344
+ its own, and the ones to check say so. Test hooks: the block is `group-unresolved-<id>` /
345
+ `directory-unresolved-<id>`; each line is `<block>-<reason>` with `data-reason="<reason>"`, its disclosure
346
+ `<block>-<reason>-disclosure` (button `…-disclosure-button`, panel `…-disclosure-panel`), its visible sentence
347
+ `<block>-<reason>-summary`, its address list `<block>-<reason>-members`, and each address `<block>-<reason>-member`
348
+ with `data-email="<address>"`.
341
349
 
342
350
  ### Field limits and duplicate group keys: checked before the store
343
351
 
@@ -605,8 +613,9 @@ All three are **required** peers, not optional. `src/admin/views.tsx` imports `@
605
613
  specifiers survive into `dist/admin.mjs`: a host without them does not get a degraded
606
614
  picker, it gets `ERR_MODULE_NOT_FOUND` for the whole admin surface — including the groups and allowlist tabs, which have
607
615
  nothing to do with the picker. Marking them optional would suppress the install warning that is the only thing standing
608
- between a consumer and that failure. Note also that `@aiquants/select-box` pins React 19, which is stricter than this
609
- package's own `react: ">=18"`; a host that mounts `/admin` must satisfy the stricter one.
616
+ between a consumer and that failure. This package's own `react` and `react-dom` ranges are the `^19.2.7` that
617
+ `@aiquants/select-box` and `@aiquants/virtualscroll` publish (the range of the workspace catalog), so a host that meets
618
+ this package's peers meets theirs too.
610
619
 
611
620
  ## Behavior Contract
612
621
 
package/dist/admin.d.mts CHANGED
@@ -210,6 +210,7 @@ type UserAdminLabels = {
210
210
  allowGroupAria: string;
211
211
  disallowGroupAria: string;
212
212
  unlinkAria: string;
213
+ unresolvedMembersAria: string;
213
214
  confirmDisallow: string;
214
215
  link: string;
215
216
  unlink: string;
package/dist/admin.d.ts CHANGED
@@ -210,6 +210,7 @@ type UserAdminLabels = {
210
210
  allowGroupAria: string;
211
211
  disallowGroupAria: string;
212
212
  unlinkAria: string;
213
+ unresolvedMembersAria: string;
213
214
  confirmDisallow: string;
214
215
  link: string;
215
216
  unlink: string;