WFDASH-WEBAPP/docs/pocketbase
SJCoetz 7f70258037 feat(management): new Pricelist page with drag-drop upload + queue table
Adds /pricelist under the Management section. Operators drag a supplier
price-list file (PDF / CSV / text / image) into the upload zone — or
use the explicit Choose file button — and it lands in PocketBase as an
attachment on the raw_price_list collection. The table below shows the
queue: file, supplier (relation to suppliers), status badge, log
summary preview, upload date, and a delete action per row.

Layout matches the rest of the app: Card for the upload zone, DataTable
for the queue, DeleteDialog for the destructive action. Live updates
via the PB subscribe channel so other tabs / the n8n ingest workflow
show new rows without a manual refresh.

PB schema is sourced from docs/pocketbase/raw_price_list.collection.json.
The migration script is idempotent: it creates the collection from the
schema file on a fresh deploy, and on a pre-existing one (the live PB
already had it, with PB's default null/superuser-only rules) it relaxes
the auth rules to @request.auth.id != '' so any logged-in user can
CRUD — matching every other collection in the app.

Field names match the live PB collection (discovered via admin API):
  - supplier_file (the file)
  - supplier_name (relation to suppliers)
  - status        (select: Pending / Processing / Completed / Failed)
  - log_summary   (free text)
2026-06-30 09:14:36 +02:00
..
collection_pool.collection.json chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
delivery_note_items.collection.json Add PocketBase collections, APIs & migration docs 2026-05-25 18:39:33 +02:00
delivery_notes.collection.json Add PocketBase collections, APIs & migration docs 2026-05-25 18:39:33 +02:00
order_items.collection.json chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
order_items_v2.collection.json chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
quote_attachments.collection.json feat: add quote templates, improved email, new statuses 2026-06-24 22:57:01 +02:00
quote_counters.collection.json feat(quotes): add email-to-quote pipeline with attachments and replies 2026-06-16 20:46:28 +02:00
quote_replies.collection.json feat(quotes): add email-to-quote pipeline with attachments and replies 2026-06-16 20:46:28 +02:00
raw_price_list.collection.json feat(management): new Pricelist page with drag-drop upload + queue table 2026-06-30 09:14:36 +02:00
repairs.collection.json Add PocketBase collections, APIs & migration docs 2026-05-25 18:39:33 +02:00
wfdash_workflow_collections.import.json Add PocketBase collections, APIs & migration docs 2026-05-25 18:39:33 +02:00