Repository navigation
feat(portal): deactivate and reactivate users with their patches - #270
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The change uses the shared HTML components and existing patch lifecycle operations. The optional outer transaction is explicitly required by #257, not speculative infrastructure. SpecNo merge-blocking intent findings. The pick and confirmation flows, dependency-chain handling, reactivation warnings, atomic user/patch changes, last-active-admin checks, route move, and named documentation updates match #257. Verification: all 70 tests passed across the three affected suites: pnpm test packages/portal/src/PortalPages.test.ts packages/companies/src/Users.test.ts packages/auth/src/CompanyPage.test.ts --maxWorkers=2Standards: 0 blocking findings, none to rank. Spec: 0 blocking findings, none to rank. |
Opus reviewThree-dot diff against This is good work. The flow is correct, the tests are the ones the ticket named, and the docs surfaces all moved. Almost everything below is about one piece of machinery that shouldn't exist. StandardsHard —
|
|
Reviewed both conversation reviews, the Reviews tab, and inline review comments. The latter two contained no reviews or inline findings. Astra reported no blockers; the dispositions below address Opus's findings. Fixed
Kept, with reasons
Product behavior and terminology are unchanged. No wire-contract, CLI, migration, dev-loop, company-resource provisioning or repository-layout changes apply. VerificationCurrent head:
Rechecked conversation comments, review bodies and inline comments after the push; no new findings arrived. GitHub reports |
9438a39 to
0947073
Compare
5967258 to
fdc8c65
Compare
0947073 to
30898ba
Compare
Implement #257 with selection-aware confirmations and atomic user and patch changes.
fdc8c65 to
06ba077
Compare
Deactivating a user left admins to retire their patches separately, without seeing which tools would break. Reactivation had the same gap for restoring patches.
Company now links to pick pages where admins can keep the patches as they are, select some, or act on all. Confirmations recompute breakage for the exact selection, including off-source warnings on restore. User access changes and selected patch changes commit together or all roll back. Last-active-admin, company-scoping and same-origin checks remain in place.
Stacked on #269 (
portal/256-confirmation-pages). This PR targets that branch, notmain.Closes #257.
Verification
pnpm test --maxWorkers=2: 925 tests passed across 80 files.pnpm typecheckandpnpm lintpassed.Implemented with GPT-6 Astra in Oh My Pi.