domaino/pocketbase/pb_migrations
agent e896fd3c99 Shop: item priority, block sort order and an optional "Sort by" menu
- items.priority (migration + pb_schema.json): Recommended order in Shop
  blocks, higher first, then by name. Set under Services & products, which
  now lists items in that order.
- Shop block: choose its order (Recommended, Most popular, price up/down,
  name) and optionally let visitors re-sort with a "Sort by" menu.
  sortItems() in shared/items.ts is the one place items are ordered.
- Most popular: GET /api/shop/popular returns item ids by units sold in
  paid orders over the last 90 days (ids only, no sales figures).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gWt7pNdAsocjxujY3m
2026-11-04 22:36:50 +00:00
..
1791244800_lock_rules_dates_unique.js PocketBase: close public sign-up, lock commerce writes, add dates/unique keys 2026-10-06 10:55:12 +00:00
1791331200_lock_order_lines.js Lock order_lines writes (they were public) 2026-10-06 12:34:51 +00:00
1792800000_items_buffer_minutes.js Services: per-service get-ready time (items.bufferMinutes) 2026-10-24 07:41:17 +00:00
1792800100_slot_capacity_and_line_holds.js Shop: places per slot, and bookings block overlapping slots 2026-10-24 08:26:37 +00:00
1793000000_orders_anonymise.js Customers page: export, correct and erase personal data; automatic retention 2026-10-24 10:44:45 +00:00
1793100000_durations_and_time_windows.js Windows: choose the start-time step (10–60 min, default 30) 2026-10-25 21:03:40 +00:00
1793200000_bundles_and_passes.js Stock: items.trackStock, so an empty stock really means unlimited 2026-10-25 21:39:51 +00:00
1793300000_text_blocks_visual_editor.js Visual text editor; Cards, FAQ and HTML blocks; block anchors 2026-10-26 12:58:15 +00:00
1793400000_json_field_limits.js Schema: explicit size limits on JSON fields 2026-11-03 09:43:49 +00:00
1793500000_item_priority.js Shop: item priority, block sort order and an optional "Sort by" menu 2026-11-04 22:36:50 +00:00