Skip to content

Add collapsible group headers for risk feed items #715

Merged
seb-kw merged 4 commits into
mainfrom
grouped-events-in-risk-assessment-feed
May 11, 2026
Merged

Add collapsible group headers for risk feed items #715
seb-kw merged 4 commits into
mainfrom
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>
@seb-kw seb-kw self-requested a review May 11, 2026 08:08
Signed-off-by: Sebastian Kawelke <sebastian.kawelke@l3montree.com>
@seb-kw seb-kw merged commit 933a2a8 into main May 11, 2026
33 of 34 checks passed
@timbastin timbastin deleted the grouped-events-in-risk-assessment-feed branch May 11, 2026 13:52
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.

4 participants