Skip to content

UX polish: motion system, balance card, activity list, send flow states - #633

Open
mkorovkin2 wants to merge 3 commits into
PIVX-Labs:masterfrom
mkorovkin2:mkorovkin2/ux-polish
Open

mkorovkin2 wants to merge 3 commits into
PIVX-Labs:masterfrom
mkorovkin2:mkorovkin2/ux-polish

Conversation

@mkorovkin2

@mkorovkin2 mkorovkin2 commented Oct 6, 2026 •

Copy link
Copy Markdown

Summary

A focused UX pass on the parts of the wallet people see every session. The layout and core elements stay as they are; this adds a consistent motion system, fixes the transitions that were silently broken, and improves the balance card, activity list and send flow. Four small governance/masternode bugs are fixed in a separate commit.

UX changes

Motion foundation

  • Design tokens (:root colours, radii, shadows, durations, easings) at the top of style.css, used by everything new.
  • Modal.vue: the scale-in never ran because it targeted .modal-container, which doesn't exist. It now fades and scales on .modal-dialog, and the global input/select colour rules leaking out of it are gone.
  • BottomPopup.vue: the backdrop now fades and the sheet slides out on close (both used to vanish instantly). The broken -enter-active .-leave-active selector is fixed. Tapping the backdrop closes the sheet.
  • Tabs fade up on switch (CSS only, works with the existing openTab).
  • Toasts slide in, reflow smoothly when one closes, show a countdown bar and an × button, and sit full-width at the top on phones.
  • Bootstrap modals use the same entrance; Redeem and Contacts now fade.
  • Everything respects prefers-reduced-motion.

Balance card (WalletBalance.vue)

  • One class-based card instead of three stacked divs with inline styles, with Send/Receive inside it.
  • A shimmer placeholder during the first sync instead of a misleading 0.00, then the balance counts up (use_animated_number.js). Switching account or mode snaps instead of animating.
  • A brief glow when the balance changes.
  • Sync progress is a slim pill under the card that collapses smoothly. The "Sync Finished" toast, which fired on every account switch, is replaced by the pill briefly showing "Wallet synced".

Activity list (Activity.vue)

  • Grouped under Today / Yesterday / month headers, with keyed rows that animate in and a highlight for newly arrived transactions.
  • Placeholder rows while syncing, and an empty state with a Receive button.
  • On phones (≤576px) each transaction is a two-line row instead of a four-column table that scrolled sideways and clipped amounts.
  • Unconfirmed transactions use an amber hourglass instead of red.

Send flow (TransferMenu.vue, Dashboard.vue)

  • The sheet stays open while sending: the button shows "Sending…", then a green "Sent!", then the sheet closes.
  • Previously the inputs were cleared before the transaction was built, so a failed send lost what you'd typed. Now they're kept on failure.
  • Empty fields, invalid address and insufficient funds show inline under the field with a shake, instead of toasts.

Interaction polish

  • Keyboard focus rings, plus hover, pressed and disabled states for the button families. Fixed the broken .pivx-button-medium gradient and the invalid ::hover rule.
  • Darker inputs that match the theme, with a clear focus state.
  • Animated underline on the active nav tab. The nav tabs and onboarding cards are now keyboard-reachable.
  • The four onboarding cards use the same heading style.

Bug fixes (separate commit)

  • Governance countdown leaked a setInterval on every new block, causing flicker (flipdown.js, Flipdown.vue).
  • createAlert(ALERTS.MN_ACCESS_BEFORE_VOTE, 6000) was missing its type argument (Governance.vue).
  • On mobile, tapping a proposal expanded both the local and network row with the same index (ProposalsTable.vue).
  • Masternode "last seen" showed "Invalid Date", and the status badge flashed red while loading (MasternodeRow.vue).

Testing

  • npx vitest run: 258 tests pass, including 4 new TransferMenu tests for inline validation and the sending state.
  • Production build (npx webpack --config webpack.prod.js) compiles.
  • Checked in the browser at 1440×900 and 390×844 (iPhone 14): onboarding, import, sync, balance, activity, send validation, toasts, modals, Stake, Settings.

Notes for reviewers

  • Cypress: waitForSync waited for the "Sync Finished!" toast, so it now waits for [data-testid="walletBalance"][data-synced="true"]. The wallet_balance.cy.js activity HTML snapshot will need re-recording (npm run cy:record) because the activity markup changed. I couldn't run Cypress locally.
  • Translations: new strings (syncStatusSynced, activityEmpty, dateToday, sendingTransaction, etc.) are in template and en only. Other locales fall back to English.
  • Confirm modal: #confirmModal is deliberately left without fade. Bootstrap 4 ignores show/hide calls made mid-transition, and confirmPopup toggles it programmatically, so a fade could leave it stuck open.
  • Not tested end to end: the "Sent!" success state needs a funded wallet, so only the unit test covers it.

…, missing vote alert type and masternode last-seen fallback
…e-friendly activity list, inline send validation and interaction states
@netlify

netlify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit eb7d907
🔍 Latest deploy log https://app.netlify.com/projects/cheery-moxie-4f1121/deploys/6ac52cb6afaad400080904d4
😎 Deploy Preview https://deploy-preview-633--cheery-moxie-4f1121.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Duddino Duddino left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR, I haven't done a deep review yet, but this looks nice overall. I have one early comment

Comment thread assets/style/style.css
}

/* Skeleton shimmer for loading placeholders */
.skeleton {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I associate this style of shimmering effect with disk reading and things like that, it makes it feel like it's trying to load something heavy, while most of the work is downloading a file.
I don't know if I am explaining what I'm thinking well enough, but I would rather have a less heavy animation for it, perhaps simply an opaque 0 balance

This branch has not been deployed

No deployments
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