Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: replace full-screen Loading text with skeletons on DataDog/Jira/GitHub pages (#2029)
Adam Eivy846750fe97bd
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 71bac5ba93..35eedfb6cd 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -8,6 +8,10 @@- **Config form labels now focus their field when clicked and read correctly to screen readers.** Many settings/config forms (AI Providers, DataDog, feature-agent config, message & calendar account setup, scheduled-task provider/model pickers, the agent world/schedule tabs, MeatSpace nicotine + POST drills, and more) rendered the label as a plain sibling of its input with no association, so clicking the label did nothing and assistive tech couldn't announce the pairing. These fields now flow through a shared `FormField` wrapper that generates a stable id and wires `htmlFor`/`id` automatically, keeping the exact same styling (#2027). Remaining forms are tracked for a follow-up sweep (#2051).+## Loading states++- **The DataDog, Jira, and GitHub integration pages now show a layout-shaped skeleton on first paint instead of a centered "Loading…" line.** Each page previously rendered a bare full-screen text message sized with `h-screen`, which mis-sized under mobile browser chrome and jumped when the real content arrived. They now share a `PageSkeleton` that reserves the header + card-grid dimensions (matching the loaded layout, using the `port-*` design tokens like the dashboard's `WidgetSkeleton`), so there's no post-load layout jump and no full-height wrapper fighting Layout's scroll (#2029).+## Internal- Migration 155 heals `data/prompts/stages/cd-treatment.md` installs that #1808's anchor-based migration 148 left stranded (#2042). Installs seeded before the `imageStrength` scene knob (older pre-#1808 template) got the `## Cast & ingredients` list but missed the per-scene `"cast": [{ "ingredientId": … }]` field, so the Creative Director cast-threading regression test stayed red on the runtime template and migration 148 (already applied) never re-ran. The new hash-driven prompt-replace upgrades those copies (and both pristine pre-#1808 shipped versions) to the current shipped reference, leaving hand-customized copies untouched. Also folds `cd-treatment.md` into `buildPromptDriftTables` so setup-data.js's drift warning classifies a stranded copy correctly.diff --git a/client/src/components/ui/PageSkeleton.jsx b/client/src/components/ui/PageSkeleton.jsxnew file mode 100644index 0000000000..79650b1c03--- /dev/null+++ b/client/src/components/ui/PageSkeleton.jsx@@ -0,0 +1,44 @@+// Lightweight full-page loading skeleton for the DevTools integration pages+// (DataDog / Jira / GitHub). Reserves the header + `[1fr_360px]` card-grid+// dimensions those pages render once loaded so the first paint doesn't reflow.+// Mirrors the WidgetSkeleton pattern (port design tokens + animate-pulse) and+// renders inside Layout's scrolling main — no full-height wrapper.+export default function PageSkeleton({+ titleWidthClass = 'w-48',+ showAction = true,+ cards = 3,+ sidebar = true,+}) {+ return (+ <div className="p-4 sm:p-6" role="status" aria-busy="true" aria-label="Loading">+ <div className="flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4 mb-6">+ <div className={`h-8 rounded bg-port-card animate-pulse ${titleWidthClass}`} />+ {showAction && <div className="h-10 w-full sm:w-48 rounded bg-port-card animate-pulse" />}+ </div>+ <div className={`grid grid-cols-1 gap-6 items-start ${sidebar ? 'lg:grid-cols-[1fr_360px]' : ''}`}>+ <div className="space-y-4">+ {Array.from({ length: cards }).map((_, i) => (+ <div+ key={i}+ className="rounded-lg border border-port-border bg-port-card p-4 sm:p-6 animate-pulse"+ >+ <div className="h-5 w-2/3 rounded bg-port-border mb-3" />+ <div className="h-4 w-1/2 rounded bg-port-border mb-2" />+ <div className="h-4 w-1/3 rounded bg-port-border" />+ </div>+ ))}+ </div>+ {sidebar && (+ <div className="rounded-lg border border-port-border bg-port-card p-4 sm:p-6 animate-pulse">+ <div className="h-5 w-1/3 rounded bg-port-border mb-4" />+ <div className="space-y-2">+ <div className="h-4 w-full rounded bg-port-border" />+ <div className="h-4 w-5/6 rounded bg-port-border" />+ <div className="h-4 w-4/6 rounded bg-port-border" />+ </div>+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/client/src/pages/DataDog.jsx b/client/src/pages/DataDog.jsxindex d1e5d34c0b..2de90b1449 100644--- a/client/src/pages/DataDog.jsx+++ b/client/src/pages/DataDog.jsx@@ -1,6 +1,7 @@import { useState, useEffect } from 'react';import toast from '../components/ui/Toast';import { FormField } from '../components/ui/FormField';+import PageSkeleton from '../components/ui/PageSkeleton';import api from '../services/api';const SITE_OPTIONS = [@@ -182,11 +183,7 @@ export default function DataDog() {};if (loading) {- return (- <div className="flex justify-center items-center h-screen">- <div className="text-gray-400">Loading DataDog instances...</div>- </div>- );+ return <PageSkeleton titleWidthClass="w-56" cards={2} />;}return (diff --git a/client/src/pages/GitHub.jsx b/client/src/pages/GitHub.jsxindex 267c2c7659..c5bf9c6721 100644--- a/client/src/pages/GitHub.jsx+++ b/client/src/pages/GitHub.jsx@@ -11,6 +11,7 @@ import {unarchiveGitHubRepo} from '../services/api';import { timeAgo } from '../utils/formatters';+import PageSkeleton from '../components/ui/PageSkeleton';const FILTERS = ['all', 'npm', 'secrets', 'archived'];@@ -157,11 +158,7 @@ export default function GitHub() {const secretEntries = Object.entries(secrets);if (loading) {- return (- <div className="flex justify-center items-center h-screen">- <div className="text-gray-400">Loading GitHub data...</div>- </div>- );+ return <PageSkeleton titleWidthClass="w-44" showAction={false} cards={3} />;}return (diff --git a/client/src/pages/Jira.jsx b/client/src/pages/Jira.jsxindex 1cb5ac0120..39bee572ba 100644--- a/client/src/pages/Jira.jsx+++ b/client/src/pages/Jira.jsx@@ -1,6 +1,7 @@import { useState, useEffect } from 'react';import { Link } from 'react-router-dom';import toast from '../components/ui/Toast';+import PageSkeleton from '../components/ui/PageSkeleton';import api from '../services/api';const TOKEN_LIFETIME_DAYS = 30;@@ -176,11 +177,7 @@ export default function Jira() {};if (loading) {- return (- <div className="flex justify-center items-center h-screen">- <div className="text-gray-400">Loading JIRA instances...</div>- </div>- );+ return <PageSkeleton titleWidthClass="w-52" cards={2} />;}return (