-
Notifications
You must be signed in to change notification settings - Fork 862
[PM-21891] Migrate BitwardenOutlinedButton to UI module #5242
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
base: main
Are you sure you want to change the base?
Conversation
This commit renames all `java` source directories to `kotlin`.
This commit replaces the `rememberVectorPainter` composable from `authenticator` with the one provided by the platform UI module. This change promotes code reuse and consistency across the application. The following files were updated to use the platform UI version of `rememberVectorPainter`: - `ItemListingScreen.kt` - `BitwardenActionCard.kt` - `BitwardenExternalLinkRow.kt` - `BitwardenSearchActionItem.kt` - `TutorialScreen.kt` - `SettingsScreen.kt` - `BitwardenStandardIconButton.kt` - `DebugMenuScreen.kt` - `BitwardenStepper.kt` The authenticator `rememberVectorPainter.kt` file has been deleted.
The standard, filled, and tonal icon button composables have been moved from the `app` module to the `ui` module. This also includes the associated `BitwardenIconButtonColors` file. Additionally, the `BitwardenIconButtonWithResource` composable, previously in the authenticator module, has been removed as it was not being used. The `ic_question_circle` drawable has been added to the `ui` module to support previews for these components. All usages of these icon buttons across the application have been updated to reflect this change.
This commit introduces a type alias `BitwardenDrawable` for `com.bitwarden.ui.R.drawable`. This allows for a more concise and consistent way to reference drawable resources from the `ui` module. The following files have been updated to use `BitwardenDrawable`: - `BitwardenRowOfActions.kt` - `BitwardenTonalIconButton.kt` - `BitwardenFilledIconButton.kt` - `BitwardenStandardIconButton.kt` - `BitwardenOutlinedButton.kt` - `BitwardenFilledButton.kt` - `CompleteRegistrationScreen.kt` - `BitwardenOutlinedErrorButton.kt` - `BitwardenFilledErrorButton.kt`
This commit moves the `BitwardenOutlinedButton` composable and its associated `BitwardenOutlinedButtonColors` data class from the `app` module to the `ui` module. This change also updates all import statements across the application to reflect the new location of these components. The `BitwardenOutlinedButton` within the `authenticator` module has been removed, as the `ui` module's version will now be used.
* Colors for a [BitwardenOutlinedButton]. | ||
*/ | ||
@Immutable | ||
data class BitwardenOutlinedButtonColors( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not new. It was extracted from BitwardenOutlinedButton
. It seemed out of place embedded in BitwardenOutlinedButton
.
Great job, no security vulnerabilities found in this Pull Request |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## ui-module/bitwarden-icon-buttons #5242 +/- ##
====================================================================
+ Coverage 82.49% 82.57% +0.07%
====================================================================
Files 693 688 -5
Lines 51381 51176 -205
Branches 6932 6932
====================================================================
- Hits 42389 42258 -131
+ Misses 6685 6611 -74
Partials 2307 2307 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
67e9bbf
to
2022ab8
Compare
🎟️ Tracking
PM-21891
📔 Objective
This commit moves the
BitwardenOutlinedButton
composable and its associatedBitwardenOutlinedButtonColors
data class from theapp
module to theui
module.This change also updates all import statements across the application to reflect the new location of these components.
The
BitwardenOutlinedButton
within theauthenticator
module has been removed, as theui
module's version will now be used.Important
There is a visual change as a direct result of this migration. See the screenshot below.
📸 Screeshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes