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

feat(points): add loading and error states for loading config #5253

Merged
merged 55 commits into from
Apr 17, 2024

Conversation

kathaypacific
Copy link
Collaborator

Description

As the title.

Test plan

The load is done on app start so we shouldn't see a loading state unless there was an error and the user tries again. Added an artificial delay for these videos.

Error state:

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2024-04-15.at.10.13.49.mp4

Success state:

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2024-04-15.at.10.14.22.mp4

Related issues

Backwards compatibility

Y

Network scalability

Y

@kathaypacific kathaypacific changed the base branch from kathy/points-config-switch to kathy/points-config-redux April 15, 2024 08:21
@kathaypacific kathaypacific changed the base branch from kathy/points-config-redux to kathy/points-config-switch April 15, 2024 08:22
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 89.47368% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 85.89%. Comparing base (7611678) to head (d36e762).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5253   +/-   ##
=======================================
  Coverage   85.89%   85.89%           
=======================================
  Files         745      745           
  Lines       30434    30487   +53     
  Branches     5276     5288   +12     
=======================================
+ Hits        26142    26188   +46     
- Misses       4055     4063    +8     
+ Partials      237      236    -1     
Files Coverage Δ
src/points/PointsHome.tsx 100.00% <100.00%> (ø)
src/points/selectors.ts 90.47% <100.00%> (-9.53%) ⬇️
src/points/saga.ts 89.65% <50.00%> (-2.66%) ⬇️
src/points/slice.ts 64.70% <0.00%> (-15.30%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67e2f6c...d36e762. Read the comment docs.

@@ -2244,6 +2244,15 @@
"points": {
"title": "Valora Points",
"activity": "Activity",
"loading": {
"title": "Gathering your points",
"description": "We're in the process of tallying up your points, hang tight"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should this copy not have a period, unlike the error description? 👀 i see that this matches the figma designs but not sure if it's intentional.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i'll double check! i think the copy is not final yet though, seems reasonable to assume that we'll do a pass through before releasing this

Base automatically changed from kathy/points-config-switch to main April 17, 2024 13:12
@kathaypacific kathaypacific merged commit 824972a into main Apr 17, 2024
16 checks passed
@kathaypacific kathaypacific deleted the kathy/points-loading branch April 17, 2024 13:55
shottah pushed a commit to zed-io/kolektivo that referenced this pull request May 15, 2024
…-inc#5253)

### Description

As the title.

### Test plan

The load is done on app start so we shouldn't see a loading state unless
there was an error and the user tries again. Added an artificial delay
for these videos.

Error state:


https://github.com/valora-inc/wallet/assets/20150449/d15a4b5a-b5cb-4bb0-bb07-91a15f2c6975



Success state:


https://github.com/valora-inc/wallet/assets/20150449/ec5a50cf-2873-4d4b-8dbc-f41aa1240b8b


### Related issues

- Fixes RET-1044

### Backwards compatibility

Y

### Network scalability

Y

---------

Co-authored-by: Joseph Bergeron <jophish126@gmail.com>
Co-authored-by: Joe Bergeron <jbergero@alum.mit.edu>
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