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

feat(website): SSR on initial load of search page #2290

Merged
merged 35 commits into from
Jul 22, 2024
Merged

Conversation

theosanderson
Copy link
Member

@theosanderson theosanderson commented Jul 12, 2024

This adds the hybrid approach to the search page we discussed a while back, where the site renders the search by SSR on first load and then (as currently) in the client on further changes.

The SSR improvements also include the fields in the menu being populated immediately, rather than with a delay as previously

Also resolves #2024 (page number not being in URL), also resolves #2302 (bug in date rendering in field)

preview URL: https://search-ssr.loculus.org/

@theosanderson theosanderson changed the base branch from main to refactor-search July 12, 2024 07:46
@theosanderson theosanderson added the preview Triggers a deployment to argocd label Jul 12, 2024
@theosanderson theosanderson marked this pull request as draft July 12, 2024 07:59
Base automatically changed from refactor-search to main July 12, 2024 12:41
@theosanderson theosanderson changed the title wip: search initial SSR feat(website): SSR on initial load of search page Jul 12, 2024
@theosanderson theosanderson marked this pull request as ready for review July 12, 2024 21:10
@theosanderson theosanderson added the review please PR waiting for final review label Jul 16, 2024
@anna-parker
Copy link
Contributor

Hi Theo! I just tested this out a bit and thanks for fixing the bug in the date picker! However, I think I found a new bug this time in the mutation search, in CCHF I am unable to add mutations, I add a mutation to the search field - it comes up in blue but when I select it it disappears - currently main does not have this issue. I don't know why this is happening - could you have a look?

@theosanderson
Copy link
Member Author

Thanks! Will do!

@theosanderson theosanderson marked this pull request as draft July 17, 2024 20:19
@theosanderson theosanderson removed the review please PR waiting for final review label Jul 17, 2024
@theosanderson
Copy link
Member Author

Converting to draft til I've had the chance to fix the issue @anna-parker raised

@theosanderson theosanderson added the format_me Triggers github_actions to format website code on PR label Jul 21, 2024
@theosanderson theosanderson marked this pull request as ready for review July 21, 2024 18:41
@theosanderson
Copy link
Member Author

Thanks @anna-parker - the issue you identified should be fixed

@theosanderson theosanderson added the review please PR waiting for final review label Jul 22, 2024
Copy link
Contributor

@anna-parker anna-parker left a comment

Choose a reason for hiding this comment

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

Thanks Theo! This looks awesome! I tested it out and seems to fix all bugs :-)

@theosanderson
Copy link
Member Author

Thank you for the review!

@theosanderson theosanderson merged commit efe6c42 into main Jul 22, 2024
13 checks passed
@theosanderson theosanderson deleted the search-ssr branch July 22, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format_me Triggers github_actions to format website code on PR preview Triggers a deployment to argocd review please PR waiting for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Date search field not filled despite being set in the URL Page number on browse page not in URL anymore
2 participants