Louis Knight-Webb 5b930d9a59 Refactor branch selector (vibe-kanban) (#939)
* Done. The input now stops keyboard events from bubbling to the DropdownMenu, and explicitly maintains focus when the menu opens.

* Done. Arrow keys, Enter, Escape, and Tab now work for navigation while typing maintains focus in the input.

* Cleanup script changes for task attempt fff8d7a8-5b6d-4410-9bd6-71130db5b91c

* Done. The component now handles all keyboard navigation manually:
- Arrow keys move the highlight without moving cursor
- Enter selects the highlighted item
- Escape closes the dropdown
- Typing maintains focus and filters the list
- Highlighted items auto-scroll into view

* Cleanup script changes for task attempt fff8d7a8-5b6d-4410-9bd6-71130db5b91c

* Done. The BranchSelector is now optimized - only rows with changed props re-render, making arrow key navigation instant even with many branches.

* Done. I've added `transition-none` to the BranchRow items to disable CSS transitions.

**Findings:**
- No global transition rules with long durations found
- The DropdownMenuItem component (line 84 in [dropdown-menu.tsx](file:///private/var/folders/m1/9q_ct1913z10v6wbnv54j25r0000gn/T/vibe-kanban/worktrees/fff8-typing-in-the-br/frontend/src/components/ui/dropdown-menu.tsx#L84)) has `transition-colors` in its base styles
- This transition applies to background/color changes on focus/hover

The `transition-none` class I added should override this. Please test if the arrow key navigation is now instant. If it is, we've confirmed it was the CSS transitions causing the lag.

* Done. The BranchSelector now uses react-virtuoso to render only visible items. This will make navigation instant even with thousands of branches - only ~10-20 DOM nodes are rendered at any time instead of the full list.

* Done. Fixed both issues:
- Mouse hover no longer triggers scrolling (only keyboard navigation scrolls)
- Highlighted items now have a visible accent background with a subtle ring for clear visual feedback

* Cleanup script changes for task attempt fff8d7a8-5b6d-4410-9bd6-71130db5b91c

* Done. Increased the highlight background opacity to 70% and made the ring stronger (ring-2) for much clearer visibility.

* Cleanup script changes for task attempt fff8d7a8-5b6d-4410-9bd6-71130db5b91c

* Done. The list now only scrolls when the highlighted item would go out of view, not on every arrow key press.

* Cleanup script changes for task attempt fff8d7a8-5b6d-4410-9bd6-71130db5b91c

* Done! Cleanup complete. The component is now cleaner and more maintainable:

**Changes made:**
1.  Removed data-attribute handlers, replaced with direct closures
2.  Changed `onClick` to `onSelect` (more correct for Radix)
3.  Removed redundant `key` prop, using `computeItemKey` instead
4.  Fixed tooltip on disabled items (wrapped in span for pointer events)
5.  Clear search/highlight when dropdown closes
6.  Renamed `highlighted` → `highlightedIndex` for clarity
7.  Factored out `isBranchDisabled` helper to reduce duplication
8.  Removed redundant `autoFocus` on Input

The code is now simpler (-30 lines), more readable, and follows Radix best practices. Ready for PR!

* Cleanup script changes for task attempt fff8d7a8-5b6d-4410-9bd6-71130db5b91c

* Done! i18n implementation complete for all supported languages:

**Translations added:**
- English (en) 
- Spanish (es) 
- Japanese (ja) 

**Component updates:**
- Added `useTranslation(['common'])` hook
- New optional `disabledTooltip` prop for workflow-specific messages
- All hardcoded strings now use translation keys
- Placeholder defaults to translated value if not provided by parent
- Disabled tooltip defaults to generic message, but can be overridden

Parents (like RebaseDialog) can now provide workflow-specific tooltips from the `tasks` namespace while the component remains generic and reusable.

* Cleanup script changes for task attempt fff8d7a8-5b6d-4410-9bd6-71130db5b91c

* Done. Removed the `onOpenAutoFocus` handler. The component is now ready for PR.

* style
2025-10-07 11:10:00 +01:00
2025-08-08 13:53:27 +01:00
2025-10-06 16:55:58 +00:00
2025-08-08 13:53:27 +01:00
2025-10-06 16:55:58 +00:00
2025-09-04 10:52:18 +01:00
2025-09-22 16:02:42 +01:00
2025-08-08 13:53:27 +01:00
2025-08-08 13:53:27 +01:00
2025-07-11 15:57:30 +01:00
2025-09-04 10:52:18 +01:00
2025-07-11 16:31:08 +01:00
2025-10-06 16:55:58 +00:00
2025-06-14 15:14:08 -04:00
2025-10-03 13:48:27 +01:00
2025-06-25 09:27:29 +01:00
2025-06-25 09:27:29 +01:00
2025-07-04 11:11:45 +02:00

Vibe Kanban Logo

Get 10X more out of Claude Code, Gemini CLI, Codex, Amp and other coding agents...

npm Build status Ask DeepWiki

Overview

AI coding agents are increasingly writing the world's code and human engineers now spend the majority of their time planning, reviewing, and orchestrating tasks. Vibe Kanban streamlines this process, enabling you to:

  • Easily switch between different coding agents
  • Orchestrate the execution of multiple coding agents in parallel or in sequence
  • Quickly review work and start dev servers
  • Track the status of tasks that your coding agents are working on
  • Centralise configuration of coding agent MCP configs

You can watch a video overview here.

Installation

Make sure you have authenticated with your favourite coding agent. A full list of supported coding agents can be found in the docs. Then in your terminal run:

npx vibe-kanban

Documentation

Please head to the website for the latest documentation and user guides.

Support

We use GitHub Discussions for feature requests. Please open a discussion to create a feature request. For bugs please open an issue on this repo.

Contributing

We would prefer that ideas and changes are first raised with the core team via GitHub Discussions or Discord, where we can discuss implementation details and alignment with the existing roadmap. Please do not open PRs without first discussing your proposal with the team.

Development

Prerequisites

Additional development tools:

cargo install cargo-watch
cargo install sqlx-cli

Install dependencies:

pnpm i

Running the dev server

pnpm run dev

This will start the backend. A blank DB will be copied from the dev_assets_seed folder.

Building the frontend

To build just the frontend:

cd frontend
pnpm build

Build from source

  1. Run build-npm-package.sh
  2. In the npx-cli folder run npm pack
  3. You can run your build with npx [GENERATED FILE].tgz

Environment Variables

The following environment variables can be configured at build time or runtime:

Variable Type Default Description
GITHUB_CLIENT_ID Build-time Ov23li9bxz3kKfPOIsGm GitHub OAuth app client ID for authentication
POSTHOG_API_KEY Build-time Empty PostHog analytics API key (disables analytics if empty)
POSTHOG_API_ENDPOINT Build-time Empty PostHog analytics endpoint (disables analytics if empty)
BACKEND_PORT Runtime 0 (auto-assign) Backend server port
FRONTEND_PORT Runtime 3000 Frontend development server port
HOST Runtime 127.0.0.1 Backend server host
DISABLE_WORKTREE_ORPHAN_CLEANUP Runtime Not set Disable git worktree cleanup (for debugging)

Build-time variables must be set when running pnpm run build. Runtime variables are read when the application starts.

Custom GitHub OAuth App (Optional)

By default, Vibe Kanban uses Bloop AI's GitHub OAuth app for authentication. To use your own GitHub app for self-hosting or custom branding:

  1. Create a GitHub OAuth App at GitHub Developer Settings
  2. Enable "Device Flow" in the app settings
  3. Set scopes to include user:email,repo
  4. Build with your client ID:
    GITHUB_CLIENT_ID=your_client_id_here pnpm run build
    
Description
Get 10X more out of Claude Code, Codex or any coding agent
https://www.vibekanban.com/
Readme Apache-2.0 48 MiB
Languages
Rust 51.1%
TypeScript 46.6%
CSS 1.1%
JavaScript 0.7%
PLpgSQL 0.2%
Other 0.2%