Skip to content
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

Feature/ORM-1581 #22

Merged
merged 20 commits into from
Aug 5, 2024
Merged

Feature/ORM-1581 #22

merged 20 commits into from
Aug 5, 2024

Conversation

g-francesca
Copy link
Contributor

@g-francesca g-francesca commented Aug 2, 2024

  • Styling searchbox for desktop, implementing slide-in chat container and summary button used as trigger
  • handle responsive
  • add footer
  • refactoring the extract-scss-to-js function to:
    • avoid the abstracts styles to include the :export directive, that would be otherwise included in the compiled CSS. The :export is now included in a temporary file that is created during the conversion process and it's deleted at the end of the process
    • automatically update the scss theme maps, so we do not have to do it manually every time
  • add modal component separate the layout layer from the search box
  • minor updates to doc

Preview

Copy link

linear bot commented Aug 2, 2024

ORM-1581 Desktop: implement search as modal

We have covered the mobile style when the modal is open (it takes full width/height on mobile), we have to style modal on desktop (>1024px)

Copy link

vercel bot commented Aug 2, 2024

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

Name Status Preview Comments Updated (UTC)
orama-ui-components-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2024 0:19am

@g-francesca g-francesca requested a review from rjborba August 2, 2024 12:27
Copy link
Collaborator

@rjborba rjborba left a comment

Choose a reason for hiding this comment

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

Nice!

Coulpe of comments, but just for we to discuss it later

isScrolling = false
prevScrollTop = 0
scrollTarget = 0

handleFocus = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

showClearChat={false}
/>
<orama-search class={`${globalContext.currentTask === 'search' ? 'section-active' : 'section-inactive'}`} />
{this.windowWidth <= 1024 && (
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't we be using mediaquery insterad?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rjborba do you mean to hide/show this element via CSS only? Or just to replace 1024 with a variable breakpoint?
I'm using JS here so we can avoid having two times the same element (orama-chat) in the dom.

This is basically the current

orama-modal
 |_orama-search
 |_**orama-chat** (to show on mobile only)
orama-sliding-panel (this is the slide in panel that we want to display on desktop only)
 |_**orama-chat** (desktop only)

@g-francesca g-francesca merged commit 2c67ad5 into main Aug 5, 2024
3 checks passed
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.

2 participants