Spaces overview: multi-select directory spaces (batch Edit quota); disabled Deactivate with hover explanation #808

Closed
opened 2026-09-28 15:16:40 +00:00 by Cordy · 2 comments
Owner

Follow-up to #803 (requested by Nikola 2026-09-28). Space quotas apply to directory spaces too, so batch "Edit quota" should cover them.

Instructions

  1. Checkboxes on directory rows and tiles, for administrators only: they are the only ones with an action that applies (Edit quota). Non-admins keep today's behaviour (no checkbox on directory rows, #783).
  2. Selection bar with a mixed selection:
    • Edit quota: enabled whenever the selection is non-empty (admin).
    • Deactivate / Reactivate / Delete: when one or more picked spaces are directory-managed, show the button disabled, not hidden, so the reason is discoverable.
  3. Disabled button explanation: a hover and focus tooltip in the app's existing tooltip style (reuse the component the app already uses for explanatory hovers; do not add a new one). Copy: "One or more of the selected spaces are managed by the directory and can't be deactivated here." Make the button focusable while disabled (aria-disabled="true" instead of disabled) so keyboard users get the tooltip. Equivalent copy for Reactivate/Delete.
  4. Selection rules otherwise unchanged (#787: actions follow the selection; leaving the overview drops it).

Tests

Node pins:

  • admin-only directory checkboxes;
  • the aria-disabled state with the tooltip text when a directory space is in the selection;
  • Edit quota enabled for a mixed selection;
  • non-admin selection unchanged.

Mockup first (in-app, like #803) before code.

Follow-up to #803 (requested by Nikola 2026-09-28). Space quotas apply to directory spaces too, so batch "Edit quota" should cover them. ## Instructions 1. **Checkboxes on directory rows and tiles**, for administrators only: they are the only ones with an action that applies (Edit quota). Non-admins keep today's behaviour (no checkbox on directory rows, #783). 2. **Selection bar** with a mixed selection: - **Edit quota:** enabled whenever the selection is non-empty (admin). - **Deactivate / Reactivate / Delete:** when one or more picked spaces are directory-managed, show the button **disabled**, not hidden, so the reason is discoverable. 3. **Disabled button explanation:** a hover and focus tooltip in the app's existing tooltip style (reuse the component the app already uses for explanatory hovers; do not add a new one). Copy: *"One or more of the selected spaces are managed by the directory and can't be deactivated here."* Make the button focusable while disabled (`aria-disabled="true"` instead of `disabled`) so keyboard users get the tooltip. Equivalent copy for Reactivate/Delete. 4. Selection rules otherwise unchanged (#787: actions follow the selection; leaving the overview drops it). ## Tests Node pins: - admin-only directory checkboxes; - the `aria-disabled` state with the tooltip text when a directory space is in the selection; - Edit quota enabled for a mixed selection; - non-admin selection unchanged. Mockup first (in-app, like #803) before code.
Author
Owner

Mockup greenlit (2026-09-28): mockup-808-directory-selection.html, rendered in-app on Bao.

  • Admins get checkboxes on directory rows; Edit quota applies to the whole selection.
  • With any directory space selected (including when only directory spaces are picked), Deactivate / Reactivate / Delete stay visible but disabled (aria-disabled, faded, no hover), with the #747 app tooltip explaining why. Nikola: "shown, as it communicates with the user; a missing button might just be confusing with no answer."
  • The app tooltip also shows on keyboard focus (app-wide).
  • Tiles unchanged (no selection there).
**Mockup greenlit (2026-09-28):** `mockup-808-directory-selection.html`, rendered in-app on Bao. - Admins get checkboxes on directory rows; Edit quota applies to the whole selection. - With any directory space selected (including when only directory spaces are picked), Deactivate / Reactivate / Delete stay **visible but disabled** (`aria-disabled`, faded, no hover), with the #747 app tooltip explaining why. Nikola: "shown, as it communicates with the user; a missing button might just be confusing with no answer." - The app tooltip also shows on keyboard focus (app-wide). - Tiles unchanged (no selection there).
Cordy closed this issue 2026-09-28 16:37:00 +00:00
Author
Owner

Shipped in v0.6.305 (PR #813, CI green, web 300/300). Verified live on Bao as admin, selection and hover only (no space changed):

  • Checkboxes on all 6 rows, including the 4 directory spaces.
  • app-owned-space + Fall 3: Edit quota enabled; Deactivate visible but aria-disabled (faded); Reactivate/Delete hidden (no deactivated app-owned pick).
    • A real mouse hover shows "One or more of the selected spaces are managed by the directory and can't be deactivated here."
    • A real click is inert: no confirmation dialog, selection kept.
  • Keyboard: mouse moved away, focus on Edit quota, then a real Tab → focus ring on Deactivate and the same tooltip.
  • Directories only (Fall 3 + cairn-admins): Edit quota enabled, Deactivate disabled.
  • App-owned only (test): Deactivate enabled, no tooltip attribute.
  • Clearing and reloading: no space deactivated, the two 3 GB limits untouched, view prefs unchanged.

(Testing note: a first programmatic .focus() read as a failure only because an earlier click had already focused the button, so no focus event fired. The fresh-focus and real-Tab checks both pass.)

Shipped in **v0.6.305** (PR #813, CI green, web 300/300). Verified live on Bao as admin, selection and hover only (no space changed): - Checkboxes on all 6 rows, including the 4 directory spaces. - **app-owned-space + Fall 3:** Edit quota enabled; Deactivate visible but `aria-disabled` (faded); Reactivate/Delete hidden (no deactivated app-owned pick). - A real mouse hover shows "One or more of the selected spaces are managed by the directory and can't be deactivated here." - A real click is inert: no confirmation dialog, selection kept. - **Keyboard:** mouse moved away, focus on Edit quota, then a real **Tab** → focus ring on Deactivate and the same tooltip. - **Directories only** (Fall 3 + cairn-admins): Edit quota enabled, Deactivate disabled. - **App-owned only** (test): Deactivate enabled, no tooltip attribute. - Clearing and reloading: no space deactivated, the two 3 GB limits untouched, view prefs unchanged. (Testing note: a first programmatic `.focus()` read as a failure only because an earlier click had already focused the button, so no focus event fired. The fresh-focus and real-Tab checks both pass.)
Sign in to join this conversation.
No labels
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#808
No description provided.