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

Create UserStoryFlowPage #1737

Merged
merged 12 commits into from
Nov 7, 2023
Merged

Create UserStoryFlowPage #1737

merged 12 commits into from
Nov 7, 2023

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Nov 3, 2023

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Add a Page UserStoryFlowPage to our library to avoid duplicated code. Use it where appropriate.
Note: if reviewer can suggest a better name for this page, it will be welcome!

Motivation and context

Clean code, develop faster new UI with same wireframe.

Screenshots / GIFs

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@bmarty bmarty requested a review from a team as a code owner November 3, 2023 15:55
@bmarty bmarty requested review from jmartinesp and removed request for a team November 3, 2023 15:55
Copy link
Contributor

github-actions bot commented Nov 3, 2023

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/YSrCg8

Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Attention: 66 lines in your changes are missing coverage. Please review.

Comparison is base (74ccdf8) 63.33% compared to head (b2d0504) 63.34%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1737      +/-   ##
===========================================
+ Coverage    63.33%   63.34%   +0.01%     
===========================================
  Files         1286     1287       +1     
  Lines        33421    33360      -61     
  Branches      6962     6946      -16     
===========================================
- Hits         21167    21133      -34     
+ Misses        9057     9049       -8     
+ Partials      3197     3178      -19     
Files Coverage Δ
...kscreen/impl/setup/biometric/SetupBiometricView.kt 40.00% <50.00%> (-11.22%) ⬇️
...securebackup/impl/enable/SecureBackupEnableView.kt 36.66% <70.00%> (+0.30%) ⬆️
...curebackup/impl/disable/SecureBackupDisableView.kt 59.15% <69.23%> (+3.86%) ⬆️
...element/android/features/logout/impl/LogoutView.kt 68.86% <75.86%> (+2.20%) ⬆️
...kup/impl/enter/SecureBackupEnterRecoveryKeyView.kt 45.23% <47.05%> (-0.80%) ⬇️
...ibraries/designsystem/atomic/pages/FlowStepPage.kt 38.70% <38.70%> (ø)
...s/securebackup/impl/setup/SecureBackupSetupView.kt 59.78% <57.40%> (+2.51%) ⬆️

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

Copy link
Member

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the changes. I have a suggestion for the back button.

Comment on lines 51 to 52
canGoBack: Boolean,
onBackClicked: () -> Unit,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe making onBackClicked nullable would be enough? If it's present, we display the back button and set it up to use the lambda, otherwise we do nothing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, good point, 7bd2ccd

@jmartinesp
Copy link
Member

As for the name, would something like FlowStepPage work?

@bmarty
Copy link
Member Author

bmarty commented Nov 7, 2023

As for the name, would something like FlowStepPage work?

Yes, it's better! Done in 163bc87

Copy link

sonarcloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@bmarty bmarty merged commit 2de508c into develop Nov 7, 2023
14 of 15 checks passed
@bmarty bmarty deleted the feature/bma/improvePages branch November 7, 2023 13:30
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