mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user