feat: add tests and implementation for issue discovery and queue pages

- Implemented `DiscoveryPage` with session management and findings display.
- Added tests for `DiscoveryPage` to ensure proper rendering and functionality.
- Created `QueuePage` for managing issue execution queues with stats and actions.
- Added tests for `QueuePage` to verify UI elements and translations.
- Introduced `useIssues` hooks for fetching and managing issue data.
- Added loading skeletons and error handling for better user experience.
- Created `vite-env.d.ts` for TypeScript support in Vite environment.
This commit is contained in:
catlog22
2026-01-31 21:20:10 +08:00
parent 6d225948d1
commit 1bd082a725
79 changed files with 5870 additions and 449 deletions

View File

@@ -15,6 +15,8 @@ import {
OrchestratorPage,
LoopMonitorPage,
IssueManagerPage,
QueuePage,
DiscoveryPage,
SkillsManagerPage,
CommandsManagerPage,
MemoryPage,
@@ -93,6 +95,14 @@ const routes: RouteObject[] = [
path: 'issues',
element: <IssueManagerPage />,
},
{
path: 'issues/queue',
element: <QueuePage />,
},
{
path: 'issues/discovery',
element: <DiscoveryPage />,
},
{
path: 'skills',
element: <SkillsManagerPage />,
@@ -156,8 +166,13 @@ const routes: RouteObject[] = [
/**
* Create the browser router instance
* Uses basename from Vite's BASE_URL environment variable
*/
export const router = createBrowserRouter(routes);
const basename = import.meta.env.BASE_URL?.replace(/\/$/, '') || '';
export const router = createBrowserRouter(routes, {
basename,
});
/**
* Export route paths for type-safe navigation
@@ -176,6 +191,8 @@ export const ROUTES = {
EXECUTIONS: '/executions',
LOOPS: '/loops',
ISSUES: '/issues',
ISSUE_QUEUE: '/issues/queue',
ISSUE_DISCOVERY: '/issues/discovery',
SKILLS: '/skills',
COMMANDS: '/commands',
MEMORY: '/memory',