department-of-veterans-affairs / va-mobile-app

"If VA were a company, it would have a flagship mobile app."
https://department-of-veterans-affairs.github.io/va-mobile-app/
13 stars 2 forks source link

Create Activity Section with Populated, Loading, and Empty States #7935

Closed ajsarkar28 closed 6 months ago

ajsarkar28 commented 7 months ago

Overview This ticket covers the creation of the home screen's activity section with the populated, loading, and empty states. The error and edgecases are covered in this ticket.

For all visual elements in this ticket, reflect the designs in this Figma file

Header

Populated

Loading

Empty State

Accessibility & Content

TKDickson commented 7 months ago

Test case link in TestRail

theodur commented 6 months ago

@TKDickson Heads up, I had to make minor changes to the loading component on the View message screen. I confirmed there are no breaking changes to that screen, but wanted to let you know just in case. Here's more context if you're curious:

Originally, there was an inlineSpinner prop that was added to the LoadingComponent, and basically all it did was remove the contents of the LoadingComponent out of the VAScrollView that wraps around it. This was needed so that the background color of the loading component matched the background of the View message screen (since it uses a different background color than other screens in the app). Here's a video of what the prop was doing.

I wanted to use the inlineSpinner prop to render the spinner next to the text (like how we need it for the activity section), so I updated up the LoadingComponent to accept a new prop scrollViewStyle that allows for modifying the style of the VAScrollView. This way, instead of conditionally removing the loading component content out of the scroll view just to match the background color of the screen, we can manually pass the background color to the loading component

TKDickson commented 6 months ago
TKDickson commented 6 months ago

Ah, shoot. We broke messaging details by messing with the spinner.

Here's the behavior loading a message with attachment(s) from a thread in message details, in develop. Here's the behavior in this branch (note the change in location after load, plus the message you're trying to open is still collapsed when you get back down to it and you have to open it again)

+226 has messages with threads/attachments (the first one in the inbox list should work for you) to check this out.

theodur commented 6 months ago

Nice finds @TKDickson! Just fixed all of these, should be good to test again

TKDickson commented 6 months ago

@theodur sending back your way for a couple things

Message details loading behavior (spinner & the rest), as well as reading [icon + text] for both loading and empty states, are now both fixed.

image.png image.png
dumathane commented 6 months ago

fixed! Back to you @TKDickson

TKDickson commented 6 months ago

Confirmed fixes, ready for VQA.

image.png
TKDickson commented 6 months ago

belated test run link

theodur commented 6 months ago

I updated the margins for the alert statuses as discussed in Slack (thread). Went ahead and updated the margins for the About you section's alert statuses too, since those also had the 10 px margins. Here's what it looks like for reference:

  

wavelaurenrussell commented 6 months ago

Thank you. Reviewed the changes – looks good!

TKDickson commented 6 months ago

merged to xl and closing