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

Search mode categorization #474

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

ashesbloom
Copy link

@ashesbloom ashesbloom commented Jan 13, 2025

📝 Description

  1. Created a basic search mode categorization
    • added data-category to all the children of search-with-container (index.html)
    • added toggleSearchEngines function in script.js which hides the search options based on search mode
  2. Fixed 'Search With' typo
  3. added Gitignore

⚠️ Important Note ⚠️

Improvements Needed:

  1. Selection Issue

    • When the Search mode changes, the selection should return to default.
  2. Animation Enhancement

    • Animations must be added and polished to improve the overall user experience.

📸 Screenshots / 📹 Videos

Preview.359.mp4

🔗 Related Issues

✅ Checklist

  • I have read and followed the Contributing Guidelines.
  • I have tested my changes by installing them as an extension (not just running via localhost) to ensure it builds, installs, and works as expected.
  • I have tested these changes in at least Chrome and Firefox (other browsers if applicable).
  • Attached visual evidence of changes (screenshots or videos) if applicable.

@prem-k-r prem-k-r added enhancement New feature or request work in progress The issue is on progress to fix labels Jan 13, 2025
@Thunder-Blaze
Copy link
Contributor

I can add the animations, can you explain the 1st one in a bit more detail

@prem-k-r

This comment was marked as outdated.

@Thunder-Blaze
Copy link
Contributor

Oh then I'll be able to add this too 👍🏻
But I'll need a day, since I'm traveling today back to college 🥲

@Thunder-Blaze
Copy link
Contributor

I worked on the 1st problem
umm its working just fine I think
but translations are overwritting again 😢 when I set "search on" as default

any suggestions how to fix ?
current progress -> https://github.com/Thunder-Blaze/MaterialYou-NewTab/tree/Search-Mode-Categorization
once complete @ashesbloom I'll make a PR in your repo

@ashesbloom
Copy link
Author

ashesbloom commented Jan 16, 2025

I worked on the 1st problem umm its working just fine I think but translations are overwritting again 😢 when I set "search on" as default

any suggestions how to fix ? current progress -> https://github.com/Thunder-Blaze/MaterialYou-NewTab/tree/Search-Mode-Categorization once complete @ashesbloom I'll make a PR in your repo

@Thunder-Blaze I Just finished the patch a few seconds ago and then read your comment, I was also facing the same issue and I don't think it can be fixed unless the whole structure is tweaked, because z-index, overflow nothing seems to be working so I intertwined the animation

@ashesbloom
Copy link
Author

ashesbloom commented Jan 16, 2025

@prem-k-r ready to be pushed! 🎉

#❇️Fixes

  • When the Search mode changes, the selection returns to the previously selected option.
    (if left unselected default engines are 1 on search with and 5 on search on)
  • Transitions and animations were added for search options.
  • Fixed width issue when the mode is changed (bug).

#📸Preview

Preview.474.mp4

@Thunder-Blaze
Copy link
Contributor

@prem-k-r ready to be pushed! 🎉

#❇️Fixes

  • When the Search mode changes, the selection returns to default i.e. first selection.
  • Transitions and animations were added for search options.
  • Fixed width issue when the mode is changed (bug).

#📸Preview

Preview.474.mp4

I made a PR, check it
The selection will return to last used one in it

optimized default selection by utilizing the local storage method!
@ashesbloom
Copy link
Author

@prem-k-r ready to be pushed! 🎉

#❇️Fixes

  • When the Search mode changes, the selection returns to default i.e. first selection.
  • Transitions and animations were added for search options.
  • Fixed width issue when the mode is changed (bug).

#📸Preview
Preview.474.mp4

I made a PR, check it The selection will return to last used one in it

I just finished testing works perfectly well done!
merged!

@prem-k-r
Copy link
Collaborator

prem-k-r commented Jan 16, 2025

Great work guys!
can you please make Search With and Search On translatable

umm, also maybe we can add ripple effect on button click

@Thunder-Blaze
Copy link
Contributor

Great work guys! can you please make Search With and Search On translatable

umm, also can we add ripple effect on button click

@ashesbloom are you working on it or should I finish it ?

@ashesbloom
Copy link
Author

ashesbloom commented Jan 17, 2025

Great work guys! can you please make Search With and Search On translatable
umm, also can we add ripple effect on button click

@ashesbloom are you working on it or should I finish it

@Thunder-Blaze sure go ahead I am switching to a new issue, will come back time to time though!

@Thunder-Blaze
Copy link
Contributor

@Thunder-Blaze sure go ahead I am switching to a new issue, will come back time to time though!

ok 👍🏻

