Issue 220
tech-debt: Two small leftovers from the #218 and #219 reviews
Back to our planDone
toolingtech-debtpriority: low
Type
tech-debt
Problem
Two small leftovers from the reviews of #218 and #219, both marked non-blocking:
src/components/AdminBar/index.test.tsxreturns its element withas HTMLElement, and thewaitForbefore it can't change anything (#218 re-review).docs/architecture/data-model.mdlistspayload-locked-documentsas "not configured in this repo", which #219 made wrong.
Proposed fix
Use querySelector<HTMLElement> with a throwing null check in the test, and say in the data model that edit locks are staff-only since #147.
Acceptance criteria
- Not done: No
ascast in the AdminBar test; the test still passes. - Not done: The data model line matches the code.
Area
tooling
Priority
priority: low
Generated by Claude Code, opens in a new tab