Skip to content

feat(orama): use new UI components #7971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft

Conversation

aileenvl
Copy link

@aileenvl aileenvl commented Jul 9, 2025

Description

Validation

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

@aileenvl aileenvl requested review from a team as code owners July 9, 2025 19:07
Copy link

vercel bot commented Jul 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 18, 2025 7:57pm

Copy link
Member

@avivkeller avivkeller left a comment

Choose a reason for hiding this comment

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

Thank you so much!

I've left some comments, and I am here to help you implement anything you need help with, just ping me :-).

@avivkeller avivkeller marked this pull request as draft July 9, 2025 20:00
@avivkeller avivkeller changed the title DRAFT: Orama core updates feat(orama): use new UI components Jul 9, 2025
aileenvl and others added 5 commits July 9, 2025 19:24
Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: Aileen Villanueva Lecuona <aileenvl@gmail.com>
Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: Aileen Villanueva Lecuona <aileenvl@gmail.com>
Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: Aileen Villanueva Lecuona <aileenvl@gmail.com>
Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: Aileen Villanueva Lecuona <aileenvl@gmail.com>
Co-authored-by: Aviv Keller <me@aviv.sh>
Signed-off-by: Aileen Villanueva Lecuona <aileenvl@gmail.com>
Copy link
Contributor

Note

Your Pull Request seems to be updating Translations of the Node.js Website.

Whilst we appreciate your intent; Any Translation update should be done through our Crowdin Project.
We recommend giving a read on our Translation Guidelines.

Thank you!

Copy link

codecov bot commented Jul 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.13%. Comparing base (2a5d26f) to head (43c56bd).
Report is 9 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7971      +/-   ##
==========================================
- Coverage   73.73%   73.13%   -0.60%     
==========================================
  Files          96       95       -1     
  Lines        8365     8354      -11     
  Branches      219      218       -1     
==========================================
- Hits         6168     6110      -58     
- Misses       2196     2243      +47     
  Partials        1        1              

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

@avivkeller
Copy link
Member

Don't worry about the Playwright failures right now. Once this is ready for review, I'll push a commit updating the tests/component to interact with each other.

const collectionManager = new CollectionManager({
authJwtURL: 'https://staging.app.orama.com/api/user/jwt',
collectionID: '85f541b3-b691-4d3e-9874-e7b3b4630adb',
apiKey: 'p_JMpbuY216Pv0WCQFGijQLXwVIJzrf1dy55i3eCbNJDP',
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a test private API key. Remember to put that in a secret before merging.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@micheleriva does it use process.env keys? If so, can we reuse the ones from env variables we're already using?

image

We have these on Vercel.

Copy link
Contributor

Choose a reason for hiding this comment

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

You can use these env variables, but we'll have to provide different keys right before we merge

Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with maybe slightly different keys then to prevent disruption. can we suffix all with _NEW ie: NEXT_PUBLIC_ORAMA_ENDPOINT_NEW?

Copy link
Member

Choose a reason for hiding this comment

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

Why not duplicate the current ones to _OLD, change the env variables on main, and then put the new ones as the original variables?

Copy link
Member

Choose a reason for hiding this comment

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

Open an issue then and ask @nodejs/web-infra to take care of it 🙇

<Skeleton className={styles.searchButtonSkeleton} loading={true} />
),
});
const SearchButton = dynamic(
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need it to be a dynamic component? At the very elast can we flip ssr to true?

Copy link
Member

Choose a reason for hiding this comment

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

Since the new components has "use client" and assuming the components are compatible, we probably don't need the dynamic at all no?

Copy link
Member

Choose a reason for hiding this comment

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

@avivkeller shouldn't this SearchBox component be on the ui-components, or?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants