Lock and unlock people from Directory › Accounts #28

Merged
jcoffey-dev merged 1 commits from feature/directory-lock into main 2026-09-28 00:26:10 +00:00
Owner

Admins look for locking in the Directory first, so it's there too, as well as on Compliance › Locked accounts and the account page's banner:

  • Each person's row menu in Directory › Accounts ends with Lock this account…, or Unlock… when the account is locked. They use the same dialogs, with the reason required. Groups get neither.
  • A locked account shows a Locked badge beside its address in the list.
  • Both depend on the same permissions as the Compliance page (sysAccountLockGet, and …Create/…Destroy for the actions).

The list code in DynamicList changed only in three small places. Everything else is in features/lock/useDirectoryLocks.tsx.

Checked in Chrome against a local server: lock from the menu, badge appears, unlock from the menu, badge goes. Typecheck, lint and 408 tests pass.

Admins look for locking in the Directory first, so it's there too, as well as on Compliance › Locked accounts and the account page's banner: - Each person's row menu in Directory › Accounts ends with **Lock this account…**, or **Unlock…** when the account is locked. They use the same dialogs, with the reason required. Groups get neither. - A locked account shows a **Locked** badge beside its address in the list. - Both depend on the same permissions as the Compliance page (`sysAccountLockGet`, and `…Create`/`…Destroy` for the actions). The list code in `DynamicList` changed only in three small places. Everything else is in `features/lock/useDirectoryLocks.tsx`. Checked in Chrome against a local server: lock from the menu, badge appears, unlock from the menu, badge goes. Typecheck, lint and 408 tests pass.
jcoffey-dev added 1 commit 2026-09-28 00:24:33 +00:00
Lock and unlock people from Directory › Accounts
ci / build (pull_request) Successful in 1m17s
ci / publish (pull_request) Skipped
e445734455
Each person's row menu offers Lock this account… or Unlock…, with the
same dialogs as Compliance › Locked accounts, and a locked account shows
a Locked badge beside its address. The account page's banner stays, so
locking is in all three places admins look (audit-hold-lock spec, AL-1).
jcoffey-dev merged commit 34c654209d into main 2026-09-28 00:26:10 +00:00
jcoffey-dev deleted branch feature/directory-lock 2026-09-28 00:26:10 +00:00
Sign in to join this conversation.