Add MessageRow component, debounced search, UI theming, and fetch aborts#14
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 49 minutes and 2 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e63ded5d4d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| background: rgba(255, 255, 255, 0.9); | ||
| box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08); | ||
| overflow: hidden; | ||
| } |
There was a problem hiding this comment.
Preserve reader vertical scrolling
When a conversation is open, this rule also applies to .reader and the overflow shorthand overrides the earlier overflow-y: auto with overflow-y: hidden. Because .readerThread has no constrained height of its own, long conversations or message bodies are clipped instead of scrollable. Keep vertical overflow enabled for the reader while applying the new card styling.
Useful? React with 👍 / 👎.
| <div className={styles.insightBar} aria-label="Mailbox insights"> | ||
| <span><strong>{unreadCount}</strong> unread</span> | ||
| <span><strong>{starredCount}</strong> starred</span> | ||
| <span><strong>{visibleThreads.length}</strong> conversations</span> | ||
| {query !== debouncedQuery ? <span>Refining search...</span> : null} | ||
| </div> |
There was a problem hiding this comment.
Keep the message list in the scroll row when status is shown
Adding this unconditional insight bar means the list pane has four children whenever status is non-null (toolbar, insight bar, status, message list), but .listPane still defines only three grid rows. In those status scenarios, the message list is auto-placed into an implicit row after the flexible track and gets clipped by the pane's overflow: hidden instead of remaining the scrollable area. Add a fourth row or explicitly place the status/list rows.
Useful? React with 👍 / 👎.
Motivation
MessageRowcomponent and debouncing search input.Description
MessageRowcomponent insrc/components/MessageRow.tsxand replace the inlined row rendering inFlowConsolewith<MessageRow />usage and prop callbacks.useDebounceand updatevisibleThreadsto filter ondebouncedQuery, plus show a smallinsightBarwith unread/starred/conversation counts inFlowConsole.tsx.src/components/FlowConsole.module.cssincluding transitions,insightBar, updated backgrounds, and visual treatments for buttons, lists, and dialogs.FlowConsole.tsxby attachingAbortControllersignals tofetchcalls and aborting them on cleanup, and addselectedIdSet,unreadCount, andstarredCountmemos.useAsyncinsrc/hooks/useAsync.tsto avoid executing when unmounted and to schedule the initialexecutesafely with a cancellation guard.Testing
npm run build) and type-check (npm run typecheck) and both completed successfully.npm run lint) and fixed import/type issues introduced by the refactor, and lint passed.npm test) and all tests related to the flow console passed.Codex Task