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 new header's User dropdown #2973

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

spalmurray-codecov
Copy link
Contributor

@spalmurray-codecov spalmurray-codecov commented Jun 27, 2024

Implements the UserDropdown for the new Header. For now, this is an almost exact copy the old user dropdown, but we'll move this over to the new Dropdown component once we implement that in codecov/engineering-team#1942. The only difference between this and the old user dropdown is minor spacing change and dark border on the Avatar.

Design

Closes codecov/engineering-team#1952

Screenshot

Screenshot 2024-07-04 at 08 35 03

@codecov-qa
Copy link

codecov-qa bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.36%. Comparing base (855b1a4) to head (5ea665c).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2973   +/-   ##
=======================================
  Coverage   98.36%   98.36%           
=======================================
  Files         890      890           
  Lines       13257    13278   +21     
  Branches     3468     3544   +76     
=======================================
+ Hits        13040    13061   +21     
  Misses        213      213           
  Partials        4        4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <100.00%> (ø)
...ts/Header/components/UserDropdown/UserDropdown.tsx 100.00% <100.00%> (ø)
src/layouts/OldHeader/Dropdown.tsx 100.00% <ø> (ø)
src/pages/OwnerPage/Header/Header.jsx 100.00% <ø> (ø)
...age/routes/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...s/RepoPage/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...pages/RepoPage/PullsTab/PullsTable/Title/Title.tsx 100.00% <ø> (ø)
src/ui/Avatar/Avatar.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.41% <100.00%> (+0.17%) ⬆️
Pages 99.16% <ø> (ø)
Services 99.46% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.58% <100.00%> (-0.01%) ⬇️

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 855b1a4...5ea665c. Read the comment docs.

Copy link

codecov-public-qa bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.36%. Comparing base (855b1a4) to head (5ea665c).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2973   +/-   ##
=======================================
  Coverage   98.36%   98.36%           
=======================================
  Files         890      890           
  Lines       13257    13278   +21     
  Branches     3514     3473   -41     
=======================================
+ Hits        13040    13061   +21     
  Misses        213      213           
  Partials        4        4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <100.00%> (ø)
...ts/Header/components/UserDropdown/UserDropdown.tsx 100.00% <100.00%> (ø)
src/layouts/OldHeader/Dropdown.tsx 100.00% <ø> (ø)
src/pages/OwnerPage/Header/Header.jsx 100.00% <ø> (ø)
...age/routes/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...s/RepoPage/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...pages/RepoPage/PullsTab/PullsTable/Title/Title.tsx 100.00% <ø> (ø)
src/ui/Avatar/Avatar.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.41% <100.00%> (+0.17%) ⬆️
Pages 99.16% <ø> (ø)
Services 99.46% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.58% <100.00%> (-0.01%) ⬇️

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 855b1a4...5ea665c. Read the comment docs.

Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.36%. Comparing base (855b1a4) to head (5ea665c).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##               main      #2973   +/-   ##
===========================================
  Coverage   98.36000   98.36000           
===========================================
  Files           890        890           
  Lines         13257      13278   +21     
  Branches       3533       3473   -60     
===========================================
+ Hits          13040      13061   +21     
  Misses          213        213           
  Partials          4          4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <100.00%> (ø)
...ts/Header/components/UserDropdown/UserDropdown.tsx 100.00% <100.00%> (ø)
src/layouts/OldHeader/Dropdown.tsx 100.00% <ø> (ø)
src/pages/OwnerPage/Header/Header.jsx 100.00% <ø> (ø)
...age/routes/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...s/RepoPage/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...pages/RepoPage/PullsTab/PullsTable/Title/Title.tsx 100.00% <ø> (ø)
src/ui/Avatar/Avatar.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.41% <100.00%> (+0.17%) ⬆️
Pages 99.16% <ø> (ø)
Services 99.46% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.58% <100.00%> (-0.01%) ⬇️

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 855b1a4...5ea665c. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Jun 27, 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    #2973   +/-   ##
=======================================
  Coverage   98.36%   98.36%           
=======================================
  Files         890      890           
  Lines       13257    13278   +21     
  Branches     3538     3539    +1     
=======================================
+ Hits        13040    13061   +21     
  Misses        213      213           
  Partials        4        4           
Files Coverage Δ
src/layouts/Header/Header.tsx 100.00% <100.00%> (ø)
...ts/Header/components/UserDropdown/UserDropdown.tsx 100.00% <100.00%> (ø)
src/layouts/OldHeader/Dropdown.tsx 100.00% <ø> (ø)
src/pages/OwnerPage/Header/Header.jsx 100.00% <ø> (ø)
...age/routes/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...s/RepoPage/CommitsTab/CommitsTable/Title/Title.tsx 100.00% <ø> (ø)
...pages/RepoPage/PullsTab/PullsTable/Title/Title.tsx 100.00% <ø> (ø)
src/ui/Avatar/Avatar.jsx 100.00% <100.00%> (ø)
src/ui/ContextSwitcher/ContextSwitcher.jsx 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

Components Coverage Δ
Assets 53.84% <ø> (ø)
Layouts 97.41% <100.00%> (+0.17%) ⬆️
Pages 99.16% <ø> (ø)
Services 99.46% <ø> (ø)
Shared 99.69% <ø> (ø)
UI 94.58% <100.00%> (-0.01%) ⬇️

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 855b1a4...5ea665c. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Jun 27, 2024

Bundle Report

Changes will increase total bundle size by 2.75kB ⬆️

Bundle name Size Change
gazebo-staging-array-push 6.74MB 2.75kB ⬆️

Copy link

codecov bot commented Jun 27, 2024

Bundle Report

Changes will increase total bundle size by 2.75kB ⬆️

Bundle name Size Change
gazebo-production-array-push 6.74MB 2.75kB ⬆️

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Jun 27, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
25eff52 Thu, 27 Jun 2024 20:24:20 GMT Expired Expired
5ea665c Thu, 04 Jul 2024 12:56:29 GMT Expired Expired
5ea665c Thu, 04 Jul 2024 13:06:38 GMT Cloud Enterprise

@spalmurray-codecov spalmurray-codecov force-pushed the spalmurray/new-header-user-dropdown branch from 25eff52 to bfd31e3 Compare July 4, 2024 12:39
@spalmurray-codecov spalmurray-codecov force-pushed the spalmurray/new-header-user-dropdown branch from bfd31e3 to 5ea665c Compare July 4, 2024 12:49
@spalmurray-codecov spalmurray-codecov marked this pull request as ready for review July 4, 2024 13:22
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 5, 2024
Merged via the queue into main with commit 56cb7d3 Jul 5, 2024
61 checks passed
@spalmurray-codecov spalmurray-codecov deleted the spalmurray/new-header-user-dropdown branch July 5, 2024 13: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.

Implement user dropdown for new header
3 participants