Skip to content

Show success toast on buy or sell key transaction#552

Open
Tijesunimi004 wants to merge 1 commit into
accesslayerorg:devfrom
Tijesunimi004:feature/toast-on-buy-sell-transaction
Open

Show success toast on buy or sell key transaction#552
Tijesunimi004 wants to merge 1 commit into
accesslayerorg:devfrom
Tijesunimi004:feature/toast-on-buy-sell-transaction

Conversation

@Tijesunimi004

Copy link
Copy Markdown

Summary

After a buy or sell trade confirms, the trade confirmation toast now reads "Bought {n} key{s} from {creator}" or "Sold {n} key{s} from {creator}" instead of a generic "Holdings refreshed" message. The quick-buy demo flow in CreatorCard uses the same wording for consistency.

Toast auto-dismiss (4s) was already in place in toast.util.tsx and did not need changes.

Closes #540

Changes

  • LandingPage.tsx: handleConfirmTrade builds the toast message with quantity and creator name for both buy and sell.
  • CreatorCard.tsx: quick-buy success toast message updated to match the same wording.
  • Added LandingPage.tradeConfirmToast.integration.test.tsx covering both buy and sell confirmation toasts.

Test plan

  • pnpm vitest run src/pages/__tests__/LandingPage.tradeConfirmToast.integration.test.tsx passes
  • pnpm lint clean (no new errors)
  • pnpm tsc -b clean
  • Full suite run to confirm no new failures introduced (19 pre-existing failures unrelated to this change, verified via git stash comparison against base branch)

Trade confirmation now shows "Bought/Sold {n} key(s) from {creator}"
instead of a generic holdings-refreshed message. The quick-buy demo
flow in CreatorCard uses the same wording for consistency.
Copilot AI review requested due to automatic review settings July 23, 2026 19:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Add toast notification on successful key buy or sell transaction

2 participants