Skip to content

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

fix: keep hosted controls reachable in narrow viewports (#5499)

[._.]/ Adam Eivy07f43d50062a
diff --git a/client/src/pages/FableLoomHostedJoin.jsx b/client/src/pages/FableLoomHostedJoin.jsx
index 8787162b89..14387e6553 100644
--- a/client/src/pages/FableLoomHostedJoin.jsx
+++ b/client/src/pages/FableLoomHostedJoin.jsx
@@ -186,11 +186,11 @@ export default function FableLoomHostedJoin() {
}
return (
- <main className="h-dvh-screen bg-slate-950 text-white flex flex-col justify-between max-w-md mx-auto relative overflow-hidden shadow-2xl">
+ <main className="h-dvh-screen bg-slate-950 text-white flex flex-col justify-between max-w-md mx-auto relative overflow-y-auto shadow-2xl">
<audio ref={audioPlayerRef} className="hidden" />
{/* Header */}
- <header className="px-5 py-4 border-b border-slate-800/80 bg-slate-900/50 backdrop-blur flex items-center justify-between">
+ <header className="shrink-0 px-5 py-4 border-b border-slate-800/80 bg-slate-900/50 backdrop-blur flex items-center justify-between">
<div className="flex items-center gap-2.5">
<Smartphone className="w-5 h-5 text-indigo-400" />
<div>
@@ -205,7 +205,7 @@ export default function FableLoomHostedJoin() {
</header>
{/* Live Turn Phase Banner */}
- <div className="px-4 py-2.5 border-b border-slate-800 bg-slate-900/30 flex items-center justify-center">
+ <div className="shrink-0 px-4 py-2.5 border-b border-slate-800 bg-slate-900/30 flex items-center justify-center">
{turnPhase === 'listening' ? (
<div className="flex items-center gap-2 text-emerald-400 text-xs font-semibold animate-pulse">
<Mic className="w-4 h-4" />
@@ -267,7 +267,7 @@ export default function FableLoomHostedJoin() {
</div>
{/* Mobile Push-To-Talk / Interaction Control */}
- <div className="p-4 bg-slate-900/80 border-t border-slate-800 space-y-3">
+ <div className="shrink-0 p-4 bg-slate-900/80 border-t border-slate-800 space-y-3">
<div className="flex flex-col items-center justify-center py-2">
<button
type="button"
diff --git a/client/src/pages/FableLoomHostedJoin.test.jsx b/client/src/pages/FableLoomHostedJoin.test.jsx
index 0f63b55076..71a1d25a08 100644
--- a/client/src/pages/FableLoomHostedJoin.test.jsx
+++ b/client/src/pages/FableLoomHostedJoin.test.jsx
@@ -50,12 +50,16 @@ describe('FableLoomHostedJoin', () => {
render(<FableLoomHostedJoin />);
const shell = screen.getByRole('main');
- expect(shell).toHaveClass('h-dvh-screen', 'overflow-hidden');
+ expect(shell).toHaveClass('h-dvh-screen', 'overflow-y-auto');
+ expect(shell).not.toHaveClass('overflow-hidden');
expect(shell).not.toHaveClass('min-h-screen');
const scrollRegions = shell.querySelectorAll('.overflow-y-auto');
expect(scrollRegions).toHaveLength(1);
expect(scrollRegions[0]).toHaveClass('flex-1', 'min-h-0');
+ expect(screen.getByRole('banner')).toHaveClass('shrink-0');
+ expect(screen.getByRole('banner').nextElementSibling).toHaveClass('shrink-0');
+ expect(screen.getByPlaceholderText('Or type a message…').closest('form').parentElement).toHaveClass('shrink-0');
});
it('sends text input fallback when submitted', async () => {
diff --git a/server/lib/navManifest.test.js b/server/lib/navManifest.test.js
index 3d750e805e..907183dd4a 100644
--- a/server/lib/navManifest.test.js
+++ b/server/lib/navManifest.test.js
@@ -454,6 +454,8 @@ function joinRoutePath(segments) {
// containers. Returns:
// - required: absolute paths of every concrete, non-redirect, non-param leaf
// route — the set that must each have a NAV_COMMANDS entry (or an opt-out)
+// - topLevel: absolute paths of concrete leaves directly under <Routes>, rather
+// than inside a layout/container route
// - malformed: <Route>-opening lines whose tag doesn't close on the same line
// - stackDepth: open containers left unclosed at EOF
// The scanner assumes each <Route> is a single line (true in App.jsx today). A
@@ -466,6 +468,7 @@ function joinRoutePath(segments) {
function scanRoutes(appSrc) {
const stack = []; // parent path segments of currently-open <Route> containers
const required = [];
+ const topLevel = [];
const redirects = []; // { from, to } for every forwarding leaf route
const malformed = [];
for (const rawLine of appSrc.split('\n')) {
@@ -493,6 +496,7 @@ function scanRoutes(appSrc) {
const absolute = routePath === null
? joinRoutePath(stack)
: joinRoutePath([...stack, routePath]);
+ if (stack.length === 0) topLevel.push(absolute);
// Redirects are recorded rather than dropped: a moved page's old path has to
// keep landing somewhere, and that is only assertable if the scanner reports
@@ -512,7 +516,7 @@ function scanRoutes(appSrc) {
if (absolute.split('/').some((s) => s.startsWith(':'))) continue; // param route
required.push(absolute);
}
- return { required: [...new Set(required)], redirects, malformed, stackDepth: stack.length };
+ return { required: [...new Set(required)], topLevel: [...new Set(topLevel)], redirects, malformed, stackDepth: stack.length };
}
// Settings owns a small declarative redirect map for retired tabs, while App.jsx
@@ -549,6 +553,12 @@ describe('nav coverage — every navigable App.jsx route has a manifest entry',
expect(uncovered).toEqual([]);
});
+ it('keeps the hosted audience join route outside the chrome layout', () => {
+ // The hosted audience shell owns a full dynamic viewport and must not be
+ // nested under Layout's shorter overflow-hidden main (#5499).
+ expect(scan.topLevel).toContain('/fableloom/join');
+ });
+
// Every page that has ever moved leaves its old path behind in bookmarks, in
// stale ⌘K history, and in links other installs' peers may hold. A move that
// forgets the redirect 404s all of them, and nothing else in this file would