mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-20 10:11:58 +00:00
Merge pull request #48615 from NousResearch/fix/dashboard-ds-button-api
fix(dashboard): use DS Button prefix/size API instead of inline icons
This commit is contained in:
commit
28d887ca18
4 changed files with 30 additions and 23 deletions
|
|
@ -149,8 +149,11 @@ function BlueprintCard({
|
|||
</p>
|
||||
) : null}
|
||||
<div className="flex items-center gap-2">
|
||||
<Button onClick={() => void submit()} disabled={submitting}>
|
||||
{submitting ? <Spinner className="h-4 w-4" /> : <Clock className="h-4 w-4" />}
|
||||
<Button
|
||||
onClick={() => void submit()}
|
||||
disabled={submitting}
|
||||
prefix={submitting ? <Spinner /> : <Clock />}
|
||||
>
|
||||
Schedule it
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ export function ToolsetConfigDrawer({ toolset, profile, onClose, onChanged }: Pr
|
|||
</Badge>
|
||||
) : (
|
||||
<Button
|
||||
size="xs"
|
||||
size="sm"
|
||||
outlined
|
||||
onClick={() => void handleSelectProvider(provider)}
|
||||
disabled={selecting !== null}
|
||||
|
|
@ -376,7 +376,7 @@ export function ToolsetConfigDrawer({ toolset, profile, onClose, onChanged }: Pr
|
|||
</div>
|
||||
))}
|
||||
<Button
|
||||
size="xs"
|
||||
size="sm"
|
||||
onClick={() => void handleSaveKeys(provider)}
|
||||
disabled={savingProvider !== null}
|
||||
>
|
||||
|
|
@ -401,22 +401,28 @@ export function ToolsetConfigDrawer({ toolset, profile, onClose, onChanged }: Pr
|
|||
. Runs on this host — may take a few minutes.
|
||||
</p>
|
||||
<Button
|
||||
size="xs"
|
||||
size="sm"
|
||||
outlined
|
||||
className={cn(
|
||||
postSetupRunning &&
|
||||
postSetupKey === provider.post_setup &&
|
||||
"[&_svg]:animate-spin",
|
||||
)}
|
||||
onClick={() => void handleRunPostSetup(provider)}
|
||||
disabled={postSetupRunning}
|
||||
prefix={
|
||||
postSetupRunning &&
|
||||
postSetupKey === provider.post_setup ? (
|
||||
<Loader2 />
|
||||
) : (
|
||||
<Terminal />
|
||||
)
|
||||
}
|
||||
>
|
||||
{postSetupRunning &&
|
||||
postSetupKey === provider.post_setup ? (
|
||||
<>
|
||||
<Loader2 className="h-3 w-3 animate-spin mr-1" />
|
||||
Installing…
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Terminal className="h-3 w-3 mr-1" /> Run setup
|
||||
</>
|
||||
)}
|
||||
postSetupKey === provider.post_setup
|
||||
? "Installing…"
|
||||
: "Run setup"}
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -794,10 +794,9 @@ export default function SessionsPage() {
|
|||
<Button
|
||||
outlined
|
||||
size="sm"
|
||||
className="gap-1.5"
|
||||
onClick={() => setPruneOpen(true)}
|
||||
prefix={<Archive />}
|
||||
>
|
||||
<Archive className="h-3.5 w-3.5" />
|
||||
Prune old sessions
|
||||
</Button>,
|
||||
);
|
||||
|
|
@ -1491,8 +1490,8 @@ export default function SessionsPage() {
|
|||
onClick={() => setDeleteEmptyOpen(true)}
|
||||
aria-label={t.sessions.deleteEmpty}
|
||||
title={t.sessions.deleteEmpty}
|
||||
prefix={<Eraser />}
|
||||
>
|
||||
<Eraser className="h-3.5 w-3.5" />
|
||||
<span className="font-mondwest normal-case text-xs">
|
||||
{t.sessions.deleteEmpty} ({emptyCount})
|
||||
</span>
|
||||
|
|
@ -1565,8 +1564,8 @@ export default function SessionsPage() {
|
|||
"{count}",
|
||||
String(selectedIds.size),
|
||||
)}
|
||||
prefix={<Trash2 />}
|
||||
>
|
||||
<Trash2 className="h-3.5 w-3.5" />
|
||||
<span className="font-mondwest normal-case text-xs">
|
||||
{t.sessions.deleteSelected.replace(
|
||||
"{count}",
|
||||
|
|
|
|||
|
|
@ -493,9 +493,8 @@ export default function SkillsPage() {
|
|||
.replace("{s}", activeSkills.length !== 1 ? "s" : "")}
|
||||
</Badge>
|
||||
<Button
|
||||
size="xs"
|
||||
size="sm"
|
||||
outlined
|
||||
className="uppercase"
|
||||
onClick={openCreateEditor}
|
||||
prefix={<Plus />}
|
||||
>
|
||||
|
|
@ -594,11 +593,11 @@ export default function SkillsPage() {
|
|||
)}
|
||||
<div className="mt-3">
|
||||
<Button
|
||||
size="xs"
|
||||
size="sm"
|
||||
outlined
|
||||
onClick={() => setConfigToolset(ts)}
|
||||
prefix={<Wrench />}
|
||||
>
|
||||
<Wrench className="h-3 w-3 mr-1" />
|
||||
Configure
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue