fix(a11y): extract theme and fix pnpm overides#392
Conversation
🦋 Changeset detectedLatest commit: 4fb96fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughExtracts and applies a theme provider to the devtools-a11y UI, updates the example's package dependency to a fixed version, and adds a changeset plus a workspace override for Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 4fb96fd
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/devtools
@tanstack/devtools-a11y
@tanstack/devtools-client
@tanstack/devtools-ui
@tanstack/devtools-utils
@tanstack/devtools-vite
@tanstack/devtools-event-bus
@tanstack/devtools-event-client
@tanstack/preact-devtools
@tanstack/react-devtools
@tanstack/solid-devtools
@tanstack/vue-devtools
commit: |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.changeset/fuzzy-mice-hunt.md:
- Line 5: Update the changelog entry in .changeset/fuzzy-mice-hunt.md to correct
the typo: replace the word "overides" with the correct spelling "overrides" in
the sentence "Extract theme provider and fix pnpm overides" so the release notes
display the proper spelling.
In `@packages/devtools-a11y/src/core/components/index.tsx`:
- Around line 8-12: The Devtools component now requires a theme prop which is a
breaking change; make DevtoolsProps.theme optional and restore backward
compatibility by treating the prop as optional (theme?: TanStackDevtoolsTheme)
and applying an internal default when absent inside the Devtools function (e.g.,
use a defaultTheme or fallback value before using theme). Update references to
props.theme inside Devtools to use the fallback so existing consumers without
props continue to work.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: a3232fa2-a801-4ef1-bb9f-27d784781dd3
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (4)
.changeset/fuzzy-mice-hunt.mdexamples/react/a11y-devtools/package.jsonpackage.jsonpackages/devtools-a11y/src/core/components/index.tsx
|
fixes #326 |
updated a11y plugin to work with extracted theme, fixes the codesandbox dependency issues
Summary by CodeRabbit
New Features
Bug Fixes
Chores