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-13776] Generator Icon Button labels #11623

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nick-livefront
Copy link
Collaborator

@nick-livefront nick-livefront commented Oct 18, 2024

🎟️ Tracking

PM-13776

📔 Objective

Update aria labels for generate and copy buttons within the generator components

  • Using the appA11yTitle across all icon buttons
  • Updated all labels to be targeted towards the credential type rather than just "password"

📸 Screenshots

Before After Extension After Web
labels-before.mov
labels-after-extension.mov
labels-after-web.mov

🦮 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

… components

- Using the `appA11yTitle` across all icon buttons
- Updated all labels to be targeted towards the credential type rather than just "password"
@nick-livefront nick-livefront requested a review from a team as a code owner October 18, 2024 16:16
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.23%. Comparing base (ad40db9) to head (87a3850).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11623   +/-   ##
=======================================
  Coverage   33.23%   33.23%           
=======================================
  Files        2782     2782           
  Lines       86526    86526           
  Branches    16488    16488           
=======================================
  Hits        28759    28759           
  Misses      55477    55477           
  Partials     2290     2290           

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

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Detailsf779a511-115e-4da9-a734-0e03ed979d99

No New Or Fixed Issues Found

Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Please include the new messages in the desktop client as well.

Comment on lines +67 to +69
protected credentialTypeCopyLabel$ = this.root$.pipe(
map(({ nav }) => {
if (nav === "password") {
Copy link
Contributor

Choose a reason for hiding this comment

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

🌱 The forwarder PR (#11563) moves translation into the service. Please put FIXME comments on each of these labels to move them into the algorithm metadata once that branch lands.

Suggested change
protected credentialTypeCopyLabel$ = this.root$.pipe(
map(({ nav }) => {
if (nav === "password") {
protected credentialTypeCopyLabel$ = this.root$.pipe(
// FIXME: add labels to `AlgorithmInfo` and perform translation in the `CredentialGeneratorService`
map(({ nav }) => {
if (nav === "password") {

The above suggestion is an example; the FIXME should be applied in every location where this code exists, and also as an HTML comment (<!-- -->) in the username generator UI where there's a fixed label.

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