Skip to content

Commit 90ab2de

Browse files
Merge pull request anomalyco#413 from different-ai/task/ux-improvement-09
Surface reload warnings in more detail
2 parents bcf7fbb + 26ae1db commit 90ab2de

2 files changed

Lines changed: 22 additions & 8 deletions

File tree

‎packages/app/src/app/components/reload-workspace-toast.tsx‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,22 @@ export default function ReloadWorkspaceToast(props: ReloadWorkspaceToastProps) {
9393
</Show>
9494
</div>
9595

96-
<Show when={props.description || props.error}>
97-
<div class="text-xs text-gray-10 truncate leading-none mt-0.5">
98-
{props.hasActiveRuns
99-
? <span class="text-amber-11 font-medium">Reloading will stop active tasks.</span>
100-
: props.error
101-
? <span class="text-red-9 font-medium">{props.error}</span>
102-
: getDescription()
103-
}
96+
<Show when={props.description || props.error || props.warning || props.blockedReason}>
97+
<div class="text-xs text-gray-10 leading-snug mt-0.5 space-y-1">
98+
<div>
99+
{props.hasActiveRuns
100+
? <span class="text-amber-11 font-medium">Reloading will stop active tasks.</span>
101+
: props.error
102+
? <span class="text-red-9 font-medium">{props.error}</span>
103+
: getDescription()
104+
}
105+
</div>
106+
<Show when={props.warning}>
107+
<div class="text-amber-11">{props.warning}</div>
108+
</Show>
109+
<Show when={props.blockedReason}>
110+
<div class="text-gray-9">Blocked: {props.blockedReason}</div>
111+
</Show>
104112
</div>
105113
</Show>
106114
</div>

‎packages/app/src/app/components/session/composer.tsx‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,12 @@ export default function Composer(props: ComposerProps) {
11341134
</Show>
11351135
</div>
11361136

1137+
<Show when={!props.prompt.trim() && !attachments().length}>
1138+
<div class="mt-2 text-[10px] text-gray-8">
1139+
Enter to send · Shift+Enter for newline
1140+
</div>
1141+
</Show>
1142+
11371143
<div class="absolute bottom-0 right-0 z-20 flex items-center gap-2">
11381144
<input
11391145
ref={fileInputRef}

0 commit comments

Comments
 (0)