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

Clean up the generator screen and handlers #4270

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

david-livefront
Copy link
Collaborator

@david-livefront david-livefront commented Nov 8, 2024

🎟️ Tracking

N/A

📔 Objective

This PR moves all of the handler classes from the GeneratorScreen and into their own files.

Some other small changes were made to the GeneratorScreen but none affect the app functionality.

There is one minor UI update, the divider line is no longer displayed when in the generator modal and the segmented control is present.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 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

) {
BitwardenTopAppBar(
title = stringResource(id = R.string.generator),
navigationIcon = rememberVectorPainter(id = R.drawable.ic_close),
navigationIconContentDescription = stringResource(id = R.string.close),
onNavigationIconClick = onCloseClick,
scrollBehavior = scrollBehavior,
dividerStyle = when (generatorMode) {
GeneratorMode.Modal.Password -> TopAppBarDividerStyle.NONE
is GeneratorMode.Modal.Username -> TopAppBarDividerStyle.ON_SCROLL
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the only change that affects the UI, previously, the divider would appear on the top app bar and the segmented control and it should only be on the segmented control.

Copy link
Contributor

github-actions bot commented Nov 8, 2024

Logo
Checkmarx One – Scan Summary & Details9999bc51-0f56-40b6-ab93-901d2c1abfc5

No New Or Fixed Issues Found

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.98%. Comparing base (dae50a7) to head (c1b1875).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4270   +/-   ##
=======================================
  Coverage   88.97%   88.98%           
=======================================
  Files         445      452    +7     
  Lines       38887    38913   +26     
  Branches     5468     5469    +1     
=======================================
+ Hits        34601    34627   +26     
  Misses       2369     2369           
  Partials     1917     1917           

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

Copy link
Collaborator

@dseverns-livefront dseverns-livefront left a comment

Choose a reason for hiding this comment

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

Copy link
Collaborator

@dseverns-livefront dseverns-livefront left a comment

Choose a reason for hiding this comment

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

@david-livefront
Copy link
Collaborator Author

Thanks @dseverns-livefront

@david-livefront david-livefront added this pull request to the merge queue Nov 11, 2024
Merged via the queue into main with commit 16cc70f Nov 11, 2024
9 checks passed
@david-livefront david-livefront deleted the generator-cleanup branch November 11, 2024 16: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