Skip to content

fix(tech-radar): render fewer than four quadrants - #10892

Open
caddydove wants to merge 3 commits into
backstage:mainfrom
caddydove:codex/fix-tech-radar-missing-quadrant
Open

caddydove wants to merge 3 commits into
backstage:mainfrom
caddydove:codex/fix-tech-radar-missing-quadrant

Conversation

@caddydove

@caddydove caddydove commented Sep 4, 2026 •

Copy link
Copy Markdown

Hey, I just made a Pull Request!

Fixes #10802.

A tech radar with fewer than four configured quadrants crashed before rendering because its layout calculation depended on fixed quadrant entries. This keeps the layout boundaries independent of the configured quadrant count, so the available quadrants render and omitted quadrants have no legend.

This PR was largely generated with OpenAI Codex and verified with a regression test, the full plugin test suite, type checking, linting, and formatting checks.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-goalie

backstage-goalie Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-tech-radar-common workspaces/tech-radar/plugins/tech-radar-common patch v1.22.0
@backstage-community/plugin-tech-radar workspaces/tech-radar/plugins/tech-radar patch v1.23.0

@hopehadfield hopehadfield 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.

Thanks for the PR @caddydove! This looks good to me, but before this gets merged, would you mind updating the README and the model comment to reflect this behaviour?

@hopehadfield hopehadfield 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.

One more note, it looks like the tech-radar-common package is missing a Changeset according to the above comment. Please add that package to the current Changeset and we can go ahead and merge!

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution!

@github-actions github-actions Bot added the stale label Nov 1, 2026
@caddydove

Copy link
Copy Markdown
Author

Thanks @hopehadfield. The existing changeset includes @backstage-community/plugin-tech-radar-common in d7b860a, so both affected packages receive a patch release. The README and model comment updates are also in place. I rechecked the Radar-related test suites: all 20 tests pass.

@hopehadfield

Copy link
Copy Markdown
Contributor

So sorry @caddydove, this PR totally fell off my radar. I'm just looping back now and seeing the merge conflicts, which are related to a big redesign of Tech Radar recently. I'm not sure if this specific bug is still present now, so it might be worth verifying again post-redesign.

My apologies again for losing track of your PR.

@caddydove

Copy link
Copy Markdown
Author

Thanks for checking, @hopehadfield! I tested the new Tech Radar in Chromium on main and on the 2.0.0 tag. I loaded three quadrants and one TypeScript entry. The chart and entry showed up, and the filter listed all three quadrants. The original crash did not happen on either version.

I think we can close this PR without merging it. I did notice some empty SVG labels after loading, but that looks like a separate issue.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 tech-radar: Error if not all quadrants are set

3 participants