Skip to content

Add bulk archive feature for old applications#88

Merged
5queezer merged 2 commits intomainfrom
claude/archive-apps-ux-Bfii7
Mar 20, 2026
Merged

Add bulk archive feature for old applications#88
5queezer merged 2 commits intomainfrom
claude/archive-apps-ux-Bfii7

Conversation

@5queezer
Copy link
Copy Markdown
Owner

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

  • New ArchiveOldDropdown component: A dropdown menu that displays archive thresholds with counts of applications that would be archived for each option
  • Bulk archive mutation: Added bulkArchiveMutation to handle archiving multiple applications in parallel
  • handleBulkArchive function: Filters applications by age, shows a confirmation dialog, and triggers the bulk archive operation
  • UI integration: The dropdown is displayed in the dashboard toolbar when viewing active applications (not archived view)
  • Localization: Added translation keys for English and German:
    • archive_old: Button label
    • archive_old_option: Dropdown menu item text with days parameter
    • archive_old_confirm: Confirmation dialog with count and days parameters
    • archive_old_archiving: Loading state text

Implementation Details

  • The dropdown uses useRef and useEffect to handle click-outside behavior for closing the menu
  • Application age is determined by appliedAt date if available, otherwise falls back to createdAt
  • The count for each threshold is calculated dynamically using useCallback to avoid unnecessary recalculations
  • Disabled state is applied to threshold options with zero matching applications
  • Loading state is managed through the isPending prop from the mutation
  • Styling includes responsive design (full width on mobile, auto width on desktop) and dark mode support

https://claude.ai/code/session_01XjeBMDALg8J9i3DxWzxrkv

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

claude and others added 2 commits March 20, 2026 06:54
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>
@5queezer 5queezer force-pushed the claude/archive-apps-ux-Bfii7 branch from 0923902 to f514a59 Compare March 20, 2026 05:54
@5queezer 5queezer merged commit ddcea40 into main Mar 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants