-
Notifications
You must be signed in to change notification settings - Fork 106
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
feat: add responsive search functionality with sticky search bar and … #587
feat: add responsive search functionality with sticky search bar and … #587
Conversation
Hi @jayantbh , I've created this pull request that implements a sticky, responsive search bar with log navigation (Previous/Next) and highlighting of matching search terms. It includes mobile-friendly layout adjustments. Please review and let me know your feedback! Thanks! |
Hey, great PR! Additionally, going purely by the screenshot, I think we can use a bit softer colours. Even simply setting some opacity would help. Plus, adding some icons beside Previous/Next buttons could help too. If nothing is being searched, what happens then? |
|
||
import { FlexBox } from '@/components/FlexBox'; | ||
import { Line } from '@/components/Text'; | ||
import { ServiceNames } from '@/constants/service'; | ||
import { useSelector } from '@/store'; | ||
import { TextField, Button } from '@mui/material'; | ||
import './search-functionality.css'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this is technically supported, this isn't generally how styles are defined and used in this codebase. :)
Usually it's some kind of a CSS-in-JS approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this was resolved, but I'm not sure what was done to resolve it.
Note: This isn't a complete review. That'll come from the team. |
Recording.2024-10-11.203130.2.mp4 |
I think your chosen colors are fine, but I'm thinking 30% and 50% opacity for selected/unselected search matches. |
Hi @jayantbh, I've fixed the color opacity and hidden the button when no search results are found. Please review the changes. Recording.2024-10-13.234631.1.mp4 |
Hey @Ryadav0654 could you rebase your branch on main? |
Hey @Ryadav0654, just following up on this. :) |
Hi @jayantbh, Thanks for following up! I'm still working on it and will provide an update soon. Appreciate your patience! |
c951330
to
f491a5b
Compare
Title:
feat: add responsive search functionality with sticky search bar and navigation
Linked Issue(s)
fixes: #556
Acceptance Criteria fulfillment
Proposed changes (including videos or screenshots)
search-functionality.css
file for styling the search and navigation components, ensuring responsiveness with media queries.Further comments
This change was made to improve the log searching experience within the application, eliminating the need to rely on browser-native search functionality. The sticky search bar ensures the search and navigation controls are always available, while responsive behavior enhances mobile usability.