Directory spaces selectable for admins; lifecycle actions disabled with reason (#808) #813

Merged
Cordy merged 2 commits from feat-808 into main 2026-09-28 16:36:58 +00:00
Owner

Closes #808; implements mockup-808-directory-selection.html as greenlit.

  • Checkboxes: directory rows get one for admins (!it.dirSp || feat.admin); non-admins are unchanged.
  • sync: splits the selection into app-owned and directory picks.
    • Deactivate shows whenever a directory space is picked (including a directories-only selection, per Nikola).
    • Reactivate and Delete keep their rules, evaluated over the app-owned picks.
    • spovLock sets aria-disabled + data-tip (the #747 tooltip) with a per-action reason, and clears both otherwise.
    • Each lifecycle handler returns early while disabled; before this, Deactivate would have posted to directory spaces.
  • Style: faded and no hover highlight while disabled. aria-disabled keeps the buttons focusable.
  • Tooltip: focusin/focusout show and hide the app tooltip app-wide, so keyboard users get the reason too.
  • i18n ×4 for the three reasons.
  • Deliberate pin updates: qa783 (directory rows now selectable by admins), and qa787/qa770 (the hide rules now read over the app-owned picks).

Tests: RED 6da059a4 → green 300/300; the extracted JS passes node --check.

Closes #808; implements `mockup-808-directory-selection.html` as greenlit. - **Checkboxes:** directory rows get one for admins (`!it.dirSp || feat.admin`); non-admins are unchanged. - **`sync`:** splits the selection into app-owned and directory picks. - Deactivate shows whenever a directory space is picked (including a directories-only selection, per Nikola). - Reactivate and Delete keep their rules, evaluated over the app-owned picks. - `spovLock` sets `aria-disabled` + `data-tip` (the #747 tooltip) with a per-action reason, and clears both otherwise. - Each lifecycle handler returns early while disabled; before this, Deactivate would have posted to directory spaces. - **Style:** faded and no hover highlight while disabled. `aria-disabled` keeps the buttons focusable. - **Tooltip:** `focusin`/`focusout` show and hide the app tooltip app-wide, so keyboard users get the reason too. - i18n ×4 for the three reasons. - **Deliberate pin updates:** qa783 (directory rows now selectable by admins), and qa787/qa770 (the hide rules now read over the app-owned picks). Tests: RED 6da059a4 → green 300/300; the extracted JS passes `node --check`.
Cordy merged commit 87441614d6 into main 2026-09-28 16:36:58 +00:00
Cordy deleted branch feat-808 2026-09-28 16:37:01 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#813
No description provided.