Skip to content

feat(ui): Add side menu navigation #96

Closed

Description

@integry

Task: Implement a side menu navigation for the GitFix Web UI.

Context:
The current UI is a single dashboard page. We need to add a side navigation menu to allow users to navigate between different sections of the application.

Implementation Steps:

  1. Update 'Layout.tsx':

    • Add the following new items to the navigation array in 'packages/dashboard/client/src/components/Layout.tsx':
      • Repositories
      • Tasks
      • AI Tools
      • Settings
    • Create new SVG icon components for each new item.
  2. Create New Page Components:

    • Create the following new placeholder React components in 'packages/dashboard/client/src/pages/':
      • 'RepositoriesPage.tsx'
      • 'TasksPage.tsx'
      • 'AiToolsPage.tsx'
      • 'SettingsPage.tsx'
    • Each component should render a simple heading indicating the page title.
  3. Update 'App.tsx':

    • Import the new page components.
    • Add new '<Route>' entries within the '<Routes>' component for each new page, associated with the correct path.
    • Wrap the new routes with the 'ProtectedRoute' and 'Layout' components.

Activity

  1. integry commented on Oct 4, 2025

    @integry
    OwnerAuthor

    Here is the suggested implementation:

    First, create the following new files for the page components:

    packages/dashboard/client/src/pages/RepositoriesPage.tsx

    import React from 'react';
    
    const RepositoriesPage: React.FC = () => {
      return (
        <div className="p-8">
          <h1 className="text-2xl font-bold text-white">Repositories</h1>
          <p className="text-gray-400">Manage your GitHub repositories here.</p>
        </div>
      );
    };
    
    export default RepositoriesPage;

    packages/dashboard/client/src/pages/TasksPage.tsx

    import React from 'react';
    
    const TasksPage: React.FC = () => {
      return (
        <div className="p-8">
          <h1 className="text-2xl font-bold text-white">Tasks</h1>
          <p className="text-gray-400">View all current and previous tasks.</p>
        </div>
      );
    };
    
    export default TasksPage;

    packages/dashboard/client/src/pages/AiToolsPage.tsx

    import React from 'react';
    
    const AiToolsPage: React.FC = () => {
      return (
        <div className="p-8">
          <h1 className="text-2xl font-bold text-white">AI Tools</h1>
          <p className="text-gray-400">Configure AI tools used for implementation.</p>
        </div>
      );
    };
    
    export default AiToolsPage;

    packages/dashboard/client/src/pages/SettingsPage.tsx

    import React from 'react';
    
    const SettingsPage: React.FC = () => {
      return (
        <div className="p-8">
          <h1 className="text-2xl font-bold text-white">Settings</h1>
          <p className="text-gray-400">Manage other application settings.</p>
        </div>
      );
    };
    
    export default SettingsPage;

    Next, update the following files:

    packages/dashboard/client/src/components/Layout.tsx

    --- a/packages/dashboard/client/src/components/Layout.tsx
    +++ b/packages/dashboard/client/src/components/Layout.tsx
    @@ -14,8 +14,11 @@
       const navigation = [
         { name: 'Dashboard', href: '/', icon: HomeIcon },
         { name: 'Activity', href: '/activity', icon: ActivityIcon },
    -    { name: 'Queue', href: '/queue', icon: QueueIcon },
    -    { name: 'Metrics', href: '/metrics', icon: ChartIcon },
    +    { name: 'Repositories', href: '/repositories', icon: RepoIcon },
    +    { name: 'Tasks', href: '/tasks', icon: TaskIcon },
    +    { name: 'AI Tools', href: '/ai-tools', icon: AiIcon },
    +    { name: 'Settings', href: '/settings', icon: SettingsIcon },
       ];
     
       const isActive = (path: string) => location.pathname === path;
    @@ -102,17 +105,32 @@
       </svg>
     );
     
    -const QueueIcon: React.FC<{ className?: string }> = ({ className }) => (
    +const RepoIcon: React.FC<{ className?: string }> = ({ className }) => (
       <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
    -    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
    +    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M2 6a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498A1 1 0 0120 17.72V21a2 2 0 01-2 2h-1C9.716 23 3 16.284 3 8V7a2 2 0 012-2z" />
       </svg>
     );
     
    -const ChartIcon: React.FC<{ className?: string }> = ({ className }) => (
    +const TaskIcon: React.FC<{ className?: string }> = ({ className }) => (
    +  <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
    +    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" />
    +  </svg>
    +);
    +
    +const AiIcon: React.FC<{ className?: string }> = ({ className }) => (
    +  <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
    +    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
    +  </svg>
    +);
    +
    +const SettingsIcon: React.FC<{ className?: string }> = ({ className }) => (
       <svg className={className} fill="none" viewBox="0 0 24 24" stroke="currentColor">
    -    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
    +    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
    +    <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
       </svg>
     );
     
    

    packages/dashboard/client/src/App.tsx

    --- a/packages/dashboard/client/src/App.tsx
    +++ b/packages/dashboard/client/src/App.tsx
    @@ -4,6 +4,11 @@
     import ProtectedRoute from './components/ProtectedRoute';
     import LoginPage from './pages/LoginPage';
     import Dashboard from './pages/Dashboard';
    +import RepositoriesPage from './pages/RepositoriesPage';
    +import TasksPage from './pages/TasksPage';
    +import AiToolsPage from './pages/AiToolsPage';
    +import SettingsPage from './pages/SettingsPage';
    +
     import Layout from './components/Layout';
     
     function App() {
    @@ -19,6 +24,46 @@
                     <Layout>
                       <Dashboard />
                     </Layout>
    +              </ProtectedRoute>
    +            }
    +          />
    +          <Route
    +            path="/repositories"
    +            element={
    +              <ProtectedRoute>
    +                <Layout>
    +                  <RepositoriesPage />
    +                </Layout>
    +              </ProtectedRoute>
    +            }
    +          />
    +          <Route
    +            path="/tasks"
    +            element={
    +              <ProtectedRoute>
    +                <Layout>
    +                  <TasksPage />
    +                </Layout>
    +              </ProtectedRoute>
    +            }
    +          />
    +          <Route
    +            path="/ai-tools"
    +            element={
    +              <ProtectedRoute>
    +                <Layout>
    +                  <AiToolsPage />
    +                </Layout>
    +              </ProtectedRoute>
    +            }
    +          />
    +          <Route
    +            path="/settings"
    +            element={
    +              <ProtectedRoute>
    +                <Layout>
    +                  <SettingsPage />
    +                </Layout>
                   </ProtectedRoute>
                 }
               />
    
  2. propr-dev commented on Oct 4, 2025

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude-opus-4-20250514 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Model: claude-opus-4-20250514
    • Branch: ai-fix/96-feat-ui-add-side-menu-nav-20251004-1526-claude-opus-4-20250514-dr8
    • Base Branch: main
    • Worktree: issue-96-20251004-1526-claude-opus-4-20250514-dr8
  3. added a commit that references this issue on Oct 4, 2025
  4. added a commit that references this issue on Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions