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

chore(TransactionFeedV2): Move redux-related side-effects from component-level useEffects to the slice #6173

Merged
merged 45 commits into from
Oct 18, 2024

Conversation

sviderock
Copy link
Contributor

Description

12th PR for RET-1207. Moves redux-related side-effects from component-level useEffects to the slice.

Test plan

Fixed all the corresponding tests to satisfy the new logic

Related issues

Backwards compatibility

Yes

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.86%. Comparing base (7e1614d) to head (6a3be5f).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6173      +/-   ##
==========================================
- Coverage   88.86%   88.86%   -0.01%     
==========================================
  Files         728      728              
  Lines       31004    30995       -9     
  Branches     5694     5690       -4     
==========================================
- Hits        27553    27543      -10     
+ Misses       3409     3256     -153     
- Partials       42      196     +154     
Files with missing lines Coverage Δ
src/transactions/feed/TransactionFeedV2.tsx 92.30% <ø> (-0.40%) ⬇️
src/transactions/slice.ts 98.59% <100.00%> (+0.06%) ⬆️

... and 66 files 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 7e1614d...6a3be5f. Read the comment docs.

Copy link
Member

@jeanregisser jeanregisser left a comment

Choose a reason for hiding this comment

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

Nice! 🚀

Copy link
Member

Choose a reason for hiding this comment

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

This is indirectly tested via the component, right?

Copy link
Contributor Author

@sviderock sviderock Oct 18, 2024

Choose a reason for hiding this comment

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

@jeanregisser Yes, it passes existing test for duplication cleanup and the new test for pre-populating the first page

Base automatically changed from slava/feed-v2-slice to main October 18, 2024 10:48
@sviderock sviderock added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit 229f1c1 Oct 18, 2024
15 checks passed
@sviderock sviderock deleted the slava/feed-v2-move-side-effects-to-reducer branch October 18, 2024 11:42
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