Skip to content

[codex] fix tui accordion interactions#125

Merged
ya-nsh merged 2 commits into
mainfrom
fix/tui-accordion-refine
Apr 26, 2026
Merged

[codex] fix tui accordion interactions#125
ya-nsh merged 2 commits into
mainfrom
fix/tui-accordion-refine

Conversation

@ya-nsh
Copy link
Copy Markdown
Owner

@ya-nsh ya-nsh commented Apr 26, 2026

Summary

  • Reworks Replay and Receipts accordion state so selection and expansion are explicit instead of tied to scroll offset.
  • Adds keyboard and mouse toggle behavior for expandable rows.
  • Bounds and wraps expanded detail text to avoid terminal overlap.

Why

The previous accordion behavior used scroll offset as the active row, which made opening and closing feel broken. Expanded content also rendered as long fixed strings and could collide with neighboring text in constrained terminal layouts.

Validation

  • bun test packages/tui
  • bun run --filter @tokenleak/tui check
  • bun run check

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 26, 2026

Warning

Rate limit exceeded

@ya-nsh has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 3 minutes and 27 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 3 minutes and 27 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1dbbb8bc-a508-4c57-b158-cb54bfb5905a

📥 Commits

Reviewing files that changed from the base of the PR and between 915ab88 and 7f2340d.

📒 Files selected for processing (8)
  • packages/tui/src/index.ts
  • packages/tui/src/lib/format.ts
  • packages/tui/src/lib/state.ts
  • packages/tui/src/panels/accordion.test.ts
  • packages/tui/src/panels/help.ts
  • packages/tui/src/panels/receipts.ts
  • packages/tui/src/panels/replay.ts
  • packages/tui/src/panels/status-bar.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/tui-accordion-refine

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread packages/tui/src/panels/replay.ts Outdated
@ya-nsh ya-nsh marked this pull request as ready for review April 26, 2026 17:48
@ya-nsh ya-nsh merged commit 9af2562 into main Apr 26, 2026
2 checks passed
@ya-nsh ya-nsh deleted the fix/tui-accordion-refine branch April 26, 2026 17:49
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.

1 participant