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

fix: hide navbar when seamless not enabled #482

Merged
merged 3 commits into from
Oct 4, 2022
Merged

Conversation

atarashansky
Copy link
Contributor

@atarashansky atarashansky commented Sep 30, 2022

#460
#478

Some datasets (e.g. on the covid19 atlas portal) are living on CZI infra but not hosted by the data portal. These should not have the unified navigation bar displayed.

Data portal datasets should all have valid results from the dataset-metadata endpoint. As a result, any dataset with an invalid dataset-metadata result will have their nav bars hidden.

To ensure tests work properly, dataset metadata and the collections home link page needed to be stubbed. As a result, breadcrumbs smoke tests can now work, so I added them to this PR as well (#478).

@atarashansky atarashansky self-assigned this Sep 30, 2022
@codecov
Copy link

codecov bot commented Sep 30, 2022

Codecov Report

Merging #482 (1d2385e) into main (556da57) will not change coverage.
The diff coverage is n/a.

❗ Current head 1d2385e differs from pull request most recent head a13e4b9. Consider uploading reports for the commit a13e4b9 to get more accurate results

@@           Coverage Diff           @@
##             main     #482   +/-   ##
=======================================
  Coverage   74.99%   74.99%           
=======================================
  Files          99       99           
  Lines        7815     7815           
=======================================
  Hits         5861     5861           
  Misses       1954     1954           
Flag Coverage Δ
frontend 74.98% <ø> (ø)
javascript 74.98% <ø> (ø)
smokeTest ∅ <ø> (∅)
unitTest 74.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@atarashansky atarashansky requested a review from seve September 30, 2022 17:20
Copy link
Contributor

@tihuan tihuan 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 so much for the fix, Alec 🙏 !

client/__tests__/e2e/puppeteer.setup.ts Outdated Show resolved Hide resolved
@atarashansky atarashansky merged commit 5901e1e into main Oct 4, 2022
@atarashansky atarashansky deleted the atar/hide-navbar branch October 4, 2022 16:23
Bento007 added a commit that referenced this pull request Oct 4, 2022
* hide navbar when seamless not enabled

* update smoke tests and refactor some components for typescript

* remove comment

Co-authored-by: atarashansky <[email protected]>

Co-authored-by: atarashansky <[email protected]>
Co-authored-by: atarashansky <[email protected]>
Bento007 added a commit that referenced this pull request Oct 6, 2022
* hide navbar when seamless not enabled

* update smoke tests and refactor some components for typescript

* remove comment

Co-authored-by: atarashansky <[email protected]>

Co-authored-by: atarashansky <[email protected]>
Co-authored-by: atarashansky <[email protected]>

Co-authored-by: atarashansky <[email protected]>
Co-authored-by: atarashansky <[email protected]>
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.

2 participants