offers flow + toast notifications + auth UX improvements#9
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
this pr improves user feedback across the app by replacing inline error states with toast notifications, introduces a full offer creation flow on the product page, and improves authentication and session UX. it also cleans up the root layout and updates branding in auth screens and the header.
toast notifications system
centralized user feedback
this pr replaces inline success and error messages with toast notifications to provide a more consistent and non-blocking feedback system.
changes:
result:
users now receive immediate feedback without breaking layout flow or requiring additional UI elements.
account page improvements
toast based feedback
profile updates now use toast notifications instead of inline messages.
changes:
session management
added a dedicated session section to allow users to sign out directly from their account page.
changes:
result:
simpler account UI with clearer feedback and explicit session control.
product page offer system
this pr introduces a complete offer submission flow with validation, confirmation, and optional messaging.
offer dialog
replaced the old modal card with a proper dialog component.
changes:
validation
added validation before sending offers.
checks include:
invalid input now triggers a destructive toast instead of failing silently.
offer success confirmation
after submitting an offer the user sees a confirmation dialog.
success dialog features:
seller messaging shortcut
users can start a conversation directly after submitting an offer.
flow:
submit offer → success dialog → send message → redirect to conversation
the message automatically includes the submitted offer amount.
owner protection
prevent users from interacting with their own listings.
changes:
result:
clearer marketplace interaction rules and better UX safeguards.
product interaction improvements
swipe feedback
swipe errors are now handled with toast notifications instead of inline error cards.
contact seller improvements
starting a conversation now:
header authentication UX
auth loading state
added a loading state to prevent auth flicker.
changes:
notification actions
notification actions now respect auth loading state.
changes:
mobile menu hydration fix
added suppressHydrationWarning to the mobile menu button to avoid hydration mismatch warnings.
branding updates
header logo update
the header brand now uses the swap logo without text.
changes:
signin page branding
updated signin page branding to match the application identity.
changes:
new hero message:
Swipe. Match. Trade.
layout cleanup
root layout simplification
cleaned up the global layout configuration.
changes:
dependency addition
added sonner dependency for toast notifications.
result
this pr improves the product interaction experience and overall UX by: