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

BWA-118 - Tutorial text cut off in landscape mode #299

Merged

Conversation

phil-livefront
Copy link
Collaborator

@phil-livefront phil-livefront commented Dec 10, 2024

🎟️ Tracking

BWA-118

📔 Objective

  • Addressed an issue where tutorial text was being cut off in landscape mode on certain devices.
  • Refactored the screen to properly support landscape layouts, ensuring the text is fully visible.
  • Collaborated with Emily from the design team to align with the landscape designs used in the password manager app's onboarding views.

📸 Screenshots

test
landscape

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) 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

Copy link
Contributor

github-actions bot commented Dec 10, 2024

Logo
Checkmarx One – Scan Summary & Details6dce02e0-4365-4333-8409-1db58da1e698

No New Or Fixed Issues Found

modifier = Modifier
.standardHorizontalMargin(landscape = LANDSCAPE_HORIZONTAL_MARGIN)
.fillMaxWidth()
.alpha(if (state.isLastPage) 0f else 1f)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is technically still clickable, should we disable it too?

Choose a reason for hiding this comment

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

isEnabled = !state.isLastPage,

Won't this prevent click events?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ohh, I missed that. We should be good

.padding(bottom = 12.dp),
)

Spacer(modifier = Modifier.navigationBarsPadding())
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

/**
* The custom horizontal margin that is specific to this screen.
*/
private val LANDSCAPE_HORIZONTAL_MARGIN: Dp = 128.dp

Choose a reason for hiding this comment

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

👍

@phil-livefront phil-livefront enabled auto-merge (squash) December 11, 2024 06:16
@phil-livefront phil-livefront merged commit 2f678ba into main Dec 11, 2024
7 checks passed
@phil-livefront phil-livefront deleted the phil/BWA-118-tutorial-text-cut-off-in-landscape-mode branch December 11, 2024 15:13
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (5b0b3b6) to head (3247962).
Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #299   +/-   ##
===========================
===========================

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

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.

4 participants