Repository navigation
✨ feat: migrate to @lobehub/ui/base-ui components - #32
Merged
Merged
Conversation
- Skeleton, Tooltip, TooltipGroup, Segmented, Button and Text from @lobehub/ui/base-ui - NoData renders the root Empty instead of antd Empty - enforce the restrictedImports preset from @lobehub/ui/eslint - raise the @lobehub/ui peer range to ^5.54.0
|
👍 @Innei Thank you for raising your pull request and contributing to our Community. 非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。 |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
commit: |
The base-ui tooltip viewport caps width at 318px, pads and clips its content, and inherits a 12px label font.
|
❤️ Great PR @Innei ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! 项目的成长离不开用户反馈和贡献,感谢您的贡献! |
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 3, 2026
## [Version 5.7.0](v5.6.0...v5.7.0) <sup>Released on **2026-10-03**</sup> #### ✨ Features - **misc**: Migrate to @lobehub/ui/base-ui components. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Migrate to @lobehub/ui/base-ui components, closes [#32](#32) ([f5c337a](f5c337a)) </details> <div align="right"> [](#readme-top) </div>
This branch had an error being deployed
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.
Summary
Part of moving the org libraries onto the same Base UI components lobe-chat uses.
Skeleton.Block(16 loading states) → base-uiSkeleton.Tooltip/TooltipGroup(root and antd) → base-ui;BenchmarkScatterChart/BenchmarkRankingChartkeep their transparent-container tooltip styles.Segmented(BenchmarkScatterChartmetric switch) → base-uiSegmented.Typography.Paragraph(legend items, chart tooltips, demos) → base-uiText.Button(Legend/ScrollButton) → base-uiButton.Empty(common/NoData) → rootEmpty, with the{ title, desc }shape mapped totitle/descriptionand a lucideInboxicon..eslintrc.jsenforces therestrictedImportspreset from@lobehub/ui/eslint(ESLint 8 needs the preset's twoantdpath entries merged).@lobehub/uipeer range^4.3.3→^5.54.0; devDependency →^5.54.0.Skeleton.Blockto base-uiSkeleton.Verification
eslint "{src,tests}/**/*.{js,jsx,ts,tsx}": 0 problems.tsc --noEmit: pass.vitest run: 24/24 pass (2 failed before the mock update, as expected).Segmentedrenders and the point hover tooltip shows the ChartTooltip card without an extra container. The legend scroll button was not exercised in the docs (a 1:1Buttonswap with the same props, type-checked).Review follow-up
styles.contentnow removes the cap and padding and restorescolorText/fontSize. Measured in the docs before (max-width: 318px; padding: 4px 8px; overflow: clip; 12px) and after (none; 0; visible; 14px).Acceptance
https://app.lobehub.com/acceptance/47cf79c9-421a-46cf-81f3-2be063f87e8a
Verified in LobeHub (canary
a564091cdf, local full-stack dev) with all four libs installed from tarballs packed at the PR heads (tts450f7ce, chartse361635, iconse57ee783, editor18c9d6c). Result: 17 passed, 2 blocked (not reachable in lobe-chat), 0 failed.NoData(Inbox + title + description), and the loading skeleton shows while the stats request is held. Noant-*classes.Legend/ScrollButton(no lobe-chat chart setsenableLegendSlider) and the benchmark tooltip clamp (no rating/benchmark data locally). Both are covered only by the docs checks above.