Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/app/api/sidebar/group-order/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* PUT /api/sidebar/group-order — save repository group order
*/

// Disable static caching so GET always reads from DB and PUT is never 405-blocked
export const dynamic = 'force-dynamic';

import { NextResponse } from 'next/server';
import { getDbInstance } from '@/lib/db/db-instance';
import { getSidebarGroupOrder, setSidebarGroupOrder } from '@/lib/db/app-settings-db';
Expand Down
15 changes: 10 additions & 5 deletions src/components/sidebar/BranchListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function BranchTooltip({
fixed z-[9999]
px-3 py-2 rounded-md shadow-lg
bg-gray-950 text-xs text-gray-200 border border-gray-700
whitespace-nowrap pointer-events-none
pointer-events-none max-w-sm
transition-opacity duration-150
"
style={{
Expand All @@ -105,11 +105,16 @@ function BranchTooltip({
opacity: isVisible ? 1 : 0,
}}
>
<p className="font-medium text-white">{branch.name}</p>
<p className="text-gray-400">{branch.repositoryName}</p>
<p className="text-gray-400">Status: {branch.status}</p>
<p className="font-medium text-white whitespace-nowrap">{branch.name}</p>
<p className="text-gray-400 whitespace-nowrap">{branch.repositoryName}</p>
<p className="text-gray-400 whitespace-nowrap">Status: {branch.status}</p>
{branch.worktreePath && (
<p className="text-gray-500 truncate max-w-xs">{branch.worktreePath}</p>
<p className="text-gray-500 truncate">{branch.worktreePath}</p>
)}
{branch.description && (
<p className="text-gray-300 mt-1 border-t border-gray-700 pt-1 whitespace-pre-wrap break-words">
{branch.description}
</p>
)}
</div>,
document.body
Expand Down
Loading