feat: surface inactive band profiles in the admin roster#621
Merged
Conversation
Deactivated profiles (e.g. a band retired after a farewell show) were invisible in the very tool that manages them — the admin all-bands query filtered is_active = 1 while the public archive kept showing them. The roster now returns all profiles; RosterTab renders an Inactive badge and gains an All/Active/Inactive filter (default All). The lineup builder's artist picker filters retired bands back out client-side so they never become schedulable options. Closes #619 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
BreakableHoodie
enabled auto-merge (squash)
July 17, 2026 14:24
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.
Summary
Deactivated band profiles (The Essential Letdowns, retired after their Jan 30 farewell show) were completely invisible in the admin roster — the all-bands query filtered
is_active = 1, so the tool that manages profiles couldn't see or edit retired ones, while the public archive correctly kept them. The roster now returns all profiles: inactive bands render with an "Inactive" badge and an All/Active/Inactive filter (defaulting to All) sits next to the search box. Last member of the #618 visibility-drift bug class.Closes #619
What changed
functions/api/admin/bands.jsevent_idbranch:is_active = 1filter dropped (rows already carrybp.is_active); #618 comment updated.event_idbranch untouchedfrontend/src/admin/RosterTab.jsxInactivebadge (reuses the Status column's existing pill styling) on desktop rows + mobile cards; status filter select (All/Active/Inactive, default All); filter applies before search/sortfrontend/src/admin/LineupTab.jsxactiveBandsmemo filters them out of the picker; origin/genre autocomplete suggestions intentionally keep the full set (reusing a retired band's origin string is harmless)functions/api/admin/bands/__tests__/bands.test.jsis_activeflags; the #395 test documents that the picker guarantee moved client-sidefrontend/src/admin/__tests__/RosterTab.test.jsxEdit-modal round-trip for
is_activeverified pre-existing and correct (BandForm's Active/Inactive select + the archived-event PUT test).Security / correctness notes
Admin-only endpoint behind
checkPermission("viewer"), unchanged. The one correctness risk (retired bands becoming schedulable) is handled and called out above — reviewers, that LineupTab memo is the line to scrutinize.Verification
validate:openapi: n/a — admin endpoint, response field-compatibleBuilt by Sonny · Reviewed by Theo · 🤖 Claude Code