Skip to content

feat: alphabetically order blips#330

Open
setchy wants to merge 3 commits intothoughtworks:masterfrom
setchy:feature/alpha-sort-blips
Open

feat: alphabetically order blips#330
setchy wants to merge 3 commits intothoughtworks:masterfrom
setchy:feature/alpha-sort-blips

Conversation

@setchy
Copy link
Copy Markdown
Contributor

@setchy setchy commented Jul 8, 2023

Case-insensitive ordering of blips by name within their quadrant and ring

@setchy
Copy link
Copy Markdown
Contributor Author

setchy commented Sep 7, 2023

@marisahoenig @devansh-sharma-tw - any feedback re: this PR?

@marisahoenig
Copy link
Copy Markdown
Contributor

Hey @setchy — from what I've seen, the blips are already numbered alphabetically. Can you confirm if this is still needed?

@setchy
Copy link
Copy Markdown
Contributor Author

setchy commented Apr 10, 2024

Hey @setchy — from what I've seen, the blips are already numbered alphabetically. Can you confirm if this is still needed?

Hi @marisahoenig - you are correct, it does order alphabetically, however, it isn't case-insensitive, unlike that of thoughtworks.com/radar based on side-by-side comparisons.

The key change in this PR is converting the blip name to lowercase during the ordering process

@setchy setchy requested review from a team and will-amaral as code owners April 11, 2024 18:46
@setchy
Copy link
Copy Markdown
Contributor Author

setchy commented May 9, 2024

@will-amaral - appreciate your thoughts on this PR

@setchy
Copy link
Copy Markdown
Contributor Author

setchy commented Apr 15, 2026

@yashanandan - great to see this repo releasing again. I'd be happy to help refresh my open PRs if you had the time to review them 🙏

Copilot AI review requested due to automatic review settings April 21, 2026 17:36
Copy link
Copy Markdown

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

Adds deterministic, case-insensitive alphabetical ordering for blips (by name) when building the radar graph so that blips appear consistently ordered within their quadrant/ring groupings.

Changes:

  • Import lodash/orderBy and introduce a sortBlipsAlphabetically helper.
  • Sort blips in plotRadarGraph prior to adding them to quadrants/rings.

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

Comment thread src/util/factory.js
Comment on lines +119 to 123
// Sort blips by quadrant, ring, and name
blips = sortBlipsAlphabetically(blips)

blips.forEach((blip) => {
blip.ring = featureToggles.normalizeRingNameHoldToCaution ? normalizeRingNameHoldToCaution(blip.ring) : blip.ring
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.

3 participants