Skip to content

feat(#268): display enrichment progress in full_techniques mode#271

Merged
ComBba merged 1 commit intomainfrom
feat/268-enrichment-progress-ui
Feb 10, 2026
Merged

feat(#268): display enrichment progress in full_techniques mode#271
ComBba merged 1 commit intomainfrom
feat/268-enrichment-progress-ui

Conversation

@ComBba
Copy link
Contributor

@ComBba ComBba commented Feb 10, 2026

Summary

Resolves #268

Problem

In full_techniques mode, the backend emits enrichment events (enrichment_start, enrichment_complete, enrichment_error) for three phases: code_analysis, rag, and web_search. However, the frontend completely ignored these events, leaving users with no visibility into this critical pre-evaluation phase.

Changes

Types (types/index.ts)

  • Add enrichment_start, enrichment_complete, enrichment_error to SSEEventType

State Management (useFullTechniquesStream.ts)

  • Add EnrichmentPhase and EnrichmentStepStatus types
  • Add enrichmentPhase, enrichmentMessage, enrichmentStatus to state
  • Add 'enrichment' to currentStage union type
  • Handle enrichment_start/complete/error events in reducer
  • Auto-transition from enrichment to categories when first technique starts

UI (ProgressTopBar.tsx, FullTechniquesProgress.tsx)

  • Add spinner + status message indicator to ProgressTopBar during enrichment
  • Add "Preparing Analysis..." stage messaging to FullTechniquesProgress

Visual Design

During enrichment phase, the ProgressTopBar shows:

[⏳ Code analysis starting...] [0/75 techniques] [0:00] [● Live]

Status transitions:

  • ⏳ Analyzing code... (code_analysis running)
  • ⏳ Building context... (rag running)
  • ⏳ Searching web... (web_search running)
  • (hidden when all enrichment complete)

Testing

  • ESLint passes
  • TypeScript compilation succeeds
  • Next.js build succeeds

Checklist

  • Code follows project conventions
  • SSEEventType includes enrichment events
  • Reducer handles all enrichment event types
  • UI indicator shows during enrichment phase
  • Indicator hides after enrichment complete

- Add enrichment SSE event types to SSEEventType union
- Add enrichment state tracking (phase, message, status per step)
- Handle enrichment_start/complete/error events in reducer
- Add 'enrichment' stage to currentStage
- Add enrichment status indicator to ProgressTopBar
- Update FullTechniquesProgress to show enrichment stage messaging

Closes #268
@ComBba ComBba self-assigned this Feb 10, 2026
@vercel
Copy link

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
somm-dev Ready Ready Preview, Comment Feb 10, 2026 0:04am

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

Warning

Rate limit exceeded

@ComBba has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 35 seconds before requesting another review.

⌛ 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.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/268-enrichment-progress-ui

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.

@gemini-code-assist
Copy link

Summary of Changes

Hello @ComBba, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the user experience in full_techniques mode by integrating and displaying previously ignored backend enrichment events. Users will now see a clear indication of progress during critical pre-evaluation phases like code analysis, RAG, and web search, improving transparency and reducing perceived latency by showing what the system is doing.

Highlights

  • Enrichment Progress Visibility: Implemented frontend visibility for backend enrichment events (enrichment_start, enrichment_complete, enrichment_error) in full_techniques mode, providing users with real-time feedback during pre-evaluation phases.
  • State Management Update: Introduced new state management (enrichmentPhase, enrichmentMessage, enrichmentStatus) within useFullTechniquesStream.ts to track and manage the different stages of the enrichment process.
  • User Interface Enhancements: Updated ProgressTopBar.tsx and FullTechniquesProgress.tsx to display a dynamic enrichment status message and spinner, along with appropriate stage titles and descriptions.
Changelog
  • frontend/src/components/evaluation/FullTechniquesProgress.tsx
    • Updated the main title and descriptive text to reflect the 'enrichment' stage.
    • Passed the new enrichmentMessage prop to the ProgressTopBar component.
  • frontend/src/components/evaluation/ProgressTopBar.tsx
    • Imported the Loader2 icon for visual feedback during enrichment.
    • Added enrichmentMessage to the component's props interface.
    • Rendered an amber-colored progress indicator with a spinner and the enrichment message when available.
  • frontend/src/hooks/useFullTechniquesStream.ts
    • Defined new types EnrichmentPhase, EnrichmentStepStatus, and EnrichmentStatus to manage the state of enrichment processes.
    • Added enrichmentPhase, enrichmentMessage, and enrichmentStatus properties to the FullTechniquesStreamState interface and its initialState.
    • Included 'enrichment' in the currentStage union type to represent the new phase.
    • Modified the reducer to handle enrichment_start, enrichment_complete, and enrichment_error events, updating the enrichment state and message accordingly.
    • Implemented logic to automatically transition the currentStage from 'enrichment' to 'categories' upon receiving the first technique_start event or when all enrichment phases are marked as complete.
  • frontend/src/types/index.ts
    • Extended the SSEEventType union type to include enrichment_start, enrichment_complete, and enrichment_error event types.
Activity
  • The author resolved issue [Feature] Display enrichment progress with one-line status indicator in full_techniques mode #268, which aimed to display enrichment progress.
  • The author confirmed that ESLint passes, TypeScript compilation succeeds, and the Next.js build succeeds.
  • The author verified that the code adheres to project conventions, SSEEventType includes the new enrichment events, the reducer correctly handles all enrichment event types, the UI indicator displays during the enrichment phase, and the indicator hides once enrichment is complete.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully implements the display of enrichment progress in the full_techniques mode. The changes introduce new types for enrichment phases and statuses, integrate these into the state management, and update the UI components (ProgressTopBar.tsx and FullTechniquesProgress.tsx) to reflect the current enrichment status. The logic for transitioning between enrichment and technique evaluation stages is well-handled, ensuring a smoother user experience by providing visibility into the pre-evaluation phase. The code is clean and adheres to the project's structure.

@ComBba ComBba merged commit c7c7782 into main Feb 10, 2026
5 checks passed
@ComBba ComBba deleted the feat/268-enrichment-progress-ui branch February 10, 2026 00:14
ComBba added a commit that referenced this pull request Feb 10, 2026
…ess-ui

feat(#268): display enrichment progress in full_techniques mode
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.

[Feature] Display enrichment progress with one-line status indicator in full_techniques mode

1 participant