Page MenuHomePhabricator

[Cashtab] Update Token components with direct calls to antd notifications
ClosedPublic

Authored by emack on Feb 1 2024, 13:53.

Details

Summary

This diff deprecates sendTokenNotification, burnTokenNotification, createTokenNotification and tokenIconSubmitSuccess, replaced with calls on the antd component directly.

Test Plan
  • grep -r sendTokenNotification src/ with no output
  • grep -r burnTokenNotification src/ with no output
  • grep -r createTokenNotification src/ with no output
  • grep -r tokenIconSubmitSuccess src/ with no output
  • npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
sendTokenNotifs
Lint
Lint Errors
Unit
No Test Coverage
Build Status
Buildable 26841
Build 53250: Build Diffcashtab-tests
Build 53249: arc lint + arc unit

Event Timeline

Added integration tests for token tx notifications

emack published this revision for review.Feb 2 2024, 12:26
emack added a reviewer: bytesofman.
  • needs version bump
  • Test plan is too complicated. The integration tests added in this diff are thorough and quite good. can eliminate the create a token (no UI change to success and icon submission notifs) and

send a token (no UI change) steps.

if you find the test plan is too complicated -- esp now that we have much better testing libraries and practices in Cashtab -- it is usually a sign that the diff needs another test. goal is for every testplan to just be npm test, so that a reviewer can learn a lot from a successful CI build.

This revision is now accepted and ready to land.Feb 2 2024, 13:58

version bump and test plan updated