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

stop the canon card action strip from squeezing its content column on mobile

[._.]/ Adam Eivyac5706147bda
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 604e717b0c..b4ca3caa7f 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -5,6 +5,8 @@
## Fixed
+- Canon entry cards in a universe bible are usable on a phone again. The card's icon action strip sat as a full-height column beside the entry's content, so on a phone it squeezed the description box and every collapsible editor under it to about a third of the card — the description was clipped after a few words and the "Reveal timing" and "Outfits" headers wrapped into tall centered stacks. The action strip now shares the entry's title row and the content spans the full card width beneath it. Long entry names wrap instead of being cut off mid-word (variation and reference-board rows on the same page too), a collapsed "Outfits" header clips its outfit list to one line, and the character colour rows leave their hex field enough room for the description beside it.
+- Wrapped labels inside buttons no longer render as a centered ragged stack. Browsers center button text by default, which is invisible while a label fits on one line and only shows up once it wraps — so it surfaced on phones, in section headers across the app, and not on desktop. Buttons that lay their contents out in a row now read left-aligned unless they explicitly ask to be centered.
- Voice dictation into the Shell terminal no longer garbles what you said. Apple dictation streams progressively refined guesses and rewrites what it already typed ("determin" → "determine" → "determines"); the terminal forwarded every insertion but none of the matching deletions, so a dictated sentence arrived at the prompt as an accumulating pile-up ("ddedeterdetermindeterminedetermines if any code…"). Dictation edits are now translated into the deletions and insertions a terminal understands, so the prompt shows the sentence you dictated.
- The Branch & PR Reconciliation task no longer re-launches itself indefinitely when branches are left behind. Its drain re-issued itself through the same queue a human "Run Now" uses, and that queue's handler cleared the convergence state on every hop — so the "nothing changed, stop" brake was wiped before it could ever apply, and the task spawned roughly forty coordinator agents in one night against the same two branches. Automated re-issues now inherit that state, so an unchanged branch set parks after one cycle as designed.
- Branch reconciliation now leaves branches alone while their session is still running. A live agent's (or live `/claim`'s) branch with a clean worktree and an open PR was treated as work to finish, so the reconciler raced the running session's commits — and every push it made counted as "progress" that earned another reconciliation run. Those branches are now reported and skipped, and a reconcile whose only remaining branches are live is finished rather than retried. Ownership is read from the branch name as well as the worktree, so an agent that has already cleaned up its worktree but is still working is still recognized.
diff --git a/client/src/components/pipeline/CanonCard.jsx b/client/src/components/pipeline/CanonCard.jsx
index 0381ae984e..6bf0184506 100644
--- a/client/src/components/pipeline/CanonCard.jsx
+++ b/client/src/components/pipeline/CanonCard.jsx
@@ -149,8 +149,8 @@ function RevealTimingField({ entry, editable, onPatch }) {
return (
<details className="mt-2 group">
<summary className="cursor-pointer list-none flex items-center gap-1 text-[10px] uppercase tracking-wider text-gray-500 hover:text-gray-300">
- <ChevronRight size={11} className="group-open:hidden" />
- <ChevronDown size={11} className="hidden group-open:inline" />
+ <ChevronRight size={11} className="shrink-0 group-open:hidden" />
+ <ChevronDown size={11} className="hidden shrink-0 group-open:inline" />
Reveal timing (spoiler scoping)
{gated ? <span className="ml-1 text-port-warning normal-case tracking-normal">· gated</span> : null}
</summary>
@@ -212,15 +212,16 @@ function RevealTimingField({ entry, editable, onPatch }) {
// novelist / graphic-novelist fields or generating a reference sheet.
function CharacterDetailsToggle({ children }) {
const [open, setOpen] = useState(false);
+ const Chevron = open ? ChevronDown : ChevronRight;
return (
<div className="mt-2">
<button
type="button"
onClick={() => setOpen((v) => !v)}
- className="inline-flex items-center gap-1 text-[10px] uppercase tracking-wider text-gray-500 hover:text-white"
+ className="flex w-full items-center gap-1 text-[10px] uppercase tracking-wider text-gray-500 hover:text-white"
>
- {open ? <ChevronDown size={10} /> : <ChevronRight size={10} />}
- <BookOpen size={10} />
+ <Chevron size={10} className="shrink-0" />
+ <BookOpen size={10} className="shrink-0" />
Character details {open ? '' : '+ reference sheet'}
</button>
{open ? <div>{children}</div> : null}
@@ -311,6 +312,7 @@ function WardrobeSection({ wardrobes, editable, onChange }) {
if (!editable && merged.length === 0) return null;
+ const Chevron = open ? ChevronDown : ChevronRight;
const summary = merged.map((w) => w.name).filter(Boolean).join(', ');
const addOne = () => {
@@ -323,11 +325,14 @@ function WardrobeSection({ wardrobes, editable, onChange }) {
<button
type="button"
onClick={() => setOpen((v) => !v)}
- className="inline-flex items-center gap-1 text-[10px] uppercase tracking-wider text-gray-500 hover:text-white"
+ className="flex w-full items-center gap-1 text-[10px] uppercase tracking-wider text-gray-500 hover:text-white"
>
- {open ? <ChevronDown size={10} /> : <ChevronRight size={10} />}
- <Shirt size={10} />
- Outfits ({merged.length}){summary && !open ? `: ${summary}` : ''}
+ <Chevron size={10} className="shrink-0" />
+ <Shirt size={10} className="shrink-0" />
+ <span className="shrink-0">Outfits ({merged.length})</span>
+ {/* One clipped line — the joined outfit names are long enough to wrap
+ into a paragraph-tall collapsed header on a phone. */}
+ {summary && !open ? <span className="min-w-0 truncate">: {summary}</span> : null}
</button>
{open ? (
<div className="mt-1.5 pl-3 border-l border-port-border space-y-1.5">
@@ -449,9 +454,13 @@ export default function CanonCard({
const title = (
<div className="flex items-center gap-2 flex-wrap">
- <span className="text-sm text-white font-medium truncate">{entry.name}</span>
+ {/* Wrap rather than truncate: the title column is what gives way to the
+ action strip on a phone, and a name clipped to its first word hides
+ which entry the card is. `min-w-0` is what lets `break-words` engage —
+ a flex item can otherwise not shrink below its longest word. */}
+ <span className="min-w-0 text-sm text-white font-medium break-words">{entry.name}</span>
{entry.aliases?.length ? (
- <span className="text-[10px] text-gray-500 truncate">
+ <span className="min-w-0 text-[10px] text-gray-500 break-words">
aka {entry.aliases.join(', ')}
</span>
) : null}
diff --git a/client/src/components/universe/CharacterDetailEditor.jsx b/client/src/components/universe/CharacterDetailEditor.jsx
index c92c84debd..d1a7fd03fb 100644
--- a/client/src/components/universe/CharacterDetailEditor.jsx
+++ b/client/src/components/universe/CharacterDetailEditor.jsx
@@ -189,6 +189,9 @@ function ListRow({ row, idx, columns, swatchHex, onChange, onDelete, disabled })
title={`Preview ${swatchHex(row) || 'no hex'}`}
/>
) : null}
+ {/* A `narrow` column (the hex swatch) keeps a fixed width so the rows line
+ up, but 6rem of a phone-width row starves the free-text sibling —
+ step it down under `sm`. */}
{columns.map((col) => (
<input
key={col.name}
@@ -199,7 +202,7 @@ function ListRow({ row, idx, columns, swatchHex, onChange, onDelete, disabled })
placeholder={col.placeholder}
maxLength={col.max}
disabled={disabled}
- className={`${col.narrow ? 'w-24 shrink-0' : 'flex-1 min-w-0'} px-1.5 py-0.5 text-xs bg-port-bg border border-port-border rounded text-white disabled:opacity-50`}
+ className={`${col.narrow ? 'w-16 sm:w-24 shrink-0' : 'flex-1 min-w-0'} px-1.5 py-0.5 text-xs bg-port-bg border border-port-border rounded text-white disabled:opacity-50`}
aria-label={`row ${idx + 1} ${col.name}`}
/>
))}
@@ -218,6 +221,7 @@ function ListRow({ row, idx, columns, swatchHex, onChange, onDelete, disabled })
function CollapsibleSection({ icon: Icon, label, summary, defaultOpen = false, children }) {
const [open, setOpen] = useState(defaultOpen);
+ const Chevron = open ? ChevronDown : ChevronRight;
return (
<div className="rounded border border-port-border bg-port-bg/50">
<button
@@ -225,10 +229,10 @@ function CollapsibleSection({ icon: Icon, label, summary, defaultOpen = false, c
onClick={() => setOpen((v) => !v)}
className="w-full flex items-center gap-1.5 px-2 py-1.5 text-[10px] uppercase tracking-wider text-gray-400 hover:text-white"
>
- {open ? <ChevronDown size={11} /> : <ChevronRight size={11} />}
- <Icon size={11} />
- <span className="text-gray-300">{label}</span>
- {summary && !open ? <span className="text-gray-500 normal-case truncate">— {summary}</span> : null}
+ <Chevron size={11} className="shrink-0" />
+ <Icon size={11} className="shrink-0" />
+ <span className="shrink-0 text-gray-300">{label}</span>
+ {summary && !open ? <span className="min-w-0 text-gray-500 normal-case truncate">— {summary}</span> : null}
</button>
{open ? <div className="px-2.5 pb-2.5 pt-1 space-y-2">{children}</div> : null}
</div>
diff --git a/client/src/components/universe/EntryCard.jsx b/client/src/components/universe/EntryCard.jsx
index aa6328b8a2..3276f8bd6d 100644
--- a/client/src/components/universe/EntryCard.jsx
+++ b/client/src/components/universe/EntryCard.jsx
@@ -4,8 +4,12 @@
* slot layout stay in sync — visual drift is the bug this guards against.
*
* Slot contract:
- * - `title`, `body`, `actions`, `footer` — ReactNode. Consumers own internal
- * layout (e.g. column vs. row for `actions`) so EntryCard stays unopinionated.
+ * - `title`, `body`, `actions`, `footer` — ReactNode. `thumbnail` is the only
+ * left-hand column; `title` + `actions` share one row to its right and `body`
+ * runs full-width underneath them. So `actions` should be a horizontal strip
+ * (a column-shaped one makes the title row tall), and `title` must stay
+ * shrinkable — wrap it, don't fix a width — since it's the slot that yields
+ * when the action strip is wide on a narrow screen.
* - `thumbnail` — either a descriptor object `{ filename, alt?, onClick?,
* isPrimary?, fallbackRefs? }` OR a React element. The descriptor flows
* through `EntryCardThumbnail` (12x12 frame, primary-star badge, walk-back
@@ -76,10 +80,14 @@ export default function EntryCard({
: <EntryCardThumbnail {...thumbnail} />
) : null}
<div className="flex-1 min-w-0">
- {title}
+ {/* Actions ride the title row, not a third outer column, so `body`
+ spans the full width beside the thumbnail. */}
+ <div className="flex items-start gap-2">
+ <div className="min-w-0 flex-1">{title}</div>
+ {actions ? <div className="relative z-10 shrink-0">{actions}</div> : null}
+ </div>
{body}
</div>
- {actions ? <div className="relative z-10 shrink-0">{actions}</div> : null}
</div>
{footer ? <div className="relative z-10">{footer}</div> : null}
</li>
diff --git a/client/src/components/universe/EntryCard.test.jsx b/client/src/components/universe/EntryCard.test.jsx
index 0374b3c439..51cdb92b18 100644
--- a/client/src/components/universe/EntryCard.test.jsx
+++ b/client/src/components/universe/EntryCard.test.jsx
@@ -116,6 +116,35 @@ describe('EntryCard — selectable mode', () => {
});
});
+describe('EntryCard — layout', () => {
+ // Smallest ancestor of `from` that also holds `other` — containment rather
+ // than a hop count, so the assertion survives a re-nesting that keeps the
+ // layout.
+ const smallestCommonAncestor = (from, other) => {
+ let node = from;
+ while (node && !node.contains(other)) node = node.parentElement;
+ return node;
+ };
+
+ it('keeps actions inside the content column, on the title row', () => {
+ render(wrapInList(
+ <EntryCard
+ title={<span>Lyra</span>}
+ body={<p>a description</p>}
+ actions={<button type="button">Edit</button>}
+ />,
+ ));
+ const edit = screen.getByRole('button', { name: 'Edit' });
+ const body = screen.getByText('a description');
+ // Regression: `actions` used to be a sibling column of the content column,
+ // squeezing `body` to a third of a phone-width card.
+ expect(body.parentElement).toContainElement(edit);
+ // ...and it shares the title's row, so `body` still spans the full column.
+ expect(smallestCommonAncestor(edit, screen.getByText('Lyra')))
+ .not.toContainElement(body);
+ });
+});
+
describe('EntryCard — thumbnail fallback', () => {
it('renders the primary filename when present', () => {
const { container } = render(wrapInList(
diff --git a/client/src/components/universeBuilder/CompositeSheetsEditor.jsx b/client/src/components/universeBuilder/CompositeSheetsEditor.jsx
index 6ff6692d95..5943db794f 100644
--- a/client/src/components/universeBuilder/CompositeSheetsEditor.jsx
+++ b/client/src/components/universeBuilder/CompositeSheetsEditor.jsx
@@ -277,8 +277,8 @@ function SheetRow({
/>
);
const title = (
- <div className="flex items-center gap-2">
- <div className="text-sm text-white font-medium truncate">{sheet.label}</div>
+ <div className="flex items-center gap-2 flex-wrap">
+ <div className="min-w-0 text-sm text-white font-medium break-words">{sheet.label}</div>
<span className="shrink-0 text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded bg-port-accent/10 text-port-accent border border-port-accent/20">
{compositeKindLabel(sheet.kind)}
</span>
diff --git a/client/src/components/universeBuilder/UniverseCategoryEditor.jsx b/client/src/components/universeBuilder/UniverseCategoryEditor.jsx
index effb68ff87..577c9a14c3 100644
--- a/client/src/components/universeBuilder/UniverseCategoryEditor.jsx
+++ b/client/src/components/universeBuilder/UniverseCategoryEditor.jsx
@@ -475,7 +475,7 @@ function VariationCard({
/>
);
- const title = <div className="text-sm text-white font-medium truncate">{v.label}</div>;
+ const title = <div className="min-w-0 text-sm text-white font-medium break-words">{v.label}</div>;
const body = <div className="text-xs text-gray-400 line-clamp-2 mt-1">{v.prompt}</div>;
const actions = (
<div className="flex items-center gap-1">