POC Config Generator#16
Open
charlesnutter wants to merge 2 commits into
Open
Conversation
After fetching recipes, writes a commented '# ── Available recipe blocks' section listing every block the installed recipes advertise (keyed as recipe/block with label and plugin ID), plus the homepage: snippet to uncomment and edit. The section also serves as a reference for future placement targets. Replaces the template placeholder on first run; idempotent on re-runs; skips if homepage: is already active. - src/Config/RecipeBlocks.php: new class (commentedCatalog, injectCatalog) - tests/Unit/Config/RecipeBlocksTest.php: 16 tests covering all paths - bin/dq-install: single read/write pass for options + catalog - templates/config.dq.yml, docs/workflow.md: updated to reflect new behavior Suite: 45 tests, 75 assertions.
Static single-page tool (tools/generator/): a form mirroring the config sections (site, appearance + design overrides, recipes with per-recipe options, homepage block composition, curated extra config) beside a two-tab preview pane — a mock homepage styled by the selected preset's real tokens, and the generated config.dq.yml with copy/download. Alpine.js + Tailwind browser CDN, no build step. The YAML emitter reproduces the canonical template comments, RecipeOptions option lines, and the RecipeBlocks catalog verbatim (sync contract noted in README). catalog.js hardcodes registry/preset metadata for now; output validated against Symfony Yaml and eyeball-diffed against the e2e smoke config. Serve by copying into a docroot, e.g. dq-smoke/web/generator/.
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.
Initial POC for the form generator
Dtails