Skip to content

feat(react): migrate TagOverflow from carbon-for-ibm-products - #23160

Open
anamikaanu96 wants to merge 2 commits into
carbon-design-system:mainfrom
anamikaanu96:migrate_tagoverflow_v2
Open

feat(react): migrate TagOverflow from carbon-for-ibm-products#23160
anamikaanu96 wants to merge 2 commits into
carbon-design-system:mainfrom
anamikaanu96:migrate_tagoverflow_v2

Conversation

@anamikaanu96

Copy link
Copy Markdown
Contributor

Closes #22930

Migrates the TagOverflow component from carbon-for-ibm-products into the Carbon core monorepo.

Changelog

New

  • packages/react/src/components/TagOverflow/TagOverflow.tsx — component implementation with full TypeScript props interface (TagOverflowProps, TagOverflowItem)
  • packages/react/src/components/TagOverflow/TagOverflowModal.tsx — modal sub-component for viewing all overflow tags
  • packages/react/src/components/TagOverflow/TagOverflowPopover.tsx — popover sub-component for inline overflow display
  • packages/react/src/components/TagOverflow/constants.ts — shared TYPES enum for tag type values
  • packages/react/src/components/TagOverflow/index.ts — component barrel file
  • packages/react/src/components/TagOverflow/TagOverflow.stories.js — Storybook stories (Default, FiveTags, LongTags, UserAvatars, CustomComponents)
  • packages/react/src/components/TagOverflow/TagOverflow.mdx — MDX docs
  • packages/react/src/components/TagOverflow/story.scss — story-specific styles
  • packages/react/src/components/TagOverflow/utils.js — story fixtures and helpers (tag arrays, UserAvatar data, IconComponent)
  • packages/react/src/components/TagOverflow/__tests__/TagOverflow-test.js — unit tests
  • e2e/components/TagOverflow/TagOverflow-test.avt.e2e.js — AVT e2e test skeleton (all tests use test.skip() until v12 Storybook is live in CI)
  • packages/styles/scss/components/TagOverflow/_tag-overflow.scss — component SCSS styles
  • packages/styles/scss/components/TagOverflow/_index.scss — SCSS index
  • packages/react/scss/components/tag-overflow/_index.scss — forwarding stub index
  • packages/react/scss/components/tag-overflow/_tag-overflow.scss — forwarding stub

Changed

  • packages/react/src/internal/useOverflowItems.ts — extended to support the overflow measurement logic required by TagOverflow; fixed offsetRefHandler return type (HTMLElement | null) to match implementation and resolve TS2322
  • packages/styles/scss/components/_index.scss@use 'TagOverflow' added (commented with TODO until TagOverflow moves to stable)
  • packages/react/src/index.ts — export block added (commented out with TODO for v12, with reminder to remove from excludeProductsComponents)
  • packages/react/product-migrated-components.mjsTagOverflow.stories.js added to productMigratedStoryGlobs and src/components/TagOverflow/**/* added to excludeProductsComponents

Testing / Reviewing

Run unit tests:

yarn jest packages/react/src/components/TagOverflow

Start the v12 Storybook and verify the Preview/TagOverflow stories render correctly with all controls:

yarn storybook:v12

PR Checklist

As the author of this PR, before marking ready for review, confirm you:

  • Reviewed every line of the diff
  • Updated documentation and storybook examples
  • Followed the required v12 migration documentation for any code change that affects v12, or struck through this item because the PR does not affect v12
  • Wrote passing tests that cover this change
  • Addressed any impact on accessibility (a11y)
  • Tested for cross-browser consistency
  • Validated that this code is ready for review and status checks should pass

More details can be found in the pull request guide

@anamikaanu96
anamikaanu96 requested a review from a team as a code owner August 28, 2026 06:06
@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for v12-carbon-web-components ready!

Name Link
🔨 Latest commit 8373f63
🔍 Latest deploy log https://app.netlify.com/projects/v12-carbon-web-components/deploys/6a91257d4b7ff40008b04ac2
😎 Deploy Preview https://deploy-preview-23160--v12-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for v12-carbon-react ready!

Name Link
🔨 Latest commit 8373f63
🔍 Latest deploy log https://app.netlify.com/projects/v12-carbon-react/deploys/6a91257da3bdad0008cef2d0
😎 Deploy Preview https://deploy-preview-23160--v12-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8373f63
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/6a91257d84f2da00089a9e92
😎 Deploy Preview https://deploy-preview-23160--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 8373f63
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/6a91257d3fa29c0008fe433f
😎 Deploy Preview https://deploy-preview-23160--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 8373f63
🔍 Latest deploy log https://app.netlify.com/projects/carbon-elements/deploys/6a91257deb00b70008aac5b6
😎 Deploy Preview https://deploy-preview-23160--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.34247% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.62%. Comparing base (7bd6bbb) to head (8373f63).

Files with missing lines Patch % Lines
.../src/components/TagOverflow/TagOverflowPopover.tsx 69.38% 15 Missing ⚠️
...s/react/src/components/TagOverflow/TagOverflow.tsx 69.76% 12 Missing and 1 partial ⚠️
...ct/src/components/TagOverflow/TagOverflowModal.tsx 81.48% 5 Missing ⚠️
packages/react/src/components/TagOverflow/utils.js 88.88% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23160      +/-   ##
==========================================
- Coverage   89.67%   89.62%   -0.05%     
==========================================
  Files         639      643       +4     
  Lines       58865    59011     +146     
  Branches     8334     8308      -26     
==========================================
+ Hits        52785    52888     +103     
- Misses       5914     5956      +42     
- Partials      166      167       +1     
Flag Coverage Δ
main-packages 87.04% <75.34%> (-0.12%) ⬇️
web-components 90.52% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Migrate TagOverflow from ibm-products to @carbon/react

1 participant