Repository navigation
chore(ui-patterns): collapse the admonition shim into ui-patterns/Admonition - #48377
Conversation
The shim gave the module two resolution paths (the file on case-insensitive filesystems, the directory on Linux), which is what produced the self-import bug fixed in #48344. Exports map regenerated with pnpm gen:exports.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (253)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThe PR migrates Admonition imports to the capitalized ChangesAdmonition entrypoint migration
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
🎭 Playwright Test Results (tanstack)Details
Flaky testsFeatures › queue-table-operations.spec.ts › Queue Table Operations - queue identity fixes › deleting a newly inserted row removes it from pending changes Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
joshenlim
left a comment
There was a problem hiding this comment.
Approving to unblock from FE
Braintrust eval report
|
Follow-up to #48344: collapses the two resolution paths for the Admonition module into one.
src/admonition.tsxwas a back-compat shim re-exportingsrc/Admonition/. Two ways to resolve one module is exactly what produced the macOS self-import bug fixed in #48344, and the local typecheck errors that #48374 worked around. This removes the shim and standardizes on the PascalCase subpath, matching every other export in the package.Changed:
ui-patterns/admonitionimports toui-patterns/Admonition(240.tsx, 5.mdx, 1.tsacross studio, docs, www, design-system, and lite-studio)'../admonition'imports back at the'../Admonition'directoryRemoved:
packages/ui-patterns/src/admonition.tsx, and its./admonitionentry in the exports map (regenerated withpnpm gen:exports)To test
grep -r "ui-patterns/admonition" --include='*.ts*'→ no hitspnpm test:case-hazards→ passespnpm typecheck→ all 15 tasks greenpnpm --filter studio run lint:ratchet→ passespnpm --filter ui-patterns vitest run src/Admonition→ 11 tests passSummary by CodeRabbit