omnillm

ToolConfig Layout Improvements

Issues Addressed

1. Ugly Card Layout ✅

Problem:

Solution:

2. Incorrect File Type Display ⚠️

Note: The backend still shows AMP as TOML because you haven’t restarted the server yet. After restart, all paths will be correct.

Changes Made

1. Grid Layout (ConfigPage.tsx, lines 1253-1264)

Before:

<div style=>

After:

<div
  style=
>

Benefits:

2. Enhanced Card Styling (ConfigPage.tsx, lines 1015-1127)

Improved Visual Hierarchy

Interactive Hover Effects

onMouseEnter={(e) => {
  if (!isActive) {
    e.currentTarget.style.borderColor = "var(--color-blue)"
    e.currentTarget.style.boxShadow = "0 0 0 2px rgba(56,189,248,0.08)"
  }
}}
onMouseLeave={(e) => {
  if (!isActive) {
    e.currentTarget.style.borderColor = "var(--color-separator)"
    e.currentTarget.style.boxShadow = "var(--shadow-card)"
  }
}}

Better Badges

Smooth Transitions

Visual Improvements

Before

┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│  Claude     │ │  Codex      │ │  Droid      │ │  OpenCode   │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
┌─────────────┐
│  AMP        │  ← Awkward single card on new row
└─────────────┘

After

┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│  Claude      │ │  Codex       │ │  Droid       │
│  ✨ hover    │ │              │ │              │
└──────────────┘ └──────────────┘ └──────────────┘
┌──────────────┐ ┌──────────────┐
│  OpenCode    │ │  AMP         │  ← Evenly distributed
│              │ │              │
└──────────────┘ └──────────────┘

Testing Checklist

Next Steps

  1. Restart OmniLLM backend to apply path fixes:
    bun run omni restart --rebuild
    
  2. Refresh browser to see new layout

  3. Verify all paths are correct:
    • Droid: ~/.factory/settings.json (JSON)
    • OpenCode: ~/.opencode/config.json (JSON)
    • AMP: ~/.amp/config.json (JSON)
  4. Test hover effects - cards should highlight on mouseover

  5. Test responsive behavior - resize window to see grid adapt

Files Modified

File Lines Changes
frontend/src/pages/ConfigPage.tsx 1253-1264 Changed to CSS Grid layout
frontend/src/pages/ConfigPage.tsx 1015-1127 Enhanced card styling with hover effects

Design Rationale

Why Grid over Flex?

Why These Hover Effects?

Why Larger Icons?