Repository navigation
refactor(admin): invitations and recoveries each say where they stand in one place - #686
Draft
PiquelChips wants to merge 2 commits into
Draft
PiquelChips wants to merge 2 commits into
PiquelChips wants to merge 2 commits into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
… once `admin::Invitation::state(now)` replaces the dashboard's and the UI's copies of whether an invitation is redeemed, revoked, expired or open, and `admin::Recovery::standing()` replaces the CLI's and the dashboard's split of an ended recovery into undone, cancelled and expired, and the UI's own `RecoveryStanding`.
PiquelChips
force-pushed
the
refactor/544-decision-standings
branch
from
November 22, 2026 14:20
5cb0e22 to
0cca714
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #544 (NEW-1's follow-up). Stacked on #681, since the recovery standing goes on the
admin::Recoverythat #681 adds.Two more states were worked out in several places:
open, plus an expiry check for resending), the UI's badge (redeemed, revoked, expired, open), and the SQL that finds and redeems an invitation.RecoveryState::Endedagainstundone_atandcancelled_atthemselves.Now each has one rule in
sourceorigin_common::admin:Invitation::state(now)returnsInvitationState(Redeemed,Revoked,Expired,Open).Open(and mailed, with email on), and revoking while it isOpenorExpired, exactly as before.Recovery::standing()returnsRecoveryStanding(Unused,Probation,Settled,Undone,Cancelled,Expired). This replacessourceorigin-ui's ownRecoveryStanding. The CLI and the dashboard both match on it.None of the copies disagreed, so there is no behaviour fix here.
Visible changes
sourceorigin-commonpublic API: newadmin::{InvitationState, RecoveryStanding},admin::Invitation::stateandadmin::Recovery::standing.cargo semver-checkspasses.Docs
docs/dev/security/account-recovery.mdsays, under its States table, thatadmin::Recovery::standingis the one place that splits an ended recovery into undone, cancelled and expired, for the CLI and the dashboard.How I checked nothing else changed
sourceorigin-uitest rendered the invitation list (open, expired, expiring this instant, redeemed, revoked, both) and the recovery list (every standing). The HTML is identical on this branch and on refactor(admin)!: client show prints the listed client's shape, and recoveries are admin views #681, once each run's random IDs are masked.Tests
an_invitation_state_takes_the_first_that_appliesandan_ended_recovery_says_why. No test was removed.No files outside this lane were edited.
Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)