-
Notifications
You must be signed in to change notification settings - Fork 927
[PM-26111] Implement Review Export Screen and Navigation #5946
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
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
1e8dc37 to
c34d27b
Compare
| val LocalCredentialExchangeCompletionManager: ProvidableCompositionLocal<CredentialExchangeCompletionManager> = | ||
| compositionLocalOf { | ||
| error("CompositionLocal LocalPermissionsManager not present") | ||
| error("CompositionLocal LocalCredentialExchangeCompletionManager not present") |
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.
Fixed this minor copy/paste typo.
| @OmitFromCoverage | ||
| @Serializable | ||
| data object ExportItemsRoute | ||
| data object ExportItemsGraphRoute |
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.
👍
...n/kotlin/com/x8bit/bitwarden/ui/vault/feature/exportitems/reviewexport/ReviewExportScreen.kt
Show resolved
Hide resolved
|
|
||
| @Preview(showBackground = true, name = "Review Export Content") | ||
| @Composable | ||
| private fun ReviewExportContentPreview_WithData() { |
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.
Can we change this function name to match the pattern. ReviewExportContentWithData_preview
| ), | ||
| ), | ||
| ) | ||
| val handler = ReviewExportHandlers( |
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.
Can we just define these inline?
...n/kotlin/com/x8bit/bitwarden/ui/vault/feature/exportitems/reviewexport/ReviewExportScreen.kt
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5946 +/- ##
==========================================
+ Coverage 84.36% 84.40% +0.04%
==========================================
Files 737 719 -18
Lines 54827 54764 -63
Branches 7487 7528 +41
==========================================
- Hits 46257 46226 -31
+ Misses 5954 5897 -57
- Partials 2616 2641 +25 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
56b6839 to
e4a7188
Compare
| /** | ||
| * Defines events that the [ReviewExportViewModel] can send to the UI. | ||
| */ | ||
| @Stable |
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.
Do we need this annotation?
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.
Nope
e4a7188 to
8c81f1c
Compare
8c81f1c to
a2f333a
Compare
This commit introduces the "Review Export" screen and its associated navigation logic within the export items flow. This screen displays a snapshot of the types of credentials being exported, along with an expected count of each type. From here, the user can continue to Import credentials from Bitwarden or Cancel. Key changes include: - Added `ReviewExportScreen.kt` to display a summary of items to be exported. - Added `ReviewExportViewModel.kt` to manage the state and logic for the review screen. - Added `ReviewExportHandlers.kt` to manage user interactions on the review screen. - Added `ReviewExportNavigation.kt` to define the navigation route and destination for the review screen. - Integrated the review export screen into the `exportItemsGraph`. - Added new string resources for the review export screen. - Added unit tests for `ReviewExportScreen`, `ReviewExportViewModel`. - Fixed a typo in `LocalCredentialExchangeCompletionManagerProvider.kt`. - Updated `RootNavScreenTest.kt` to use `ExportItemsGraphRoute`.
a2f333a to
3caf083
Compare
|
Thanks @david-livefront |

🎟️ Tracking
PM-26111
📔 Objective
This commit introduces the "Review Export" screen and its associated navigation logic within the export items flow.
This screen displays a snapshot of the types of credentials being exported, along with an expected count of each type. From here, the user can continue to Import credentials from Bitwarden or Cancel.
Key changes include:
ReviewExportScreen.ktto display a summary of items to be exported.ReviewExportViewModel.ktto manage the state and logic for the review screen.ReviewExportHandlers.ktto manage user interactions on the review screen.ReviewExportNavigation.ktto define the navigation route and destination for the review screen.exportItemsGraph.ReviewExportScreen,ReviewExportViewModel.LocalCredentialExchangeCompletionManagerProvider.kt.RootNavScreenTest.ktto useExportItemsGraphRoute.📸 Screenshots
Coming soon!
⏰ 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