Skip to content

Drop idle time badge in compact view#33

Merged
Junyi-99 merged 1 commit into
mainfrom
fix/compact-hide-idle-time
May 18, 2026
Merged

Drop idle time badge in compact view#33
Junyi-99 merged 1 commit into
mainfrom
fix/compact-hide-idle-time

Conversation

@Junyi-99
Copy link
Copy Markdown
Member

Summary

In ViewMode::Compact, Idle sessions used to show a 2m / 1h / 3d badge next to the row. That extra number didn't help the at-a-glance scan compact mode is for. Now Idle just shows the moon glyph, matching the shape of Working (spinner) and Waiting (bell).

The first 3 seconds after a transition still render the spinner, so the glyph doesn't snap during a quick Working → Idle flip.

Tabs detail line (format_activity_compact at sidebar.rs:804) is unchanged — it still shows the time, because that bar exists specifically to give a focused-session readout.

Test plan

  • cargo test — 177 passed
  • Manual: switch to compact view, let a session sit Idle for a few minutes, confirm only the moon glyph shows (no Xm)
  • Manual: trigger a Working → Idle transition, confirm spinner briefly shows then collapses to the moon glyph

🤖 Generated with Claude Code

The compact layout already trades richness for density; surfacing
"2m" / "1h" / "3d" next to a session row added noise that didn't help
the at-a-glance scan. Working sessions get the spinner, Waiting sessions
get the bell, and Idle sessions now get just the moon glyph — three
distinct shapes, no number to read.

The first 3 seconds after a transition still show the spinner so the
glyph doesn't snap during a quick Working → Idle flip.
Copilot AI review requested due to automatic review settings May 16, 2026 09:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Simplifies the compact sidebar view by removing the idle time badge (e.g. 2m, 1h) next to Idle sessions, replacing it with just the moon glyph for at-a-glance consistency with Working (spinner) and Waiting (bell) statuses. A short 3-second spinner is still shown immediately after entering Idle to avoid abrupt glyph changes during Working → Idle transitions. The tabs detail line is intentionally unchanged.

Changes:

  • Replace format_activity_compact call with inline moon glyph (or spinner during the first 3 seconds of idle) in compact session rendering.
  • Update surrounding comment to document the new glyph-only behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Junyi-99 Junyi-99 merged commit fe86e42 into main May 18, 2026
4 checks passed
@Junyi-99 Junyi-99 deleted the fix/compact-hide-idle-time branch May 18, 2026 06:15
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