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

Task/86 - Incorporate Icon Component in Flagship App #10400

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

matt-guest-wilcore
Copy link
Contributor

Description of Change

Updated every instance of <VAIcon /> in the app to the new <Icon /> component from the mobile-component-library dependancy. Doing so also required finding and updating the names of the assets to their new equivalent (ex: RightArrowInCircle is now ArrowCircleRight).

I also had to update a few tests after adding the Icon component to some screens. For the components BaseListItem and VASelector I had to incorporate the new vads colors in order to get icons to show properly (Some didn't mesh well with the previous theme system).

I made an effort to check every screen in the app (in light and dark mode) to make sure the new icons are showing properly. I'd recommend also going through the app yourself in case I missed anything. I'm going to try to get the UX designers to have a look at this and get their input as well.

Screenshots/Video

Testing

  • Tested on iOS
  • Tested on Android

Reviewer Validations

PR Checklist

Reviewer: Confirm the items below as you review

  • PR is connected to issue(s)
  • Tests are included to cover this change (when possible)
  • No magic strings (All string unions follow the Union -> Constant type pattern)
  • No secrets or API keys are checked in
  • All imports are absolute (no relative imports)
  • New functions and Redux work have proper TSDoc annotations

For QA

Run a build for this branch

Matthew Guest - Work added 7 commits December 23, 2024 12:34
… of VAIcon. Had some complications and will need to do further testing to make sure everything is in working order.
…, PickerList, FullScreenSubtask, ViewMessageScreen and appointments. In updating I noticed that there is no equivalent for the Unread icon in the new Icon library, in the meantime I'm using placeholders to make sure tests don't break. Also, made sure unit tests got fixed and weren't breaking anymore.
…w Icon props as well as related components called by those components. Was able to get local svg to load for the Unread icon. Updated more icons. Still have some clean up and some tests to fix, however.
…StatusScreen and ClickForActionLink. I noticed some of the original color logic was causing some icons to not show on screen because the new Icon doesnt recognize the old ColorVariant colors that well, updating to accept a hex code or one of the vads colors fixed the issue but this required some small updates to props and components.
…ly to keep things neat. Removed unused comments around app.
@kimmccaskill-oddball
Copy link
Contributor

kimmccaskill-oddball commented Feb 11, 2025

Screenshot 2025-02-11 at 3 06 08 PM
Screenshot 2025-02-11 at 3 06 48 PM
While everything seems to be working, I just want to make sure the differences are intentional. Theres more, but this was the simplest to get to. Thanks!

@matt-guest-wilcore
Copy link
Contributor Author

Yes, some icons will look different. The new Icon library sometimes doesn't have the same icons as the previous so I had to follow the Figma for guidance. Here's an example showing the icons used for links in the app using the new library. Because the VA.gov link opens up an external web page the icon was changed to reflect that.

I'm thinking I should get UX to take a look at this just to verify everything is updated as it should. Thanks for bringing this up.

@kimmccaskill-oddball
Copy link
Contributor

Sounds good! Heres another one I found that was a little weird.
This branch
Screenshot 2025-02-12 at 9 44 43 AM
develop
Screenshot 2025-02-12 at 9 48 28 AM
I checked with the release candidate build on my phone and it was also without an icon. Wonder if that was intentional 🤔

Copy link
Contributor

@kimmccaskill-oddball kimmccaskill-oddball left a comment

Choose a reason for hiding this comment

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

Gonna go ahead and approve the code pending design approval ✅

@github-actions github-actions bot added the FE-With QA A PR waiting for QA Activity label Feb 12, 2025
@nhuckleberry6
Copy link

@matt-guest-wilcore @kimmccaskill-oddball thanks for finding those and calling them out! Good catch on removing the icon next to "Only use messages for non-urgent needs" since it's not an external link. The other couple items I found are here in Figma. The checkmark is more important to fix than the slight sizing and alignment issue of the attach icon. Otherwise, nothing else was jumping out at me.
Screenshot 2025-02-13 at 2 16 24 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE-With QA A PR waiting for QA Activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants