Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,7 +21,7 @@
"preview": "vite preview",
"typecheck": "tsc -p tsconfig.node.json --noEmit && tsc -p tsconfig.web.json --noEmit",
"lint:write": "biome check --write --unsafe",
"format:write": "biome format --write --unsafe",
"format:write": "biome format --write",
"check:write": "pnpm run lint:write && pnpm run typecheck",
"generate-client": "tsx scripts/update-openapi-client.ts"
},
Expand Down
17 changes: 15 additions & 2 deletions src/renderer/components/TaskList.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,6 +12,7 @@ import type { Task } from "@shared/types";
import type React from "react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useHotkeys } from "react-hotkeys-hook";
import { useAuthStore } from "../stores/authStore";
import { useStatusBarStore } from "../stores/statusBarStore";
import { useTaskStore } from "../stores/taskStore";
import { AsciiArt } from "./AsciiArt";
Expand DownExpand Up@@ -55,6 +56,7 @@ export function TaskList({
const setFilter = useTaskStore((state) => state.setFilter);

const { setStatusBar, reset } = useStatusBarStore();
const { logout } = useAuthStore();
const listRef = useRef<HTMLDivElement>(null);

useEffect(() => {
Expand DownExpand Up@@ -279,9 +281,20 @@ export function TaskList({
if (error) {
return (
<Box height="100%" p="6">
<Flex direction="column" align="center" justify="center" height="100%">
<Flex
direction="column"
align="center"
justify="center"
height="100%"
gap="4"
>
<Text color="red">{error}</Text>
<Button onClick={() => fetchTasks()}>Retry</Button>
<Flex gap="2">
<Button onClick={() => fetchTasks()}>Retry</Button>
<Button variant="outline" onClick={logout}>
Logout
</Button>
</Flex>
</Flex>
</Box>
);
Expand Down