Skip to content

docs: document alpha vs latest channels in README, CHANGELOG, and ROADMAP - #3236

Merged
interactivellama merged 3 commits into
masterfrom
docs/readme-release-channels
Oct 12, 2026
Merged

interactivellama merged 3 commits into
masterfrom
docs/readme-release-channels

Conversation

@showerbee

Copy link
Copy Markdown
Collaborator

Fixes #

Additional description

Docs-only. The README on master describes v11 (React 19, TypeScript, SLDS 2), but a plain npm install resolves the latest dist-tag, which is 0.10.65. People reading the README got a different major version from the one it documents. CHANGELOG and ROADMAP had drifted the same way.

Root cause: v11 publishes under the alpha npm tag (publishConfig.tag), while the docs on master were written as if v11 were the default install. They also hadn't been updated through the four alpha releases.

Current npm state

npm tag Version Source React Node engines
latest 0.10.65 0.10.x branch >=16.8 none
alpha 11.0.0-alpha.4 master ^19.2.0 >=24

README (docs(readme))

This follows the pattern MUI and React Router use for prerelease vs. stable docs.

  • Version banner at the top, plus a version table (npm tag, version, branch, React, styles, docs) linking to the 0.10.x README and docs site
  • Install is npm install @salesforce/design-system-react@alpha. A new "Troubleshooting ERESOLVE" section covers React 18 projects and the pinned @salesforce-ux/design-system peer. Each command was run in a clean project.
  • Requirements fixed: Node >= 24 (was ">= 20.19 or >= 22.12"), React ^19.2
  • Removed the note saying SLDS 2 styles are bundled. The published tarball has no CSS.
  • Dark mode fixed. SLDS 2 switches on a slds-color-scheme--{system,light,dark} class on <body>. slds-theme_dark on a div does nothing.
  • Known-issue note: components/color-picker, components/filter, and components/tree don't resolve in alpha.4. The root import works.
  • Development section: Node 24 via .nvmrc, Playwright install, npm test -- --run (a bare npm test starts watch mode), test:ci

CHANGELOG (docs(changelog))

  • One dated entry per 11.0.0-alpha.* release in Keep a Changelog format. Previously everything sat under [Unreleased].
  • The removal lists come from diffing the root exports of each published tarball. Several of these components were listed as "converted to TypeScript":
    • alpha.2: Lookup, Notification, Picklist, TimePicker
    • alpha.3: AppLauncher, BrandBand, Expression, GlobalHeader, GlobalNavigationBar, LocationMap
    • alpha.4: DataTable → SimpleDataTable
  • Notes that v11.0.0-alpha.1 was tagged but never reached npm (its publish job failed)
  • The 0.10.x notes link now points to RELEASENOTES.md on the 0.10.x branch. The old link pointed into gitignored .planning/.

