Skip to content

issue-1384: Added sortAreas and removeDuplicateAreas CAP settings#1385

Merged
geosaaga merged 2 commits into
mainfrom
feature/1384-cap-area-sorting-and-filtering
Jun 24, 2026
Merged

issue-1384: Added sortAreas and removeDuplicateAreas CAP settings#1385
geosaaga merged 2 commits into
mainfrom
feature/1384-cap-area-sorting-and-filtering

Conversation

@geosaaga

Copy link
Copy Markdown
Collaborator

Allows to sort area names and remove duplicate area names from warning headers.

Closes #1384

@geosaaga geosaaga requested a review from AnttiRumpunen June 24, 2026 09:21
@geosaaga geosaaga changed the title issue-1384: Added sortAreas and removeDuplicateAreas settings for CA warnings issue-1384: Added sortAreas and removeDuplicateAreas CAP settings Jun 24, 2026
@geosaaga geosaaga requested a review from Copilot June 24, 2026 10:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 introduces two new CAP warning presentation settings intended to improve warning header readability by optionally sorting area names and filtering duplicates (issue #1384).

Changes:

  • Extended CapViewSettings with sortAreas and removeDuplicateAreas flags.
  • Added area-list formatting in WarningItem to optionally sort and/or deduplicate areasDescription.
  • Added unit tests covering both sorting and duplicate removal behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/config/types.ts Adds new optional CAP view settings flags for area sorting/deduplication.
src/components/warnings/cap/WarningItem.tsx Implements optional formatting logic for CAP header area lists based on config.
tests/components/WarningItemCap.test.tsx Adds tests validating the new sorting and deduplication behaviors.

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

Comment thread src/components/warnings/cap/WarningItem.tsx
@geosaaga geosaaga merged commit c71d63a into main Jun 24, 2026
2 checks passed
@geosaaga geosaaga deleted the feature/1384-cap-area-sorting-and-filtering branch June 24, 2026 11:02
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.

Add settings to sort CAP warning areas and filter duplicate areas

2 participants