Skip to content

Add collapsible group headers for risk feed items #715

Open
refoo0 wants to merge 2 commits intomainfrom
grouped-events-in-risk-assessment-feed
Open

Add collapsible group headers for risk feed items #715
refoo0 wants to merge 2 commits intomainfrom
grouped-events-in-risk-assessment-feed

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented May 7, 2026

No description provided.

…grouping logic

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copilot AI review requested due to automatic review settings May 7, 2026 17:27
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

This PR adds collapsible “group headers” to the Risk Assessment feed to reduce repetition by grouping contiguous non-comment events (primarily those coming from other branches) into expandable sections.

Changes:

  • Introduces RiskFeedGroupHeader using Radix Collapsible to show a single header row with a count badge and expandable children.
  • Adds groupEventsByDateAndType() to convert the flat event list into a mixed list of single events and grouped event arrays.
  • Updates feed rendering (and the “whole history” collapse) to use the grouped structure; adjusts RiskFeedItem to optionally hide its leading event-type icon when rendered inside a group.

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

Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
Comment thread src/components/risk-assessment/RiskAssessmentFeed.tsx Outdated
…in RiskAssessmentFeed

Signed-off-by: rafi <refaei.shikho@hotmail.com>
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