ROADMAP (docs(roadmap))

  • New snapshot dated 2026-10-11. The old one was from 2026-08-11 and still listed popper.js and the Vite/Vitest/ESLint majors as pending.
  • New P1, "Path to a stable v11":
    • subpath entry points for ColorPicker, Filter, and Tree
    • the pinned SLDS peer dependency
    • a migration guide
    • hosted v11 docs (react.lightningdesignsystem.com redirects to GitHub, and Storybook isn't deployed)
    • one tag format (11.0.0-alpha.4 has no v prefix)
    • switching publishConfig.tag at GA
  • Story and test gap lists recomputed from the current tree. The GitHub Pages claim is removed; there's no such workflow on master.

Follow-ups (separate PRs)

  1. fix: loosen the @salesforce-ux/design-system peer dependency (exact pin to 2.25.0-alpha.2 causes ERESOLVE). Once that's merged, the README troubleshooting note can shrink.
  2. docs: a 0.10.x → v11 migration guide
  3. fix(build): the missing components/<name> entry points for ColorPicker, Filter, and Tree

CONTRIBUTOR checklist (do not remove)

Please complete for every pull request.

Green gate — all of these must pass locally (CI runs the same):

  • npm run lint passes with 0 errors (npm run lint:fix to auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors.
  • npm run typecheck is clean (tsc --noEmit).
  • npm test -- --run passes — this runs both Vitest projects (jsdom unit + real-browser browser) and the story HTML snapshots. If you changed rendered markup on purpose, update snapshots with npm test -- --run -u and review the diff.
  • npm run build succeeds (type-check + Vite library build + .d.ts + entry shims).

Behavior & docs:

  • First-time contributors: sign the CLA (a bot will comment with instructions).
  • Added/updated Vitest + React Testing Library tests for the change (template: components/button/__tests__). New props and bug fixes should get a regression test. Tests that genuinely need a real browser (focus traversal, layout/measurement, canvas) go in a *.browser.test.jsx file (the browser project); everything else is jsdom. — N/A, docs only
  • Reviewed the component's Storybook stories: npm run storybook → http://localhost:6007/. Confirm the story actually renders and behaves (deprecated Storyshots/Karma are gone; there is no separate browser-tests server). — N/A, docs only
  • Story/example code uses the component's real prop API (e.g. render-props like onRenderContent / onRenderVisualPicker, icon props, events), not assumptions — a common source of "component looks broken" reports has been stories authored against the wrong API. Cross-check against components/<name>/__examples__. — N/A, docs only
  • Storybook Accessibility (a11y) panel shows no new violations for the affected stories. — N/A, docs only
  • If you added or changed a type, remember runtime PropTypes were removed in the TS migration — types are the contract. Ship accurate .d.ts (they're generated by the build); JS consumers rely on them via editor type-acquisition. — N/A, docs only

REVIEWER checklist (do not remove)

  • CI is green (GitHub Actions CI workflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.
  • Change has adequate test coverage; bug fixes include a regression test.
  • Reviewed the affected Storybook stories and their a11y panels.
  • Rendered markup still conforms to SLDS — check the story HTML snapshot diff (components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).
  • Public API / package surface: if exports changed, the deep-import contract still holds (@salesforce/design-system-react/components/<name> and nested paths resolve for ESM, CJS, and types). Removing/renaming a public component or export is a breaking change → feat!:/BREAKING CHANGE: and a major version bump.

The README on master documents the v11 rewrite, but a plain
`npm install` resolves the `latest` dist-tag (0.10.65), so readers got
a different major version than the one described.

- Add a version banner and a channel table (npm tag, branch, React,
  styles, docs) with links to the 0.10.x README and docs site
- Install with `@alpha` and `--save-exact`
- Requirements: React ^19.2, Node >= 24, exports-aware bundler
- Remove the note claiming SLDS 2 styles are bundled; the package ships
  no CSS
- Fix dark mode: SLDS 2 switches on `slds-color-scheme--*` on <body>,
  not `slds-theme_dark`
- Development: Node 24 via .nvmrc, Playwright setup, `npm test -- --run`,
  `test:ci`
The changelog kept everything under [Unreleased] after four alpha
releases, listed components that were removed as "converted to
TypeScript", gave the wrong Node.js requirement, and linked to a
gitignored file for older release notes.

- One dated entry per 11.0.0-alpha.* release, newest first, following
  Keep a Changelog, with compare links using the actual tag names
- Removals checked against the published tarballs: Lookup,
  Notification, Picklist, TimePicker (alpha.2); AppLauncher, BrandBand,
  Expression, GlobalHeader, GlobalNavigationBar, LocationMap (alpha.3);
  DataTable renamed to SimpleDataTable (alpha.4)
- Node.js >= 24, not >= 20.19
- Note that 11.0.0-alpha.1 was tagged but never published to npm
- Link 0.10.x release notes on the 0.10.x branch instead of .planning/
ROADMAP.md was an August snapshot of the modernization branch. It still
listed popper.js and the toolchain majors as pending, referenced
components removed in v11, and described a GitHub Pages deploy that
does not exist on master.

- New 2026-10-11 snapshot: one remaining .jsx source, Floating UI for
  positioning, 48 test files, 0 lint errors / 223 warnings
- New P1, "Path to a stable v11": subpath entry points for ColorPicker,
  Filter, and Tree; the pinned @salesforce-ux/design-system peer; a
  migration guide; hosted v11 docs; consistent tag names; switching
  publishConfig.tag at GA
- Story and test gap lists recomputed from the current tree
- Completed P1/P4 work moved to "Done since the 2026-08-11 snapshot"
Comment thread README.md
rel="stylesheet"
href="/node_modules/@salesforce-ux/design-system-2/dist/css/bundled/slds2.lightning-blue.css"
rel="stylesheet"
href="/node_modules/@salesforce-ux/design-system-2/dist/css/bundled/slds2.lightning-blue.css"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@showerbee We should make Cosmos the default.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Niznikr Also, we should make Cosmos the default theme in Storybook.

@interactivellama
interactivellama merged commit 5249022 into master Oct 12, 2026
9 checks passed
@interactivellama
interactivellama deleted the docs/readme-release-channels branch October 12, 2026 17:21
interactivellama pushed a commit that referenced this pull request Oct 26, 2026
…, CHANGELOG/ROADMAP corrections) (#3240)

* docs(readme): show a bundler CSS import and default to the Cosmos theme

Installing @salesforce-ux/design-system-2 doesn't serve node_modules over
HTTP, so the old <link> example left components unstyled. Lead with a
bundler import, keep a serve-and-link alternative, make Cosmos the
default theme, and note the ../../public/ images the 2.264.x package
doesn't ship.

Follow-up to #3236.

* docs(changelog): correct alpha.2 and alpha.3 entries

- alpha.2 already published with --tag alpha; alpha.3 made it the
  default via publishConfig.tag
- Not every component became a function component
- List the SLDSMenuPicklist alias and the SLDS-prefixed aliases removed
  alongside each component

Follow-up to #3236.

* docs(roadmap): correct coverage gaps and adapter location

- forms has a nested story and test; drop it from the gap lists
- List nested stories the snapshot glob skips
- The popper-shape adapter is computeFloatingData in utilities/dialog
- VisualPicker already supports non-coverable content
- Chromatic builds Storybook; what's missing is a public docs site

Follow-up to #3236.

---------

Co-authored-by: showerbee <[email protected]>
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