feat(frontend): Next.js scaffolding + core config model + YAML serializers - #76
Open
maan-iitd2 wants to merge 1 commit into
Open
feat(frontend): Next.js scaffolding + core config model + YAML serializers#76maan-iitd2 wants to merge 1 commit into
maan-iitd2 wants to merge 1 commit into
Conversation
…izers Foundation for InGen Studio, a Next.js 15 / React 19 SPA for building ingen YAML configs visually. This PR ships only the non-visual base that later UI PRs build on: - Build scaffolding: package.json/lock, next.config.mjs, jsconfig.json (@/* import alias), eslint.config.js, .env* (adapter-mode config: mock vs http), public/ assets. - src/models/: the in-memory config shape everything else depends on (configModel, types, constants) plus applyIntent/interfaceOps, the deterministic executor for the inChat assistant's ops. - src/serializers/: lossless YAML <-> model round-trip. - src/utils/id.js, src/lib/fuzzy.js: small, dependency-free helpers that models/applyIntent import directly (pulled forward from the later state/hooks/lib wave since configModel and applyIntent need them to even load). Routing, adapters/services, state, and all UI components are separate follow-up PRs — this PR alone does not build a running app (no src/app/ yet), by design. ## Testing - `npm run lint` — clean. - `npm run test` — 43/43 passed (models + serializers unit tests, including round-trip yaml -> model -> yaml losslessness). Signed-off-by: maan-iitd2 <maan.iitd.ac.in@gmail.com>
Jatin-8898
approved these changes
Aug 6, 2026
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.
What
First frontend PR: InGen Studio, a Next.js 15 / React 19 SPA for building ingen YAML configs visually. This PR ships only the non-visual foundation:
package.json/lock,next.config.mjs,jsconfig.json(@/*→src/*alias),eslint.config.js,.env*(adapter-mode config —mock: localStorage + simulated runs, no backend needed;http: talks to the FastAPI wrapper in feat(backend): thin FastAPI wrapper around the ingen CLI #75),public/assets.src/models/— the in-memory config shape everything else depends on (configModel,types,constants), plusapplyIntent/interfaceOps, the deterministic executor that turns the inChat assistant's{ops}into model mutations.src/serializers/— lossless YAML ↔ model round-trip (yamlSerializer/yamlDeserializer).configModel/applyIntentimport them directly and won't load without them:src/utils/id.js(id generation) andsrc/lib/fuzzy.js(Levenshtein distance, used for inChat's "did you mean 'status'?" column-typo correction).Not in this PR, by design: routing (
src/app/), adapters/services, state/hooks, or any UI component. This PR alone does not build a running app — that lands over the next few PRs (adapters/state → app shell → editor UI), each building on this one.Testing
npm install && npm run lint— clean, no errors.npm run test— 43/43 passed, covering the config model (add/remove/rename/reorder interfaces and sources, validation),applyIntent(including a dedicated phase-5 regression suite), and the YAML serializers (round-trip losslessness, deterministic/idempotent output, key ordering, empty-section dropping).🤖 Generated with Claude Code