@aiquants/auth-react-router 0.33.0 → 0.34.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
@@ -212,7 +212,8 @@ export default () => <AuthUserAdminAppView basePath="/users" />
212
212
  never scrolls sideways, even at 400 % zoom (a viewport 320 to 360 CSS px wide).
213
213
  - **Text size**: the names of the row actions, of the links to a group's members and of the pressable "create from"
214
214
  and "members only" labels are set in the `body` step (13 px on a 20 px line), and the permission badge of the header
215
- and its pills in the `caption` step (11 px on a 20 px line); no text of the package is smaller than `caption`. A
215
+ and its pills, and the lead and lines of the upstream members not in a group, in the `caption` step (11 px on a
216
+ 20 px line); no text of the package is smaller than `caption`. A
216
217
  size is always read together with its line height. A one-line name sits inside its 44 px target without changing
217
218
  it; a name that wraps takes 20 px per line (the longer "create from" label wraps to two lines, a 54.8 px box). The
218
219
  sizes are in rem, so they follow the browser's zoom and its root font-size setting. They are read from custom
@@ -223,9 +224,32 @@ export default () => <AuthUserAdminAppView basePath="/users" />
223
224
  | --- | --- | --- |
224
225
  | `--aqau-font-size-body` | `0.8125rem` (13 px) | the names of the controls above |
225
226
  | `--aqau-line-height-body` | `1.25rem` (20 px) | the same controls, together with the size |
226
- | `--aqau-font-size-caption` | `0.6875rem` (11 px) | the permission badge of the header and its pills |
227
- | `--aqau-line-height-caption` | `1.25rem` (20 px) | the same badge and pills, together with the size |
228
-
227
+ | `--aqau-font-size-caption` | `0.6875rem` (11 px) | the permission badge of the header and its pills, the upstream members not in a group |
228
+ | `--aqau-line-height-caption` | `1.25rem` (20 px) | the same badge, pills and members, together with the size |
229
+
230
+ - **Upstream members not in a group are listed by reason**, never as one count under one label: someone who matches
231
+ more than one user, someone whose address belongs to a user linked to another upstream account, someone the next
232
+ synchronization adds, someone deactivated and someone not registered yet are different facts, cleared in different
233
+ ways, and one label is false for some of them. The counts come from the host, in the link's
234
+ `AuthGroupExternalLink.unresolved` (`AuthDirectoryUnresolvedCounts` of `@aiquants/auth-core`; a host on
235
+ `@aiquants/auth-directory-drizzle` reads them from `listLinks` / `unresolvedByGroup`, which count with the
236
+ synchronization's own resolver). The block sits on the group's card in the groups tab and in the group's cell of the
237
+ directory tab — not beside the last sync time, since who is missing is a fact of the group, not of the run:
238
+
239
+ | Reason | Label (`directoryView.*`) | Colour | What the operator does |
240
+ | --- | --- | --- | --- |
241
+ | `ambiguous` | `unresolvedAmbiguousTemplate` | amber | Tidy the users (check) |
242
+ | `claimedByAnother` | `unresolvedClaimedByAnotherTemplate` | amber | Confirm who the person is (check) |
243
+ | `pendingSync` | `unresolvedPendingSyncTemplate` | sky | Wait for the next synchronization |
244
+ | `deactivated` | `unresolvedDeactivatedTemplate` | neutral (muted text) | Nothing, when the deactivation is deliberate |
245
+ | `unregistered` | `unresolvedUnregisteredTemplate` | neutral (muted text) | Nothing: the person joins at their first sign-in |
246
+
247
+ One line per reason that has anyone, in the order of `AUTH_DIRECTORY_UNRESOLVED_REASONS` (the reasons to check
248
+ first); a count that is zero, negative or not a number draws no line, and a group with no line draws no block. The
249
+ lead `directoryView.unresolvedLead` names the list (`<ul role="list" aria-labelledby>`; the role is explicit
250
+ because WebKit drops it from a list drawn without markers). The colour only repeats the text: each reason is a
251
+ sentence of its own, and the ones to check say so. Test hooks: the block is `group-unresolved-<id>` /
252
+ `directory-unresolved-<id>`, each line `<block>-<reason>` with `data-reason="<reason>"`.
229
253
  - **The group-members tab reflows without a media query** (WCAG 2.2 SC 1.4.10): the group list keeps a 240 px basis
230
254
  and the member panel never takes less than half the row, so the two sit side by side from about 518 px
231
255
  (`2 × (240 px + 1.2rem)`) and stack, each at the full width, below it. The heading, the action error and the
@@ -295,13 +319,13 @@ colours; the annotation the shell hands it carries the palette's.
295
319
  | Tone | Used for |
296
320
  | --- | --- |
297
321
  | emerald | an active user and the activate button, an enabled sync, a member's row, an exact match, an editable permission |
298
- | amber | warnings and notes (the directory sync banner, a queued sync request, an unset provider, a stale or unavailable catalog, unresolved members), a fuzzy match, a domain entry, an unknown permission |
322
+ | amber | warnings and notes (the directory sync banner, a queued sync request, an unset provider, a stale or unavailable catalog, the upstream members not in a group whom someone has to check), a fuzzy match, a domain entry, an unknown permission |
299
323
  | blue | the active tab, the links to a group's members, a read-only permission |
300
324
  | red | errors, the deactivate and remove buttons, an inactive user, a paused sync, a delete-only permission |
301
325
  | indigo | the group key, the chosen "create from" mode, the selected group of the members tab |
302
326
  | violet | a group owned upstream (its badge, marker and notes), a group entry |
303
- | sky | an e-mail entry, the header annotation |
304
- | neutral | text, surfaces, lines, a control's outline, the primary button, no permission |
327
+ | sky | an e-mail entry, the header annotation, the upstream members the next synchronization adds to a group |
328
+ | neutral | text, surfaces, lines, a control's outline, the primary button, no permission, the upstream members not in a group with nothing to do (deactivated, not registered yet) |
305
329
 
306
330
  Each text colour reaches 7:1 and each non-text mark (a control's outline, a tone's accent) 3:1 against every surface
307
331
  the console draws (the neutral surfaces and every tone's tint), in both schemes (WCAG 2.2 AAA, SC 1.4.6 and 1.4.11);
package/dist/admin.d.mts CHANGED
@@ -171,7 +171,12 @@ type UserAdminLabels = {
171
171
  transitiveMode: string;
172
172
  lastSynced: string;
173
173
  neverSynced: string;
174
- unresolvedTemplate: string;
174
+ unresolvedLead: string;
175
+ unresolvedAmbiguousTemplate: string;
176
+ unresolvedClaimedByAnotherTemplate: string;
177
+ unresolvedPendingSyncTemplate: string;
178
+ unresolvedDeactivatedTemplate: string;
179
+ unresolvedUnregisteredTemplate: string;
175
180
  syncPaused: string;
176
181
  syncEnabled: string;
177
182
  syncNow: string;
package/dist/admin.d.ts CHANGED
@@ -171,7 +171,12 @@ type UserAdminLabels = {
171
171
  transitiveMode: string;
172
172
  lastSynced: string;
173
173
  neverSynced: string;
174
- unresolvedTemplate: string;
174
+ unresolvedLead: string;
175
+ unresolvedAmbiguousTemplate: string;
176
+ unresolvedClaimedByAnotherTemplate: string;
177
+ unresolvedPendingSyncTemplate: string;
178
+ unresolvedDeactivatedTemplate: string;
179
+ unresolvedUnregisteredTemplate: string;
175
180
  syncPaused: string;
176
181
  syncEnabled: string;
177
182
  syncNow: string;