tane/apps/app_seeds/drift_schemas
vjrj 3de01bd948 perf(inventory): lazy list, photo thumbnails, indexes, debounced reload
Scale the local inventory to 10k+ varieties:
- Render the list with ListView.builder over a flattened header/item model
  instead of building every tile upfront.
- Store a small regenerable JPEG thumbnail per photo (schema v14) and use it
  for the 48px list avatar; full bytes stay for offer image hosting. Existing
  photos are backfilled lazily at startup. Thumbnail is local-only (excluded
  from CRDT sync and backups by the JSON codec).
- Add indexes on varieties(is_deleted,is_draft), attachments(parent_type,
  parent_id,kind), lots(variety_id) via @TableIndex.
- Debounce watchInventoryView (~250ms) so a burst of table writes triggers one
  reload, not seven.
- cacheWidth/cacheHeight on the list avatar decode.
- Scale test raised 3k -> 10k; migration test v13 -> v14.
2026-07-20 22:53:48 +02:00
..
drift_schema_v1.json feat(block1): inventory walking skeleton + first quick-add slice 2026-07-07 15:16:14 +02:00
drift_schema_v2.json feat(inventory): informal quantity scale (number + unit) + seed/plant lots 2026-07-08 10:51:02 +02:00
drift_schema_v3.json feat(inventory): month/year harvest date picker (schema v3) 2026-07-08 12:09:38 +02:00
drift_schema_v4.json feat(db): lot presentation + attachment sort order (schema v4→v5) 2026-07-09 11:51:21 +02:00
drift_schema_v5.json feat(db): lot presentation + attachment sort order (schema v4→v5) 2026-07-09 11:51:21 +02:00
drift_schema_v6.json feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
drift_schema_v7.json feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
drift_schema_v8.json feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
drift_schema_v9.json feat(plantare): reproduction-commitment data layer (schema v9) 2026-07-11 02:01:25 +02:00
drift_schema_v10.json feat(sales): local sales/purchase ledger (any currency) 2026-07-11 02:33:42 +02:00
drift_schema_v11.json feat(offers): asking price on lots, published with sale offers (schema v11) 2026-07-11 08:00:08 +02:00
drift_schema_v12.json feat(plantare): schema v12 — bilateral signed columns + repo 2026-07-14 11:21:46 +02:00
drift_schema_v13.json feat(app): ask 'how did it do?' when a harvest is noted (schema v13) 2026-07-18 12:18:25 +02:00
drift_schema_v14.json perf(inventory): lazy list, photo thumbnails, indexes, debounced reload 2026-07-20 22:53:48 +02:00