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

PM-16622 PM-16623 and PM-16624 Add the first three coach marks to the generator tour #4613

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dseverns-livefront
Copy link
Collaborator

@dseverns-livefront dseverns-livefront commented Jan 23, 2025

🎟️ Tracking

PM-16622
PM-16623
PM-16624

📔 Objective

  • Show the first three coach marks on the segmented controls on the generator screen.
  • NOTE: I did resolve with Emily that it's fine if the "highlight" effect for these is a per option implementation.

📸 Screenshots

16622.mp4

⏰ 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

…he segemented controls along with how the nav bar scrim shows

more
@dseverns-livefront dseverns-livefront force-pushed the PM-16622-generator-coachmarks branch from 43bd1bc to a04f1ac Compare January 23, 2025 19:02
Copy link
Contributor

github-actions bot commented Jan 23, 2025

Logo
Checkmarx One – Scan Summary & Details62f18af7-b75a-44fb-86b5-31b77eead6f6

Great job, no security vulnerabilities found in this Pull Request

"password_option" -> {
CoachMarkHighlight(
key = ExploreGeneratorCoachMark.PASSWORD_MODE,
title = stringResource(R.string.coachmark_1_of_6),
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is probably still to long but can we open this up a bit:

description = stringResource(
    id = R.string.use_the_generator_to_create_secure_passwords_passphrases_and_usernames,
),

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, we will still need the suppression but can def do this!

CoachMarkHighlight(
key = ExploreGeneratorCoachMark.PASSPHRASE_MODE,
title = stringResource(R.string.coachmark_2_of_6),
description = stringResource(R.string.passphrases_are_strong_passwords_that_are_often_easier_to_remember_and_type_than_random_passwords),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto

CoachMarkHighlight(
key = ExploreGeneratorCoachMark.USERNAME_MODE,
title = stringResource(R.string.coachmark_3_of_6),
description = stringResource(R.string.unique_usernames_add_an_extra_layer_of_security_and_can_help_prevent_hackers_from_finding_your_accounts),
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto ditto

@@ -443,7 +513,79 @@ private fun MainStateOptionsItem(
modifier = modifier
.fillMaxWidth()
.testTag(tag = "GeneratorTypePicker"),
)
) { option ->
when (option.testTag) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we do this by index or something. We should not rely on test tags for this.

@@ -101,6 +116,8 @@ fun GeneratorScreen(
viewModel: GeneratorViewModel = hiltViewModel(),
onNavigateToPasswordHistory: () -> Unit,
onNavigateBack: () -> Unit,
onDimNavBarRequest: (Boolean) -> Unit,
scrimClickCount: State<Int>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you tell me a little more about this scrimClickCount?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Within the CoachMarkContainer we handle any clicks outside the tooltips and then essential re-show the tooltip for the current coachmark (default behaviour dismissed this via google locking it down). Since the bottom bar is outside the container we need to capture if the user clicks in that space otherwise it will dismiss the tool tip, I am using this value in the launched effect to call the function if this state updates.

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.36%. Comparing base (d573ce6) to head (d6b3bd3).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4613   +/-   ##
=======================================
  Coverage   88.35%   88.36%           
=======================================
  Files         603      604    +1     
  Lines       40746    40838   +92     
  Branches     5738     5744    +6     
=======================================
+ Hits        36003    36085   +82     
- Misses       2742     2750    +8     
- Partials     2001     2003    +2     

☔ 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.

2 participants