Skip to content

Query Console (Phase 1) + cluster ComponentCollections + faster reopen + Workbench polish (#386) - #390

Merged
nockawa merged 2 commits into
mainfrom
feature/386-query-console
Jun 3, 2026
Merged

nockawa merged 2 commits into
mainfrom
feature/386-query-console

Conversation

@nockawa

@nockawa nockawa commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes the author → run → see results → iterate loop for the Workbench (Phase 1 of #386), plus the engine/storage features it needed and a round of Workbench UI hardening. Two commits: the #386 feature work, and a "Hardening" pass (friendly naming, File Map reveal, tree interaction).

~222 files, +21.6k/−2.7k.

Query Console — Phase 1 (#386)

  • Author + run + browse against a live .typhon: chip/DSL authoring, QuerySpec IR, host-side recursive-descent DSL parser (DslParser) and QuerySpec → EcsQuery<T> compiler (QuerySpecCompiler + ExpressionTreeBuilder building Expression<Func<T,bool>> from predicate-DTO trees for indexed WhereField filters).
  • SELECT projection stage (component-level columns); default no-SELECT behavior unchanged.
  • REST: QueryConsoleController (/query/plan · /query/execute · /query/parse) + QuerySpecDto / QueryPlanDto / QueryResultDto; QueryConsoleService + CompiledQuery.
  • Client: panels/QueryConsole/ + useQueryConsoleStore, wired into the view registry / palette / menu.
  • Spatial query compiler wired end-to-end (Query Console — SPATIAL execution (NEARBY / AABB / RAY) #388).

ECS / storage

  • ComponentCollection support on SingleVersion (in-cluster, in-place) and Versioned (content-chunk) components.
  • Fix transient cluster-segment growth: accessors created before a Grow keep serving pages after it.

Reopen performance (#389)

  • Skip the Versioned-HEAD rebuild on a clean reopen via a clean-shutdown flag (was ~49% of open time).
  • Reclaim orphaned / zero-placeholder WAL segment files on reopen and continue segment numbering (no restart-at-1, no ID/LSN-order hazard).
  • Open-time phase timings + WAL-watermark instrumentation.

Workbench — File Map & UI polish (Hardening)

  • Friendly names everywhere — a sweep so component names show their smart short form and archetypes show their name (or #id), via the shared useComponentNames / useArchetypeNames labellers: File Map segment labels (one shared kind-prefixed formatter, incl. cluster index), Schema Explorer archetype tree, Component/Archetype Inspector, the breadcrumb + Inspector ancestor headers (shared selectionRefLabel now takes injectable resolvers), the field card's owning component, the cluster-entity decode, Storage Health rows, the "Used in" tab, and the Data Browser archetype picker / column picker (retiring two local leaf-strip shorteners).
  • "Reveal in File Map" reworked: a glowing, longer segment pulse (white-hot core + silhouette frame) and a drill-down animation from the whole-database fit in to the segment framed at ~half the view (context around it).
  • Schema Explorer: a double-click on an archetype opens the Inspector without toggling expand/collapse (deferred single-click toggle, cancelled by the double-click).
  • Decode cluster-entity content (L4); fix Connect .bin size readout; recent-file open spinner.

Testing

  • Full Engine suite green (expected-red set per ADR-054 unchanged).
  • ClientApp: tsc clean, 1573 vitest tests pass (175 files).

Related

🤖 Generated with Claude Code

nockawa added 2 commits June 3, 2026 12:54
…open (#386)

  Query Console
  - Add SELECT projection stage; component-level columns, default (no-SELECT) behavior unchanged.
  - Build Expression<Func<T,bool>> from predicate-DTO trees for EcsQuery.WhereField field filters.
  - Wire spatial query compiler + query-console controller/service end to end (#388).

  ECS / storage
  - Support ComponentCollection on SingleVersion (in-cluster, in-place) and Versioned (content-chunk) components.
  - Fix transient cluster-segment growth: accessors created before a grow keep serving pages.

  Reopen performance
  - Skip Versioned-HEAD rebuild on clean reopen via a clean-shutdown flag (was ~49% of open).
  - Reclaim orphaned/placeholder WAL segment files on reopen; continue segment numbering.
  - Add open-time phase timings + WAL watermark instrumentation.

  Workbench File Map
  - Friendly short-name segment labels, kind-prefixed via one shared formatter (incl. cluster index).
  - Decode cluster-entity content (L4); fix Connect .bin size; add recent-file open spinner.
@nockawa
nockawa merged commit 52e150a into main Jun 3, 2026
6 checks passed
@nockawa
nockawa deleted the feature/386-query-console branch June 3, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant