Repository navigation
refactor(ui): migrate shadcn primitives to Base UI - #783
Merged
Merged
Conversation
caorushizi
marked this pull request as ready for review
October 24, 2026 11:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将主界面、播放器和扩展的 shadcn 基础层迁移到
@base-ui/react@1.9.0,并将主界面、扩展弹窗及设置页的 Sonner 替换为 shadcn Base UI Toast。保留现有主题、控件尺寸、通知位置与产品流程。改动
components.json改为base-nova,官方 shadcn CLI 确认识别为 Base UI;删除全部 Radix/Vaul/Sonner 直接依赖及锁文件节点。render组合。toast.add(...),保留顶部居中、约 2.4 秒自动关闭,支持状态图标、关闭、堆叠展开、悬停/聚焦暂停、F6 键盘访问及滑动关闭。本地验证
git diff --check通过。pnpm security:js:0 项低/中/高/严重告警。pnpm one:verify:74 项任务映射和 mise 同步核验通过;Toast 后续提交未改动项目脚本。Windows 本地全量测试中,8 个工具链/路径相关文件的 25 项失败已在未改动的 master 上复现;本次前端相关测试均通过。
GitHub 验证
最新提交
b682070d42eebc6a701b27f34b8e25dec412c630的全部 15 项检查通过。关联 #771、#772,两条 Radix 升级 PR 按用户要求继续保持开放。
截图
实际统计说明组件,键盘打开后可访问隐私政策:
新的 Base UI Toast,使用本地回归样本触发: