Add Load sample data to the native table port #86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/table-sample-data"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #85.
An empty port table offers little to try. Add a Load sample data button beside Add row, inserting 215 examples into the selected collection through the native ORM. The examples cover multiple pages, zero quantities, checked/unchecked booleans, varied dates, empty notes and missing optional values. Loading clears the title filter and selects ascending order.
Use fixed identities per class/collection and insert only missing examples, preserving existing rows and edited samples on repeat loads. Validate all candidates before writing, use one bounded set of known sample subjects, commit through an ORM transaction and confirm the inserted records with a separate read. Loading is disabled while row drafts exist. No schema replacement or SPARQL table-query path is added.
Clarify that this runner uses its own
PortRowclass, and document how to create rows: Add row creates immediately; Enter/a second click opens cell editing; Save drafts commits cell edits.Validation: port typecheck, production build and all 12 native browser tests passed. The new scenarios start from an empty wallet and verify paging, exact filtering beyond page one, repeated loads preserving edits, existing user rows, collection isolation and row creation after loading. Desktop/mobile previews were captured and inspected.
Setup also refreshes an existing pnpm file-package snapshot with a forced frozen install and clears the generated runner Vite cache. This prevents missing exports such as
ViewTabwhen an upstream commit changes without a package version/lockfile change. Verified by deliberately installing the former archive, reproducing the missing-export error, running setup, checking the restored export/cache removal, and passing real browser hydration/sample loading and port typecheck. Stop the dev server before setup and restart it afterward.