Skip to content

Feat/phase 5 frontend improvements#6

Merged
DanielDeshmukh merged 5 commits into
mainfrom
feat/phase-5-frontend-improvements
Jun 27, 2026
Merged

Feat/phase 5 frontend improvements#6
DanielDeshmukh merged 5 commits into
mainfrom
feat/phase-5-frontend-improvements

Conversation

@DanielDeshmukh

Copy link
Copy Markdown
Owner

No description provided.

Replaced generic ResponseSkeleton with purpose-built skeletons:
- SearchSkeleton: pipeline status, badges, response text, source cards
- CompareSkeleton: side-by-side comparison layout

SearchSkeleton is now used during query processing instead of
ResponseSkeleton, providing a more accurate preview of what the
response will look like. This reduces perceived loading time and
gives users a visual structure to anticipate.

Updated App.jsx to import and use SearchSkeleton in processing state.
Improved error display in App.jsx:
- Added AlertTriangle icon for visual error identification
- Added 'Retry query' button that re-submits the last failed query
- Uses the same submittedQuery to retry without re-typing
- Animated fade-in for smooth error appearance

This gives users a clear path to recover from API failures instead
of just showing a static error message.
Added accessibility attributes to improve screen reader support:

CitationGrounding section:
- aria-label on section and list containers
- aria-label on each source button with full context
- aria-current for active source state
- role='list' and role='listitem' for proper semantics

Source Documents section:
- aria-label on list container
- aria-label on each source card with index, title, section, match %
- aria-current for active source state
- role='list' and role='listitem' for proper semantics

These changes make the response display navigable via keyboard
and readable by assistive technologies.
Lazy-loaded the ComparisonView component which is only needed when
compare mode is active. This reduces the initial bundle size by
deferring the comparison UI code until the user activates compare mode.

Changes:
- Import ComparisonView with React.lazy()
- Wrapped in Suspense with CompareSkeleton fallback
- CompareSkeleton shown while ComparisonView loads

This is a first step toward full route-based code splitting.
User preferences now persist across page reloads:
- Sidebar collapsed/expanded state (hector.sidebarCollapsed)
- Compare mode toggle (hector.compareMode)

Both use the same localStorage pattern as bookmarks and history.
Initial state is loaded from localStorage on mount, and changes
are persisted via useEffect hooks.

This improves UX by remembering the user's layout preferences.
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@DanielDeshmukh, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 50 minutes and 57 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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 review availability.

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, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 122ca89e-8b50-434e-8825-be3d1ebb524f

📥 Commits

Reviewing files that changed from the base of the PR and between 62a662e and 2268af9.

📒 Files selected for processing (3)
  • frontend/src/App.jsx
  • frontend/src/components/ResponseDisplay.jsx
  • frontend/src/components/Skeleton.jsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/phase-5-frontend-improvements

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.

@DanielDeshmukh DanielDeshmukh merged commit e9555f2 into main Jun 27, 2026
6 of 7 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.

1 participant