Page MenuHomePhabricator

[cashtab] Move finalized indicator
ClosedPublic

Authored by johnkuney on Wed, Apr 23, 18:31.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Commits
rABC0113f0b821a3: [cashtab] Move finalized indicator
Summary

Proposed ui edit to make the avalanche finalized indicator a bit more subtle.
Its good info for sure, but not critical to most users and I was finding the blue check mark/spinner was taking up some prime space and attention.

Test Plan

npm start and try sending a transaction, observe finilizing state, and check the check mark

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cashtab-move-finalized-indicator
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33095
Build 65674: Build Diffcashtab-tests
Build 65673: arc lint + arc unit

Event Timeline

Tail of the build log:

                  <svg
                    title="copy-paste"
                  />
                </button>
              </div>
              <a
                class="sc-chPdSV fCIcLj"
                href="https://explorer.e.cash/tx/ac83faac54059c89c41dea4c3d6704e4f74fb82e4ad2fb948e640f1d19b760de"
                rel="noreferrer"
                target="_blank"
              >
                <svg
                  class="sc-brqgnP itPjSE"
                />
              </a>
              <a
                class="sc-chPdSV fCIcLj"
                href="https://blockchair.com/ecash/transaction/ac83faac54059c89c41dea4c3d6704e4f74fb82e4ad2fb948e640f1d19b760de.pdf"
                rel="noreferrer"
                target="_blank"
              >
                <svg
                  class="sc-cMljjf cdzzdJ"
                />
              </a>
              <button
                class="sc-kAzzGY jjfqUh"
              >
                <svg
                  title="add-contact"
                />
              </button>
            </div>
          </div>
        </div>
      </div>
    </body>

      114 |
      115 |         // We see the avalanche finalized check
    > 116 |         expect(screen.getByTitle('Finalized by Avalanche')).toBeInTheDocument();
          |                       ^
      117 |
      118 |         // If we expand the panel, we see the exact XEC amount
      119 |         // Expand the panel

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at getElementError (node_modules/@testing-library/dom/dist/query-helpers.js:20:35)
      at getMultipleElementsFoundError (node_modules/@testing-library/dom/dist/query-helpers.js:23:10)
      at node_modules/@testing-library/dom/dist/query-helpers.js:55:13
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByTitle (src/components/Home/Tx/__tests__/index.test.js:116:23)


Test Suites: 1 failed, 39 passed, 40 total
Tests:       1 failed, 1184 passed, 1185 total
Snapshots:   0 total
Time:        54.739 s
mv: cannot move 'test' to '/work/abc-ci-builds/cashtab-tests/test': Directory not empty
Build cashtab-tests failed with exit code 1

Tail of the build log:

  index.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/token-protocols/slpv1/fixtures     |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/transactions                       |   98.79 |     92.3 |     100 |   98.79 |                                                                                                                                                                                                                                                                                 
  index.js                              |   98.79 |     92.3 |     100 |   98.79 | 182                                                                                                                                                                                                                                                                             
 src/transactions/fixtures              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/validation                         |   96.57 |    94.42 |     100 |   96.79 |                                                                                                                                                                                                                                                                                 
  index.ts                              |   96.57 |    94.42 |     100 |   96.79 | 70-71,236,271,337,535,642-643,934,939,1318-1321                                                                                                                                                                                                                                 
 src/validation/fixtures                |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/wallet                             |   94.18 |    88.34 |   92.72 |   94.15 |                                                                                                                                                                                                                                                                                 
  context.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  index.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  useWallet.ts                          |   90.54 |    79.68 |   85.71 |   90.54 | 127,209-210,587-593,632,637,694-695,706,711-727,741,767,804,819,832-834,893,930,1003                                                                                                                                                                                            
 src/wallet/fixtures                    |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
----------------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='5549']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='6407']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='3191']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='3870']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='1023']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='1252']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='5448']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='6293']
##teamcity[blockClosed name='Code Coverage Summary']

Summary of all failing tests
FAIL src/components/Etokens/__tests__/TokenActions.test.js (48.649 s)
  ● <Token /> available actions rendered › We can send an SLP1 NFT

    expect(element).toBeChecked()

    Received element is not checked:
      <input class="sc-jzgbtB jgfSAg" id="Toggle Sell NFT" name="Toggle Sell NFT" title="Toggle Sell NFT" type="checkbox" />

      1028 |         // On load, default action for NFT is to list it
      1029 |         const sellActionSwitch = screen.getByTitle('Toggle Sell NFT');
    > 1030 |         expect(sellActionSwitch).toBeChecked();
           |                                  ^
      1031 |
      1032 |         // Sending is disabled
      1033 |         const sendActionSwitch = screen.getByTitle('Toggle Send');

      at Object.toBeChecked (src/components/Etokens/__tests__/TokenActions.test.js:1030:34)


Test Suites: 1 failed, 39 passed, 40 total
Tests:       1 failed, 1184 passed, 1185 total
Snapshots:   0 total
Time:        54.669 s
mv: cannot move 'test' to '/work/abc-ci-builds/cashtab-tests/test': Directory not empty
Build cashtab-tests failed with exit code 1

Tail of the build log:

  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |       0 |        0 |       0 |       0 |                                                                                                                                                                                                                                                                                 
 src/opreturn                           |    97.6 |    96.25 |     100 |    97.6 |                                                                                                                                                                                                                                                                                 
  index.ts                              |    97.6 |    96.25 |     100 |    97.6 | 149,165-166                                                                                                                                                                                                                                                                     
 src/opreturn/fixtures                  |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/test                               |    92.5 |    66.66 |     100 |    92.5 |                                                                                                                                                                                                                                                                                 
  index.tsx                             |    92.5 |    66.66 |     100 |    92.5 | 119,146-147                                                                                                                                                                                                                                                                     
 src/token-protocols                    |   95.55 |     90.9 |     100 |   95.55 |                                                                                                                                                                                                                                                                                 
  index.ts                              |   95.55 |     90.9 |     100 |   95.55 | 161,182                                                                                                                                                                                                                                                                         
 src/token-protocols/alp                |     100 |    93.33 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  index.ts                              |     100 |    93.33 |     100 |     100 | 68                                                                                                                                                                                                                                                                              
 src/token-protocols/alp/fixtures       |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.ts                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/token-protocols/fixtures           |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.ts                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/token-protocols/slpv1              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  index.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/token-protocols/slpv1/fixtures     |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/transactions                       |   98.79 |     92.3 |     100 |   98.79 |                                                                                                                                                                                                                                                                                 
  index.js                              |   98.79 |     92.3 |     100 |   98.79 | 182                                                                                                                                                                                                                                                                             
 src/transactions/fixtures              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/validation                         |   96.57 |    94.42 |     100 |   96.79 |                                                                                                                                                                                                                                                                                 
  index.ts                              |   96.57 |    94.42 |     100 |   96.79 | 70-71,236,271,337,535,642-643,934,939,1318-1321                                                                                                                                                                                                                                 
 src/validation/fixtures                |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/wallet                             |   94.18 |    88.34 |   92.72 |   94.15 |                                                                                                                                                                                                                                                                                 
  context.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  index.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  useWallet.ts                          |   90.54 |    79.68 |   85.71 |   90.54 | 127,209-210,587-593,632,637,694-695,706,711-727,741,767,804,819,832-834,893,930,1003                                                                                                                                                                                            
 src/wallet/fixtures                    |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
----------------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='5549']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='6407']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='3195']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='3870']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='1023']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='1252']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='5448']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='6293']
##teamcity[blockClosed name='Code Coverage Summary']

Test Suites: 40 passed, 40 total
Tests:       1185 passed, 1185 total
Snapshots:   0 total
Time:        48.277 s
/work/cashtab/coverage/lcov-report /work/cashtab /work/abc-ci-builds/cashtab-tests
/work/cashtab /work/abc-ci-builds/cashtab-tests
mv: cannot move 'test' to '/work/abc-ci-builds/cashtab-tests/test': Directory not empty
Build cashtab-tests failed with exit code 1

Tail of the build log:

  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |       0 |        0 |       0 |       0 |                                                                                                                                                                                                                                                                                 
 src/opreturn                           |    97.6 |    96.25 |     100 |    97.6 |                                                                                                                                                                                                                                                                                 
  index.ts                              |    97.6 |    96.25 |     100 |    97.6 | 149,165-166                                                                                                                                                                                                                                                                     
 src/opreturn/fixtures                  |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/test                               |    92.5 |    66.66 |     100 |    92.5 |                                                                                                                                                                                                                                                                                 
  index.tsx                             |    92.5 |    66.66 |     100 |    92.5 | 119,146-147                                                                                                                                                                                                                                                                     
 src/token-protocols                    |   95.55 |     90.9 |     100 |   95.55 |                                                                                                                                                                                                                                                                                 
  index.ts                              |   95.55 |     90.9 |     100 |   95.55 | 161,182                                                                                                                                                                                                                                                                         
 src/token-protocols/alp                |     100 |    93.33 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  index.ts                              |     100 |    93.33 |     100 |     100 | 68                                                                                                                                                                                                                                                                              
 src/token-protocols/alp/fixtures       |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.ts                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/token-protocols/fixtures           |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.ts                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/token-protocols/slpv1              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  index.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/token-protocols/slpv1/fixtures     |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/transactions                       |   98.79 |     92.3 |     100 |   98.79 |                                                                                                                                                                                                                                                                                 
  index.js                              |   98.79 |     92.3 |     100 |   98.79 | 182                                                                                                                                                                                                                                                                             
 src/transactions/fixtures              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/validation                         |   96.57 |    94.42 |     100 |   96.79 |                                                                                                                                                                                                                                                                                 
  index.ts                              |   96.57 |    94.42 |     100 |   96.79 | 70-71,236,271,337,535,642-643,934,939,1318-1321                                                                                                                                                                                                                                 
 src/validation/fixtures                |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
 src/wallet                             |   94.18 |    88.34 |   92.72 |   94.15 |                                                                                                                                                                                                                                                                                 
  context.tsx                           |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  index.ts                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  useWallet.ts                          |   90.54 |    79.68 |   85.71 |   90.54 | 127,209-210,587-593,632,637,694-695,706,711-727,741,767,804,819,832-834,893,930,1003                                                                                                                                                                                            
 src/wallet/fixtures                    |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  mocks.js                              |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
  vectors.js                            |     100 |      100 |     100 |     100 |                                                                                                                                                                                                                                                                                 
----------------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

##teamcity[blockOpened name='Code Coverage Summary']
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='5548']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='6407']
##teamcity[buildStatisticValue key='CodeCoverageAbsRCovered' value='3196']
##teamcity[buildStatisticValue key='CodeCoverageAbsRTotal' value='3870']
##teamcity[buildStatisticValue key='CodeCoverageAbsMCovered' value='1023']
##teamcity[buildStatisticValue key='CodeCoverageAbsMTotal' value='1252']
##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='5447']
##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='6293']
##teamcity[blockClosed name='Code Coverage Summary']

Test Suites: 40 passed, 40 total
Tests:       1185 passed, 1185 total
Snapshots:   0 total
Time:        49.457 s
/work/cashtab/coverage/lcov-report /work/cashtab /work/abc-ci-builds/cashtab-tests
/work/cashtab /work/abc-ci-builds/cashtab-tests
mv: cannot move 'test' to '/work/abc-ci-builds/cashtab-tests/test': Directory not empty
Build cashtab-tests failed with exit code 1
bytesofman added a subscriber: bytesofman.

rebase and wait for CI to clear but looks good

FYI deployed to https://cashtab-local-dev.netlify.app/ for testing

This revision is now accepted and ready to land.Thu, Apr 24, 13:44
This revision was automatically updated to reflect the committed changes.