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: Implement remaining Navigator functionality for new header #3012

Merged
merged 8 commits into from
Jul 16, 2024

Conversation

spalmurray-codecov
Copy link
Contributor

@spalmurray-codecov spalmurray-codecov commented Jul 12, 2024

Adds logic for adjusting the navigator shown on different pages of the app along with actually rendering those navigators.

I'm still doing another styling pass over everything so please ignore minor styling issues for now!

Design

Screenshots

Owner page shows Context switcher for navigation:
Screenshot 2024-07-12 at 16 56 39

Self-hosted admin settings uses a breadcrumb:
Screenshot 2024-07-12 at 16 58 39

Repo page uses a breadcrumb:
Screenshot 2024-07-12 at 16 59 33

@codecov-qa
Copy link

codecov-qa bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.35%. Comparing base (135fdf5) to head (e3e6a50).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3012   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         907      908    +1     
  Lines       13476    13499   +23     
  Branches     3559     3637   +78     
=======================================
+ Hits        13254    13277   +23     
  Misses        218      218           
  Partials        4        4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <ø> (ø)
.../Header/components/Navigator/MyContextSwitcher.tsx 100.00% <100.00%> (ø)
.../layouts/Header/components/Navigator/Navigator.tsx 100.00% <100.00%> (ø)
src/services/user/useMyContexts.ts 100.00% <100.00%> (ø)
src/services/user/useOwner.js 100.00% <ø> (ø)
src/services/user/useUser.ts 100.00% <ø> (ø)
src/ui/Breadcrumb/Breadcrumb.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <100.00%> (+0.13%) ⬆️
Pages 99.15% <ø> (ø)
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.69% <ø> (ø)
UI 94.27% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 135fdf5...e3e6a50. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3012   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         907      908    +1     
  Lines       13476    13499   +23     
  Branches     3633     3637    +4     
=======================================
+ Hits        13254    13277   +23     
  Misses        218      218           
  Partials        4        4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <ø> (ø)
.../Header/components/Navigator/MyContextSwitcher.tsx 100.00% <100.00%> (ø)
.../layouts/Header/components/Navigator/Navigator.tsx 100.00% <100.00%> (ø)
src/services/user/useMyContexts.ts 100.00% <100.00%> (ø)
src/services/user/useOwner.js 100.00% <ø> (ø)
src/services/user/useUser.ts 100.00% <ø> (ø)
src/ui/Breadcrumb/Breadcrumb.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <100.00%> (+0.13%) ⬆️
Pages 99.15% <ø> (ø)
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.69% <ø> (ø)
UI 94.27% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 135fdf5...e3e6a50. Read the comment docs.

Copy link

codecov-public-qa bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.35%. Comparing base (135fdf5) to head (e3e6a50).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3012   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files         907      908    +1     
  Lines       13476    13499   +23     
  Branches     3607     3637   +30     
=======================================
+ Hits        13254    13277   +23     
  Misses        218      218           
  Partials        4        4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <ø> (ø)
.../Header/components/Navigator/MyContextSwitcher.tsx 100.00% <100.00%> (ø)
.../layouts/Header/components/Navigator/Navigator.tsx 100.00% <100.00%> (ø)
src/services/user/useMyContexts.ts 100.00% <100.00%> (ø)
src/services/user/useOwner.js 100.00% <ø> (ø)
src/services/user/useUser.ts 100.00% <ø> (ø)
src/ui/Breadcrumb/Breadcrumb.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <100.00%> (+0.13%) ⬆️
Pages 99.15% <ø> (ø)
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.69% <ø> (ø)
UI 94.27% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 135fdf5...e3e6a50. Read the comment docs.

Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.35%. Comparing base (135fdf5) to head (e3e6a50).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##               main      #3012   +/-   ##
===========================================
  Coverage   98.35000   98.35000           
===========================================
  Files           907        908    +1     
  Lines         13476      13499   +23     
  Branches       3633       3642    +9     
===========================================
+ Hits          13254      13277   +23     
  Misses          218        218           
  Partials          4          4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <ø> (ø)
.../Header/components/Navigator/MyContextSwitcher.tsx 100.00% <100.00%> (ø)
.../layouts/Header/components/Navigator/Navigator.tsx 100.00% <100.00%> (ø)
src/services/user/useMyContexts.ts 100.00% <100.00%> (ø)
src/services/user/useOwner.js 100.00% <ø> (ø)
src/services/user/useUser.ts 100.00% <ø> (ø)
src/ui/Breadcrumb/Breadcrumb.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.68% <100.00%> (+0.13%) ⬆️
Pages 99.15% <ø> (ø)
Services 99.47% <100.00%> (+<0.01%) ⬆️
Shared 99.69% <ø> (ø)
UI 94.27% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 135fdf5...e3e6a50. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Jul 12, 2024

Bundle Report

Changes will decrease total bundle size by 30.18kB ⬇️

Bundle name Size Change
gazebo-staging-array-push 6.07MB 30.18kB ⬇️

Copy link

codecov bot commented Jul 12, 2024

Bundle Report

Changes will decrease total bundle size by 30.18kB ⬇️

Bundle name Size Change
gazebo-production-array-push 6.07MB 30.18kB ⬇️

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Jul 12, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
759bc2b Fri, 12 Jul 2024 19:51:35 GMT Expired Expired
16f1693 Fri, 12 Jul 2024 21:06:40 GMT Expired Expired
2b4070c Fri, 12 Jul 2024 21:18:16 GMT Expired Expired
e044617 Mon, 15 Jul 2024 14:10:16 GMT Expired Expired
e3e6a50 Mon, 15 Jul 2024 18:44:55 GMT Cloud Enterprise

@spalmurray-codecov spalmurray-codecov marked this pull request as ready for review July 12, 2024 21:09
@spalmurray-codecov spalmurray-codecov force-pushed the spalmurray/new-header-mycontextswitcher branch from 2b4070c to e044617 Compare July 15, 2024 14:00
@spalmurray-codecov spalmurray-codecov force-pushed the spalmurray/new-header-mycontextswitcher branch from e044617 to e3e6a50 Compare July 15, 2024 18:32
Copy link
Contributor

@nicholas-codecov nicholas-codecov left a comment

Choose a reason for hiding this comment

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

LGTM

@spalmurray-codecov spalmurray-codecov added this pull request to the merge queue Jul 16, 2024
Merged via the queue into main with commit 0421fe4 Jul 16, 2024
61 checks passed
@spalmurray-codecov spalmurray-codecov deleted the spalmurray/new-header-mycontextswitcher branch July 16, 2024 13:25
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.

3 participants