Page MenuHomePhabricator

[Cashtab] Create custom modal for version upgrades
ClosedPublic

Authored by bytesofman on Mar 12 2024, 14:29.

Details

Reviewers
PiRK
emack
Group Reviewers
Restricted Project
Commits
rABCc251ec88f62e: [Cashtab] Create custom modal for version upgrades
Summary

The antd notification is not properly triggering updates. Also, we want to move alway from antd entirely. Will happen incrementally.

Here is one step.

Test Plan

npm test

How I tested it

  • deploy to netlify prod site
  • bump the version and deploy it again
  • bump the version and deploy it again

clicking ok refreshed the page and updated the version, as expected
clicking 'later' hid the modal and did nothing, as expected

image.png (554×481 px, 35 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cashtab-modals
Lint
Lint Errors
SeverityLocationCodeMessage
Errorcashtab/src/components/Common/modals.js:16ESLINTno-unused-vars
Errorcashtab/src/components/Common/modals.js:16ESLINTno-unused-vars
Errorcashtab/src/components/Common/modals.js:17ESLINTno-unused-vars
Unit
No Test Coverage
Build Status
Buildable 27818
Build 55193: Build Diffcashtab-tests
Build 55192: arc lint + arc unit

Event Timeline

iterating to implementation, testing

back out version bumps used in testing

This revision is now accepted and ready to land.Mar 13 2024, 08:35
emack requested changes to this revision.EditedMar 13 2024, 08:48
emack added a subscriber: emack.

So my steps were:

  1. Deploy v2.0.10 to netlify
  2. Create new wallet on there
  3. Bump version to v2.0.11, then redeploy to netlify
  4. Waited around with the wallet open but no modal.
  5. Closed and re-opened browser, upgrade modal shows up on load
  6. Click OK, cashtab refreshes but Configure.js is still showing v2.0.10
  7. Hard refresh browser, cashtab now shows v2.0.11
cashtab/src/components/Common/UpgradeModal.js
70 ↗(On Diff #46146)

Button should be "Update Now" to be more precise. "OK" sounds like you're merely noting the suggestion.

This revision now requires changes to proceed.Mar 13 2024, 08:48
bytesofman added inline comments.
cashtab/src/components/Common/UpgradeModal.js
70 ↗(On Diff #46146)

image.png (433×499 px, 54 KB)

good point. updated so we only have one primary button. we don't really want "later" to be an attractive option.

cancel button is now traditional top right exit.

bytesofman marked an inline comment as done.

more design improvement

This revision is now accepted and ready to land.Mar 13 2024, 12:19