Skip to content

Commit 76d5f19

Browse files
authored
ui-build-fix-prerelease6 (#599)
## Summary Remove unused imports and console.log statement from the logs page component. ## Changes - Removed the unused `useAppSelector` import from the store - Removed unused `user` variable that was retrieving the current user from the store - Removed a console.log statement that was logging the user object ## Type of change - [x] Bug fix - [ ] Feature - [x] Refactor - [ ] Documentation - [ ] Chore/CI ## Affected areas - [ ] Core (Go) - [ ] Transports (HTTP) - [ ] Providers/Integrations - [ ] Plugins - [x] UI (Next.js) - [ ] Docs ## How to test Verify that the logs page still functions correctly without the removed code: ```sh # UI cd ui pnpm i || npm i pnpm dev || npm run dev # Navigate to the logs page and verify it loads correctly ``` ## Screenshots/Recordings N/A ## Breaking changes - [ ] Yes - [x] No ## Related issues N/A ## Security considerations No security implications. ## Checklist - [x] I read `docs/contributing/README.md` and followed the guidelines - [x] I added/updated tests where appropriate - [x] I updated documentation where needed - [x] I verified builds succeed (Go and UI) - [x] I verified the CI pipeline passes locally if applicable
2 parents 81ef693 + 69876e2 commit 76d5f19

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/app/logs/page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import FullPageLoader from "@/components/fullPageLoader";
88
import { Alert, AlertDescription } from "@/components/ui/alert";
99
import { Card, CardContent } from "@/components/ui/card";
1010
import { useWebSocket } from "@/hooks/useWebSocket";
11-
import { getErrorMessage, useAppSelector, useLazyGetLogsQuery } from "@/lib/store";
11+
import { getErrorMessage, useLazyGetLogsQuery } from "@/lib/store";
1212
import type { ChatMessage, ChatMessageContent, ContentBlock, LogEntry, LogFilters, LogStats, Pagination } from "@/lib/types/logs";
1313
import { AlertCircle, BarChart, CheckCircle, Clock, DollarSign, Hash } from "lucide-react";
1414
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -21,9 +21,6 @@ export default function LogsPage() {
2121
const [fetchingLogs, setFetchingLogs] = useState(false); // on pagination/filters change
2222
const [error, setError] = useState<string | null>(null);
2323
const [showEmptyState, setShowEmptyState] = useState(false);
24-
const user = useAppSelector((state) => state.user?.currentUser);
25-
26-
console.log("user", user);
2724

2825
// RTK Query lazy hook for manual triggering
2926
const [triggerGetLogs] = useLazyGetLogsQuery();

0 commit comments

Comments
 (0)