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 review findings: indentation, inert-slot label, model input width

[._.]/ Adam Eivy1afc72f997bc
diff --git a/client/src/components/decks/DeckCardGrid.jsx b/client/src/components/decks/DeckCardGrid.jsx
index c314542296..2884e4f805 100644
--- a/client/src/components/decks/DeckCardGrid.jsx
+++ b/client/src/components/decks/DeckCardGrid.jsx
@@ -43,59 +43,59 @@ export default function DeckCardGrid({ deck, onOpenCard, onRenderCard, onPreview
return (
<div className="space-y-6">
{groups.map((group) => (
- <section key={group.key} aria-label={group.label}>
- <h2 className="text-sm font-medium text-white mb-2 flex items-center gap-2 flex-wrap">
- {group.label}
- <span className="text-xs font-normal text-gray-400">
- {group.counts.rendered}/{group.counts.total} rendered
- </span>
- {group.needPrompt ? (
- <Pill tone="warning" size="xs" icon={PencilLine}>{group.needPrompt} need a prompt</Pill>
- ) : null}
- </h2>
- <ul className="grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6">
- {group.cards.map((card) => {
- const inFlight = cardInFlightJobId(card);
- const status = cardStatus(card);
- const meta = STATUS_META[status];
- const needsPrompt = !card.prompt;
- return (
- <li key={card.id} className="flex h-full flex-col items-center gap-1.5 rounded-lg border border-port-border bg-port-card p-2">
- <EntryThumbSlot
- size="xl"
- inFlightJobId={inFlight}
- imageRefs={card.imageRefs}
- primaryImageRef={card.primaryImageRef}
- // A card with no prompt has nothing to render, so its
- // empty slot opens the editor rather than sitting there
- // greyed out — the one thing that unblocks it.
- onRender={() => (needsPrompt ? onOpenCard(card) : onRenderCard(card))}
- onPreview={() => onPreview(card)}
- onComplete={(filename) => onRenderComplete(card.id, filename)}
- onTerminalStatus={(s) => onRenderTerminal(card.id, s)}
- emptyIcon={needsPrompt ? PencilLine : undefined}
- emptyHint={needsPrompt ? `Write a prompt for ${card.name}` : `Render ${card.name}`}
- alt={card.name}
- />
- <button
- type="button"
- onClick={() => onOpenCard(card)}
- className="w-full min-h-[44px] text-center text-xs text-gray-200 hover:text-white leading-tight"
- title="Edit this card"
- >
- <span className="block truncate font-medium">{card.name}</span>
- {card.canonRef?.name ? (
- <span className="mt-0.5 inline-flex max-w-full items-center gap-1 text-[11px] text-gray-400">
- <Link2 size={10} aria-hidden="true" /><span className="truncate">{card.canonRef.name}</span>
- </span>
- ) : null}
- </button>
- <Pill tone={meta.tone} size="xs" icon={meta.icon} className="mt-auto">{meta.label}</Pill>
- </li>
- );
- })}
- </ul>
- </section>
+ <section key={group.key} aria-label={group.label}>
+ <h2 className="text-sm font-medium text-white mb-2 flex items-center gap-2 flex-wrap">
+ {group.label}
+ <span className="text-xs font-normal text-gray-400">
+ {group.counts.rendered}/{group.counts.total} rendered
+ </span>
+ {group.needPrompt ? (
+ <Pill tone="warning" size="xs" icon={PencilLine}>{group.needPrompt} need a prompt</Pill>
+ ) : null}
+ </h2>
+ <ul className="grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6">
+ {group.cards.map((card) => {
+ const inFlight = cardInFlightJobId(card);
+ const status = cardStatus(card);
+ const meta = STATUS_META[status];
+ const needsPrompt = !card.prompt;
+ return (
+ <li key={card.id} className="flex h-full flex-col items-center gap-1.5 rounded-lg border border-port-border bg-port-card p-2">
+ <EntryThumbSlot
+ size="xl"
+ inFlightJobId={inFlight}
+ imageRefs={card.imageRefs}
+ primaryImageRef={card.primaryImageRef}
+ // A card with no prompt has nothing to render, so its
+ // empty slot opens the editor rather than sitting there
+ // greyed out — the one thing that unblocks it.
+ onRender={() => (needsPrompt ? onOpenCard(card) : onRenderCard(card))}
+ onPreview={() => onPreview(card)}
+ onComplete={(filename) => onRenderComplete(card.id, filename)}
+ onTerminalStatus={(s) => onRenderTerminal(card.id, s)}
+ emptyIcon={needsPrompt ? PencilLine : undefined}
+ emptyHint={needsPrompt ? `Write a prompt for ${card.name}` : `Render ${card.name}`}
+ alt={card.name}
+ />
+ <button
+ type="button"
+ onClick={() => onOpenCard(card)}
+ className="w-full min-h-[44px] text-center text-xs text-gray-200 hover:text-white leading-tight"
+ title="Edit this card"
+ >
+ <span className="block truncate font-medium">{card.name}</span>
+ {card.canonRef?.name ? (
+ <span className="mt-0.5 inline-flex max-w-full items-center gap-1 text-[11px] text-gray-400">
+ <Link2 size={10} aria-hidden="true" /><span className="truncate">{card.canonRef.name}</span>
+ </span>
+ ) : null}
+ </button>
+ <Pill tone={meta.tone} size="xs" icon={meta.icon} className="mt-auto">{meta.label}</Pill>
+ </li>
+ );
+ })}
+ </ul>
+ </section>
))}
</div>
);
diff --git a/client/src/components/decks/DeckRenderControls.test.jsx b/client/src/components/decks/DeckRenderControls.test.jsx
index 5bce930fba..1a814701e3 100644
--- a/client/src/components/decks/DeckRenderControls.test.jsx
+++ b/client/src/components/decks/DeckRenderControls.test.jsx
@@ -35,6 +35,9 @@ describe('DeckRenderControls', () => {
// hover on touch and no focus anywhere.
expect(screen.getByText('All 79 cards have a prompt — rewrite to replace them.')).toBeInTheDocument();
expect(btn(/^Rewrite all \(79\)$/)).toBeEnabled();
+ // ...and it is programmatically tied to the button, not merely nearby.
+ const note = screen.getByText('All 79 cards have a prompt — rewrite to replace them.');
+ expect(btn(/^Generate prompts$/)).toHaveAttribute('aria-describedby', note.id);
});
it('says why rendering is unavailable before any prompt exists', () => {
diff --git a/client/src/components/imageGen/RecordRenderPinRow.jsx b/client/src/components/imageGen/RecordRenderPinRow.jsx
index 53eb391f80..f6bdda9cc1 100644
--- a/client/src/components/imageGen/RecordRenderPinRow.jsx
+++ b/client/src/components/imageGen/RecordRenderPinRow.jsx
@@ -53,7 +53,7 @@ export default function RecordRenderPinRow({
onBlur={modelDraft.onBlur}
placeholder="Model (optional)"
aria-label={`${label} model`}
- className="w-full max-w-full bg-port-bg border border-port-border rounded-lg px-2 py-2 text-sm text-white focus:outline-none focus:border-port-accent sm:w-auto sm:min-w-[11rem]"
+ className="w-full max-w-full bg-port-bg border border-port-border rounded-lg px-2 py-2 text-sm text-white focus:outline-none focus:border-port-accent sm:w-52"
/>
) : <span className="hidden sm:block" />}
</div>
diff --git a/client/src/components/universe/EntryThumbSlot.jsx b/client/src/components/universe/EntryThumbSlot.jsx
index a622ace2e9..f2465d8044 100644
--- a/client/src/components/universe/EntryThumbSlot.jsx
+++ b/client/src/components/universe/EntryThumbSlot.jsx
@@ -96,20 +96,20 @@ export default function EntryThumbSlot({
const pendingSize = size === 'xl' ? 'lg' : size === 'lg' ? 'sm' : 'xs';
return (
<div className={`${THUMB_DIMENSIONS[size] || THUMB_DIMENSIONS.sm} shrink-0 flex items-center justify-center`}>
- <MediaJobThumb
- jobId={inFlightJobId}
- label={alt}
- size={pendingSize}
- onPreview={onPreview}
- onFilename={onComplete}
- // A terminal failure/cancel never yields a filename, so `onComplete`
- // (which clears the in-flight job) would otherwise never fire and the
- // job stays pinned. Callers that scope render state per entity keep that
- // state across switches (no remount to reset it), so a failed job would
- // leave the slot stuck — clear it via the no-filename path so the slot
- // returns to an actionable state and the entity can be re-rendered.
- onStatus={onStatus}
- />
+ <MediaJobThumb
+ jobId={inFlightJobId}
+ label={alt}
+ size={pendingSize}
+ onPreview={onPreview}
+ onFilename={onComplete}
+ // A terminal failure/cancel never yields a filename, so `onComplete`
+ // (which clears the in-flight job) would otherwise never fire and the
+ // job stays pinned. Callers that scope render state per entity keep
+ // that state across switches (no remount to reset it), so a failed job
+ // would leave the slot stuck — clear it via the no-filename path so the
+ // slot returns to an actionable state and the entity can be re-rendered.
+ onStatus={onStatus}
+ />
</div>
);
}
@@ -136,7 +136,7 @@ export default function EntryThumbSlot({
// completed image, eliminating row jitter across the three states.
const dim = THUMB_DIMENSIONS[size] || THUMB_DIMENSIONS.sm;
const iconSize = size === 'xl' ? 32 : size === 'lg' ? 18 : 14;
- const hint = canRender ? emptyHint : disabledHint;
+ const hint = canRender && onRender ? emptyHint : disabledHint;
return (
<button
type="button"