Skip to content

fix(dev-admin): stop the dashboard reloading every 2s (--no-history on metrics scan) - #210

Merged
tina4stack merged 2 commits into
v3from
fix/dashboard-metrics-reload-loop
Oct 13, 2026
Merged

tina4stack merged 2 commits into
v3from
fix/dashboard-metrics-reload-loop

Conversation

@tina4stack

Copy link
Copy Markdown
Owner

Fixes the dashboard reloading every ~2 seconds, which made its functionality unusable.

Root cause (proven live): the dev-admin metrics adapter ran tina4 metrics --json without --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

…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>
@tina4stack
tina4stack merged commit 5a51962 into v3 Oct 13, 2026
15 checks passed
@tina4stack
tina4stack deleted the fix/dashboard-metrics-reload-loop branch October 13, 2026 11:08
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.

2 participants