Add bulk archive feature for old applications#88
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Adds an "Archive old" dropdown button to the dashboard toolbar that lets users archive all applications older than a selectable threshold (30, 60, 90, or 180 days). Each option shows a live count badge of matching apps. Includes confirmation dialog before archiving and i18n support (EN/DE). https://claude.ai/code/session_01XjeBMDALg8J9i3DxWzxrkv
Move handleBulkArchive below activeApplications declaration to fix reference-before-definition. Use onSettled instead of onSuccess so query invalidation runs even if some archive requests fail. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0923902 to
f514a59
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.
Summary
This PR adds a new "Archive Old" dropdown feature that allows users to bulk archive applications older than a specified number of days (30, 60, 90, or 180 days).
Key Changes
ArchiveOldDropdowncomponent: A dropdown menu that displays archive thresholds with counts of applications that would be archived for each optionbulkArchiveMutationto handle archiving multiple applications in parallelhandleBulkArchivefunction: Filters applications by age, shows a confirmation dialog, and triggers the bulk archive operationarchive_old: Button labelarchive_old_option: Dropdown menu item text with days parameterarchive_old_confirm: Confirmation dialog with count and days parametersarchive_old_archiving: Loading state textImplementation Details
useRefanduseEffectto handle click-outside behavior for closing the menuappliedAtdate if available, otherwise falls back tocreatedAtuseCallbackto avoid unnecessary recalculationsisPendingprop from the mutationhttps://claude.ai/code/session_01XjeBMDALg8J9i3DxWzxrkv