@Thunder-Blaze
Copy link
Contributor

@ashesbloom Done, you can check the PR

@prem-k-r I went with simple CSS riple effect otherwise there would've been lots of useless JS added just for one ripple animation

@prem-k-r prem-k-r removed the work in progress The issue is on progress to fix label Jan 17, 2025
Copy link
Collaborator

@prem-k-r prem-k-r left a comment

Choose a reason for hiding this comment

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

Issues:

  • If clicked anywhere then page reloaded, the cursor starts from searchbar which is nice but Searchbar outline is not active
  • (Ignorable) clicking effect also there in vertical line
  • (Ignorable) sometimes there is issue when hide search engine is toggled, not always and resolved when page reloaded

prem-k-r
prem-k-r previously approved these changes Mar 5, 2025
@itz-rj-here
Copy link
Collaborator

Issues:

  • If clicked anywhere then page reloaded, the cursor starts from searchbar which is nice but Searchbar outline is not active
  • (Ignorable) clicking effect also there in vertical line
  • (Ignorable) sometimes there is issue when hide search engine is toggled, not always and resolved when page reloaded

@prem-k-r can you like record and show me the ignorable issues? So i can try to fix it.

@prem-k-r prem-k-r self-requested a review March 6, 2025 09:00
@itz-rj-here
Copy link
Collaborator

Default search engine is missing also i am not seeing the dark mode working properly...

Copy link
Collaborator

@itz-rj-here itz-rj-here left a comment

Choose a reason for hiding this comment

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

changes required

@prem-k-r
Copy link
Collaborator

prem-k-r commented Mar 6, 2025

Issues:

  • If clicked anywhere then page reloaded, the cursor starts from searchbar which is nice but Searchbar outline is not active
  • (Ignorable) clicking effect also there in vertical line
  • (Ignorable) sometimes there is issue when hide search engine is toggled, not always and resolved when page reloaded

@prem-k-r can you like record and show me the ignorable issues? So i can try to fix it.

Recording.2025-03-06.151938.mp4

And
image
suppose bing selected
Toggle to hide
choose any from different category, say wikipedia
Change back toggle to show search engines
notice that still in search with option without any radio selected, but in reality it's wikipedia selected
image

refreshing at any step wont cause this issue

@prem-k-r
Copy link
Collaborator

prem-k-r commented Mar 6, 2025

Default search engine is missing also i am not seeing the dark mode working properly...

ss/recording pls, I cant replicate this

@itz-rj-here
Copy link
Collaborator

Default search engine is missing also i am not seeing the dark mode working properly...

ss/recording pls, I cant replicate this

Later. Time to pray. 🙂

@prem-k-r prem-k-r removed the work in progress The issue is on progress to fix label Mar 6, 2025
@prem-k-r prem-k-r requested a review from itz-rj-here March 8, 2025 06:44
@itz-rj-here
Copy link
Collaborator

When the zoom size is 75%, the mic icon looks misplaced.
image

image
This code is the vertical line thingy. now it's for you what can you do to fix it's issue. Ig we may need to remove the vertical line from the searchWithCont code then we can do something with it.

The search with button doesn't shows cursor to pointer

When we hover to the vertical line, sometimes the search with button highlights like it's hovered. But the mouse is hovered to the vertical line.

image
Now what is this 0.0

@prem-k-r
Copy link
Collaborator

prem-k-r commented Mar 8, 2025

When the zoom size is 75%, the mic icon looks misplaced.

Ah, didnt noticed.. this issue is in main branch

image This code is the vertical line thingy. now it's for you what can you do to fix it's issue. Ig we may need to remove the vertical line from the searchWithCont code then we can do something with it.

The search with button doesn't shows cursor to pointer

fixed

When we hover to the vertical line, sometimes the search with button highlights like it's hovered. But the mouse is hovered to the vertical line.

will see if can do anything to fix the vertical line

image Now what is this 0.0

Search with is clickable users might not know, thats why

@prem-k-r
Copy link
Collaborator

prem-k-r commented Mar 8, 2025

@XengShi feedback please

@XengShi
Copy link
Owner

XengShi commented Mar 8, 2025

@XengShi feedback please

Looks great, but the animations need some refinement.

@prem-k-r
Copy link
Collaborator

prem-k-r commented Mar 8, 2025

@XengShi feedback please

Looks great, but the animations need some refinement.

Yeah, the slide-in animation is little bit not going well with the ui,
I can't help much in this regard :(
you guys can try to refine it :)

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

Successfully merging this pull request may close these issues.

Bug: Typo error and UI Enhancement for Search Bar Dropdowns
5 participants