Skip to content

Conversation

@divyamtayal
Copy link
Member

@divyamtayal divyamtayal commented Dec 11, 2020

Fixes #5927

Short description of what this resolves:

Move the search feature to the top bar and substitute "Browse Events" with "Search Events"

Changes proposed in this pull request:

  • Implement the search in the place of "Browse Events"
  • Use a similar style and show "Search Events"
  • Expand the search box similar to GitHub when the user enters something
  • Delete the main search bar below the header
  • Show the top search bar on the same pages as Browse Events at the moments (do not change anything here)
  • Implement search box on Mobile view

Screenshot

Desktop
Screenshot from 2020-12-13 03-22-35

Mobile(sideBar) Mobile(Navbar Search Icon) Mobile(Navbar Search Icon(on click))
Screen Shot 2020-12-13 at 03 21 44 !Screen Shot 2020-12-13 at 23 19 24 Screen Shot 2020-12-13 at 23 19 27

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@vercel
Copy link

vercel bot commented Dec 11, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/bazf13va4
✅ Preview: https://open-event-frontend-git-search-bar-5927.eventyay.now.sh

@codecov
Copy link

codecov bot commented Dec 11, 2020

Codecov Report

Merging #6007 (40647e2) into development (6c78c0d) will increase coverage by 0.00%.
The diff coverage is 18.18%.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #6007   +/-   ##
============================================
  Coverage        23.45%   23.46%           
============================================
  Files              511      512    +1     
  Lines             5478     5490   +12     
  Branches            67       67           
============================================
+ Hits              1285     1288    +3     
- Misses            4176     4185    +9     
  Partials            17       17           
Impacted Files Coverage Δ
app/components/side-bar.js 78.94% <0.00%> (-14.81%) ⬇️
app/components/nav-bar.js 25.00% <20.00%> (-8.34%) ⬇️
app/controllers/application.js 43.75% <33.33%> (-2.41%) ⬇️
app/controllers/public/session/view.js 0.00% <0.00%> (ø)
app/controllers/events/view/videoroom/list.js 0.00% <0.00%> (ø)
...able/cell/events/view/videoroom/cell-stream-url.js 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c78c0d...40647e2. Read the comment docs.

@mariobehling
Copy link
Member

mariobehling commented Dec 12, 2020

Thank you. Please change the following:

  • Switch search one position to the left
  • Do not keep a straight line to the left
  • Do not keep a border for the search box
  • Add a search lens
  • Expand search box length to the left when the user clicks into it
  • Also add more space above "Featured Events" - compare to "Upcoming Events" (Ensure the same space as above Upcoming Events)

Screenshot from 2020-12-12 01-40-57

@divyamtayal
Copy link
Member Author

@mariobehling Pls have a look

@iamareebjamal
Copy link
Member

Please use #fafafa as bg color. Make default size of search bar smaller and don't expand it too much. GitHub expands it to show suggestions, we are not doing that currently.

@iamareebjamal
Copy link
Member

And it should also display and work on mobile

@iamareebjamal
Copy link
Member

Great, however I think mobile view should also contain the search bar in NavBar, or people won't notice it

@divyamtayal
Copy link
Member Author

Then pls let me know where should I implement that. Bcz no space is in navbar

@iamareebjamal
Copy link
Member

image

Lot of space

@iamareebjamal
Copy link
Member

If there is no space, do what eventbrite does

@mariobehling
Copy link
Member

Yes, please implement it in the top menu bar. Thanks

@mariobehling
Copy link
Member

Please also:

  • Make the expanded version of the search box 20px longer
  • Make the lens icon in the same color as the "Search Events" font
    Screenshot from 2020-12-13 08-47-37

@divyamtayal
Copy link
Member Author

@iamareebjamal Pls have a look

@vercel
Copy link

vercel bot commented Dec 13, 2020

Deployment failed with the following error:

Invalid request: `target` should be string.

@iamareebjamal
Copy link
Member

Search icon still black. Can't click on cross till I type something

@divyamtayal
Copy link
Member Author

Search icon still black. Can't click on cross till I type something

cross icon is working for me

@divyamtayal
Copy link
Member Author

@iamareebjamal I have made the changes and cross icon is working

Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 left a comment

Choose a reason for hiding this comment

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

look nice to me.
only github actions / lint annotations needs to fix.

@divyamtayal
Copy link
Member Author

look nice to me.
only github actions / lint annotations needs to fix.

lint is not giving any error

Copy link
Contributor

@maze-runnar maze-runnar left a comment

Choose a reason for hiding this comment

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

Looks good 👍🏻

@iamareebjamal iamareebjamal changed the title Front Page: Move Search Function to Top Bar feat: Front Page: Move Search Function to Top Bar Dec 14, 2020
@auto-label auto-label bot added the feature label Dec 14, 2020

@action
toggleSearchBar() {
document.querySelector('#mobile-bar').classList.toggle('show-bar');
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 using ember for this? Merging this as it has been too long, but please create a follow up PR to change DOM manipulation to ember

@iamareebjamal iamareebjamal merged commit ebadb84 into fossasia:development Dec 14, 2020
@iamareebjamal
Copy link
Member

Great job @daretobedifferent18

Please follow up with a PR with minor change I mentioned

@divyamtayal
Copy link
Member Author

@iamareebjamal also should I do #6017 with it bcz I think it will be easy to do it together bring search bar there as well

@iamareebjamal
Copy link
Member

Yes

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.

Front Page: Move Search Function to Top Bar

5 participants