Skip to content

chore(frontend): move shared chart and variable code out of the v1 namespace (phase 4) - #12544

Draft
ahrefabhi wants to merge 1 commit into
chore/dashboard-v1-cleanup-phase-2from
chore/dashboard-v1-cleanup-phase-4
Draft

chore(frontend): move shared chart and variable code out of the v1 namespace (phase 4)#12544
ahrefabhi wants to merge 1 commit into
chore/dashboard-v1-cleanup-phase-2from
chore/dashboard-v1-cleanup-phase-4

Conversation

@ahrefabhi

Copy link
Copy Markdown
Contributor

Description

Stacked on #12543, which is stacked on #12542 — review those first; this diff is against the phase 2 branch.

Pure relocation, no behaviour change. After phase 1 removed the v1 dashboard, container/DashboardContainer held nothing but shared code — a directory named after a component that no longer exists.

  • DashboardContainer/visualization/container/Visualization/ — the chart and panel primitives behind the v2 panels, PanelWrapper, API Monitoring, Billing, Meter Explorer, TimeSeriesView and alert previews.
  • DashboardVariablesSelection/{util,useDashboardVariableUpdate} and DashboardVariableSettings/addTagFiltersToDashboardcontainer/DashboardVariables/, together with their tests.
  • PanelTypeSelectionModal/menuItemscontainer/Visualization/panelTypeMenuItems.

container/DashboardContainer is now gone. Nothing outside import paths changed — worth reviewing with whitespace and rename detection on.

Additional Information

Verification: tsgo --noEmit, lint:js, stylelint and build clean; 224 suites / 1790 tests pass across every consumer of the moved modules. I checked that the formatter introduced no unrelated churn — every modified file's diff touches one of the moved paths.

Not included, deliberately: container/GridCardLayout still carries a name that stopped being accurate when phase 1 deleted GridCardLayout.tsx, and the shared leaves under container/NewWidget (timeItems, alertFomatCategories, Threshold/types, PlotTag, NewWidget/utils, …) are still in the retired editor's directory. Both are worth renaming, but each is its own large diff and neither is v1-branded, so they are lower priority than this one.

🤖 Generated with Claude Code

…mespace

container/DashboardContainer held nothing but shared code once the v1
dashboard was deleted — a directory named after a component that no
longer exists.

- visualization/ -> container/Visualization (v2 panels, PanelWrapper,
  API Monitoring, Billing, Meter Explorer, TimeSeriesView, alert previews)
- the variable helpers and addTagFiltersToDashboard -> container/DashboardVariables
- PanelTypeSelectionModal/menuItems -> container/Visualization/panelTypeMenuItems

Pure relocation: no file contents changed beyond import paths.

Assisted-by: Claude Opus 5
@github-actions github-actions Bot added the chore label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant