Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

As a user, I can search using the search bar in the navigation (implemented with PostgreSQL queries) #349

Closed
3 tasks
QuincyLarson opened this issue Feb 23, 2020 · 16 comments
Assignees
Labels
Roadmap This is an issue/feature that is on the road map for the future

Comments

@QuincyLarson
Copy link
Contributor

QuincyLarson commented Feb 23, 2020

As a user I should be able to search through through chapters.

@allella
Copy link
Contributor

allella commented Feb 23, 2020

The backend logic of this has been discussed on #112

@allella allella changed the title Add Search bar to navigation with PostgreSQL queries As a user, I can search using the search bar in the navigation (implemented with PostgreSQL queries) Feb 23, 2020
@xarielx
Copy link
Contributor

xarielx commented Feb 27, 2020

@Zeko369 please let me know if you need help setting this up, are you planning to use Axios? We can coordinate at any time after 5 pm eastern time if you need help. Thanks

@Zeko369
Copy link
Member

Zeko369 commented Feb 27, 2020

We're not using axios, we have our own server/client implementation with cross-fetch.

This should be a part of fetchEvents on homepage, so you would actually want to use a redux store for it and everything.
But for simplicity you can just use cross-fetch and useState to query some events according to the search param for example api/v1/events?serach=FooBar

This is more of a API issue, I'll handle it in a today, but for now you can stub it.

@xarielx
Copy link
Contributor

xarielx commented Feb 27, 2020 via email

Ryuno-Ki added a commit to Ryuno-Ki/chapter that referenced this issue Oct 9, 2020
This will require a call to `makeStyles()` in the future.
Also, the logo is too large when compared to the Prototype.
The spacing could be improved, if the placeholder text would be
shorter.
I'd suggest to apply a Floating Label pattern in the future for
accessibility and UX reasons:
https://csslayout.io/patterns/floating-label

My React + Material UI knowledge isn't strong enough yet to do so
on my own.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
vkWeb pushed a commit that referenced this issue Oct 11, 2020
This will require a call to `makeStyles()` in the future.
Also, the logo is too large when compared to the Prototype.
The spacing could be improved, if the placeholder text would be
shorter.
I'd suggest to apply a Floating Label pattern in the future for
accessibility and UX reasons:
https://csslayout.io/patterns/floating-label

My React + Material UI knowledge isn't strong enough yet to do so
on my own.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
@Ryuno-Ki Ryuno-Ki mentioned this issue Oct 11, 2020
3 tasks
timmyichen added a commit that referenced this issue Oct 13, 2020
timmyichen added a commit that referenced this issue Oct 13, 2020
@allella
Copy link
Contributor

allella commented Mar 8, 2021

Here's a visual of the search bar in the navigation on the homepage mock-up.

@allella
Copy link
Contributor

allella commented Mar 8, 2021

#414 and the feat/search has much of the search bar mocked up in Material UI

@Ravichandra-C
Copy link
Contributor

@Zeko369 Can I work on this issue?

@Zeko369
Copy link
Member

Zeko369 commented Jan 2, 2022

@Ravichandra-C Hop on it

@Zeko369 Zeko369 assigned Ravichandra-C and unassigned Zeko369 Jan 2, 2022
@Ravichandra-C
Copy link
Contributor

Ravichandra-C commented Jan 11, 2022

@ojeytonwilliams @allella @Zeko369 , Should this be implemented with Full text search of Postgres? If not , Could you please guide me on how the backend logic for search api should be implemented?

@allella
Copy link
Contributor

allella commented Jan 11, 2022

I'll defer to Oliver or the earlier contributors on how to approach this one.

@Zeko369
Copy link
Member

Zeko369 commented Jan 11, 2022

@Ravichandra-C this project switched to prisma in the meantime, and there is a preview feature in prisma (needs to be enabled but then works) that allows you to do full-text-search from JS without writing any raw SQL.

Take a look prisma docs for the feature

@ojeytonwilliams
Copy link
Contributor

That's awesome, thanks for sharing it @Zeko369

@Ravichandra-C if you want to go ahead with this, go for it. It's a bit risky to rely on a preview feature, but if there are issues with search it won't render Chapter unusable.

@ojeytonwilliams
Copy link
Contributor

In the interests of getting the MVP done, I think this can move to Nice to Have. It's 100% a feature we want, but we can see how Chapter functions without it first and focus on discovery once we have something to discover.

@allella do you remember the approach re: Roadmap and so on? I was wondering if we should have MVP and Roadmap issues both open, but mutually exclusive. Right now we have some Roadmap issues like #434 which are finished and one #264 that is both MVP and Roadmap. This is a little counter-intuitive.

@allella
Copy link
Contributor

allella commented May 13, 2022

@ojeytonwilliams Quincy was tagging with Roadmap and closing to avoid the noise of having open issues.

I suppose we'd just re-open a subset of issues from the Roadmap when they are ready for implementation.

For the two issues you mentioned, I've re-tagged them to fit the pattern.

@ojeytonwilliams
Copy link
Contributor

So: closed Roadmap = nice to have, but for the future, open Roadmap = nice to have, and worth implementing if someone is interested, but low priority

Is that about right?

@moT01 moT01 added Roadmap This is an issue/feature that is on the road map for the future and removed MVP labels May 13, 2022
@allella
Copy link
Contributor

allella commented May 13, 2022

We moved the Search feature to the Roadmap since there will initially be about 10 fCC chapters testing the first iteration of the application.

@ojeytonwilliams Roadmap has been used to track issues which we want to at least come back to and not forget. So, there's no rating, but we can remove issues from the Roadmap on a future review.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Roadmap This is an issue/feature that is on the road map for the future
Projects
None yet
Development

No branches or pull requests

7 participants