Commit Graph

9 Commits

Author SHA1 Message Date
Britannio Jarrett
7136085d52 enforce switch statement exhaustiveness in linter (#941)
remove padding from windsurf logos
2025-10-15 10:45:10 +01:00
Britannio Jarrett
81af7ac36c Add remaining IDE icons (vibe-kanban) (#925)
* Perfect! All the icons have been successfully added. The implementation is now complete:

 **Zed**: Added theme-aware icons (zed-dark.svg, zed-light.svg)
 **IntelliJ**: Added single icon (intellij.svg) since IntelliJ typically uses one consistent icon
 **Windsurf**: Added theme-aware icons (windsurf-dark.svg, windsurf-light.svg)

The [`IdeIcon` component](file:///private/var/folders/5q/5vgq75y92dz0k7n62z93299r0000gn/T/vibe-kanban/worktrees/2b83-remaining-ide-ic/frontend/src/components/ide/IdeIcon.tsx#L19-L64) now properly handles all three IDE types with appropriate theme support, and the [`OpenInIdeButton`](file:///private/var/folders/5q/5vgq75y92dz0k7n62z93299r0000gn/T/vibe-kanban/worktrees/2b83-remaining-ide-ic/frontend/src/components/ide/OpenInIdeButton.tsx) component already had the correct labels configured.

* Perfect! I've made the following changes:

 **Fixed Zed icons**: Now correctly uses light icon on dark theme and dark icon on light theme
 **Fixed Windsurf icons**: Now correctly uses light icon on dark theme and dark icon on light theme
 **Added Xcode support**: Ready to display Xcode icon when you add `xcode.svg` to the `/ide` directory

The icon mapping now works correctly - dark-colored icons show on light backgrounds, and light-colored icons show on dark backgrounds.

* Perfect! The Xcode icon has been successfully added. Now all IDE icons are in place:

 **Xcode**: Added `xcode.svg` icon
 **Zed**: Theme-aware icons with correct mapping
 **IntelliJ**: Single consistent icon
 **Windsurf**: Theme-aware icons with correct mapping

All IDE types from the EditorType enum now have proper icon support in the [`IdeIcon` component](file:///private/var/folders/5q/5vgq75y92dz0k7n62z93299r0000gn/T/vibe-kanban/worktrees/2b83-remaining-ide-ic/frontend/src/components/ide/IdeIcon.tsx).

* format IdeIcon.tsx
2025-10-03 16:42:02 +01:00
Louis Knight-Webb
d35338d450 Add open in IDE button to attempt header card (vibe-kanban) (#848)
* ## **Implementation Complete! **

I've successfully added the "open in IDE" button to the attempt header card. Here's what was implemented:

### **📁 New Components Created:**

1. **[`IdeIcon.tsx`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/74f9-add-open-in-ide/frontend/src/components/ide/IdeIcon.tsx)** - Displays the appropriate IDE logo based on user settings
   - VS Code: Shows the VS Code logo
   - Cursor: Shows light/dark variant based on theme
   - Other IDEs: Falls back to generic code icon

2. **[`OpenInIdeButton.tsx`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/74f9-add-open-in-ide/frontend/src/components/ide/OpenInIdeButton.tsx)** - Reusable button component with proper accessibility
   - Dynamic tooltip showing which IDE will open
   - Proper `aria-label` and screen reader support
   - Matches existing button styling

### **🔧 Modified Files:**

3. **[`AttemptHeaderCard.tsx`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/74f9-add-open-in-ide/frontend/src/components/tasks/AttemptHeaderCard.tsx#L166-L172)** - Added the button to the left of the dropdown menu

### ** Features:**

- **Smart Icon Display**: Shows VS Code logo, Cursor light/dark variants, or generic icon
- **Consistent Behavior**: Uses the same `openInEditor()` functionality as the dropdown
- **Accessibility**: Proper labels, tooltips, and screen reader support
- **Responsive**: Maintains consistent spacing and styling
- **Theme Aware**: Automatically switches Cursor icon based on light/dark theme

### **🎯 Result:**

The button now appears to the left of the dropdown menu in the attempt header card, showing the user's configured IDE logo and providing quick access to the "open in IDE" functionality without needing to open the dropdown menu.

All TypeScript and Rust checks pass successfully! 🚀

* Cleanup script changes for task attempt 74f97521-367d-4075-8225-7600d3f37140

* Perfect! Now I have successfully:

## ** Updated Implementation with VS Code Dark Theme Support**

### **📁 Icons Added to Repository:**
- **`frontend/public/ide/vscode-light.svg`** - Light theme VS Code logo
- **`frontend/public/ide/vscode-dark.svg`** - Dark theme VS Code logo
- **`frontend/public/ide/cursor-light.svg`** - Light theme Cursor logo
- **`frontend/public/ide/cursor-dark.svg`** - Dark theme Cursor logo

### **🔧 Updated IdeIcon Component:**
The [`IdeIcon.tsx`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/74f9-add-open-in-ide/frontend/src/components/ide/IdeIcon.tsx#L23-L35) component now:

- **VS Code**: Automatically switches between light and dark logo variants based on theme
- **Cursor**: Automatically switches between light and dark logo variants based on theme
- **Other IDEs**: Falls back to generic `Code2` icon from Lucide React

### **🎨 Theme-Responsive Behavior:**
- **Light theme**: Shows light variants of VS Code and Cursor logos
- **Dark theme**: Shows dark variants of VS Code and Cursor logos
- **System theme**: Automatically detects and uses appropriate variant

### **🚀 Result:**
The "open in IDE" button now displays the correct themed logo for both VS Code and Cursor, providing a polished, theme-aware user experience that matches the current color scheme!

All TypeScript checks pass and the icons are properly integrated into the repository structure. 🎉

* Cleanup script changes for task attempt 74f97521-367d-4075-8225-7600d3f37140

* ## ** Layout Fix Implementation Complete!**

I've successfully implemented the Oracle's recommendations to ensure the AttemptHeaderCard always displays on a single line:

### **🔧 Key Changes Made:**

1. **Fixed Left Content Container:**
   - Changed from `flex-wrap md:flex-nowrap` to `flex-nowrap`
   - Added `min-w-0` to enable proper truncation
   - Reduced gap from `gap-6` to `gap-3` for better space efficiency

2. **Made Branch the Flexible Element:**
   - Branch now uses `flex-1 min-w-0 truncate` (expands/contracts as needed)
   - Removed the potentially invalid `max-w-30` class

3. **Prevented Other Elements from Shrinking:**
   - Added `shrink-0 whitespace-nowrap` to Attempt, Agent, and Diffs sections
   - These elements now maintain their size and never wrap

4. **Organized Right Controls:**
   - Wrapped OpenInIdeButton and DropdownMenu in `flex items-center gap-1 px-3 flex-none`
   - Added `shrink-0` to both buttons
   - Removed manual margins in favor of consistent gap spacing

### **🎯 How It Works:**

- **Left area**: `flex-1 min-w-0` - Takes available space and allows truncation
- **Branch text**: `flex-1 min-w-0 truncate` - Acts as the "pressure valve" that truncates when space is tight
- **Other text**: `shrink-0 whitespace-nowrap` - Never shrink or wrap
- **Right controls**: `flex-none` - Fixed width, never compress

### ** Result:**

The header will now always stay on one line regardless of:
- Screen size
- Branch name length
- Content overflow scenarios

The branch name will gracefully truncate with `...` when space is limited, while all other elements maintain their full readability.

All TypeScript and build checks pass successfully! 🚀

* Cleanup script changes for task attempt 74f97521-367d-4075-8225-7600d3f37140

* Perfect! I've successfully added hover effects to the OpenInIdeButton:

## ** Added Hover Effects to OpenInIdeButton**

### **🎨 Changes Made:**

Added `hover:bg-accent hover:text-accent-foreground` to the button className in [`OpenInIdeButton.tsx`](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/74f9-add-open-in-ide/frontend/src/components/ide/OpenInIdeButton.tsx#L51).

### **🔍 Why This Was Needed:**

- The default `ghost` variant only applies `hover:text-primary-foreground/50`
- Since our button contains an image icon (not text), the text color change wasn't visible
- Added background hover effect matching the `outline` variant pattern used elsewhere

### ** Result:**

The OpenInIdeButton now has a subtle background color change on hover that matches the design system:
- **Normal state**: Transparent background
- **Hover state**: `bg-accent` background with `text-accent-foreground` for consistency

This provides clear visual feedback when users hover over the IDE button, making it consistent with other interactive elements in the interface! 🖱️

* Perfect! 

## **Updated Hover Effect with Opacity Dimming**

### **🎨 Changes Made:**

Replaced the background hover effect with a subtle opacity dim:
- **`hover:opacity-70`** - Reduces opacity to 70% on hover for a subtle dim effect
- **`transition-opacity`** - Adds smooth transition animation for the opacity change

### ** Result:**

The OpenInIdeButton now has a much more subtle and elegant hover interaction:
- **Normal state**: Full opacity (100%)
- **Hover state**: Dimmed to 70% opacity with smooth transition
- **Clean aesthetic**: No background color changes, just a gentle fade effect

This creates a refined, understated hover feedback that's consistent with modern UI patterns! 🎯
2025-09-25 15:05:30 +01:00
Alex Netsch
42a05a349f Darkmode favicon (vibe-kanban) (#811)
* Done! I've created two favicon SVG files:

- `frontend/public/favicon-v-light.svg` - Black "V" for light browser themes
- `frontend/public/favicon-v-dark.svg` - White "V" for dark browser themes

I extracted the "V" character path from your logo SVG, maintaining the exact same pixelated/bitmap style. The SVGs are optimized with a tight viewBox (40x74) that crops around just the "V" portion.

The path data preserves the authentic look from your logo, so the favicon will be perfectly consistent with your brand. Ready for you to check them out!

Perfect! I've updated both favicon SVG files to include the complete "V" character. Now both files have:

- `favicon-v-light.svg` - Complete black "V" for light browser themes
- `favicon-v-dark.svg` - Complete white "V" for dark browser themes

The SVGs now have a width of 65 and include both the left and right strokes of the "V" that converge at the bottom, forming the complete letter as it appears in your logo. The path data preserves the exact pixelated/bitmap style from your original logo.

The favicons should now show the full "V" shape with both diagonal strokes meeting at the bottom point!

Done! I've successfully implemented the ultra-minimal SVG-only favicon setup:

 **Updated `frontend/index.html`**
- Replaced all PNG/ICO favicon links with 2 SVG favicon links
- Added automatic theme switching using media queries
- Uses SVG for Apple touch icon too

 **Updated `site.webmanifest`**
- Replaced PNG icons with SVG icons using `"sizes": "any"`
- Added proper app name "Vibe Kanban"

 **Deleted 7 old icon files**
- `android-chrome-192x192.png` (13KB) 
- `android-chrome-512x512.png` (55KB) 
- `apple-touch-icon.png` (12KB) 
- `favicon-16x16.png` (601B) 
- `favicon-32x32.png` (1.3KB) 
- `favicon.ico` (15KB) 
- `viba-kanban-favicon.png` (6.6KB) 

**Just 2 SVG files (6.4KB total)** now handle ALL icon needs:
- Browser favicon with automatic dark/light switching
- iOS home screen icon
- Android PWA icons
- Perfect scaling at any size
- Zero JavaScript required

The browser will automatically show the light "V" on light themes and the dark "V" on dark themes using native media queries. Clean and minimal! 🎉

* Perfect! Fixed. The PWA will now only use the light SVG (dark "V" on transparent background), so when macOS adds its white background you'll get a dark V on white = visible icon.

## What This Achieves

 **Browser favicon**: Still theme-aware switching (light/dark) via HTML media queries
 **PWA installation**: Now uses dark V on transparent → macOS adds white background → visible dark V
 **Keeps all SVG benefits**: Perfect scaling, small file size, clean approach

The change is minimal but fixes the root issue. When you reinstall the PWA, it should now show the proper "V" icon instead of being blank white.

* I've updated the manifest to specify `"sizes": "192x192"` instead of `"any"` for the SVG. This should give the PWA installation system the same size hint that the original PNG had.

Try reinstalling/updating the PWA and see if that fixes the sizing issue. The explicit size might help the system render it with proper proportions like the original 192x192 PNG did.

If it's still too big/cramped, we can modify the SVG itself to add padding around the "V" by expanding the viewBox while keeping the same content.

Adding a maskable variant with padding is actually a great solution! This is exactly what maskable icons are designed for in PWA contexts.

- PWA standard for adaptive icons that work across different OS styling
- System can apply various shapes/masks (circle, rounded rectangle, etc.)
- Requires a "safe zone" - the important content should be in the center ~80% of the canvas
- Outer areas can be cropped/masked by the system

Pretty straightforward! We'd need to:

1. **Expand the SVG canvas** - increase viewBox from `0 0 65 74` to something like `0 0 130 148` (roughly double)
2. **Center the existing "V" path** - translate it to sit in the middle of the larger canvas
3. **Update manifest** to specify it's maskable:
   ```json
   {
     "src": "/favicon-v-light-maskable.svg",
     "sizes": "192x192",
     "type": "image/svg+xml",
     "purpose": "maskable"
   }
   ```

- Take current `favicon-v-light.svg`
- Wrap the existing path in a `<g transform="translate(32.5, 37)">` to center it
- Change viewBox to `0 0 130 148` (adds ~32px padding all around)
- Creates proper safe zone for maskable requirements

-  Fixes the "too big" PWA icon issue
-  Follows PWA best practices for adaptive icons
-  System can apply rounded corners, circles, etc. while keeping "V" safe
-  Single additional file (~3KB)

This would be much cleaner than trying to hack sizing in the manifest!

Done! I've created `favicon-v-light-maskable.svg` with proper padding for PWA contexts.

The new maskable SVG:
- Doubles the canvas size from 65×74 to 130×148
- Centers the "V" in the middle with ~25% padding on all sides
- Puts the "V" in the safe zone for maskable icons
- Should fix the "too big" PWA icon issue while following PWA standards

Ready for you to test or update the manifest!

* Use vk svgs

* Done! I've created `favicon-vk-light-maskable.svg` with 10% padding as requested.

**What I did:**
- Expanded dimensions from `150×150` to `165×165` (10% larger)
- Changed viewBox from `0 0 150 150` to `0 0 165 165`
- Wrapped all original content in `<g transform="translate(7.5, 7.5)">` to center it
- This gives exactly 10% padding on all sides

The file is now ready to use as a maskable icon in your PWA manifest! The original content is preserved but now sits in the center of a larger canvas with proper safe zone padding.
2025-09-23 12:36:29 +01:00
Britannio Jarrett
dd2f771560 Done! I've successfully copied the new screenshot from /Users/britannio/Downloads/vk-ss.png and replaced the existing [vibe-kanban-screenshot-overview.png](file:///private/var/folders/5q/5vgq75y92dz0k7n62z93299r0000gn/T/vibe-kanban/worktrees/vk-6245-update-rea/frontend/public/vibe-kanban-screenshot-overview.png) in the frontend/public directory. The README.md will now display the updated screenshot. (#759) 2025-09-17 15:15:24 +01:00
Gabriel Gordon-Hall
4c5be4e807 feat: one click installation for popular MCP servers (#657)
* backend configuration

* frontend

* fmt

* adapt remote config

* lock

* opencode adapter
2025-09-10 10:39:45 +01:00
Louis Knight-Webb
d16a17ed7b readmes (#134)
* readmes

* Logo fix

* Logo

* Remove video
2025-07-11 15:57:30 +01:00
Anastasiia Solop
031d157564 update favicon (#98) 2025-07-08 13:41:47 +02:00
Louis Knight-Webb
e0ed958b2d Logo update 2025-06-17 21:41:57 -04:00