Skip to content

Add app install banner + modal to the UI - #2480

Merged
rohitvinnakota-codecov merged 10 commits into
mainfrom
rvinnakota-app-install-banner
Jan 12, 2024
Merged

rohitvinnakota-codecov merged 10 commits into
mainfrom
rvinnakota-app-install-banner

Conversation

@rohitvinnakota-codecov

@rohitvinnakota-codecov rohitvinnakota-codecov commented Jan 2, 2024 •

Copy link
Copy Markdown
Contributor

Description

This PR adds a banner when a user attempts to install an app from Github of which they are not the owner of. This PR adds the following changes.

  • Check if setup_action is part of the URL params(this is a param that Github adds automatically after attempted installation).
  • Update HomePageRedirect so that we preserve setup_action if it is on the URL. We were overwriting it previously to strip params.
  • Conditionally render the banner. Note that I used the existing RequestInstallBanner component as the UI element.
  • Convert RequestInstallBanner to typescript

Design linked here:
codecov/engineering-team#764

Screenshots

Screen.Recording.2024-01-02.at.5.36.00.PM.mov

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-public-qa

codecov-public-qa Bot commented Jan 2, 2024 •

Copy link
Copy Markdown

Codecov Report

Merging #2480 (4a086d2) into main (f288a4b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2480   +/-   ##
=======================================
  Coverage   98.25%   98.25%           
=======================================
  Files         784      784           
  Lines       10020    10040   +20     
  Branches     2502     2548   +46     
=======================================
+ Hits         9845     9865   +20     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ners/RequestInstallBanner/RequestInstallBanner.tsx 100.00% <100.00%> (ø)
src/ui/Modal/BaseModal.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.23% <ø> (ø)
Services 99.49% <ø> (ø)
Shared 99.82% <100.00%> (+<0.01%) ⬆️
UI 94.17% <ø> (ø)

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 f288a4b...4a086d2. Read the comment docs.

@codecov-qa

codecov-qa Bot commented Jan 2, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f288a4b) 98.25% compared to head (4a086d2) 98.25%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2480   +/-   ##
=======================================
  Coverage   98.25%   98.25%           
=======================================
  Files         784      784           
  Lines       10020    10040   +20     
  Branches     2551     2502   -49     
=======================================
+ Hits         9845     9865   +20     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ners/RequestInstallBanner/RequestInstallBanner.tsx 100.00% <100.00%> (ø)
src/ui/Modal/BaseModal.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.23% <ø> (ø)
Services 99.49% <ø> (ø)
Shared 99.82% <100.00%> (+<0.01%) ⬆️
UI 94.17% <ø> (ø)

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 f288a4b...4a086d2. Read the comment docs.

@codecov-staging

codecov-staging Bot commented Jan 2, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2480   +/-   ##
=======================================
  Coverage   98.25%   98.25%           
=======================================
  Files         784      784           
  Lines       10020    10040   +20     
  Branches     2546     2534   -12     
=======================================
+ Hits         9845     9865   +20     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ners/RequestInstallBanner/RequestInstallBanner.tsx 100.00% <100.00%> (ø)
src/ui/Modal/BaseModal.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.23% <ø> (ø)
Services 99.49% <ø> (ø)
Shared 99.82% <100.00%> (+<0.01%) ⬆️
UI 94.17% <ø> (ø)

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 f288a4b...4a086d2. Read the comment docs.

@netlify

netlify Bot commented Jan 2, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 4a086d2
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65a15db6b4187600084a9240
😎 Deploy Preview https://deploy-preview-2480--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

codecov Bot commented Jan 2, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f288a4b) 98.25% compared to head (4a086d2) 98.26%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2480     +/-   ##
=======================================
+ Coverage   98.25   98.26   +0.01     
=======================================
  Files        784     784             
  Lines      10020   10040     +20     
  Branches    2551    2504     -47     
=======================================
+ Hits        9845    9865     +20     
  Misses       173     173             
  Partials       2       2             
Files Coverage Δ
src/App.jsx 100.00% <100.00%> (ø)
...ners/RequestInstallBanner/RequestInstallBanner.tsx 100.00% <100.00%> (ø)
src/ui/Modal/BaseModal.tsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.23% <ø> (ø)
Services 99.49% <ø> (ø)
Shared 99.82% <100.00%> (+<0.01%) ⬆️
UI 94.17% <ø> (ø)

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 f288a4b...4a086d2. Read the comment docs.

@rohitvinnakota-codecov
rohitvinnakota-codecov force-pushed the rvinnakota-app-install-banner branch from 6eb74de to f8585e2 Compare January 9, 2024 17:48
@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [Draft] Add app install banner + modal to the UI Add app install banner + modal to the UI Jan 10, 2024
@rohitvinnakota-codecov
rohitvinnakota-codecov marked this pull request as ready for review January 10, 2024 18:23
Comment thread src/App.jsx Resolved

@nicholas-codecov nicholas-codecov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome work!

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