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

DOP-3791 #856

Merged
merged 60 commits into from
Jul 20, 2023
Merged

DOP-3791 #856

merged 60 commits into from
Jul 20, 2023

Conversation

bianca-laube
Copy link
Contributor

Stories/Links:

DOP-3791

Current Behavior:

https://www.mongodb.com/docs/search/?q=%24and

Staging Links:

with feature flag ON:
https://docs-mongodb-org-stg.s3.us-east-2.amazonaws.com/master/landing/bianca.laube/DOP-3791/search/index.html?q=%24and
(with feature flag OFF then it should look the same as prod)

Notes:

Changes

  • Now when you have a search term and go to add a filter it will load the loading skeleton while its searches for the new filtered search result list
  • it should load the skeleton for when you add a filter category and for when you change the category version
  • note: I didnt actually change the following files for this ticket: (I merged DOP-3791 with master so it updated these extra files so thats why it looks like they are changed when comparing to DOP-3786)
    - package.json
    - package-lock.json
    - DeprecatedVersionSelector.js
    - get-site-url.js
    - DeprecatedVersionSelector.test.js
    - get-site-url.test.js

Testing

The following list is something I have been using to keep track of testing the website. can be used as a guide for when reviewing.

  1. Empty search on top nav search loads empty page
  2. Search of "failed%20to%20find%20a%20plan"* loads to a no results found modal
  3. Search from the top nav bar shell (or right into the url) to see if it loads properly
  4. Make a new search from the persistent search bar of with the input $and make sure it loads properly
  5. Add a filter make sure skeleton shows
  6. change the filter version and make sure the the skeleton loads again
  7. Add a filter that shows no results (for example: the input $and with the filter atlas data lake
  8. Do an empty search from the persistent search bar and make sure it shows the no results modal

Base automatically changed from DOP-3786 to master July 18, 2023 20:26
Copy link
Collaborator

@mmeigs mmeigs left a comment

Choose a reason for hiding this comment

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

LGTM! Great job catching this.

Copy link
Collaborator

@rayangler rayangler left a comment

Choose a reason for hiding this comment

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

One nitpick for now, but feel free to ignore if it doesn't feel worth the effort.

I do have one question about the loading state and the design. I'm not sure if this is a blocker based on the A/C of the ticket:

It seems like when switching between filters after a search, the loading state is also applied to the filters. Based on the designs, it seems like only the results should be in the loading state while the filters are already loaded in. Is this intentional?

src/components/SearchResults/SearchResults.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@rayangler rayangler left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing the bug with the duplicate search filter components! Tested locally and the filters no longer have flashing options

@bianca-laube bianca-laube merged commit 7e82240 into master Jul 20, 2023
2 checks passed
@bianca-laube bianca-laube deleted the DOP-3791 branch July 20, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants