Add manual critical table cell editor

This commit is contained in:
2026-03-14 15:09:16 +01:00
parent 4e518244a2
commit 6e28ad975f
16 changed files with 1105 additions and 27 deletions

View File

@@ -3,6 +3,7 @@
Starter `.NET 10` Blazor Web App with:
- minimal API endpoints for attack and critical table lookup
- manual cell-edit tooling for repairing imported critical-table entries
- `EF Core 10` with SQLite
- seeded starter data for `Broadsword`, `Short Bow`, `Slash`, and `Puncture`
- an interactive Blazor lookup UI
@@ -20,7 +21,11 @@ The app creates `rolemaster.db` on first run.
- `GET /api/reference-data`
- `POST /api/lookup/attack`
- `POST /api/lookup/critical`
- `GET /api/tables/critical/{slug}/cells/{resultId}`
- `PUT /api/tables/critical/{slug}/cells/{resultId}`
## Notes
The tables page now supports manual curation of imported critical-table cells. Hovering a populated cell shows that it is editable, and clicking opens a popup editor for the full `CriticalResult` record plus its nested `CriticalBranch` and `CriticalEffect` rows.
The current database is an initial seeded subset designed to prove the full lookup workflow. The existing schema notes in `critical_tables_db_model.md` and `critical_tables_schema.sql` are still useful as the source of truth for expanding the import pipeline and normalizing more of the official tables.