Skip to content

fix: v11 fix-now bugs from the prop API freeze review - #3263

Merged
interactivellama merged 6 commits into
masterfrom
fix/v11-fix-now-bugs
Oct 29, 2026
Merged

interactivellama merged 6 commits into
masterfrom
fix/v11-fix-now-bugs

Conversation

@Niznikr

@Niznikr Niznikr commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Additional description

Fixes the "Fix now (bugs, not breaking)" items (theme 9) from the v11 prop API freeze review in ROADMAP.md. Four are fixed here; the other two were already fixed on master.

Item Root cause Fix Regression test
simple-data-table getAssistiveText argument order The call passed assistiveTextForSelectAllRows third and assistiveTextForColumnSort sixth, but getAssistiveText takes columnSort third and selectAllRows sixth. Each deprecated prop set the other one's text. Pass the arguments in the order the function expects. New: sets both props and checks the select-all and sort assistive text separately.
split-view bottomRightText title The bottomRightText span used title={item.bottomLeftText}. Use item.bottomRightText. New: checks each text span's title.
vertical-navigation aria-current aria-current={true} renders the generic "true" token. Use "page" for the selected link. Existing assertion updated from 'true' to 'page'.
tabs disabled type Tabs reads disabled from each TabsPanel child, but the prop was only typed on the internal TabChildProps, so <TabsPanel disabled> failed to type-check for consumers. Add disabled?: boolean to TabsPanelProps. None. The change is type-only, the test files are .jsx (not type-checked), and the repo has no type-test setup. The existing tests already cover disabled-tab behavior.
grid "undefined slds-col" Already fixed in #3239, with tests. No change here; ROADMAP updated. (#3239)
toast timer re-arm Already fixed in #3251 (latest-callback ref, with a regression test). No change here; ROADMAP updated. (#3251)

Commits:

  • One fix(<component>): commit per fix.
  • A separate style(vertical-navigation): commit for the Prettier reformatting that the pre-commit hook applied to the two vertical-navigation files. Those files weren't Prettier-clean on master.
  • A docs: commit for ROADMAP.md. It marks each fix-now finding as fixed. The component checkboxes stay open because those entries list other work that isn't done yet.

Story snapshot diff: 4 lines, all vertical-navigation aria-current="true" → aria-current="page". The split-view stories don't render the changed title, so their snapshots didn't change.

Not breaking: no public API is removed or renamed, and TabsPanelProps only gains an optional prop.


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.
  • 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).
  • 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__.
  • Storybook Accessibility (a11y) panel shows no new violations for the affected stories.
  • 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.

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.

Niznikr and others added 6 commits October 27, 2026 11:11
…sistiveText in order

The call passed assistiveTextForSelectAllRows third and
assistiveTextForColumnSort sixth, but getAssistiveText takes columnSort
third and selectAllRows sixth, so each prop set the other's text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…htText

The bottomRightText span reused item.bottomLeftText for its title.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
aria-current={true} rendered the generic "true" token; a selected
navigation link is the current page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tabs reads disabled off each TabsPanel child, but the prop was only
typed on the internal TabChildProps, so <TabsPanel disabled> failed to
type-check for consumers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@interactivellama
interactivellama merged commit a4aa0cb into master Oct 29, 2026
10 checks passed
@interactivellama
interactivellama deleted the fix/v11-fix-now-bugs branch October 29, 2026 22:24
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