-
Notifications
You must be signed in to change notification settings - Fork 165
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 is broken for non-logged in users #802
Comments
Assign it to me |
@srish If a non-logged in user should not have access to projects, creators and tags, I think it would be a good idea to simply disable or remove the search bar entirely. Alternatively, we can leave the search bar and when a non-logged in user clicks on it they see a pop-up that says “Sign Up to view projects” and a “Sign UP” CTA. What do you think? |
I think we should disable the search for non logged in users, except if we are to make search through feature project only. |
@yokwejuste @Temabo Your suggestions makes sense and I second that we remove the search for unauthenticated users. We already have a set of projects showing up on the hero page and there is a CTA reading - "Login to view more". So removing the search completely should be fine. |
@srish I think the search bar should not be removed for none login user when they search and see the platform have the project they are looking for, when they click on view a modal will pop up asking them to sign in or sign up to view in that case this will encourage to take the actions |
From a developer perspective, accessing projects on the site necessitates a request to the Additionally, the presence of the bar enhances the overall design aesthetics. It might be worth considering implementing a feature for "global projects" that can be viewed even when users are not logged in, thus enhancing the accessibility and visibility of projects to a broader audience. Something like sample projects |
Hmm, interesting. |
Not really, @khallow7. I believe users should have insight into the app's functionality before committing to an account. Implementing a feature showcasing sample projects is crucial in this context. It can serve as a compelling incentive for users to engage with the platform. Regarding login, these sample projects should be visible, but users should be prompted to log in to access additional content. |
For insights into the app's functionality, there's a "featured projects section" just below the hero section to do that exact thing. |
Roger that! Design wise, I think this feature shouldn't be removed. Maybe let's prompt the user to login first once tries doing this action, then redirect back to this page. How about that @khallow7? |
HI @khallow7 @coderatomy @srish i redesigned a landing page header concerning what you discussed . i personally think the long search bar is not needed, i decided to make it small i also replaced the profile logo for a CTA button (Sign in). then instead of the long search bar i think the nav bar would direct users to where they need to go on the landing page. |
It would be super useful if we could do some A/B testing to test which works the best with users. |
@khallow7 what do you think ? |
@coderatomy pls any suggestion |
Nice work @Marhiposa. Am curious to know if the search bar won't show up once a user is logged. Am not privileged to decide. But this LGTM, thanks alot. |
Ohh! I see. I think this is better looking and pretty straight forward. Though I agree with @khallow7, an A/B test can help in such a scenario |
I see it from your POV as well, This way non-logged in users get an overview of a few of the projects they would have access to after they sign up. |
@srish @khallow7 I designed what I think the Search Feature should look like for non-logged in users. Exploration 1: Showing a brief overview of what the search results are but restricting them from looking further by prompting them to log in or sign up. Exploration 2: Having a pop up come up when they try to make a search. I made this variation because I figured that the first may not be as simple as this to code and may require the seach query to be pulled everytime. Also, the copy is more generic and can be used for any search category (Projects, Creators or Tags) Please let me know your thoughts on which design fits better. Here's the link to the design file. https://www.figma.com/file/nyUduEpFmVZ05xA8rt28Mt/Search-Feature-For-Non-Logged-In-Users?type=design&node-id=0%3A1&mode=design&t=iJYzp3aXqBCLdeOf-1 |
@GloriaKaduru very clean design! I am leaning towards the first exploration, I believe it works. Although, Zubhub buttons are rounded with a corner radius of 20px |
@Temabo You are right That is Ux standard I think |
wow Good job @GloriaKaduru look really Amazing but if you can decrease the font size on the first screen "log in or sign ........." text it will look more Amazing and the second screen log in to your zubhub account..........., you can remove zubhub in the sentence and also decrease the size |
@GloriaKaduru I really like your design and the first exploration seems best because it prompts the user to sign in. |
Hey @khallow7 I just read through all the comments and found out that the problem 1 that you stated has not been worked on. If the user is logged in, I believe it's a better experience to show these suggestions during typing as well. |
|
Nice work @maureen-oz , but there is already an agreed design for this, which is the design @srish confirmed here: https://github.com/unstructuredstudio/zubhub/issues/802#issuecomment-1758796239 And so she also said it is ready to be picked by a developer on the Zulip chat. Hence that's the design we are to go with. |
Hey @benndip are you working on this? |
Yes @yokwejuste , I am will be opening a PR soon |
Sorry @benndip and @yokwejuste. Perhaps you saw my comment above. Let's try to follow along with each other. Already pushed a fix for this |
Oh yeah @coderatomy , I saw your comment already, I think like @srish said, it's okay to have multiple PR to an issue, so that we can converse and compare the best that fits and go with it. Great work @coderatomy |
Alright. But I hope you implementing a different design of the two? |
Well, it's the same accepted design, which @srish said, but with a different logic to what you have. |
Update the PR here #825 and made the |
I have merged route protection via #825 @coderatomy We will need to add some more routes and exclude some - can be done later. Eg |
@coderatomy I've reverted #918 Since the feature was not working as intended on production. Upon searching as non logged in user, we were not seeing first few results and just showing Oops error! We need to reconsider what search means for logged in and non-logged in users since there are some more nuance: When you interact with search bar as non logged in user, following things happen:
The overarching question is how should this UX work? @srish and I are discussing this and will paste the expected UX flow here. Since we have the required components now, it should be trivial to do this with some alterations to #918 |
After discussing with @tuxology, this is the expected flow: In a non-logged state:
|
Alright. I have seen all the comments. Let me push an update |
* style page and add login card * fix misaligned login form in search results * change styles for creator search * implement no results found design * make results one row * made some major refactors Issue: #802 Signed-off-by: Ndibe Raymond Olisaemeka <rolisaemeka-ctr@wikimedia.org>
* style page and add login card * fix misaligned login form in search results * change styles for creator search * implement no results found design * make results one row * made some major refactors Issue: #802 Signed-off-by: Ndibe Raymond Olisaemeka <rolisaemeka-ctr@wikimedia.org> Co-authored-by: Ndibe Raymond Olisaemeka <rolisaemeka-ctr@wikimedia.org>
* style page and add login card * fix misaligned login form in search results * change styles for creator search * implement no results found design * make results one row * made some major refactors Issue: #802 Signed-off-by: Ndibe Raymond Olisaemeka <rolisaemeka-ctr@wikimedia.org> Co-authored-by: Ndibe Raymond Olisaemeka <rolisaemeka-ctr@wikimedia.org>
*Issues
Problem 1: When searching for projects project suggestion menu does not show up
Problem 2: Searching for creators leads to blank page
Check the embedded video for more clarity
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Solution 1. Each of the three options should direct users to the corresponding project, creator, or tag search results.
Solution 2. Disable the search bar completely and not have non logged in users have access to key features.
Solution 3. Restrict search to first 4-5 results. Then below the page, show "Log in to view more" button.
Need input from project maintainers & designers which option might be better.
Screenshots
Recording.2023-10-05.224655.mp4
The text was updated successfully, but these errors were encountered: