Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

feat(account): improve the empty state #4897

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

qd-qd
Copy link
Contributor

@qd-qd qd-qd commented Apr 6, 2022

🦒 Context (issues, jira)

Until now, the header in the account page for an empty account (no txs) wasn't
rendered. Because of this, walletconnect button wasn't rendered, you needed
some tokens to see it appears. This commit fixes this, from now, walletconnect
button and receive/buy buttons would be rendered for any empty accounts.
As it is not required to own tokens to use walletconnect, this modification makes
sense to me. Regarding the receive/buy buttons, I think it's better to have them
always available, even for empty accounts (we missed a business opportunity by
hidding the buy button in this case).

💻 Description / Demo (image or video)

Before

Screenshot 2022-04-08 at 15 04 42

After

Screenshot 2022-04-08 at 15 04 44

🖤 Expectations to reach

PR must pass CI, rebase develop if conflicts. Thanks!

  • on QA: at least one of these two checkboxes must be checked:
    • a specific test planned is defined on Jira
    • this PR is covered by automatic UI test
  • on delivery: at least one of these two checkboxes must be checked:
    • Option 1: no impact: The changes of this PR have ZERO impact on the userland (invisible for users)
    • Option 2: atomic delivery: the changes is atomic and complete (no partial delivery)

@qd-qd qd-qd requested a review from a team as a code owner April 6, 2022 10:24
@qd-qd qd-qd self-assigned this Apr 6, 2022
@github-actions
Copy link

github-actions bot commented Apr 6, 2022

Thanks for your contribution.
To be groomed for next release, you need to:

  • pass the CI
  • if needed, run /generate-screenshots
  • have a dev review
  • have a QA review

Why /generate-screenshots ?

If your PR contains UI related changes,
it might be necessary to regenerate screenshots.

@qd-qd
Copy link
Contributor Author

qd-qd commented Apr 6, 2022

/generate-screenshots

@github-actions
Copy link

github-actions bot commented Apr 6, 2022

@qd-qd qd-qd force-pushed the feat/account-action-empty-state branch from fc393df to 0d7b219 Compare April 6, 2022 10:30
@github-actions
Copy link

github-actions bot commented Apr 6, 2022

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 8.74% 9/103
🔴 Branches 0% 0/19
🔴 Functions 2.94% 1/34
🔴 Lines 8.33% 8/96

Test suite run success

1 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 0d49a28

Until now, the header in the account page for an empty account (no txs) wasn't
rendered. Because of this, walletconnect button wasn't rendered, you needed
some tokens to see it appears. This commit fixes this, from now, walletconnect
button and receive/buy buttons would be rendered for any empty accounts.
As it is not required to own tokens to use walletconnect, this modification makes
sense to me. Regarding the receive/buy buttons, I think it's better to have them
always available, even for empty accounts (we missed a business opportunity by
hidding the buy button in this case).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants