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 self-review findings: tooltip clipping, header overflow, mono prose
[._.]/ Adam Eivy9c00e142455b
diff --git a/client/src/components/ui/InfoTooltip.jsx b/client/src/components/ui/InfoTooltip.jsxindex 6b89b98d3e..8249f9b50d 100644--- a/client/src/components/ui/InfoTooltip.jsx+++ b/client/src/components/ui/InfoTooltip.jsx@@ -16,6 +16,11 @@ import useClickOutside from '../../hooks/useClickOutside';// whether the panel shows; `pinned` only records that a click latched it open so// it survives blur. Pass `children` as the help text and `label` as the button's// accessible name.+//+// `placement` is which way the panel opens. It defaults to `above`, but a trigger+// near the top of a page needs `below`: full-width routes render inside a+// `relative overflow-hidden` <main> (see Layout.jsx), which clips a panel that+// opens upward out of the viewport entirely.export default function InfoTooltip({children,label = 'More information',@@ -23,6 +28,7 @@ export default function InfoTooltip({panelClassName = 'w-56',iconSize = 14,align = 'center',+ placement = 'above',}) {// `pinned` = a click/tap latched it open (survives blur until Escape / outside// click / another click). `hovering` = the transient hover-or-focus reveal.@@ -58,6 +64,7 @@ export default function InfoTooltip({: align === 'end'? 'right-0': 'left-1/2 -translate-x-1/2';+ const placementClass = placement === 'below' ? 'top-full mt-1.5' : 'bottom-full mb-1.5';return (<div@@ -81,7 +88,7 @@ export default function InfoTooltip({<divid={panelId}role="tooltip"- className={`absolute bottom-full ${alignClass} z-50 mb-1.5 rounded-lg border border-port-border bg-gray-800 px-3 py-2 text-xs text-gray-300 shadow-lg ${panelClassName}`}+ className={`absolute ${placementClass} ${alignClass} z-50 rounded-lg border border-port-border bg-gray-800 px-3 py-2 text-xs text-gray-300 shadow-lg ${panelClassName}`}>{children}</div>diff --git a/client/src/components/ui/InfoTooltip.test.jsx b/client/src/components/ui/InfoTooltip.test.jsxindex ecb3d7c2dd..cfeb5592ca 100644--- a/client/src/components/ui/InfoTooltip.test.jsx+++ b/client/src/components/ui/InfoTooltip.test.jsx@@ -27,6 +27,20 @@ describe('InfoTooltip', () => {expect(screen.queryByRole('tooltip')).toBeNull();});+ // A trigger near the top of a full-width route sits inside an+ // `overflow-hidden` <main>, which clips an upward-opening panel out of view.+ it('opens downward when placement is below, upward by default', () => {+ const { unmount } = render(<InfoTooltip label="help" placement="below">Down</InfoTooltip>);+ fireEvent.focus(screen.getByRole('button', { name: 'help' }));+ expect(screen.getByRole('tooltip').className).toContain('top-full');+ expect(screen.getByRole('tooltip').className).not.toContain('bottom-full');+ unmount();++ render(<InfoTooltip label="help">Up</InfoTooltip>);+ fireEvent.focus(screen.getByRole('button', { name: 'help' }));+ expect(screen.getByRole('tooltip').className).toContain('bottom-full');+ });+it('latches open on click for touch users and survives blur', () => {render(<InfoTooltip label="help">Tap reachable</InfoTooltip>);const btn = screen.getByRole('button', { name: 'help' });diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsxindex 8a4741ee12..0bf7a7b55f 100644--- a/client/src/pages/Shell.jsx+++ b/client/src/pages/Shell.jsx@@ -108,7 +108,10 @@ export default function Shell() {// and the session count drops out, so the action buttons stay on the title// line instead of wrapping to a second row above the fold.<div className="flex items-center gap-2">- <h1 className="text-xl font-semibold text-white shrink-0">Shell</h1>+ {/* Everything else in this row is `shrink-0`, so the title is what absorbs+ an overflow — without it a narrow phone would push the row wider than+ the page and give the whole document a horizontal scrollbar. */}+ <h1 className="text-xl font-semibold text-white min-w-0 truncate">Shell</h1><divclassName={`flex items-center gap-2 shrink-0 text-sm px-2 py-1 rounded ${connected ? 'text-port-success sm:bg-port-success/20' : 'text-gray-400 sm:bg-gray-500/20'@@ -123,13 +126,17 @@ export default function Shell() {<span className="hidden sm:inline text-xs text-gray-500 font-mono shrink-0">{interactiveCount}/{MAX_SESSIONS}</span>)}{liveRunCount > 0 && (- <span className="flex items-center gap-1 text-xs text-port-accent font-mono shrink-0">- <Bot size={12} />- {liveRunCount} live+ <span className="flex items-center gap-1 text-xs shrink-0">+ <span className="flex items-center gap-1 text-port-accent font-mono">+ <Bot size={12} />+ {liveRunCount} live+ </span>{/* The only surviving home for the live-run explainer the banner usedto carry — a `title` tooltip is unreachable by touch and keyboard,- which is most of this page's audience. Costs no vertical space. */}- <InfoTooltip label="About live TUI runs" align="end" panelClassName="w-60">+ which is most of this page's audience. Costs no vertical space, and+ sits outside the `font-mono` span so the prose isn't monospaced.+ Opens downward: this row is at the top of a clipped full-width main. */}+ <InfoTooltip label="About live TUI runs" align="end" placement="below" panelClassName="w-60">{liveRunCount} live TUI run{liveRunCount > 1 ? 's' : ''}. Open one to watch it — you can type toanswer or correct it, or Stop to end it. It won't idle-close while you have it open.</InfoTooltip>