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

[fix] Disable update on initial render on billing page #2565

Merged
merged 8 commits into from
Feb 7, 2024

Conversation

rohitvinnakota-codecov
Copy link
Contributor

@rohitvinnakota-codecov rohitvinnakota-codecov commented Feb 6, 2024

Description

We currently have a bug where the Update button is not disabled when a user is on a team plan and goes to the billing page for the first time. This PR fixes the issue by defaulting the form values to the user's current plan.

Before

Screen.Recording.2024-02-06.at.3.56.31.PM.mov
Screen.Recording.2024-02-06.at.3.56.59.PM.mov

After

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.

Copy link

codecov-public-qa bot commented Feb 6, 2024

Codecov Report

Merging #2565 (1ab39ee) into main (8e94dbc) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2565   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         817      817           
  Lines       10743    10744    +1     
  Branches     2697     2742   +45     
=======================================
+ Hits        10568    10569    +1     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
src/shared/utils/upgradeForm.js 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.29% <ø> (ø)
Services 99.56% <ø> (ø)
Shared 99.83% <100.00%> (+<0.01%) ⬆️
UI 94.23% <ø> (ø)

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 8e94dbc...1ab39ee. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8e94dbc) 98.37% compared to head (1ab39ee) 98.37%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2565   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         817      817           
  Lines       10743    10744    +1     
  Branches     2742     2750    +8     
=======================================
+ Hits        10568    10569    +1     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
src/shared/utils/upgradeForm.js 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.29% <ø> (ø)
Services 99.56% <ø> (ø)
Shared 99.83% <100.00%> (+<0.01%) ⬆️
UI 94.23% <ø> (ø)

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 8e94dbc...1ab39ee. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2565   +/-   ##
=======================================
  Coverage   98.37%   98.37%           
=======================================
  Files         817      817           
  Lines       10743    10744    +1     
  Branches     2750     2732   -18     
=======================================
+ Hits        10568    10569    +1     
  Misses        173      173           
  Partials        2        2           
Files Coverage Δ
src/shared/utils/upgradeForm.js 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.29% <ø> (ø)
Services 99.56% <ø> (ø)
Shared 99.83% <100.00%> (+<0.01%) ⬆️
UI 94.23% <ø> (ø)

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 8e94dbc...1ab39ee. Read the comment docs.

Copy link

netlify bot commented Feb 6, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 1ab39ee
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65c39e8571fa510008874459
😎 Deploy Preview https://deploy-preview-2565--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-releaser
Copy link
Contributor

Visit https://preview-pr-2565.codecov.dev for your PR preview. Expires after 1 month automatically.

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8e94dbc) 98.37% compared to head (1ab39ee) 98.37%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2565   +/-   ##
=====================================
  Coverage   98.37   98.37           
=====================================
  Files        817     817           
  Lines      10743   10744    +1     
  Branches    2697    2732   +35     
=====================================
+ Hits       10568   10569    +1     
  Misses       173     173           
  Partials       2       2           
Files Coverage Δ
src/shared/utils/upgradeForm.js 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 59.37% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.29% <ø> (ø)
Services 99.56% <ø> (ø)
Shared 99.83% <100.00%> (+<0.01%) ⬆️
UI 94.23% <ø> (ø)

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 8e94dbc...1ab39ee. Read the comment docs.

@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [draft] Disable update on initial render on billing page [fix] Disable update on initial render on billing page Feb 6, 2024
@rohitvinnakota-codecov rohitvinnakota-codecov marked this pull request as ready for review February 6, 2024 21:01
@@ -20,14 +20,12 @@ const UpdateButton: React.FC<BillingControlsProps> = ({
}) => {
const { provider, owner } = useParams<{ provider: string; owner: string }>()
const { data: accountDetails } = useAccountDetails({ provider, owner })

Copy link
Contributor

Choose a reason for hiding this comment

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

what's up with the empty lines

@rohitvinnakota-codecov rohitvinnakota-codecov merged commit 54486c8 into main Feb 7, 2024
61 checks passed
@rohitvinnakota-codecov rohitvinnakota-codecov deleted the rvinnakota/billing-bugfix branch February 7, 2024 15:44
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.

None yet

3 participants