fix(ui): failed reads show an error with Retry, not an empty view (#1733)
Chat: a failed conversation load sets sessionError, shown in the transcript with Retry instead of the empty invitation (it no longer goes to statusText in the settings popover). Command palette: failed task or workflow reads render a "Couldn't load … — Retry" item in that group. Denials: the table no longer shows "No denials recorded" under an error. Mapping form: failed captures/event-types reads show an error row with Retry instead of "No captured events yet." or a silently empty select. Channels: a failed status read keeps the last badges and shows an error with Retry. Sources: read failures are separate from write failures, shown with Retry, and a loaded-but-empty list gets an empty state.
This commit is contained in:
9 files changed
+85
-14
No files matched your search
@@ -16,11 +16,15 @@ import ChatBubble from "./ChatBubble.vue";
|
||||
import ChatChooseCard from "./ChatChooseCard.vue";
|
||||
import ChatUpdateCard from "./ChatUpdateCard.vue";
|
||||
import ChatEmptyState from "./ChatEmptyState.vue";
|
||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
||||
import { Skeleton } from "@/components/ui/skeleton";
|
||||
import {
|
||||
currentSession,
|
||||
isLoadingSession,
|
||||
messages,
|
||||
selectSession,
|
||||
sendMessage,
|
||||
sessionError,
|
||||
streamingTurn,
|
||||
type ChatMessage,
|
||||
reloadTranscript,
|
||||
@@ -90,6 +94,14 @@ useLiveResource("chat", () => void reloadTranscript());
|
||||
<Skeleton class="h-10 w-2/5 self-end rounded-xl" />
|
||||
</template>
|
||||
|
||||
<div
|
||||
v-else-if="sessionError && !bubbles.length"
|
||||
class="flex flex-col items-center gap-3 p-4"
|
||||
>
|
||||
<Alert variant="destructive" class="max-w-md"><AlertDescription>{{ sessionError }}</AlertDescription></Alert>
|
||||
<Button variant="outline" size="sm" @click="selectSession(currentSession)">Retry</Button>
|
||||
</div>
|
||||
|
||||
<ChatEmptyState
|
||||
v-else-if="!bubbles.length && !streamingTurn"
|
||||
@prompt="emit('prompt', $event)"
|
||||
|
||||
Reference in new issue
Block a user