Repository navigation
fix(dev-admin): stop the dashboard reloading every 2s (--no-history on metrics scan) - #210
Merged
Merged
Conversation
…d stops reloading The dashboard metrics adapter ran `tina4 metrics --json` WITHOUT --no-history, so every scan wrote .tina4-metrics.json; the file watcher saw the write and reloaded the page, which re-scanned - a self-inflicted ~2-second reload loop that made the dashboard unusable. A dashboard READ must never write the baseline. Cross-framework fix (Python/PHP/Ruby/Node) + a CLI watcher ignore. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
tina4stack
added a commit
that referenced
this pull request
Oct 11, 2026
…ators (Python) Python side of the dev-dashboard overhaul (feature 142): - /__dev/split: a split view - dashboard/editor LEFT, live app preview RIGHT - served as a plain page so the container never reloads. Device frame (mobile/ tablet framed on a light backdrop, desktop fills), device toggle + live dimensions + pop-out, draggable gutter, and Files/Editor/Preview icon toggles (hiding the editor keeps the file nav). The Dashboard toolbar link navigates here instead of the old in-app iframe overlay. - Scaffold endpoints are data-driven from the CLI GENERATORS registry: the list endpoint reports every generator (+ needs_name/summary/usage); the run endpoint dispatches any kind through its handler. - New generators: "generate base" (Frond base.twig + index page + pages/ folder + / route) and "generate page NAME" (a page that extends base, auto-creating pages/ and bootstrapping base). "base" added to the no-name generators. - Bundles the shared tina4-dev-admin SPA that renders the scaffold form, the editor disk-resync and the eye-to-preview. Verified live on :7150. Depends on the reload-loop fix (#210) for a usable dashboard; both target v3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
tina4stack
added a commit
that referenced
this pull request
Oct 11, 2026
…ators (Python) Python side of the dev-dashboard overhaul (feature 142): - /__dev/split: a split view - dashboard/editor LEFT, live app preview RIGHT - served as a plain page so the container never reloads. Device frame (mobile/ tablet framed on a light backdrop, desktop fills), device toggle + live dimensions + pop-out, draggable gutter, and Files/Editor/Preview icon toggles (hiding the editor keeps the file nav). The Dashboard toolbar link navigates here instead of the old in-app iframe overlay. - Scaffold endpoints are data-driven from the CLI GENERATORS registry: the list endpoint reports every generator (+ needs_name/summary/usage); the run endpoint dispatches any kind through its handler. - New generators: "generate base" (Frond base.twig + index page + pages/ folder + / route) and "generate page NAME" (a page that extends base, auto-creating pages/ and bootstrapping base). "base" added to the no-name generators. - Bundles the shared tina4-dev-admin SPA that renders the scaffold form, the editor disk-resync and the eye-to-preview. Verified live on :7150. Depends on the reload-loop fix (#210) for a usable dashboard; both target v3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: Tina4 <82961293+tina4stack@users.noreply.github.com> Signed-off-by: Andre van Zuydam <andrevanzuydam@gmail.com>
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.
Fixes the dashboard reloading every ~2 seconds, which made its functionality unusable.
Root cause (proven live): the dev-admin metrics adapter ran
tina4 metrics --jsonwithout--no-history, so every scan wrote.tina4-metrics.json; the file watcher saw that write and reloaded the page, which re-scanned — a self-inflicted ~2s loop.Fix: the adapter now passes
--no-history(a dashboard read must never write the baseline). Cross-framework (Python/PHP/Ruby/Node); the CLI also gains a watcher ignore for the file as defence-in-depth (tina4stack/tina4).Verified live on a patched server: a real source edit still bumps the reload mtime (watcher alive), a metrics scan no longer does.
🤖 Generated with Claude Code