Command center: remove the model chip + 'Edit brain →' from the identity header
Inline card editing + the sidebar brain registry cover editing now; drop the redundant top-right model chip and Edit-brain button (and the unused onEditBrain prop). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
6b91da6022
commit
b600cb6ffb
@@ -164,14 +164,12 @@ export function ClawCommandCenter({
|
|||||||
avatarUrl,
|
avatarUrl,
|
||||||
onToolsChanged,
|
onToolsChanged,
|
||||||
brain,
|
brain,
|
||||||
onEditBrain,
|
|
||||||
}: {
|
}: {
|
||||||
agent: DemoAgent;
|
agent: DemoAgent;
|
||||||
teamName: string;
|
teamName: string;
|
||||||
avatarUrl?: string;
|
avatarUrl?: string;
|
||||||
onToolsChanged?: () => void;
|
onToolsChanged?: () => void;
|
||||||
brain?: RawBrain;
|
brain?: RawBrain;
|
||||||
onEditBrain?: () => void;
|
|
||||||
}) {
|
}) {
|
||||||
const c = agent.compartments;
|
const c = agent.compartments;
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
@@ -206,8 +204,6 @@ export function ClawCommandCenter({
|
|||||||
<div style={{ fontFamily: mono, fontSize: 11.5, letterSpacing: ".06em", color: "#ff8a7a", marginTop: 2 }}>{agent.role}<span style={{ color: "#5a5a62" }}> · part of {teamName}</span></div>
|
<div style={{ fontFamily: mono, fontSize: 11.5, letterSpacing: ".06em", color: "#ff8a7a", marginTop: 2 }}>{agent.role}<span style={{ color: "#5a5a62" }}> · part of {teamName}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<span style={{ flex: 1 }} />
|
<span style={{ flex: 1 }} />
|
||||||
<span style={{ fontFamily: mono, fontSize: 11, color: "#9a9aa2", padding: "5px 11px", borderRadius: 999, background: "rgba(255,255,255,.04)", border: "1px solid rgba(255,255,255,.1)" }}>{agent.model || "model —"}</span>
|
|
||||||
<button type="button" onClick={onEditBrain} style={{ display: "inline-flex", alignItems: "center", gap: 6, fontFamily: mono, fontSize: 11.5, color: "#ff8a7a", padding: "6px 13px", borderRadius: 8, background: "rgba(255,111,97,.08)", border: "1px solid rgba(255,111,97,.4)", cursor: "pointer" }}>Edit brain →</button>
|
|
||||||
<button type="button" aria-label="Settings" style={{ display: "inline-flex", alignItems: "center", justifyContent: "center", width: 34, height: 34, borderRadius: 8, color: "#9a9aa2", background: "transparent", border: "1px solid rgba(255,255,255,.1)", cursor: "pointer" }}><Settings size={16} /></button>
|
<button type="button" aria-label="Settings" style={{ display: "inline-flex", alignItems: "center", justifyContent: "center", width: 34, height: 34, borderRadius: 8, color: "#9a9aa2", background: "transparent", border: "1px solid rgba(255,255,255,.1)", cursor: "pointer" }}><Settings size={16} /></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -719,7 +719,7 @@ export function Dashboard({ user, orgs, claws }: { user?: { display_name?: strin
|
|||||||
metrics band → LIVE/BRAIN/SURFACE columns). Chat lives in the computer's
|
metrics band → LIVE/BRAIN/SURFACE columns). Chat lives in the computer's
|
||||||
Chat app now. Condensed by the computer's width + the registry rail. */}
|
Chat app now. Condensed by the computer's width + the registry rail. */}
|
||||||
<div style={{ position: "absolute", top: 0, bottom: 0, left: registryOpen && device !== "full" ? 510 : 0, right: "var(--computer-width)", transition: "left var(--duration-normal) var(--ease-app), right var(--duration-normal) var(--ease-app)" }}>
|
<div style={{ position: "absolute", top: 0, bottom: 0, left: registryOpen && device !== "full" ? 510 : 0, right: "var(--computer-width)", transition: "left var(--duration-normal) var(--ease-app), right var(--duration-normal) var(--ease-app)" }}>
|
||||||
<ClawCommandCenter agent={richAgent} brain={richBrain} teamName={team.name} avatarUrl={clawAgent.avatar || undefined} onToolsChanged={() => setEnrichBump((b) => b + 1)} onEditBrain={() => setRegistryOpen(true)} />
|
<ClawCommandCenter agent={richAgent} brain={richBrain} teamName={team.name} avatarUrl={clawAgent.avatar || undefined} onToolsChanged={() => setEnrichBump((b) => b + 1)} />
|
||||||
</div>
|
</div>
|
||||||
{/* Right: the original device computer (phone / tablet / desktop). */}
|
{/* Right: the original device computer (phone / tablet / desktop). */}
|
||||||
<DevicePanel agent={clawAgent} />
|
<DevicePanel agent={clawAgent} />
|
||||||
|
|||||||
Reference in New Issue
Block a user