update
This commit is contained in:
1 parent
65e85135c1
commit
6f1de8047e
64 files changed
+1269
-515
No files matched your search
@@ -28,7 +28,7 @@ export function AccountCard({ account, onLogin, onDelete, onClick }: AccountCard
|
||||
<div className="mt-0.5 flex items-center gap-2 text-[11px] text-muted-foreground">
|
||||
<span className="truncate">@{account.accountName}</span>
|
||||
{account.requireApproval ? (
|
||||
<span className="flex items-center gap-1 text-yellow-600 dark:text-yellow-400">
|
||||
<span className="flex items-center gap-1 text-warning">
|
||||
<ShieldCheck size={10} />
|
||||
Approval required
|
||||
</span>
|
||||
@@ -58,16 +58,16 @@ export function AccountCard({ account, onLogin, onDelete, onClick }: AccountCard
|
||||
<div className="flex items-center gap-2">
|
||||
<span className={`flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[10px] font-semibold ${
|
||||
isLoggedIn
|
||||
? "bg-green-100 dark:bg-green-900/50 text-green-600 dark:text-green-400"
|
||||
? "bg-success-muted text-success"
|
||||
: account.status === "login_required"
|
||||
? "bg-yellow-100 dark:bg-yellow-900/50 text-yellow-600 dark:text-yellow-400"
|
||||
? "bg-warning-muted text-warning"
|
||||
: account.status === "suspended"
|
||||
? "bg-red-100 dark:bg-red-900/50 text-destructive"
|
||||
? "bg-destructive-muted text-destructive"
|
||||
: "bg-muted text-muted-foreground"
|
||||
}`}>
|
||||
<span className={`h-1.5 w-1.5 rounded-full ${
|
||||
isLoggedIn ? "bg-green-600 dark:bg-green-400"
|
||||
: account.status === "login_required" ? "bg-yellow-600 dark:bg-yellow-400"
|
||||
isLoggedIn ? "bg-success"
|
||||
: account.status === "login_required" ? "bg-warning"
|
||||
: account.status === "suspended" ? "bg-destructive"
|
||||
: "bg-[color:var(--muted-foreground)]"
|
||||
}`} />
|
||||
@@ -89,7 +89,7 @@ export function AccountCard({ account, onLogin, onDelete, onClick }: AccountCard
|
||||
type="button"
|
||||
onClick={onDelete}
|
||||
aria-label="Delete account"
|
||||
className="rounded-lg p-1.5 text-muted-foreground opacity-0 transition hover:bg-red-100 dark:bg-red-900/50 hover:text-destructive group-hover:opacity-100 group-focus-within:opacity-100"
|
||||
className="rounded-lg p-1.5 text-muted-foreground opacity-0 transition hover:bg-destructive-muted hover:text-destructive group-hover:opacity-100 group-focus-within:opacity-100"
|
||||
>
|
||||
<Trash size={14} />
|
||||
</button>
|
||||
|
||||
@@ -40,7 +40,7 @@ export function ActionHistory({ actions, agents, onOpenPath, onCancelAction, onN
|
||||
className="flex items-center gap-3 rounded-lg border border-border bg-card px-4 py-2.5 text-[12px]"
|
||||
>
|
||||
<Icon size={16} className={
|
||||
isSuccess ? "text-green-600 dark:text-green-400"
|
||||
isSuccess ? "text-success"
|
||||
: isFailed ? "text-destructive"
|
||||
: isRunning ? "text-primary"
|
||||
: "text-muted-foreground"
|
||||
@@ -94,7 +94,7 @@ export function ActionHistory({ actions, agents, onOpenPath, onCancelAction, onN
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => void onCancelAction(action.id)}
|
||||
className="inline-flex items-center gap-1 rounded-[5px] bg-red-100 dark:bg-red-900/50 px-2 py-1 text-[10px] font-medium text-destructive transition hover:brightness-95"
|
||||
className="inline-flex items-center gap-1 rounded-[5px] bg-destructive-muted px-2 py-1 text-[10px] font-medium text-destructive transition hover:brightness-95"
|
||||
>
|
||||
<ClockCounterClockwise size={10} />
|
||||
Cancel
|
||||
@@ -106,10 +106,10 @@ export function ActionHistory({ actions, agents, onOpenPath, onCancelAction, onN
|
||||
{timeAgo(action.createdAt)}
|
||||
</div>
|
||||
<span className={`shrink-0 rounded-full px-2 py-0.5 text-[9px] font-bold ${
|
||||
isSuccess ? "bg-green-100 dark:bg-green-900/50 text-green-600 dark:text-green-400"
|
||||
: isFailed ? "bg-red-100 dark:bg-red-900/50 text-destructive"
|
||||
isSuccess ? "bg-success-muted text-success"
|
||||
: isFailed ? "bg-destructive-muted text-destructive"
|
||||
: isRunning ? "bg-accent text-primary"
|
||||
: action.status === "approval_required" ? "bg-yellow-100 dark:bg-yellow-900/50 text-yellow-600 dark:text-yellow-400"
|
||||
: action.status === "approval_required" ? "bg-warning-muted text-warning"
|
||||
: "bg-muted text-muted-foreground"
|
||||
}`}>
|
||||
{action.status.replace("_", " ")}
|
||||
|
||||
Reference in new issue
Block a user