Skip to content

Mark item as purchased during trip#38

Open
tylergannon wants to merge 2 commits into
mainfrom
feature/issue-34
Open

Mark item as purchased during trip#38
tylergannon wants to merge 2 commits into
mainfrom
feature/issue-34

Conversation

@tylergannon

Copy link
Copy Markdown
Contributor

Closes #34

Changes

Extended the WishlistItem type and database schema to support a purchased status with optional actual_price (in USD cents) and weight_g fields, including a DB migration with a CHECK constraint on status values (want, purchased, packed). Updated WishlistPage.svelte to let users mark items as purchased, enter the actual purchase price, and optionally update weight, with purchased items visually distinguished and the trip view showing a purchased vs. remaining count.

- Add WishlistItem type and parseWishlistItem() helper (lib/wishlist.ts)
- Add Supabase client wrapper (lib/supabase.ts)
- Add /wishlist route with WishlistPage component
  - Text input: 'Describe what you want...'
  - Optimistic add with Supabase persistence
  - Empty state, validation error on blank submit
  - Items listed by name (derived from first sentence of description)
- Configure vitest with jsdom + @testing-library/svelte vite plugin for Svelte 5
- 16 tests passing (8 unit, 8 component)
- Add Supabase migration documenting wishlist_items schema
@vercel

vercel Bot commented Feb 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
travel-planner Error Error Feb 26, 2026 6:52pm

Request Review

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.

Mark item as purchased during trip

1 participant