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: Create a New Table for the Commits Tab on the Pull Request Page for the Team Plan #2373

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR creates a new table for the commits tab on the pull request page for users on the team plan when viewing a private repo.

Closes codecov/engineering-team#623

Notable Changes

  • Create new CommitsTableTeam component
  • Create new createCommitsTableTeamData to create table data
  • Update CommitsTab to conditionally render differing tables
  • Update tests

Screenshots

Screenshot 2023-11-02 at 1 38 16 PM

Copy link

netlify bot commented Nov 2, 2023

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit ca75397
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/6548e837b7ad000008bce0ac
😎 Deploy Preview https://deploy-preview-2373--gazebo-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov-staging
Copy link

codecov-staging bot commented Nov 2, 2023

Codecov Report

Merging #2373 (ca75397) into main (f54c1a7) will decrease coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2373      +/-   ##
==========================================
- Coverage   96.27%   96.08%   -0.19%     
==========================================
  Files         736      738       +2     
  Lines        8970     9023      +53     
  Branches     2186     2233      +47     
==========================================
+ Hits         8636     8670      +34     
- Misses        318      335      +17     
- Partials       16       18       +2     
Files Coverage Δ
...PullRequestPage/subroute/CommitsTab/CommitsTab.jsx 100.00% <100.00%> (ø)
.../subroute/CommitsTab/CommitsTable/CommitsTable.jsx 100.00% <ø> (ø)
...e/CommitsTab/CommitsTableTeam/CommitsTableTeam.tsx 100.00% <100.00%> (ø)
...ab/CommitsTableTeam/createCommitsTableTeamData.tsx 100.00% <100.00%> (ø)
...e/subroute/CommitsTab/shared/CIStatus/CIStatus.jsx 100.00% <ø> (ø)
...estPage/subroute/CommitsTab/shared/Title/Title.jsx 100.00% <ø> (ø)

... and 5 files with indirect coverage changes


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 f54c1a7...ca75397. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Nov 2, 2023

Codecov Report

Merging #2373 (ca75397) into main (f54c1a7) will decrease coverage by 0.19%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2373      +/-   ##
==========================================
- Coverage   96.27%   96.08%   -0.19%     
==========================================
  Files         736      738       +2     
  Lines        8970     9023      +53     
  Branches     2219     2251      +32     
==========================================
+ Hits         8636     8670      +34     
- Misses        317      335      +18     
- Partials       17       18       +1     
Files Coverage Δ
...PullRequestPage/subroute/CommitsTab/CommitsTab.jsx 100.00% <100.00%> (ø)
.../subroute/CommitsTab/CommitsTable/CommitsTable.jsx 100.00% <ø> (ø)
...e/CommitsTab/CommitsTableTeam/CommitsTableTeam.tsx 100.00% <100.00%> (ø)
...ab/CommitsTableTeam/createCommitsTableTeamData.tsx 100.00% <100.00%> (ø)
...e/subroute/CommitsTab/shared/CIStatus/CIStatus.jsx 100.00% <ø> (ø)
...estPage/subroute/CommitsTab/shared/Title/Title.jsx 100.00% <ø> (ø)

... and 4 files with indirect coverage changes


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 f54c1a7...ca75397. Read the comment docs.

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #2373 (ca75397) into main (f54c1a7) will decrease coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2373     +/-   ##
=======================================
- Coverage   96.28   96.09   -0.19     
=======================================
  Files        736     738      +2     
  Lines       8970    9023     +53     
  Branches    2232    2202     -30     
=======================================
+ Hits        8636    8670     +34     
- Misses       318     337     +19     
  Partials      16      16             
Files Coverage Δ
...PullRequestPage/subroute/CommitsTab/CommitsTab.jsx 100.00% <100.00%> (ø)
.../subroute/CommitsTab/CommitsTable/CommitsTable.jsx 100.00% <ø> (ø)
...e/CommitsTab/CommitsTableTeam/CommitsTableTeam.tsx 100.00% <100.00%> (ø)
...ab/CommitsTableTeam/createCommitsTableTeamData.tsx 100.00% <100.00%> (ø)
...e/subroute/CommitsTab/shared/CIStatus/CIStatus.jsx 100.00% <ø> (ø)
...estPage/subroute/CommitsTab/shared/Title/Title.jsx 100.00% <ø> (ø)

... and 4 files with indirect coverage changes


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 f54c1a7...ca75397. Read the comment docs.

Copy link
Contributor

@adrian-codecov adrian-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!

@@ -11,9 +15,16 @@ const Loader = () => (
)

function CommitsTab() {
const { provider, owner } = useParams()
Copy link
Contributor

Choose a reason for hiding this comment

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

I've really come to like these sort of "intermediate" files, where their sole purpose is to direct you to a different "version" of what you want to see. I suppose we didn't have the need for this before, but I find this so readable and easy to follow, pat on our backs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One other nice thing about this, is that with this pattern we're only loading the JS for the path we're taking thanks Suspense!

@nicholas-codecov nicholas-codecov merged commit 132153c into main Nov 6, 2023
27 of 30 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-623-create-new-table-for-commits-list-on-pull-request-page branch November 6, 2023 13:45
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.

[Client] - PR Page: Add New Table For Team Tier - Commits Tab
2 participants