Skip to content

docs(actiongroup): storybook and migration guide - #6581

Draft
rise-erpelding wants to merge 6 commits into
swc-2217/action-group-testsfrom
swc-2218/action-group-docs
Draft

docs(actiongroup): storybook and migration guide#6581
rise-erpelding wants to merge 6 commits into
swc-2217/action-group-testsfrom
swc-2218/action-group-docs

Conversation

@rise-erpelding

Copy link
Copy Markdown
Collaborator

Description

Finalizes Phase 7 (Documentation) of the swc-action-group migration:

  • Adds the per-component MDX docs page (action-group.mdx): Anatomy, Options (sizes, orientation, quiet, compact, justified, static colors), States, Accessibility, and an Upcoming features note.
  • Finalizes the stories file: retags Compact/Quiet/Justified from behaviors to options (they're static variants, not conditions-over-time or interaction behaviors), drops autodocs from the Playground story now that the MDX is the docs page, and completes the previously // TODO Accessibility story with a labeled group plus an outer role="toolbar" wrapper demonstrating the toolbar composition pattern.
  • Replaces the Bold/Italic/Underline example throughout with Crop/Rotate/Flip (Cut/Copy/Paste reserved for the toolbar composition demo): the old example implied a pressed/selected state that swc-action-group no longer has, since selects/selected were dropped from the 2nd-gen API.
  • Adds the consumer migration guide (migration-guide.mdx) covering the verticalorientation, labelaccessible-label renames, the new group-level disabled, and the removal of selects/selected, emphasized, and --mod-actiongroup-*.
  • Updates the migration plan: adds the A4 truncate/justified additive row, cascades the labelaccessible-label rename that shipped in an earlier fix commit but was never reflected in the plan, and adds a Review checklist item to fold the accessibility/rendering analysis docs into the plan once the migration lands.
  • Fixes two small pre-existing issues found while in the stories file: the meta title was 'Action Group' (should be sentence case, 'Action group') and the button-group cross-reference link pointed at a nonexistent path.

Motivation and context

Phase 6 (testing) is proceeding in a parallel branch. This PR closes out the remaining Documentation checklist items in the migration plan so swc-action-group has a real per-component docs page instead of falling back to the generic template, and so consumers upgrading from sp-action-group have a migration guide.

Related issue(s)

  • Part of SWC-2212 (Action Group 2nd-gen migration epic)

Screenshots (if appropriate)

N/A — documentation-only change. No component runtime behavior or visual output changed; new/updated Storybook stories and MDX prose only.


Author's checklist

  • I have read the CONTRIBUTING and PULL_REQUESTS documents.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices
  • I have added automated tests to cover my changes.
  • I have included a well-written changeset if my change needs to be published.
  • I have included updated documentation if my change required it.

Reviewer's checklist

  • Includes a Github Issue with appropriate flag or Jira ticket number without a link
  • Includes thoughtfully written changeset if changes suggested include patch, minor, or major features
  • Automated tests cover all use cases and follow best practices for writing
  • Validated on all supported browsers
  • All VRTs are approved before the author can update Golden Hash

Manual review test cases

  • Action group docs page renders correctly

    1. Run Storybook and go to Components → Action group → Docs
    2. Confirm Anatomy, Options (Sizes/Orientation/Quiet/Compact/Justified/Static colors), States, Accessibility, and Upcoming features sections all render with their <Canvas> examples
    3. Expect no console errors and no missing/broken story references
  • Consumer migration guide renders correctly

    1. Go to Components → Action group → Migration guide
    2. Confirm the What changed tables, numbered Update your code steps, Accessibility, Styling, and Checklist sections render
    3. Expect all before/after code snippets to render as fenced code blocks with no MDX parse errors
  • Retagged Options stories display correctly

    1. Go to the Action group Docs page's Options section
    2. Confirm Compact, Quiet, and Justified now render there (previously listed as Behaviors)
    3. Expect no duplicate or missing story canvases in either section

Device review

  • Did it pass in Desktop?
  • Did it pass in (emulated) Mobile?
  • Did it pass in (emulated) iPad?

Accessibility testing checklist

Required: Complete each applicable item and document your testing steps.

  • Keyboard (required — document steps below)

    1. Go to Components → Action group → Docs → Accessibility story
    2. Tab into the first "Image adjustments" group; confirm one Tab stop enters and Arrow keys move among Crop/Rotate/Flip; continue Tab to the outer toolbar and confirm each of its two named clusters ("Image adjustments", "Edit") is its own Tab stop, with Arrow keys staying inside each cluster
    3. Expect exactly one Tab stop per swc-action-group, Arrow keys never crossing from one named cluster to the other, and a visible focus ring throughout
  • Screen reader (required — document steps below)

    1. Go to the same Accessibility story with VoiceOver/NVDA running
    2. Focus each swc-action-group cluster and the outer toolbar wrapper
    3. Expect each cluster announced as "group" with its accessible-label ("Image adjustments" / "Edit"), and the outer wrapper announced as "toolbar, Canvas toolbar"

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 23cce33

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

📚 Branch Preview Links

🔍 Gen1 Visual Regression Test Results

When a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:

Deployed to Azure Blob Storage: pr-6581

If the changes are expected, update the current_golden_images_cache hash in the circleci config to accept the new images. Instructions are included in that file.
If the changes are unexpected, you can investigate the cause of the differences and update the code accordingly.

@rise-erpelding rise-erpelding changed the title docs(actiongroup): finalize Phase 7 documentation docs(actiongroup): storybook and migration guide Aug 5, 2026
@rise-erpelding
rise-erpelding force-pushed the swc-2218/action-group-docs branch from 2fac06e to a3f6d15 Compare August 6, 2026 20:28
@rise-erpelding
rise-erpelding changed the base branch from swc-2212/migrate-action-group to swc-2217/action-group-tests August 6, 2026 20:36
@rise-erpelding
rise-erpelding force-pushed the swc-2218/action-group-docs branch from 4f43ce4 to 38a5be6 Compare August 6, 2026 21:04
@rise-erpelding
rise-erpelding force-pushed the swc-2218/action-group-docs branch from 38a5be6 to 78779a5 Compare August 6, 2026 22:17
Rise Erpelding and others added 5 commits August 7, 2026 09:14
Add the A4 truncate/justified additive row, cascade the label ->
accessible-label rename that shipped in an earlier fix commit but was
never reflected in the plan, and add a Review checklist item to fold
the accessibility and rendering analysis docs into this plan once the
migration lands.
- Retag Compact/Quiet/Justified from 'behaviors' to 'options': they are
  static variants, not conditions-over-time or interaction behaviors,
  per the states-vs-behaviors test in stories-format.md.
- Drop 'autodocs' from the Playground story now that the per-component
  MDX is the docs page.
- Complete the previously TODO'd Accessibility story: a labeled group
  plus an outer role="toolbar" wrapper with two named clusters, to
  demonstrate the toolbar composition pattern.
- Replace the Bold/Italic/Underline example throughout: it implies a
  pressed/selected state that action-group no longer has (selects and
  selected were dropped). Switch to Crop/Rotate/Flip, with Cut/Copy/
  Paste reserved for the toolbar composition demo.
- Fix meta title casing ('Action Group' -> 'Action group') and the
  broken button-group cross-reference link, both pre-existing.
Author action-group.mdx covering Anatomy, Options (sizes, orientation,
quiet, compact, justified, static colors), States, Accessibility, and
an Upcoming features note for truncate propagation once
swc-action-button ships it (migration plan A4).
Cover the vertical -> orientation and label -> accessible-label
renames, the new group-level disabled attribute, and the removal of
selects/selected, emphasized, and the --mod-actiongroup-* custom
property surface, following the consumer-migration-guide skill
template.
Update overview aria-label and button labels after the docs rebase
replaced Bold/Italic/Underline with Crop/Rotate/Flip. Keep
ToolbarComposition as a !dev fixture for the existing a11y snapshot.

Match the toolbar-composition example inside the Accessibility story
to the wording already used by the testing branch's dedicated
ToolbarComposition fixture (Edit actions: Cut/Copy/Paste; View
actions: Zoom in/Zoom out), instead of a second, differently-worded
example. Also switch the hardcoded gap to the spacing token used by
that fixture.
@rise-erpelding
rise-erpelding force-pushed the swc-2218/action-group-docs branch from 78779a5 to 57c4f65 Compare August 7, 2026 16:14
@coveralls

coveralls commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 31218004862

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Warning

No base build found for commit 5dcf4a4 on swc-2217/action-group-tests.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 96.248%

Details

  • Patch coverage: No coverable lines changed in this PR.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 39351
Covered Lines: 38076
Line Coverage: 96.76%
Relevant Branches: 6470
Covered Branches: 6026
Branch Coverage: 93.14%
Branches in Coverage %: Yes
Coverage Strength: 459.27 hits per line

💛 - Coveralls

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.

2 participants