Skip to content

Silence success toasts on item-tag complete/idle in ShopDetailView#44

Merged
dadachi merged 1 commit intosubstrate-v2from
substrate-v2--silence-tag-success-toasts
Apr 25, 2026
Merged

Silence success toasts on item-tag complete/idle in ShopDetailView#44
dadachi merged 1 commit intosubstrate-v2from
substrate-v2--silence-tag-success-toasts

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented Apr 25, 2026

Summary

Ports nativeapptemplate/NativeAppTemplate-iOS#52. The swipe action on ShopDetailView already reflects the state change via ShopDetailCardView's re-render after reload(); the extra success toast (itemTagCompleted / itemTagIdled) was redundant noise. Errors still post to the message bus, so users still see feedback when something actually fails.

Changes

  • ShopDetailViewModel.completeTag / idleTag: dropped the success `messageBus.post(...)` calls.
  • ShopDetailViewModelTest.completeTag / idleTag: now assert `currentMessage == nil` on success (failure tests unchanged).
  • Constants.swift: removed the now-unused `itemTagCompleted` / `itemTagIdled` strings; kept the `*Error` variants.

Test plan

  • `xcodebuild build-for-testing` — `** TEST BUILD SUCCEEDED **`
  • `make lint` — `0 violations`
  • `xcodebuild test` passes (please verify in Xcode with Cmd+U)
  • Manual simulator smoke test: swipe-to-complete and swipe-to-idle no longer show a green success toast; failure case still shows red error toast.

🤖 Generated with Claude Code

Ports nativeapptemplate/NativeAppTemplate-iOS#52.
The swipe action already reflects the state change via ShopDetailCardView's
re-render after reload(); the extra success toast was redundant noise.
Errors still post to the message bus so users still see feedback when
something actually fails.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit 0ac0bd8 into substrate-v2 Apr 25, 2026
2 checks passed
@dadachi dadachi deleted the substrate-v2--silence-tag-success-toasts branch April 25, 2026 03:26
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.

1 participant