Repository navigation
feat(playground): filter sample data with live DSL examples - #3
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The playground generated DSL without showing its effect on records. Add a live table of 18 sample accounts and related orders, driven by parsing the actual DSL string. Six presets update both the graph and results; users can also edit the DSL, return to following the builder, compare all source rows, and expand filtered Orders.
Filtering runs before sorting and pagination. Orders preloads filter children without removing parent accounts. Invalid or unsupported input shows an explicit error and clears results. The README explains supported SQL-style behavior and differences from database execution.
Validation: production TypeScript/Vite build, 49 preview regression checks, the existing DSL emitter regression, and the Go test suite passed locally or in GitHub CI. Browser checks passed for all six presets, graph edits, custom DSL, source/result views, invalid-input handling, and parents with no matching orders. All five new preset DSL strings also passed examples/dslcheck across both naming modes and all four Go adapters with no BuildE diagnostics.
The overall Playground CI check remains red only because the unchanged broad cross-check has the same eight invalid GORM preload-name refusals ($dollar and 1234) already failing on main. Baseline evidence: https://github.com/bi0dread/figo/actions/runs/33249119971/job/99091608546#step:8:14 . The existing emitter and Go library are unchanged.
The source commit is authored and committed by bi0dread using the account’s GitHub noreply address.