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

refactor(ui): add RoundedButton.bright constructor #553

Merged
merged 5 commits into from
Nov 21, 2023

Conversation

fremartini
Copy link
Member

@fremartini fremartini commented Nov 20, 2023

This PR reduces code duplication by creating a new constructor to the
RoundedButton class, making it usable as a replacement for the following buttons:

  1. the "Resend verification email" button
  2. the button in SplashErrorPage

Beforehand, these two buttons used tedious boilerplate by invoking the Material ElevatedButton; a thing the RoundedButton was supposed to eliminate.

Additionally, files affected this change have been simplified.

closes #508


Co-authored-by: Omid Marfavi [email protected]

@fremartini fremartini enabled auto-merge (squash) November 20, 2023 16:05
@ghost
Copy link

ghost commented Nov 20, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@5278155). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #553   +/-   ##
=======================================
  Coverage        ?   72.74%           
=======================================
  Files           ?      134           
  Lines           ?     1596           
  Branches        ?        0           
=======================================
  Hits            ?     1161           
  Misses          ?      435           
  Partials        ?        0           
Flag Coverage Δ
unittests 72.74% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fremartini fremartini requested a review from a team November 20, 2023 16:19
@marfavi marfavi changed the title Style 'Resend verification' button feat(ui): update "resend verification email" button styling Nov 21, 2023
@marfavi marfavi disabled auto-merge November 21, 2023 09:29
@marfavi marfavi enabled auto-merge (squash) November 21, 2023 09:31
@marfavi marfavi self-assigned this Nov 21, 2023
@marfavi
Copy link
Member

marfavi commented Nov 21, 2023

Check out #555 which would merge into this branch

This commit reduces code duplication by creating a new constructor to
the
`RoundedButton` class, making it usable as a replacement for the
following buttons:

1. the "Resend verification email" button
2. the button in `SplashErrorPage`

Beforehand, these two buttons used tedious boilerplate by invoking the
Material `ElevatedButton`; a thing the `RoundedButton` was supposed to
eliminate.

Additionally, I simplified some code in the files this change affected.
@marfavi marfavi changed the title feat(ui): update "resend verification email" button styling refactor(ui): add RoundedButton.bright constructor Nov 21, 2023
@marfavi marfavi disabled auto-merge November 21, 2023 11:16
@marfavi marfavi enabled auto-merge (squash) November 21, 2023 11:18
marfavi
marfavi previously approved these changes Nov 21, 2023
@marfavi marfavi merged commit 69db31a into main Nov 21, 2023
@marfavi marfavi deleted the frem/style_verification_button branch November 21, 2023 11:36
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.

Style 'Resend verification' button
2 participants