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

feat(creative-commissions): display renders + config side-by-side on desktop with smaller preview cards

[._.]/ Adam Eivyd73318f1f955
diff --git a/client/src/components/creative-commission/RenderHistory.jsx b/client/src/components/creative-commission/RenderHistory.jsx
index 583382681c..2916deaae0 100644
--- a/client/src/components/creative-commission/RenderHistory.jsx
+++ b/client/src/components/creative-commission/RenderHistory.jsx
@@ -62,7 +62,7 @@ export default function RenderHistory({ runs, feedback, projectsById, projectsLo
}
return (
- <div className="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4">
+ <div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
{orderedRuns.map((r) => {
const project = r.projectId ? projectsById.get(r.projectId) : null;
const focused = r.id === focusRunId;
@@ -74,13 +74,15 @@ export default function RenderHistory({ runs, feedback, projectsById, projectsLo
>
{/* Produced-media preview (or a status-only placeholder). */}
{project ? (
- <ProjectPreview project={project} to={`/creative-director/${encodeURIComponent(r.projectId)}`} />
+ <div className="overflow-hidden" style={{ maxHeight: '160px' }}>
+ <ProjectPreview project={project} to={`/creative-director/${encodeURIComponent(r.projectId)}`} />
+ </div>
) : (
// `project` is null in this branch, so the placeholder falls back to
// the default 16:9 box. Distinguish the transient load window (project
// list still fetching) from a genuinely pruned/missing render — a real
// render must not flash "unavailable" before the fetch resolves.
- <div className={`${previewAspectClass()} bg-port-bg flex flex-col items-center justify-center gap-1 text-gray-600 text-xs`}>
+ <div className="h-[120px] bg-port-bg flex flex-col items-center justify-center gap-1 text-gray-600 text-xs">
<Film className="w-4 h-4 opacity-50" aria-hidden="true" />
<span>{r.projectId ? (projectsLoading ? 'loading…' : 'render unavailable') : 'no render'}</span>
</div>
diff --git a/client/src/pages/CreativeCommissionDetail.jsx b/client/src/pages/CreativeCommissionDetail.jsx
index b5fb4bea0a..4ecc942e59 100644
--- a/client/src/pages/CreativeCommissionDetail.jsx
+++ b/client/src/pages/CreativeCommissionDetail.jsx
@@ -297,32 +297,35 @@ export default function CreativeCommissionDetail() {
</div>
</div>
- {/* Renders — the headline: what this commission has actually produced. */}
- <section className="space-y-3">
- <h2 className="text-sm font-semibold text-gray-200">Renders</h2>
- <RenderHistory
- runs={commission.runs}
- feedback={commission.feedback}
- projectsById={projectsById}
- projectsLoading={projectsLoading}
- focusRunId={focusRunId}
- onRate={handleRate}
- />
- </section>
-
- {/* Configuration — the editable brief/schedule/generation. */}
- <section className="space-y-3 border-t border-port-border pt-6">
- <h2 className="text-sm font-semibold text-gray-200">Configuration</h2>
- <div className="bg-port-card border border-port-border rounded-lg p-4 max-w-2xl">
- <CommissionConfigForm
- form={form}
- patchForm={patchForm}
- saving={saving}
- onSave={handleSave}
- saveLabel="Save changes"
+ {/* Renders + Config — side-by-side on desktop, stacked on mobile. */}
+ <div className="flex flex-col lg:flex-row gap-6">
+ {/* Renders — the headline: what this commission has actually produced. */}
+ <section className="flex-1 space-y-3 min-w-0">
+ <h2 className="text-sm font-semibold text-gray-200">Renders</h2>
+ <RenderHistory
+ runs={commission.runs}
+ feedback={commission.feedback}
+ projectsById={projectsById}
+ projectsLoading={projectsLoading}
+ focusRunId={focusRunId}
+ onRate={handleRate}
/>
- </div>
- </section>
+ </section>
+
+ {/* Configuration — the editable brief/schedule/generation. */}
+ <aside className="w-full lg:w-[380px] shrink-0 space-y-3">
+ <h2 className="text-sm font-semibold text-gray-200">Configuration</h2>
+ <div className="bg-port-card border border-port-border rounded-lg p-4 max-w-none">
+ <CommissionConfigForm
+ form={form}
+ patchForm={patchForm}
+ saving={saving}
+ onSave={handleSave}
+ saveLabel="Save changes"
+ />
+ </div>
+ </aside>
+ </div>
</div>
);
}