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: reuse merged widget regression guard
[._.]/ Adam Eivy8e37f5995afc
diff --git a/client/src/widgetContainerConventions.test.js b/client/src/widgetContainerConventions.test.jsdeleted file mode 100644index 6633a8b627..0000000000--- a/client/src/widgetContainerConventions.test.js+++ /dev/null@@ -1,28 +0,0 @@-import { describe, it, expect } from 'vitest';-import { readFileSync } from 'node:fs';-import { dirname, resolve } from 'node:path';-import { fileURLToPath } from 'node:url';-import { maskComments, stringLiterals } from './test/classNameScan.js';--const root = dirname(fileURLToPath(import.meta.url));-const registryDir = resolve(root, 'components/dashboard');-const registry = readFileSync(resolve(registryDir, 'widgetRegistry.jsx'), 'utf8');-const widgets = [...registry.matchAll(/import\('([^']+)'\)/g)].map(([, path]) => `${path}.jsx`);-// Device-specific hover/touch variants are deliberately outside this layout rule.-const viewportLayout = /(?:^|\s)(?:sm|md|lg|xl|2xl):(?:grid-cols-|flex-(?:row|col)|(?:min-|max-)?w-|p[xytrbl]?-|gap-|hidden\b|inline\b|inline-flex\b)/;-const violations = (source) => stringLiterals(maskComments(source))- .filter(({ value }) => viewportLayout.test(value)).map(({ value }) => value);--describe('dashboard widget container layout', () => {- it('detects viewport layout while allowing container queries and device hover affordances', () => {- expect(violations('<div className="grid grid-cols-1 lg:grid-cols-5" />')).toHaveLength(1);- expect(violations('<div className="grid grid-cols-1 @lg:grid-cols-5 md:opacity-0" />')).toEqual([]);- });-- it('all registered widget roots use container-aware layout variants', () => {- expect(widgets.length).toBeGreaterThan(20);- const findings = widgets.flatMap(path => violations(readFileSync(resolve(registryDir, path), 'utf8'))- .map(value => `${path}: ${value}`));- expect(findings).toEqual([]);- });-});diff --git a/docs/validation/2026-09-22-responsive-containers.md b/docs/validation/2026-09-22-responsive-containers.mdindex b77939b105..c83bbfdbc8 100644--- a/docs/validation/2026-09-22-responsive-containers.md+++ b/docs/validation/2026-09-22-responsive-containers.md@@ -26,8 +26,10 @@ Used an isolated Vite harness importing the real components and stylesheet, with## Prevention and checks-`client/src/widgetContainerConventions.test.js` discovers widget entrypoints from the registry and rejects viewport-based layout variants while permitting device-specific hover behavior. Existing responsive-grid checks remain in place. `docs/UX_DESIGN_GUIDE.md` defines container sizing, wrapping, long strings, local scrolling, viewport/sidebar/zoom/state acceptance and honest coverage reporting.+`client/src/dashboardWidgetContainerConventions.test.js` discovers widget entrypoints from the registry and rejects viewport-based layout variants with explicit exceptions for device-specific behavior. Existing responsive-grid checks remain in place. `docs/UX_DESIGN_GUIDE.md` defines container sizing, wrapping, long strings, local scrolling, viewport/sidebar/zoom/state acceptance and honest coverage reporting.The UX scheduled-task default now includes responsive layout as checklist item 8, a six-viewport matrix, narrow desktop widgets, clipping checks, sidebar/zoom/state checks and cross-audit deduplication. Version 3 retires version 2's hash so existing uncustomized schedules upgrade through the normal store path; customized prompts remain user-owned.Focused client validation passed 126 tests across 10 suites; prompt compatibility/integrity validation passed 91 tests across two suites. StoryBuilder's existing tests emitted a reproduced localhost request error despite passing; tracked separately in [#8064](https://github.com/atomantic/PortOS/issues/8064).++Rebase reconciliation: PR #8063 independently shipped widget container conversions and a stronger registry guard while this audit was running. Preserve its header sizing and column thresholds, reuse that guard instead of duplicating it, and retain this audit's shrink/wrap fixes and page/prompt/design changes.