Skip to content

WEB-961: fix incorrect account action aria-labels#3603

Open
RiteshGite wants to merge 1 commit into
openMF:devfrom
RiteshGite:WEB-961-fix-account-action-aria-labels
Open

WEB-961: fix incorrect account action aria-labels#3603
RiteshGite wants to merge 1 commit into
openMF:devfrom
RiteshGite:WEB-961-fix-account-action-aria-labels

Conversation

@RiteshGite
Copy link
Copy Markdown

@RiteshGite RiteshGite commented May 22, 2026

Description

Fixed incorrect aria-label values used in the account action menus for Savings Account View and Recurring Deposit Account View.

Previously, both views incorrectly used the label "Loan account actions" due to a copy-paste issue. This caused incorrect context for screen readers and accessibility tools.

The labels have been updated to reflect the correct account types:

  • "Savings account actions"
  • "Recurring deposit account actions"

This is a small accessibility improvement with no UI or behavioral changes.

Related issues and discussion

#WEB-961

Screenshots, if any

N/A (accessibility text-only change)

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • If you have multiple commits please combine them into one commit by squashing them.

  • Read and understood the contribution guidelines at web-app/.github/CONTRIBUTING.md.

Summary by CodeRabbit

  • Bug Fixes
    • Updated accessibility labels for account action menus in recurring deposits and savings account views to use translated strings instead of hardcoded text.
    • Improves screen reader compatibility and ensures labels reflect localized wording for a more consistent, accessible user experience.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 22, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'pre_merge_checks'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c32dbc19-80a8-4269-b853-3507aec2a160

📥 Commits

Reviewing files that changed from the base of the PR and between e8183bb and 2c5e2ec.

📒 Files selected for processing (2)
  • src/app/deposits/recurring-deposits/recurring-deposits-account-view/recurring-deposits-account-view.component.html
  • src/app/savings/savings-account-view/savings-account-view.component.html

Walkthrough

This PR updates two account view templates to replace a hardcoded aria-label ("Loan account actions") with translated, account-type-specific [attr.aria-label] bindings.

Account Type Accessibility Labels

Layer / File(s) Summary
Correct aria-labels in account view templates
src/app/deposits/recurring-deposits/recurring-deposits-account-view/recurring-deposits-account-view.component.html, src/app/savings/savings-account-view/savings-account-view.component.html
Replaced static aria-label="Loan account actions" with translated [attr.aria-label] bindings: recurring deposits and savings account action buttons now use their respective translated labels.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • IOhacker
  • alberto-art3ch
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and specifically describes the main change: fixing incorrect aria-labels in account action menus across multiple components.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@src/app/deposits/recurring-deposits/recurring-deposits-account-view/recurring-deposits-account-view.component.html`:
- Line 89: Replace the hardcoded aria-label="Recurring deposit account actions"
with a translatable value using the ngx-translate pipe (e.g. use the aria-label
binding with "'recurringDeposits.account.actions' | translate" or
[attr.aria-label]="'recurringDeposits.account.actions' | translate") so screen
readers get the localized string; update the i18n key name to match your
conventions (suggested key: recurringDeposits.account.actions) and then run npm
run translations:extract to add the new key to your translation files.

In `@src/app/savings/savings-account-view/savings-account-view.component.html`:
- Line 108: Replace the hardcoded aria-label on the actions control in the
SavingsAccountViewComponent template by using the `@ngx-translate/core` translate
pipe (e.g. aria-label="{{ 'savings.accountActions' | translate }}" or
[attr.aria-label]="'savings.accountActions' | translate") instead of the English
string; add the new i18n key (e.g. savings.accountActions = "Savings account
actions") to your translation files and then run npm run translations:extract to
pick up the new key.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5d7700a8-85a4-43e2-8819-6a34edbddfdd

📥 Commits

Reviewing files that changed from the base of the PR and between d3a4a99 and 5acc7fd.

📒 Files selected for processing (2)
  • src/app/deposits/recurring-deposits/recurring-deposits-account-view/recurring-deposits-account-view.component.html
  • src/app/savings/savings-account-view/savings-account-view.component.html

Comment thread src/app/savings/savings-account-view/savings-account-view.component.html Outdated
Copy link
Copy Markdown
Contributor

@IOhacker IOhacker left a comment

Choose a reason for hiding this comment

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

Review the CodeRabbit suggestions

Copy link
Copy Markdown
Collaborator

@alberto-art3ch alberto-art3ch left a comment

Choose a reason for hiding this comment

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

In general looks OK, but Please only one commit for PR

@RiteshGite RiteshGite force-pushed the WEB-961-fix-account-action-aria-labels branch from e8183bb to 2c5e2ec Compare May 22, 2026 18:31
@RiteshGite
Copy link
Copy Markdown
Author

@IOhacker @alberto-art3ch

Addressed the CodeRabbit suggestions by using translated aria-label bindings with existing i18n keys and squashed the PR into a single commit.

Copy link
Copy Markdown
Collaborator

@alberto-art3ch alberto-art3ch left a comment

Choose a reason for hiding this comment

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

LGTM

@RiteshGite RiteshGite requested a review from IOhacker May 24, 2026 14:56
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.

3 participants