Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Extends the sidebar old workspace filter to show progressive tiers:

  • Older than 1 day β†’ reveals 7-day button when expanded
  • Older than 7 days β†’ reveals 30-day button when expanded
  • Older than 30 days β†’ final tier

Each tier shows the count of all remaining workspaces from that tier onward.

Implementation

  • partitionWorkspacesByAge() now returns { recent, buckets } where buckets is an array per threshold
  • Recursive renderTier() function maximizes code reuse
  • Per-tier expansion state stored as ${projectPath}:${tierIndex}

Generated with mux

- Add progressive expansion: 7-day and 30-day buttons only appear after
  previous tier is expanded
- Change partitionWorkspacesByAge to return buckets array instead of flat old
- Use recursive renderTier() for maximum code reuse
- State key format: ${projectPath}:${tierIndex} for per-tier tracking

_Generated with mux_
If all workspaces are older than 30 days, show 'Older than 30 days' directly
instead of requiring clicks through empty 1-day and 7-day tiers.
@ammar-agent ammar-agent force-pushed the sidebar-timeframe-filter-expansion branch from 72c8600 to 0ade411 Compare December 1, 2025 16:58
@ammario ammario merged commit 45812f7 into main Dec 1, 2025
13 checks passed
@ammario ammario deleted the sidebar-timeframe-filter-expansion branch December 1, 2025 17:06
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