Skip to content

refactor: give the charts their own barrel, with charts-react's names - #991

Merged
aklkv merged 1 commit into
mainfrom
refactor/charts-barrel
Oct 14, 2026
Merged

aklkv merged 1 commit into
mainfrom
refactor/charts-barrel

Conversation

@aklkv

@aklkv aklkv commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #990 (on #988, #987 and #986): merge those first, then retarget this to main.

Carbon React ships its charts as a separate package, @carbon/charts-react. So the charts get their own barrel too, like AI Chat in #988: carbon-components-ember/charts.

Changes

  • Barrel: create-files.mjs writes a third barrel, src/charts.ts, from components/charts/, so the components barrel no longer has the charts.
  • Names: BarChart wraps @carbon/charts' SimpleBarChart, which is what charts-react calls it, so it becomes SimpleBarChart (charts/simple-bar-chart.gts, docs page Charts/SimpleBarChart). LineChart and PieChart already match.
  • Docs agents read: the manifest preset knows the new barrel, so the three charts import from carbon-components-ember/charts (44 components from ai-chat, 3 from charts, 112 from components). The skill's React guide maps @carbon/charts-react imports to it.
  • Docs: the README, AGENTS.md and a dom-parity comment list the new barrel.

Breaking

  • Import the charts from carbon-components-ember/charts.
  • BarChart is now SimpleBarChart.

Verified

  • The full browser test suite passes (1,453 tests), as do the chart stories.
  • Type-check, lint and the argument ratchet pass.
  • A Storybook build shows the new imports.

@aklkv aklkv self-assigned this Oct 11, 2026
@aklkv
aklkv added this pull request to stack #989 October 11, 2026 21:57
@aklkv
aklkv requested a review from patricklx October 11, 2026 21:57
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

📖 Docs Preview

Preview has been removed (PR closed or preview label removed).

patricklx
patricklx previously approved these changes Oct 12, 2026
patricklx
patricklx previously approved these changes Oct 13, 2026
Base automatically changed from refactor/drop-component-app-reexports to main October 13, 2026 21:10
@aklkv
aklkv dismissed patricklx’s stale review October 13, 2026 21:10

The merge-base changed after approval.

@aklkv
aklkv force-pushed the refactor/charts-barrel branch from 38626c4 to f5dba68 Compare October 13, 2026 21:10
github-actions Bot pushed a commit that referenced this pull request Oct 13, 2026
@aklkv
aklkv requested a review from patricklx October 13, 2026 21:24
Carbon React ships its charts as a separate package, @carbon/charts-react,
so the charts get their own barrel too: `carbon-components-ember/charts`,
written by create-files.mjs from components/charts/ next to the
`components` and `ai-chat` barrels.

BarChart wraps @carbon/charts' SimpleBarChart, which is what
charts-react calls it, so it becomes SimpleBarChart
(charts/simple-bar-chart.gts, docs page Charts/SimpleBarChart). LineChart
and PieChart already match.

The manifest preset knows the new barrel, so the docs agents read import
the charts from it. The README, AGENTS.md and the agent skill list it.

Breaking: import the charts from `carbon-components-ember/charts`, and
BarChart as SimpleBarChart.

Signed-off-by: Alexey Kulakov <uni_que@me.com>
@aklkv
aklkv force-pushed the refactor/charts-barrel branch from f5dba68 to ed9ee45 Compare October 14, 2026 06:49
github-actions Bot pushed a commit that referenced this pull request Oct 14, 2026
@aklkv
aklkv merged commit defa97b into main Oct 14, 2026
22 checks passed
@aklkv
aklkv deleted the refactor/charts-barrel branch October 14, 2026 06:59
github-actions Bot pushed a commit that referenced this pull request Oct 14, 2026
@github-actions github-actions Bot mentioned this pull request Oct 14, 2026
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.

2 participants