♿ app: compose limits as text for accessibility#905
Conversation
|
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on improving the accessibility and privacy of financial limit displays within the application. It refactors the presentation of spending and credit limits to ensure they are properly formatted and announced by screen readers, while also introducing a feature to obscure these sensitive financial details when a user's privacy settings dictate. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughCardStatus component modified to integrate sensitive settings query, precompute spending and credit display strings with localized formatting, and update accessibility labeling and markup structure accordingly. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
| })} | ||
| </Text> |
There was a problem hiding this comment.
🚩 Collateral text lacks hidden-aware aria-label unlike the other values
The collateral text at src/components/home/CardStatus.tsx:305 has the sensitive prop (so it visually hides with ***), but unlike the newly fixed spending limit and credit limit values, it does not have a hidden-aware aria-label. This means screen readers will still read the collateral value even when the sensitive setting is enabled. This is a pre-existing inconsistency that this PR does not address — the PR only fixes the spending and credit limit accessibility labels. Whether the collateral line needs the same treatment depends on product requirements.
(Refers to lines 305-309)
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
Code Review
This pull request improves accessibility by refactoring how spending and credit limits are rendered, making them more screen-reader friendly. The changes are well-implemented. I've added one suggestion to reduce code duplication for better maintainability.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #905 +/- ##
===========================================
+ Coverage 48.28% 71.54% +23.26%
===========================================
Files 204 220 +16
Lines 7143 7967 +824
Branches 2409 2545 +136
===========================================
+ Hits 3449 5700 +2251
+ Misses 3551 2040 -1511
- Partials 143 227 +84
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Accessibility Improvements
Display & Localization