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(census-spotlight): update navbar to new layout #677

Merged
merged 10 commits into from
Dec 19, 2023
Merged

Conversation

seve
Copy link
Contributor

@seve seve commented Nov 3, 2023

Change:

  • Update theme file
  • Change nav bar layout
  • Add new item to nav bar
  • Update and add analytics

Note: I think something is wrong with my fonts locally for explorer, I'm seeing the same thing when pulling dev

image

@seve seve requested a review from kaloster November 3, 2023 23:13
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8df9131) 77.67% compared to head (3d6586e) 77.67%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #677   +/-   ##
=======================================
  Coverage   77.67%   77.67%           
=======================================
  Files          88       88           
  Lines        6772     6772           
=======================================
  Hits         5260     5260           
  Misses       1512     1512           
Flag Coverage Δ
frontend 77.67% <ø> (ø)
javascript 77.67% <ø> (ø)
smokeTest ?
unitTest 77.67% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@kaloster kaloster left a comment

Choose a reason for hiding this comment

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

Just some formatting related stuff. Looks great otherwise!

client/src/components/NavBar/index.tsx Show resolved Hide resolved
client/src/components/NavBar/index.tsx Show resolved Hide resolved
client/src/components/NavBar/index.tsx Show resolved Hide resolved
Copy link
Contributor

@kaloster kaloster left a comment

Choose a reason for hiding this comment

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

feel free to disregard the formatting related comments for this repo.

LGTM!

@seve seve marked this pull request as draft November 6, 2023 18:22
@seve seve marked this pull request as ready for review December 15, 2023 23:20
@seve seve enabled auto-merge (squash) December 15, 2023 23: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.

Looks V good! Thanks so much, @seve !

Just some followup questions to make sure we're all on the same page. Thank you!

@@ -50,7 +50,8 @@ export enum EVENTS {
EXPLORER_GENE_INFO_BUTTON_CLICKED = "EXPLORER_GENE_INFO_BUTTON_CLICKED",
WMG_CLICK_NAV = "WMG_CLICK_NAV",
COLLECTIONS_CLICK_NAV = "COLLECTIONS_CLICK_NAV",
CENSUS_CLICK_NAV = "CENSUS_CLICK_NAV",
Copy link
Contributor

Choose a reason for hiding this comment

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

@seve is @ainfeld aware of the removal of this event? Thank you!

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep! This was my request, thanks @tihuan for checking 🙏

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome thanks for confirming!

Comment on lines +53 to +54
CENSUS_DOCUMENTATION_CLICK_NAV = "CENSUS_DOCUMENTATION_CLICK_NAV",
CENSUS_DIRECTORY_CLICK_NAV = "CENSUS_DIRECTORY_CLICK_NAV",
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume she knows about the addition of these two events and safe to assume these are in Plausible too?

client/src/components/NavBar/index.tsx Show resolved Hide resolved
Comment on lines +37 to +47
export const spacesXxl = (props: CommonThemeProps) => getSpaces(props)?.xxl;
export const spacesXl = (props: CommonThemeProps) => getSpaces(props)?.xl;
export const spacesL = (props: CommonThemeProps) => getSpaces(props)?.l;
export const spacesM = (props: CommonThemeProps) => getSpaces(props)?.m;
export const spacesS = (props: CommonThemeProps) => getSpaces(props)?.s;
export const spacesXs = (props: CommonThemeProps) => getSpaces(props)?.xs;
export const spacesXxs = (props: CommonThemeProps) => getSpaces(props)?.xxs;
export const spacesXxxs = (props: CommonThemeProps) => getSpaces(props)?.xxxs;
export const spacesDefault = (props: CommonThemeProps) =>
getSpaces(props)?.default;

Copy link
Contributor

Choose a reason for hiding this comment

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

thank you SO much for adding these!! Too bad SDS Hackday didn't add these in SDS library, so we don't have to duplicate the work in both Data Portal and Explorer. Hopefully it will be done in 2024!

@seve seve merged commit 9027420 into main Dec 19, 2023
5 checks passed
@seve seve deleted the seve/update-navbar branch December 19, 2023 16:24
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