Skip to content

Conversation

@avivkeller
Copy link
Member

@avivkeller avivkeller commented Dec 22, 2025

Ref: #8376

This PR adds a mobile UI to our Orama, along with:

  • An Orama update patched a visual bug in the chat box
  • A missing onClick handler was added to Suggestions
  • Better transition times

Copilot AI review requested due to automatic review settings December 22, 2025 23:51
@avivkeller avivkeller requested review from a team as code owners December 22, 2025 23:51
@vercel
Copy link

vercel bot commented Dec 22, 2025

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

Project Deployment Review Updated (UTC)
nodejs-org Ready Ready Preview Dec 23, 2025 0:03am

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website @nodejs/web-infra

Please review the changes when you have a chance. Thank you! 🙏

@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.65%. Comparing base (1a7effb) to head (00ff230).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8443      +/-   ##
==========================================
+ Coverage   73.62%   73.65%   +0.03%     
==========================================
  Files         108      108              
  Lines        9193     9193              
  Branches      313      312       -1     
==========================================
+ Hits         6768     6771       +3     
+ Misses       2423     2420       -3     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds mobile UI support to the Orama search component, updates Orama packages to fix visual bugs, and adds a missing onClick handler to enable chat mode switching from search suggestions.

  • Updated @orama/core from 1.2.14 to 1.2.15 and @orama/ui from 1.5.2/1.5.3 to 1.5.4
  • Implemented mobile-responsive layouts with mobile-first CSS patterns
  • Added onClick handler to SearchSuggestions component to enable chat mode switching

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pnpm-lock.yaml Updated lock file to reflect Orama package version bumps (core: 1.2.15, ui: 1.5.4)
packages/ui-components/package.json Updated @orama/ui to 1.5.4 and @orama/core to 1.2.15
apps/site/package.json Updated @orama/ui to 1.5.4 and @orama/core to 1.2.15
packages/ui-components/src/Common/Search/Suggestions/index.tsx Added customizable wrapper and className props for mobile styling
packages/ui-components/src/Common/Search/Modal/index.module.css Implemented mobile-first modal layout with full-screen mobile view
packages/ui-components/src/Common/Search/Results/Hit/index.module.css Adjusted dark mode backgrounds for mobile (zinc-950) vs desktop (neutral-950)
packages/ui-components/src/Common/Search/Chat/Input/index.tsx Added custom wrapper and className props for mobile suggestion styling
packages/ui-components/src/Common/Search/Chat/Input/index.module.css Added mobile-optimized suggestion styles with horizontal scrolling
packages/ui-components/src/Common/Search/Results/Tabs/index.module.css Removed redundant duration-300 (already handled by transition-colors)
packages/ui-components/src/Common/Search/Chat/Trigger/index.module.css Removed redundant duration-300 (already handled by transition-colors)
packages/ui-components/src/Common/Search/Chat/Actions/index.module.css Removed redundant duration-300 (already handled by transition-colors)
apps/site/components/Common/Searchbox/index.tsx Added onClick handler to SearchSuggestions to switch to chat mode
apps/site/components/Common/Searchbox/ChatSources/index.module.css Changed mobile background from neutral-100 to white for consistency
apps/site/components/Common/Searchbox/ChatInteractions/index.module.css Adjusted scroll button position higher on mobile (bottom-36) to prevent overlap
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2025

📦 Build Size Comparison

Summary

Metric Value
Old Total Size 4.41 MB
New Total Size 4.30 MB
Delta -111.83 KB (-2.48%)

Changes

➕ Added Assets (37)
Name Size
.next/static/chunks/b4efa9ff898bc368.js 8.73 KB
.next/static/chunks/9aad90501c9e20ee.js 204.26 KB
.next/static/chunks/3edb6f551c36687e.js 419.84 KB
.next/static/chunks/83c06da35556cc8e.js 5.33 KB
.next/static/chunks/e83ab2708eadccdf.js 1.47 KB
.next/static/chunks/a1e92add5910f7a8.js 1.30 KB
.next/static/chunks/305c8a95ed06ece0.js 1.93 KB
.next/static/chunks/b7a7ce9b88577b70.js 2.32 KB
.next/static/chunks/88abef4ee56a508d.js 1.40 KB
.next/static/chunks/a1e73514a09a9147.js 1.79 KB
.next/static/chunks/c09327d14bef29cf.js 1.79 KB
.next/static/chunks/0d02407179345769.js 4.86 KB
.next/static/chunks/002ac4ad90259906.js 2.47 KB
.next/static/chunks/437083f5dc812f30.js 549.00 B
.next/static/chunks/d513b2a47b0bffa6.js 3.02 KB
.next/static/chunks/c39905ea433655e1.js 774.00 B
.next/static/chunks/9986b07c69818188.js 817.00 B
.next/static/chunks/3dc07a0b85f1f9fa.js 2.16 KB
.next/static/chunks/6facc22e155db799.js 961.00 B
.next/static/chunks/4172990a6958e56c.js 7.38 KB
.next/static/chunks/b9354296434adfe3.js 3.47 KB
.next/static/chunks/1d7a35c0845deeaf.js 1.33 KB
.next/static/chunks/fd7ca7f946b07004.js 2.31 KB
.next/static/chunks/2c054840a89249ae.js 949.00 B
.next/static/chunks/775b6472f1353ec9.js 401.00 B
.next/static/chunks/2959a4857673d71b.js 2.33 KB
.next/static/chunks/64879d66a520297a.js 929.00 B
.next/static/chunks/32057d290c2fee9b.js 4.58 KB
.next/static/chunks/aae43c477b0087de.js 6.55 KB
.next/static/chunks/087e2ecab0086231.js 4.65 KB
.next/static/chunks/a83b5646110ce9e1.js 408.00 B
.next/static/chunks/793f0394a71b42de.js 1.17 KB
.next/static/chunks/96e65b0790c1edf6.js 2.32 KB
.next/static/chunks/83213084dbfcde8d.js 8.73 KB
.next/static/chunks/531b80457a16e524.js 419.84 KB
.next/static/chunks/93680265f8e8e8aa.js 30.38 KB
.next/static/chunks/f7e3f17752087c30.js 419.84 KB
➖ Removed Assets (6)
Name Size
.next/static/chunks/47afef1542252926.js 5.62 KB
.next/static/chunks/11b06735117415a7.js 204.26 KB
.next/static/chunks/6b6141d1c58f1a26.js 485.96 KB
.next/static/chunks/257e0f8028a3bd51.js 485.96 KB
.next/static/chunks/83746613e033c5eb.js 27.28 KB
.next/static/chunks/0ec96befcc950ee9.js 485.96 KB

@ovflowd
Copy link
Member

ovflowd commented Dec 23, 2025

image

Paddings/margings on chat mode could be a bit better

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

SGTM!!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants