feat: add copy-flash visual feedback — closes #100 #113
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#113
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/issue-100-copy-flash-feedback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When clicking to copy text, the element briefly flashes with inverted colors (bg↔fg) and fades back over ~300ms. Provides localized visual feedback alongside the existing flash message.
Applied to all click-to-copy elements: addresses, tx hashes, block numbers, contract addresses, private keys.
closes #100
Implementation summary:
CSS (
main.css): Added.copy-flash-active(instant invert via--color-fg/--color-bgswap) and.copy-flash-fade(300ms ease-out transition back to normal). Works in both light and dark mode via CSS variables.Helper (
helpers.js): NewflashCopyFeedback(el)— adds active class, removes after 100ms triggering the fade-back transition, cleans up after 350ms.All views updated: home, receive, addressDetail, addressToken, transactionDetail, confirmTx, txStatus — every
showFlash("Copied!")call site now also callsflashCopyFeedback()on the clicked element.docker build .passes. Existing flash message retained for accessibility.Oh wow, it looks great. You can make it go 20-25% faster. It feels kind of laggy with the current timing.
668d967a5ctoff4b5ee24d✅ Review: PASS
Summary: Clean implementation of copy-flash visual feedback. The approach is solid:
flashCopyFeedback()in helpers.js uses class toggling with CSS transitions — no JS animation librariesvar(--color-fg)/var(--color-bg)for the inversion, respecting the existing themedocker build .passesNote: README says "no animations" but this is an explicit exception per issue #100 — it's functional copy feedback, not layout animation.
Labeling
merge-readyand assigning to sneak for final merge.Follow-up PR #121 created to speed up timing by ~25% per sneak's feedback: