Skip to content

Add explicit save confirmation to garment upload flow - #123

Open
guiu-rocafort wants to merge 2 commits into
Lazztech:mainfrom
guiu-rocafort:lib-4-garment-upload-feedback
Open

Add explicit save confirmation to garment upload flow#123
guiu-rocafort wants to merge 2 commits into
Lazztech:mainfrom
guiu-rocafort:lib-4-garment-upload-feedback

Conversation

@guiu-rocafort

Copy link
Copy Markdown

Fixes #15

Summary

  • Garment create and photo upload previously redirected silently with no confirmation the save worked (Upload Garment UX #15)
  • Adds auto-dismissing "Garment saved!" / "Photo saved!" toasts after create and photo upload
  • Cleans up the success URL flag so a page refresh does not replay the toast

Testing

  • Full Playwright regression at desktop and mobile viewports, plus form validation and console-error checks -- all passing
  • Verified toast placement does not overlap the garment title heading or bottom navigation dock at either viewport
  • Unit suite: 13/13 passing

This change was written with AI assistance.

guiu-rocafort and others added 2 commits July 22, 2026 23:44
Uploading a garment gave no feedback about whether the save succeeded
(Lazztech#15) — creating a garment and attaching its photo
both just redirected silently. Add a one-shot success toast after each
step (garment created, photo saved), reusing the existing DaisyUI
toast/alert pattern from the calendar view, and strip the flag from the
URL afterwards so refreshing or sharing the link doesn't replay it.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
UX review (LIB-13) found the success toasts added for garment/photo
save land at top-20 (80px), directly over the h1 heading for the
full 4s they're visible, at both mobile and desktop viewports. Bump
to top-36 (144px) so the toast sits over the photo placeholder
instead, clear of the heading and the bottom dock nav.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@gianlazz

Copy link
Copy Markdown
Member

This looks like a nice small improvement. I'll take a closer look when I have time but I anticipate merging this.

Thank you for the contribution!

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.

Upload Garment UX

2 participants