Skip to content

⬆️ chore(deps): bump @lobehub/ui to 5.15.1#15214

Merged
Innei merged 1 commit into
canaryfrom
chore/bump-lobehub-ui-5.15.1
May 25, 2026
Merged

⬆️ chore(deps): bump @lobehub/ui to 5.15.1#15214
Innei merged 1 commit into
canaryfrom
chore/bump-lobehub-ui-5.15.1

Conversation

@Innei

@Innei Innei commented May 25, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔀 Description of Change

Bump `@lobehub/ui` from `^5.14.1` to `^5.15.1`.

5.15.1 migrates `ContextMenu`/`DropdownMenu` to base-ui primitives and tightens the menu density. The relevant breaking detail for our code is in the menu popup style: it now self-trims its block padding whenever a header/footer slot is present —

```css
&[data-has-header] { padding-block-start: 0; }
&[data-has-footer] { padding-block-end: 0; }
```

The Plus action menu (`src/features/ChatInput/ActionBar/Plus/index.tsx`) feeds header/footer slot content via `useToolsControls` and `useKnowledgeControls`. Those contents used `margin-block-*: -4px` to bleed into the popup's 4px block padding. With that padding now 0, the negative margins push content outside the popup and the new `popupWithSlots` rule `overflow: hidden` clips it.

Dropped the now-obsolete compensations:

  • `Tools/useControls.tsx` — `searchBox.margin-block-start: -4px`
  • `Tools/useControls.tsx` — `statsFooter.margin-block-end: -4px`
  • `Knowledge/useControls.tsx` — `viewMore.margin-block-end: -4px`

Inline-axis compensations are kept — popup inline padding is unchanged.

🧪 How to Test

Open the chat input `+` menu:

  • Hover the Tools entry → check the submenu's search bar (header) sits inside the popup with normal spacing, no clipping.

  • In the same submenu, scroll to bottom → check the stats footer (pin/auto counts + settings) is fully visible.

  • Hover the Knowledge Base entry → check the "View more" button (footer) sits flush at the bottom without being cut off.

  • Tested locally

  • Added/updated tests

  • No tests needed

5.15.1 adds `&[data-has-header] { padding-block-start: 0 }` and
`&[data-has-footer] { padding-block-end: 0 }` on the menu popup, so the
4px block padding the slot content used to bleed into no longer exists.
Drop the `margin-block-*: -4px` compensations on the Plus menu's tools
search box, stats footer, and knowledge "view more" button to avoid
content being clipped by the popup's `overflow: hidden`.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Innei, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@vercel

vercel Bot commented May 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment May 25, 2026 12:51pm

Request Review

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. dependencies Pull requests that update a dependency file labels May 25, 2026
@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.93%. Comparing base (8b96d14) to head (ea9255e).

Additional details and impacted files
@@           Coverage Diff            @@
##           canary   #15214    +/-   ##
========================================
  Coverage   70.93%   70.93%            
========================================
  Files        3153     3153            
  Lines      314704   314704            
  Branches    27741    28659   +918     
========================================
  Hits       223242   223242            
  Misses      91294    91294            
  Partials      168      168            
Flag Coverage Δ
app 61.82% <ø> (ø)
database 92.20% <ø> (ø)
packages/agent-runtime 80.48% <ø> (ø)
packages/builtin-tool-lobe-agent 19.87% <ø> (ø)
packages/context-engine 84.13% <ø> (ø)
packages/conversation-flow 91.28% <ø> (ø)
packages/file-loaders 87.89% <ø> (ø)
packages/memory-user-memory 74.99% <ø> (ø)
packages/model-bank 99.99% <ø> (ø)
packages/model-runtime 83.89% <ø> (ø)
packages/prompts 72.60% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/types 35.07% <ø> (ø)
packages/utils 88.47% <ø> (ø)
packages/web-crawler 88.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 68.00% <ø> (ø)
Services 54.65% <ø> (ø)
Server 72.25% <ø> (ø)
Libs 56.77% <ø> (ø)
Utils 85.96% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Innei Innei merged commit 2ee53bc into canary May 25, 2026
46 of 47 checks passed
@Innei Innei deleted the chore/bump-lobehub-ui-5.15.1 branch May 25, 2026 13:11
hardy-one pushed a commit to hardy-one/lobehub that referenced this pull request May 27, 2026
5.15.1 adds `&[data-has-header] { padding-block-start: 0 }` and
`&[data-has-footer] { padding-block-end: 0 }` on the menu popup, so the
4px block padding the slot content used to bleed into no longer exists.
Drop the `margin-block-*: -4px` compensations on the Plus menu's tools
search box, stats footer, and knowledge "view more" button to avoid
content being clipped by the popup's `overflow: hidden`.
Innei added a commit that referenced this pull request Jun 1, 2026
…#15391)

The skill market dropdown's settings button navigates to /settings/skill
but does not close the controlled dropdown first, so the popup persists
after the trigger has unmounted (LOBE-9852).

Also restore the negative margins on the skill market footer (regressed
in #15214 when bumping @lobehub/ui to 5.15.1) so the stats row aligns
with the dropdown's outer padding.

Apply the same defensive close-before-navigate to ModelSwitchPanel:
- ListItemRenderer no-provider / empty-model rows previously navigated
  without calling onClose at all.
- Footer and GenerationListItemRenderer now close before navigate
  instead of after, for a consistent ordering.

Closes LOBE-9852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant