Skip to content

UI: Re-skin Web UI with new 'pitch-gitfix' branding #203

Closed

Description

@integry

Task: Update UI to 'pitch-gitfix' branding

Update the entire 'gitfix-ui' application to match the new branding guidelines (light theme, red accents) found in the '/media' directory.

This involves updating logos, colors, fonts, and layout components to move from the current dark theme to a new light theme.

Implementation Steps

  1. Logos:

    • Copy the new 'logo.svg' and 'logo-loading.svg' from the project's '/media' directory to 'gitfix-ui/public/'.
    • If the logos are not in '/media', please ask for them.
  2. Favicon:

    • Update 'gitfix-ui/index.html' to use the new 'logo.svg' as the default favicon.
    • Update 'gitfix-ui/src/App.tsx' to toggle between 'logo.svg' (default) and 'logo-loading.svg' (loading state) based on worker status.
  3. Tailwind Configuration:

    • Update 'gitfix-ui/tailwind.config.js' to define the new color palette.
    • Add a 'primary' color using the new red (e.g., shades 500 and 600).
    • Add 'light' background colors (e.g., 'bg-gray-50' or 'bg-white').
  4. Global Styles:

    • Update 'gitfix-ui/src/index.css' to set the global 'body' background color to the new light color (e.g., 'bg-light-100' or 'bg-gray-50').
    • Set the default text color to a dark gray (e.g., 'text-gray-800').
    • Apply the new primary font if one is specified in the branding guide (e.g., 'Inter').
  5. Layout:

    • Modify 'gitfix-ui/src/components/Layout.tsx'.
    • Change the sidebar from dark ('bg-gray-800') to light ('bg-white' or 'bg-gray-100') and add a 'shadow' or 'border'.
    • Update the 'GitFix' title to use the new 'primary-600' color (or replace it with the new logo image).
    • Update navigation links:
      • Inactive: 'text-gray-600' and 'hover:bg-gray-50'.
      • Active: 'text-primary-600', 'bg-red-50', and 'border-primary-600'.
  6. Components:

    • Refactor 'gitfix-ui/src/components/SystemStatus.tsx', 'gitfix-ui/src/components/TaskQueueStats.tsx', and 'gitfix-ui/src/components/TaskList.tsx'.
    • Change dark backgrounds (e.g., 'bg-gray-800') to light backgrounds (e.g., 'bg-white', 'border', 'border-gray-200', 'shadow-sm').
    • Change light text (e.g., 'text-white', 'text-gray-400') to dark text (e.g., 'text-gray-900', 'text-gray-600').
    • Update status colors (like green) to work on a light background (e.g., use 'text-green-600' instead of 'text-green-500').
    • Use the new 'primary' red for highlights (e.g., 'View Details' button in 'TaskList.tsx').

Activity

  1. integry commented on Nov 1, 2025

    @integry
    OwnerAuthor

    Here are the suggested diffs to implement the new branding. Please apply these changes.

    --- a/gitfix-ui/tailwind.config.js
    +++ b/gitfix-ui/tailwind.config.js
    @@ -6,7 +6,17 @@
       "./src/**/*.{js,ts,jsx,tsx}",
     ],
     theme: {
    -  extend: {},
    +  extend: {
    +    colors: {
    +      primary: {
    +        '500': '#E53E3E', // Example Red
    +        '600': '#C53030',
    +      },
    +      light: {
    +        '100': '#F7FAFC', // Light gray background
    +        '200': '#EDF2F7',
    +      }
    +    }
    +  },
     },
     plugins: [],
     }
    --- a/gitfix-ui/src/index.css
    +++ b/gitfix-ui/src/index.css
    @@ -1,3 +1,8 @@
     @tailwind base;
     @tailwind components;
     @tailwind utilities;
    +
    +body {
    +  @apply bg-light-100 text-gray-800;
    +  font-family: 'Inter', sans-serif; /* Example font */
    +}
    --- a/gitfix-ui/index.html
    +++ b/gitfix-ui/index.html
    @@ -3,7 +3,7 @@
     <html lang="en">
       <head>
         <meta charset="UTF-8" />
    -    <link id="favicon" rel="icon" type="image/svg+xml" href="/vite.svg" />
    +    <link id="favicon" rel="icon" type="image/svg+xml" href="/logo.svg" />
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
         <title>GitFix</title>
       </head>
    --- a/gitfix-ui/src/App.tsx
    +++ b/gitfix-ui/src/App.tsx
    @@ -10,8 +10,8 @@
     const App: React.FC = () => {
       useEffect(() => {
         const favicon = document.getElementById('favicon') as HTMLLinkElement | null;
    -    const defaultFavicon = '/vite.svg';
    -    const loadingFavicon = '/vite-loading.svg';
    +    const defaultFavicon = '/logo.svg';
    +    const loadingFavicon = '/logo-loading.svg';
     
         const updateFavicon = async () => {
           try {
    --- a/gitfix-ui/src/components/Layout.tsx
    +++ b/gitfix-ui/src/components/Layout.tsx
    @@ -17,21 +17,21 @@
       const isActive = (path: string): boolean => location.pathname === path;
     
       return (
    -    <div className="flex min-h-screen bg-gray-900">
    +    <div className="flex min-h-screen bg-light-100">
           {/* Sidebar */}
    -      <aside className="w-60 bg-gray-800 py-6 border-r border-gray-700">
    +      <aside className="w-60 bg-white py-6 border-r border-gray-200 shadow-sm">
             <div className="px-4 mb-8">
    -          <h2 className="text-white text-xl font-bold">GitFix</h2>
    +          <h2 className="text-primary-600 text-xl font-bold">GitFix</h2> {/* TODO: Replace with Logo Component */}
             </div>
             <nav className="flex flex-col gap-1">
               {navigation.map((item) => (
                 <Link
                   key={item.name}
                   to={item.href}
    -              className={${'`'}flex items-center px-4 py-3 text-sm font-medium transition-all duration-200 ${
    +              className={${'`'}flex items-center px-4 py-3 text-sm font-medium transition-all duration-200 ${
                     isActive(item.href)
    -                  ? 'bg-blue-600/20 text-blue-400 border-r-2 border-blue-400'
    -                  : 'text-gray-400 hover:bg-gray-700 hover:text-gray-200'
    +                  ? 'bg-red-50 text-primary-600 border-r-2 border-primary-600 font-medium'
    +                  : 'text-gray-600 hover:bg-gray-50 hover:text-gray-900'
                   }${'`'}}
                 >
                   <item.icon className="w-5 h-5 mr-3" />
    @@ -43,7 +43,7 @@
     
           {/* Main content */}
           <div className="flex-1 flex flex-col">
    -        <main className="flex-1 p-8 overflow-y-auto bg-gray-900">
    +        <main className="flex-1 p-8 overflow-y-auto">
               {children}
             </main>
           </div>
    --- a/gitfix-ui/src/components/SystemStatus.tsx
    +++ b/gitfix-ui/src/components/SystemStatus.tsx
    @@ -27,11 +27,11 @@
       };
     
       if (loading && !status) {
    -    return <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 min-w-[300px] text-gray-400">Loading System Status...</div>;
    +    return <div className="bg-white border border-gray-200 rounded-lg p-6 min-w-[300px] text-gray-500 shadow-sm">Loading System Status...</div>;
       }
     
       if (error) {
    -    return <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 min-w-[300px] text-red-400">Error: {error}</div>;
    +    return <div className="bg-white border border-gray-200 rounded-lg p-6 min-w-[300px] text-red-600 shadow-sm">Error: {error}</div>;
       }
     
       const getStatusColor = (status?: string): string => {
    @@ -41,7 +41,7 @@
           case 'authenticated':
           case 'active':
    -        return '#10b981'; // green-500
    +        return '#16A34A'; // green-600
           case 'stopped':
           case 'disconnected':
           case 'failed':
    @@ -49,11 +49,11 @@
           case 'error':
             return '#ef4444'; // red-500
           case 'idle':
    -        return '#f59e0b'; // amber-500
    +        return '#F59E0B'; // amber-500
           default:
    -        return '#6b7280'; // gray-500
    +        return '#6B7280'; // gray-500
         }
       };
     
    @@ -66,42 +66,42 @@
       };
     
       return (
    -    <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 min-w-[300px]">
    -      <h3 className="text-lg font-semibold text-white mb-6">System Status</h3>
    +    <div className="bg-white border border-gray-200 rounded-lg p-6 min-w-[300px] shadow-sm">
    +      <h3 className="text-lg font-semibold text-gray-900 mb-6">System Status</h3>
           <div className="flex flex-col gap-3">
    -        <div className="flex justify-between items-center py-2 border-b border-gray-700">
    -          <span className="font-medium text-gray-400">Daemon:</span>
    +        <div className="flex justify-between items-center py-2 border-b border-gray-200">
    +          <span className="font-medium text-gray-600">Daemon:</span>
               <span className="font-semibold" style={{ color: getStatusColor(status?.daemon) }}>
                 {status?.daemon || 'Unknown'}
               </span>
             </div>
    -        <div className="flex justify-between items-center py-2 border-b border-gray-700">
    -          <span className="font-medium text-gray-400">Workers:</span>
    -          <span className="font-semibold text-gray-200">
    +        <div className="flex justify-between items-center py-2 border-b border-gray-200">
    +          <span className="font-medium text-gray-600">Workers:</span>
    +          <span className="font-semibold text-gray-700">
                 {getWorkerStatus()}
               </span>
             </div>
    -        <div className="flex justify-between items-center py-2 border-b border-gray-700">
    -          <span className="font-medium text-gray-400">Redis:</span>
    +        <div className="flex justify-between items-center py-2 border-b border-gray-200">
    +          <span className="font-medium text-gray-600">Redis:</span>
               <span className="font-semibold" style={{ color: getStatusColor(status?.redis) }}>
                 {status?.redis || 'Unknown'}
               </span>
             </div>
    -        <div className="flex justify-between items-center py-2 border-b border-gray-700">
    -          <span className="font-medium text-gray-400">GitHub Auth:</span>
    +        <div className="flex justify-between items-center py-2 border-b border-gray-200">
    +          <span className="font-medium text-gray-600">GitHub Auth:</span>
               <span className="font-semibold" style={{ color: getStatusColor(status?.githubAuth) }}>
                 {status?.githubAuth || 'Unknown'}
               </span>
             </div>
             <div className="flex justify-between items-center py-2">
    -          <span className="font-medium text-gray-400">Claude Auth:</span>
    +          <span className="font-medium text-gray-600">Claude Auth:</span>
               <span className="font-semibold" style={{ color: getStatusColor(status?.claudeAuth) }}>
    -            {status?.claudeAuth || 'Unknown'}
    +            {status?.claudeAuth || 'Unknown'}
               </span>
             </div>
           </div>
    --- a/gitfix-ui/src/components/TaskQueueStats.tsx
    +++ b/gitfix-ui/src/components/TaskQueueStats.tsx
    @@ -30,19 +30,19 @@
       }, []);
     
       if (loading && !stats) {
    -    return <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 min-w-[300px] text-gray-400">Loading Queue Stats...</div>;
    +    return <div className="bg-white border border-gray-200 rounded-lg p-6 min-w-[300px] text-gray-500 shadow-sm">Loading Queue Stats...</div>;
       }
     
       if (error) {
    -    return <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 min-w-[300px] text-red-400">Error: {error}</div>;
    +    return <div className="bg-white border border-gray-200 rounded-lg p-6 min-w-[300px] text-red-600 shadow-sm">Error: {error}</div>;
       }
     
       const getStatColor = (type: string, value: number): string => {
         if (type === 'failed' && value > 0) return '#ef4444';
    -    if (type === 'active' && value > 0) return '#10b981';
    +    if (type === 'active' && value > 0) return '#16A34A';
         if (type === 'waiting' && value > 10) return '#f59e0b';
         if (type === 'completed') return '#3b82f6';
    -    return '#6b7280';
    +    return '#374151'; // gray-700
       };
     
       return (
    -    <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 min-w-[300px]">
    -      <h3 className="text-lg font-semibold text-white mb-6">Task Queue</h3>
    +    <div className="bg-white border border-gray-200 rounded-lg p-6 min-w-[300px] shadow-sm">
    +      <h3 className="text-lg font-semibold text-gray-900 mb-6">Task Queue</h3>
           <div className="grid grid-cols-2 gap-4">
    -        <div className="stat-item bg-gray-700/50 rounded-lg p-4 text-center">
    -          <div className="text-sm text-gray-400 mb-1">Active</div>
    +        <div className="stat-item bg-gray-50 rounded-lg p-4 text-center border border-gray-200">
    +          <div className="text-sm text-gray-500 mb-1">Active</div>
               <div className="text-3xl font-bold" style={{ color: getStatColor('active', stats?.active) }}>
                 {stats?.active || 0}
               </div>
             </div>
    -        <div className="stat-item bg-gray-700/50 rounded-lg p-4 text-center">
    -          <div className="text-sm text-gray-400 mb-1">Waiting</div>
    +        <div className="stat-item bg-gray-50 rounded-lg p-4 text-center border border-gray-200">
    +          <div className="text-sm text-gray-500 mb-1">Waiting</div>
               <div className="text-3xl font-bold" style={{ color: getStatColor('waiting', stats?.waiting) }}>
                 {stats?.waiting || 0}
               </div>
             </div>
    -        <div className="stat-item bg-gray-700/50 rounded-lg p-4 text-center">
    -          <div className="text-sm text-gray-400 mb-1">Completed (24h)</div>
    +        <div className="stat-item bg-gray-50 rounded-lg p-4 text-center border border-gray-200">
    +          <div className="text-sm text-gray-500 mb-1">Completed (24h)</div>
               <div className="text-3xl font-bold" style={{ color: getStatColor('completed', stats?.completed) }}>
                 {stats?.completed || 0}
               </div>
             </div>
    -        <div className="stat-item bg-gray-700/50 rounded-lg p-4 text-center">
    -          <div className="text-sm text-gray-400 mb-1">Failed</div>
    +        <div className="stat-item bg-gray-50 rounded-lg p-4 text-center border border-gray-200">
    +          <div className="text-sm text-gray-500 mb-1">Failed</div>
               <div className="text-3xl font-bold" style={{ color: getStatColor('failed', stats?.failed) }}>
                 {stats?.failed || 0}
               </div>
    --- a/gitfix-ui/src/components/TaskList.tsx
    +++ b/gitfix-ui/src/components/TaskList.tsx
    @@ -65,13 +65,13 @@
         return `${minutes}m ${seconds}s${suffix}`;
       };
     
    -  if (loading && tasks.length === 0) return <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 text-gray-400">Loading tasks...</div>;
    -  if (error) return <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 text-red-400">Error loading tasks: {error}</div>;
    +  if (loading && tasks.length === 0) return <div className="bg-white border border-gray-200 rounded-lg p-6 text-gray-500 shadow-sm">Loading tasks...</div>;
    +  if (error) return <div className="bg-white border border-gray-200 rounded-lg p-6 text-red-600 shadow-sm">Error loading tasks: {error}</div>;
     
       return (
    -    <div className="bg-gray-800 border border-gray-700 rounded-lg p-6 mt-4">
    +    <div className="bg-white border border-gray-200 rounded-lg p-6 mt-4 shadow-sm">
           <div className="flex justify-between items-center mb-4">
    -        <h3 className="text-lg font-semibold text-white">Tasks</h3>
    +        <h3 className="text-lg font-semibold text-gray-900">Tasks</h3>
             <div className="flex items-center gap-4">
               <select 
                 value={filter} 
    -            className="px-3 py-2 bg-gray-700 border border-gray-600 text-gray-200 rounded-md focus:ring-2 focus:ring-blue-500 focus:border-blue-500 cursor-pointer"
    +            className="px-3 py-2 bg-gray-50 border border-gray-300 text-gray-800 rounded-md focus:ring-2 focus:ring-primary-500 focus:border-primary-500 cursor-pointer"
               >
                 <option value="all">All Tasks</option>
                 <option value="active">Active</option>
    @@ -87,20 +87,20 @@
           </div>
     
           {tasks.length === 0 ? (
    -        <p className="text-gray-400 text-center py-8">No tasks found</p>
    +        <p className="text-gray-500 text-center py-8">No tasks found</p>
           ) : (
             <div className="overflow-x-auto">
               <table className="w-full">
                 <thead>
    -              <tr className="border-b border-gray-700">
    -                <th className="py-3 px-4 text-left text-sm font-medium text-gray-400 uppercase tracking-wider">Repository</th>
    -                <th className="py-3 px-4 text-left text-sm font-medium text-gray-400 uppercase tracking-wider">Issue/Task</th>
    -                <th className="py-3 px-4 text-left text-sm font-medium text-gray-400 uppercase tracking-wider">Status</th>
    -                <th className="py-3 px-4 text-left text-sm font-medium text-gray-400 uppercase tracking-wider">Created</th>
    -                <th className="py-3 px-4 text-left text-sm font-medium text-gray-400 uppercase tracking-wider">Duration</th>
    -                <th className="py-3 px-4 text-left text-sm font-medium text-gray-400 uppercase tracking-wider">Actions</th>
    +              <tr className="border-b border-gray-200">
    +                <th className="py-3 px-4 text-left text-sm font-medium text-gray-500 uppercase tracking-wider">Repository</th>
    +                <th className="py-3 px-4 text-left text-sm font-medium text-gray-500 uppercase tracking-wider">Issue/Task</th>
    +                <th className="py-3 px-4 text-left text-sm font-medium text-gray-500 uppercase tracking-wider">Status</th>
    +                <th className="py-3 px-4 text-left text-sm font-medium text-gray-500 uppercase tracking-wider">Created</th>
    +                <th className="py-3 px-4 text-left text-sm font-medium text-gray-500 uppercase tracking-wider">Duration</th>
    +                <th className="py-3 px-4 text-left text-sm font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                   </tr>
                 </thead>
    -            <tbody className="divide-y divide-gray-700">
    +            <tbody className="divide-y divide-gray-200">
                   {tasks.map((task, index) => (
                     <tr 
                       key={task.id}
    -                  className={${'`'}hover:bg-gray-700/50 transition-colors cursor-pointer ${
    -                    index % 2 === 0 ? 'bg-gray-800/50' : 'bg-gray-800/30'
    +                  className={${'`'}hover:bg-gray-50 transition-colors cursor-pointer ${
    +                    index % 2 === 0 ? 'bg-white' : 'bg-light-100/50'
                       }${'`'}}
                     >
    -                  <td className="py-4 px-4 text-sm text-gray-300">
    +                  <td className="py-4 px-4 text-sm text-gray-600">
                         {task.repository || 'Unknown'}
                       </td>
                       <td className="py-4 px-4">
    -                    <div className="font-medium text-gray-200">
    +                    <div className="font-medium text-gray-800">
                           {task.id.startsWith('pr-comments-batch') ? 
                             ${'`'}PR #${task.issueNumber || 'N/A'} Comments${'`'} : 
                             task.issueNumber ? ${'`'}Issue #${task.issueNumber}${'`'} : 'Task'
    @@ -108,7 +108,7 @@
                           }
                         </div>
                         {task.title && (
    -                      <div className="text-sm text-gray-400 mt-1">
    +                      <div className="text-sm text-gray-500 mt-1">
                             {task.title.substring(0, 60)}
                             {task.title.length > 60 && '...'}
                           </div>
    @@ -122,16 +122,16 @@
                           </span>
                         </div>
                       </td>
    -                  <td className="py-4 px-4 text-sm text-gray-300">
    +                  <td className="py-4 px-4 text-sm text-gray-600">
                         {formatDate(task.createdAt)}
                       </td>
    -                  <td className="py-4 px-4 text-sm text-gray-300">
    +                  <td className="py-4 px-4 text-sm text-gray-600">
                         {formatDuration(task.processedAt || task.createdAt, task.completedAt, task.status)}
                       </td>
                       <td className="py-4 px-4">
                         <Link to={${'`'}/tasks/${task.id}${`'`}}>
    -                      <button className="px-3 py-1.5 bg-blue-600 hover:bg-blue-700 text-white text-sm rounded-md transition-colors">
    +                      <button className="px-3 py-1.5 bg-primary-600 hover:bg-primary-700 text-white text-sm rounded-md transition-colors">
                             View Details
                           </button>
                         </Link>
  2. propr-dev commented on Nov 1, 2025

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude-sonnet-4-5-20250929 model.

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

    Processing Details:

    • Model: claude-sonnet-4-5-20250929
    • Branch: ai-fix/203-ui-re-skin-web-ui-with-ne-20251101-2144-claude-sonnet-4-5-20250929-jiw
    • Base Branch: main
    • Worktree: issue-203-20251101-2144-claude-sonnet-4-5-20250929-jiw
  3. added a commit that references this issue on Nov 1, 2025
  4. added a commit that references this issue on Nov 1, 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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions