Repository navigation
Redesigned Tech Radar - #7939
evanlankveld wants to merge 0 commit into
Conversation
awanlin
left a comment
There was a problem hiding this comment.
Thanks @evanlankveld, I've left a comment about the use of Tailwind, that's a non-starter and needs to be addressed. I really think there must be a way to do this without needing to have/use Tailwind.
I have not reviewed this in detail, wanted to clear this hurdle first.
There was a problem hiding this comment.
Sorry, but this is a non-starter for us. The Design System for Backstage is either Material UI (MUI) for the time being and Backstage UI (BUI) for the long term. The goal of this repo is to reflect plugins that follow the Backstage patterns and conventions. Using Tailwind is not an option here, sorry, I did make an effort to mention this during the SIG where this was presented.
There must be a way to migrate this to work without having Tailwind?
There was a problem hiding this comment.
Hey, that is fair. We thought it could perhaps be fine since the plugin does not rely on Tailwind, it's just a mechanism to generate custom CSS. It currently has properties like the following:
className="[&_.bui-SearchFieldInputWrapper]:h-10 max-w-80"
We use Tailwind to generate vanilla CSS from this, which is included in the plugin. I didn't find clear guidelines in BUI's documentation for how custom CSS should be included, is there a convention defined somewhere?
We are willing to work on adjustments to adhere to Backstage patterns, though to what extent is this needed?
- We can get rid of all Tailwind dependencies / references in the plugin. They only exist now to help future contributors generate the (static) custom CSS, but removing it will have no impact.
- If that is not enough, we can replace all layout-related custom CSS with BUI's layout containers (e.g.
Box,Flex). - For other custom CSS in the code, it depends on whether Backstage has a clear convention for how that should be structured. For example, in
plugins/tech-radar/src/components/RadarBlip/RadarBlip.tsxwe add custom classes to SVG elements which in turn applies some styles from the custom CSS file. If there is no convention, perhaps it doesn't matter how the CSS was originally generated? (read: by Tailwind)
There was a problem hiding this comment.
Having Tailwind be a part of this creates confusion and gives the impression that it's something the Backstage framework supports when it doesn't and has no plans to.
But I think there is a path forward on this. I need to take a close look at the code to see what can be done. I only did an initial look and wanted to share the feedback I did so you have time to make changes sooner as that would impact a full review.
There was a problem hiding this comment.
Oh, one other quick note is that we are using CSS modules for custom CSS at a component level.
There was a problem hiding this comment.
Found some time now to give things another look and Tailwind is encoded in all of the components as best I can tell, you really aren't using Backstage UI all that much. Again, I don't think it's impossible to remove all of that but it's what's required for this PR to move forward.
I would expect that there would be no references like this className="hidden h-5 w-5 group-fullscreen:block" or like this className={cn('flex flex-col gap-2')}. I'd also expect that custom CSS would be scoped to the component using CSS modules and there would be no need to generate these styles. Sadly this looks like there's a lot more work needed to get this into a state that would be mergeable.
There was a problem hiding this comment.
Thanks for the review and the path forward! We will work on using BUI and CSS modules in the coming weeks.
awanlin
left a comment
There was a problem hiding this comment.
Just leavening these comments as it was part of my review before I stopped as I think we need to address all the encoded Tailwind aspects first.
| { | ||
| "name": "@internal/tech-radar", | ||
| "version": "1.0.0", | ||
| "version": "2.0.0", |
There was a problem hiding this comment.
This doesn't get published and it won't necessarily align with the package versions so we can leave it as is.
There was a problem hiding this comment.
Found some time now to give things another look and Tailwind is encoded in all of the components as best I can tell, you really aren't using Backstage UI all that much. Again, I don't think it's impossible to remove all of that but it's what's required for this PR to move forward.
I would expect that there would be no references like this className="hidden h-5 w-5 group-fullscreen:block" or like this className={cn('flex flex-col gap-2')}. I'd also expect that custom CSS would be scoped to the component using CSS modules and there would be no need to generate these styles. Sadly this looks like there's a lot more work needed to get this into a state that would be mergeable.
|
Thanks for the contribution! |
|
Hi @evanlankveld and @clanghout, can you let me know when this is ready for review? Looks like you've made some changes but I also see a conflict so not sure if I should begin reviewing again or not. 🙏 |
Will do! @evanlankveld you need to either rebase, and maybe squash my commits (and sign), or give me access and I can sign them. Also we need to fix the conflicts and give it a final internal review |
|
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! |
|
Hi! 👋 Looks like the DCO is failing and there are conflicts. Also, is this ready for me to review? |
Changed Packages
|
There was a problem hiding this comment.
Pull request overview
Implements the redesigned Tech Radar UI (per RFC #634) by replacing the legacy MUI-based radar implementation with new Backstage UI–based components, new filtering/selection state management, and updated plugin exports.
Changes:
- Replaces the previous radar rendering/legend/components with a new Radar plot + accordion layout and ring/quadrant filtering.
- Introduces new shared types, filtering utilities, and polyfills to support the new rendering and tests.
- Updates plugin entrypoints/exports, docs, dependency metadata, and adds/updates unit tests for the new UI building blocks.
Reviewed changes
Copilot reviewed 86 out of 89 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| workspaces/tech-radar/plugins/tech-radar/src/utils/types.ts | Removed legacy radar types (superseded by new src/types.ts). |
| workspaces/tech-radar/plugins/tech-radar/src/utils/segment.js | Removed legacy segment placement implementation (replaced by TS version). |
| workspaces/tech-radar/plugins/tech-radar/src/utils/components.tsx | Removed legacy link helper utilities used by old MUI components. |
| workspaces/tech-radar/plugins/tech-radar/src/util/polyfills/getBBox.ts | Adds getBBox polyfill for Jest/JSDOM rendering of SVG. |
| workspaces/tech-radar/plugins/tech-radar/src/util/filterTechRadarBlips.ts | Adds new blip visibility filtering logic (search + ring/quadrant filters). |
| workspaces/tech-radar/plugins/tech-radar/src/util/filterTechRadarBlips.test.ts | Adds unit tests for blip filtering behavior. |
| workspaces/tech-radar/plugins/tech-radar/src/util/cn.ts | Replaces prior export with cn helper based on clsx. |
| workspaces/tech-radar/plugins/tech-radar/src/types.ts | Introduces new processed entry/blip/ring/quadrant types for the redesigned UI. |
| workspaces/tech-radar/plugins/tech-radar/src/plugin.ts | Updates routable extension to new page and adds component extension export. |
| workspaces/tech-radar/plugins/tech-radar/src/index.ts | Updates exports (adds TechRadarComponent, removes legacy component exports). |
| workspaces/tech-radar/plugins/tech-radar/src/components/index.ts | Removes legacy component barrel exports. |
| workspaces/tech-radar/plugins/tech-radar/src/components/hooks/useTechRadarLoader.ts | New hook for loading radar data via API. |
| workspaces/tech-radar/plugins/tech-radar/src/components/hooks/useComponents.ts | Adds component context to allow overriding Backstage UI primitives. |
| workspaces/tech-radar/plugins/tech-radar/src/components/TechRadarPage.tsx | New page wrapper around the redesigned radar component. |
| workspaces/tech-radar/plugins/tech-radar/src/components/TechRadarContent.tsx | New main layout (search, filter dropdown, fullscreen, plot + accordion). |
| workspaces/tech-radar/plugins/tech-radar/src/components/TechRadarContent.module.css | Styling for the new page layout/fullscreen mode. |
| workspaces/tech-radar/plugins/tech-radar/src/components/TechRadarComponent.tsx | New main component that loads/processes data and provides contexts. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarTimeline/index.ts | Removes legacy timeline component barrel. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarTimeline/RadarTimeline.tsx | Removes legacy MUI table-based timeline UI. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarTimeline/RadarTimeline.test.tsx | Removes legacy timeline tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/segment.ts | New TS segment logic for deterministic blip placement. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/radarPlotUtils.ts | New utilities to process loader data, place blips, and size rings/quadrants. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/radarArcUtil.ts | Adds SVG arc/path helpers for ring/quadrant rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/index.ts | Removes legacy RadarPlot barrel export. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/RadarPlot.tsx | Removes legacy plot composition (grid/legend/footer/bubble/entries). |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/RadarPlot.test.tsx | Removes legacy RadarPlot tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/Radar.tsx | New SVG radar renderer + blip/label layer for the redesigned UI. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/Radar.test.tsx | Adds tests for new radar SVG rendering and label/blip layer. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPlot/Radar.module.css | Styling for new radar SVG, labels, and states. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPage.tsx | Removes legacy MUI-based page implementation. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarPage.test.tsx | Removes legacy page tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarLegend/utils.ts | Removes legacy legend segmentation utilities. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarLegend/index.ts | Removes legacy RadarLegend barrel export. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarLegend/RadarLegendRing.tsx | Removes legacy legend ring rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarLegend/RadarLegendQuadrant.tsx | Removes legacy legend quadrant rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarLegend/RadarLegendLink.tsx | Removes legacy legend entry link/details logic. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarLegend/RadarLegend.tsx | Removes legacy legend component. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarLegend/RadarLegend.test.tsx | Removes legacy legend tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarGrid/index.ts | Removes legacy grid barrel export. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarGrid/RadarGrid.tsx | Removes legacy grid rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarGrid/RadarGrid.test.tsx | Removes legacy grid tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarFooter/index.ts | Removes legacy footer barrel export. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarFooter/RadarFooter.tsx | Removes legacy footer rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarFooter/RadarFooter.test.tsx | Removes legacy footer tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarFilterContext.tsx | Adds new context for search/filter/focus/selection state + analytics capture. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarFilter/TechRadarFilter.tsx | Adds new filter dropdown (ring/quadrant) built on Backstage UI menu components. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarFilter/TechRadarFilter.test.tsx | Adds tests for filter trigger text and selection behavior. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarFilter/TechRadarFilter.module.css | Styling for the filter dropdown/trigger. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarEntry/RadarEntry.tsx | Removes legacy MUI-based blip/description modal entry rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarEntry/RadarEntry.test.tsx | Removes legacy RadarEntry tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarDescription/index.ts | Removes legacy description modal barrel export. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarDescription/RadarDescription.tsx | Removes legacy MUI dialog description UI. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarDescription/RadarDescription.test.tsx | Removes legacy RadarDescription tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarComponent.tsx | Removes legacy “advanced” component implementation. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarComponent.test.tsx | Removes legacy RadarComponent tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBubble/index.ts | Removes legacy bubble barrel export. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBubble/RadarBubble.tsx | Removes legacy hover bubble rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBubble/RadarBubble.test.tsx | Removes legacy bubble tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBlipDetails/RadarBlipDetails.tsx | Adds new details dialog for a selected blip, including timeline table. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBlipDetails/RadarBlipDetails.test.tsx | Adds tests for details dialog open/close and timeline rendering. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBlipDetails/RadarBlipDetails.module.css | Styling for details dialog content/table. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBlip/RadarBlip.tsx | Adds new blip SVG rendering (circle/triangle, muted/invisible/selected states). |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBlip/RadarBlip.test.tsx | Adds tests for blip shape rendering based on moved state. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarBlip/RadarBlip.module.css | Styling for blip visibility/mute/selection states and label text. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarAccordion/RadarAccordion.tsx | Adds accordion list grouped by ring with legend dialog and details modal. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarAccordion/RadarAccordion.test.tsx | Adds tests for accordion rendering, selection, and scroll behavior. |
| workspaces/tech-radar/plugins/tech-radar/src/components/RadarAccordion/RadarAccordion.module.css | Styling for accordion list and ring headers. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Radar/utils.ts | Removes legacy layout sizing and entry placement utilities. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Radar/index.ts | Removes legacy Radar barrel export. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Radar/Radar.tsx | Removes legacy radar composition component. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Radar/Radar.test.tsx | Removes legacy radar tests. |
| workspaces/tech-radar/plugins/tech-radar/src/components/QuadrantFilter/QuadrantFilterButtons.tsx | Adds quadrant focus control rendered as 4 overlay buttons. |
| workspaces/tech-radar/plugins/tech-radar/src/components/QuadrantFilter/QuadrantFilterButtons.test.tsx | Adds tests for quadrant focus selection callbacks. |
| workspaces/tech-radar/plugins/tech-radar/src/components/QuadrantFilter/QuadrantFilterButtons.module.css | Styling for quadrant focus control. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Legend/TrendLegend.tsx | Adds trend legend (new/trend up/trend down) with tooltips. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Legend/TrendLegend.test.tsx | Adds tests for trend legend items. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Legend/TrendLegend.module.css | Styling for trend legend. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Legend/RingLegend.tsx | Adds ring legend list with per-ring radar preview and descriptions. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Legend/RingLegend.test.tsx | Adds tests for ring legend ordering/highlight behavior. |
| workspaces/tech-radar/plugins/tech-radar/src/components/Legend/RingLegend.module.css | Styling for ring legend items and highlight state. |
| workspaces/tech-radar/plugins/tech-radar/src/alpha.tsx | Updates alpha page loader to new TechRadarPage implementation. |
| workspaces/tech-radar/plugins/tech-radar/package.json | Bumps major version, adds Backstage UI deps, adjusts CSS side effects handling. |
| workspaces/tech-radar/plugins/tech-radar/README.md | Updates docs for new component/page props and testing guidance. |
| workspaces/tech-radar/packages/app/src/index.tsx | Imports Backstage UI global CSS in the example app. |
| workspaces/tech-radar/packages/app/package.json | Adds @backstage/ui dependency to the example app. |
| workspaces/tech-radar/package.json | Adds workspace-level dependency on @backstage/ui. |
| workspaces/tech-radar/.changeset/lazy-icons-walk.md | Adds changeset describing the major redesign and new UI dependency requirement. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Hey, I just made a Pull Request!
Implemented the new Tech Radar design as proposed in this RFC. The filter dropdown allows filtering on quadrant and ring, other advanced filters are not included at this time.
Since the frontend of our own Backstage installation runs on Tailwind, the code does not use BUI's layout containers (e.g.
Flex,Grid). To prevent the effort of having to implement the radar twice, we chose to simply include a pre-built CSS file with Tailwind's output in thetech-radarplugin. This can be generated by future contributors by runningyarn dev:build-cssin this workspace.Aside from using BUI components instead of MUI, it has no breaking changes. Users can upgrade and keep using their same JSON source file.
Screenshots:
✔️ Checklist
Signed-off-byline in the message. (more info)