Skip to content

Web 963 add alt text for account profile images#3608

Open
RiteshGite wants to merge 1 commit into
openMF:devfrom
RiteshGite:WEB-963-add-alt-text-for-account-profile-images
Open

Web 963 add alt text for account profile images#3608
RiteshGite wants to merge 1 commit into
openMF:devfrom
RiteshGite:WEB-963-add-alt-text-for-account-profile-images

Conversation

@RiteshGite
Copy link
Copy Markdown

@RiteshGite RiteshGite commented May 24, 2026

Description

Added missing alt text for account profile images across multiple account view pages to improve accessibility support for screen readers and assistive technologies.

Previously, several views used profile images without meaningful alternative text, which caused accessibility issues under WCAG 1.1.1 guidelines.

This update adds appropriate alt attributes by reusing existing translated tooltip values where applicable, while the client view uses the client display name for more descriptive image context.

Affected views:

  • Savings Account View
  • Fixed Deposit Account View
  • Recurring Deposit Account View
  • Shares Account View
  • Client View

No UI or behavioral changes were introduced.

Related issues and discussion

#WEB-963

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
    • Improved accessibility across account views: profile images in client, savings, fixed deposit, recurring deposit, and shares screens now include descriptive, localized alt text to enhance screen reader support and provide clearer context for assistive technologies.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 24, 2026

Warning

Review limit reached

@RiteshGite, we couldn't start this review because you've used your available PR reviews for now.

Your plan currently allows 2 reviews/hour. Refill in 5 minutes and 15 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a951e9d4-a2b7-4f3c-9ee3-29c99eaa113a

📥 Commits

Reviewing files that changed from the base of the PR and between d3b732b and 810f215.

📒 Files selected for processing (5)
  • src/app/clients/clients-view/clients-view.component.html
  • src/app/deposits/fixed-deposits/fixed-deposit-account-view/fixed-deposit-account-view.component.html
  • 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
  • src/app/shares/shares-account-view/shares-account-view.component.html

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: "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

Walkthrough

This PR adds localized/translatable alt attributes to profile <img> elements in client, fixed-deposit, recurring-deposit, savings, and shares account view templates.

Changes

Account View Accessibility Improvements

Layer / File(s) Summary
Profile image alt attributes
src/app/clients/clients-view/clients-view.component.html, src/app/deposits/fixed-deposits/fixed-deposit-account-view/fixed-deposit-account-view.component.html, 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, src/app/shares/shares-account-view/shares-account-view.component.html
Each template's profile image element now includes an alt attribute: client binds to clientViewData.displayName; account views bind to the appropriate translated tooltips.* string.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • gkbishnoi07
🚥 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 directly and accurately summarizes the main change: adding alt text for account profile images across multiple views for accessibility.
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

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.

@RiteshGite RiteshGite force-pushed the WEB-963-add-alt-text-for-account-profile-images branch from af32d53 to d3b732b Compare May 24, 2026 09:30
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: 1

🤖 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/clients/clients-view/clients-view.component.html`:
- Line 18: The alt binding currently uses clientViewData.displayName which can
be missing; update the profile image alt binding in clients-view.component.html
so it falls back to the translated label when clientViewData.displayName is
falsy by using a logical-or fallback with the translate pipe (use
('labels.inputs.Display Name' | translate)) so the alt always has a meaningful
value.
🪄 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: b2565c60-e95e-43a0-9b84-0214ee19fe69

📥 Commits

Reviewing files that changed from the base of the PR and between af32d53 and d3b732b.

📒 Files selected for processing (5)
  • src/app/clients/clients-view/clients-view.component.html
  • src/app/deposits/fixed-deposits/fixed-deposit-account-view/fixed-deposit-account-view.component.html
  • 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
  • src/app/shares/shares-account-view/shares-account-view.component.html
✅ Files skipped from review due to trivial changes (2)
  • src/app/shares/shares-account-view/shares-account-view.component.html
  • src/app/deposits/fixed-deposits/fixed-deposit-account-view/fixed-deposit-account-view.component.html

Comment thread src/app/clients/clients-view/clients-view.component.html Outdated
@RiteshGite RiteshGite force-pushed the WEB-963-add-alt-text-for-account-profile-images branch from d3b732b to 810f215 Compare May 24, 2026 09:46
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.

Can you add screenshot or video? seems that there are unrelated changes

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