Repository navigation
v0.13.0 — Wishlist and organization
A private, self-hosted wishlist and product organizer. v0.13.0 ships wishlist organization: bulk product actions, a product archive with read-only details, restore and permanent delete, full wishlist duplication and manual collection ordering.
DerList v0.13.0 — Wishlist and organization
Wishlist and organization
Status: released. This is the v0.13.0 release announcement.
Added
Bulk product management
- Product selection checkboxes in list and category views
- Select all visible products
- Select all products in the current collection, including ones hidden by the active search or filter
- Clear selection and a live selected-product count
- Bulk-action toolbar that appears only while products are selected
- Move selected products into another collection
- Set or clear the category of selected products, creating the category record when needed
- Change the star priority of selected products
- Archive selected products
- Delete selected products behind a confirmation dialog
- Per-action result reporting, including updated and skipped counts for partial selections
Product archive
- Archive individual products from their row or in bulk
- Dedicated archived-products view for each collection
- Owner-scoped archived-product detail pages that can be opened from the archive row
- Archived details show description, images, product and store links, notes, current and target
prices, quantity, priority, category, tags, condition, availability, store/source information,
archive date, archive status and specifications when saved - Restore an archived product directly from its detail page
- Permanently delete an archived product from its detail page behind a confirmation dialog
- Archived details are read-only until restored; the item form, quick edit, purchased toggle,
priority control, detail editor and item-editor API all reject edits to archived products - Dedicated archive 404 state for missing, permanently deleted, restored or foreign items
- Search/category context is preserved when opening an archived product and returning to the archive
- Search archived products and filter them by category
- Archived counts on the collection header and collection cards
Wishlist organization
- Manual wishlist ordering with move-up / move-down card actions
- Per-card actions for duplicate, archive, and delete
- Product counts that exclude archived items
- Archived-item counts per collection card
- Empty descriptions are labelled instead of leaving a blank card
Changed
- Duplicating a wishlist now copies every item field, category metadata, category relationships,
priorities, notes, metadata, source URLs, and product links into independent wishlist-item
records, then opens the new collection. - Wishlist cards expose descriptions, counts and actions without making the whole card a single
link target. - Archived products are excluded from collection views, statistics, dashboard counts and feeds,
global search, the live wishlist panel, AI organizer input, folder suggestions, assistant
inventory, product pages, copies, and ordinary queries. Account export still includes them. - Archive rows link to the product detail view and expose an explicit Details action.
- Viewing an archived product is strictly read-only and never restores it.
- Bulk priority changes update both the star priority and the matching priority level.
- The header Copy dialog now matches full collection duplication: every item field, metadata and
specifications, tags, store/source data and category relationships are copied into independent
records.copyTagsandcopyMetadataare honoured independently instead of being ignored. - Account export is lossless for stored data: archive state and date, metadata, product links,
deal information, model, condition, availability, target price and category relations are
included, along with collection slug, ordering, visibility, notice and Top Picks. - Imported specifications now use the canonical
metadata.specskey. Existing rows written with
metadata.specificationscontinue to display in archived details and the product editor. - Dashboard counters now report active collections and active product counts; the label reads
"Active Wishlists". Totals, recent items, recently imported products and price drops also
exclude archived collections, so every dashboard number describes the active view. Archived
collections are reordered within their own list and no longer disturb active collection
ordering.
Fixed
- Editing a wishlist no longer archives it: the string
"false"was previously coerced to
trueby the validation schema, and an omitted value is now left unchanged. - Row star priorities refresh after a bulk priority change instead of showing a stale local value.
- Collection totals and counts no longer include archived products.
- Collection page metadata is owner-scoped, so requesting a foreign collection no longer exposes
its title through the document title while the page body shows "Page not found". - A bulk delete with an omitted or malformed archive mode is now rejected instead of widening its
scope; an explicitactiveorarchivedmode is required at both the action and service layer. - Moving a product no longer leaves
wishlistCategoryIdpointing at a category in the source
collection. Categories are remapped to the destination collection (or the relation is cleared)
across bulk move, the product details dialog, quick edit, the product editor API and the AI
organizer. - Archived collections are rejected as move destinations by the UI, the bulk service and the
details action. - Saving the full product editor now merges the submitted metadata into the stored blob instead
of replacing it, so enrichment-owned keys such aspros,cons,buyingAdviceand
fieldConfidencesurvive an edit. - Dashboard cards and collection cards can no longer force horizontal scrolling on a phone:
grid items are allowed to shrink and truncate long, unbroken product titles. - Modal dialogs restore focus to their trigger when they close, and action menus open on the
first enabled item. A disabled first action (such as "Move up" on the first collection) no
longer leaves keyboard focus outside the menu. - An action menu reopened while a pending action still disables every entry keeps a valid
keyboard target once that action finishes, so Enter and Space no longer do nothing. - Activating a menu item with Space restores focus to its trigger on key release instead of
letting the keyup reopen the menu, and the product editor drawer keeps Tab focus inside its
aria-modalpanel. - The
workercompose service no longer inherits the image's/api/healthcheck, which probes a
port the worker never listens on and therefore reported it unhealthy forever. Worker liveness is
verified by the CI worker job and by the worker's own log output.
Security
- Bulk mutations are scoped by collection, owner, and item id in the same query; foreign or
mismatched ids are skipped and reported. - Moving products validates ownership of the destination collection.
- Duplicate, archive, restore, and permanent-delete paths reject foreign collections and items
the same way as missing records. - Archived detail queries scope the item, collection and owner in one predicate; foreign or
mismatched ids render the archive 404 state without exposing titles, notes or private metadata. - Archived items are read-only server-side: editor API writes return
409, and item actions reject
archived records until restore. Client-side UI restrictions are not the only barrier. - AI assistant item update/reorder/remove tools reject archived products, folder application skips
them and cannot create a folder from an archived-only selection, product enrichment ignores
archived items, and assistant "clear wishlist" removes active items while preserving the archive. - Wishlist document metadata is looked up by collection id and owner id. Missing, foreign and
signed-out requests receive generic metadata; no foreign title or description is emitted. - Bulk deletion requires an explicit archive state at both the Server Action and service layers,
so a crafted call cannot omit the mode, submit an unexpected value, or widen its scope. Owner
and collection scoping remain in the same deletion predicate. - Bulk and single-item moves validate destination ownership and active status server-side, and
re-link categories only to records owned by the destination collection. - Multi-record moves, category changes, quick edits, editor writes and AI organizer applies run in
database transactions. - Upload storage paths opt out of Turbopack's whole-project file tracing, and the
postbuildstep
removes Next's intentional.env/.env.productioncopies from.next/standalone. The
supported Docker build already excluded those files via.dockerignore; a direct standalone
deployment no longer ships them either.
Database
- Additive migration
20261119000000_add_item_archiveaddsarchivedandarchivedAtto
wishlist_itemsplus an index on(wishlistId, archived). No existing columns or relations were
restructured. - Additive migration
20261119120000_enforce_wishlist_category_integrityadds a unique
(id, wishlistId)key towishlist_categoriesand replaces the single-column category foreign
key with a composite(wishlistCategoryId, wishlistId)foreign key. The migration aborts without
changing data if any existing row already references a category in another collection. - Archived detail access required no additional migration; it reads the existing item, product,
category and metadata fields. scripts/preflight-wishlist-category-integrity.sqlis a read-only preflight for the composite
category migration. It reports item and category totals, products with a category, every
blocking integrity condition and the migration's own index/constraint preconditions, and it
documents the expected clean result. It ran clean against the local database (0 blocking
violations) and was verified to report a cross-collection row as 1.
Deployment
- Upgrading an existing installation: back up the database, run the read-only preflight, then
start the new image.blocking_violations_totalmust be0; a nonzero value aborts the
migration without changing data. See the README upgrade section for the exact command. - The production image is built and exercised by the
docker-verifyCI job: it builds the image,
starts the compose stack with a disposable PostgreSQL database, applies migrations through the
entrypoint, checks/api/healthand/login, confirms the non-root runtime user (uid 1001),
checks that no.envfile or test/build artifact is inside the image, restarts the database and
the app to prove PostgreSQL and upload persistence, and checks the worker and container logs. - Verified against PostgreSQL 16 and Node 22 in CI. The image does not contain runtime secrets;
configuration is supplied through the container environment. - Not verified in this release cycle: a production database preflight (no production credentials
or identified production target were available) and a screen-reader accessibility audit.
Testing
- The database-backed tests cover bulk category/priority/move/archive/delete behaviour, required
archive-state deletion, mixed active/archived selections, cross-account attempts, archived detail
read-only enforcement, the editor API, assistant/folder/clear guards, restore/delete safety, the
500-item cap, wishlist duplication, the Copy API options, account export completeness, move and
category integrity (including the database composite foreign key), collection ordering,
collection-metadata privacy, metadata merging and canonical import specification keys. - 24 Playwright browser tests cover archived detail access, cross-account denial, restore from the
detail page, confirmed permanent deletion, read-only viewing, deleted-detail handling, mobile
archive navigation, the 501-item cap, filtered selection, partial bulk failures, archive category
selection, collection duplication, legacy specification rendering, cross-account metadata
privacy, dashboard counts for mixed active/archived collections, responsive layout bounds,
dialog/menu focus management, keyboard collection ordering (including disabled actions),
drawer/dialog focus containment and restoration, bulk-selection announcements and canonical vs.
legacy specifications in the product editor. - Full Vitest suite: 336 tests across 33 files. Playwright suite: 24 tests across 8 files.
Upgrade notes
Back up the database, then run the read-only category-integrity preflight before starting the new image:
psql "$DATABASE_URL" -v ON_ERROR_STOP=1 -f scripts/preflight-wishlist-category-integrity.sqlblocking_violations_total must be 0. The migration aborts without changing data if any product references a category in another collection. The Docker entrypoint applies the two additive migrations in order.
Verification
TypeScript, ESLint (0 errors), 336 Vitest tests across 33 files, 24 Playwright tests across 8 files, and the production build all pass. CI also built the production image and exercised the compose stack: /api/health, /login HTTP 200, migrations applied, owner seeded, PostgreSQL and upload persistence across restarts, non-root runtime user (uid 1001), no .env files inside the image, and a clean worker with zero restarts.