blanchon commited on
Commit
5a67aa1
·
1 Parent(s): 16c253d

Home: POV tab + DuckDB advanced filter

Browse files

- New POV tab listing one row per (round, player). SQL filter results
drop into the same table so the user goes from query to clip.
- DuckDB-wasm singleton, hf:// → https URL rewrite, 1000-row cap.
- CodeMirror SQL editor with light/dark theme via a Compartment;
Cmd/Ctrl+Enter runs the query.
- Six preset recipes adapted from the dataset card (AWP 1v1, smoke
kill, noscope/wallbang, knife, 5-kill burst, long-distance).
- Kill/duel-derived seek times land 2.5s before the event so the
lead-up is visible; tick `t` and explicit start_t stay exact.
- Match page reads ?t= on first land (one-shot, stripped on internal
nav) so deep links from the filter open at the right moment.

13 files changed +1102 -17
Files changed (13)
bun.lock+120
package.json+8
src/lib/components/advanced-filter/advanced-filter.svelteAdded+182
src/lib/components/advanced-filter/map-results.tsAdded+111
src/lib/components/advanced-filter/recipes.tsAdded+154
src/lib/components/advanced-filter/sql-editor.svelteAdded+141
src/lib/components/match-table/cells/player-cell.svelteAdded+16
src/lib/components/match-table/cells/start-time-cell.svelteAdded+18
src/lib/components/match-table/columns.ts+76-1
src/lib/components/match-table/rows.ts+60
src/lib/duckdb.tsAdded+94
src/routes/+page.svelte+100-11
src/routes/match/[matchId]/[mapName]/+page.svelte+22-5