@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 +22 -13
- package/dist/admin.d.mts +1 -0
- package/dist/admin.d.ts +1 -0
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +1 -1
- package/package.json +8 -8
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
|
|
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
|
|
322
|
-
`AuthGroupExternalLink.unresolved` (`
|
|
323
|
-
`@aiquants/auth-directory-drizzle` reads them from `listLinks` /
|
|
324
|
-
synchronization's own resolver). The block sits on the group's card in
|
|
325
|
-
directory tab — not beside the last sync time, since who is missing is a
|
|
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
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
`
|
|
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.
|
|
609
|
-
|
|
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