feat: update MCP server configuration message and enhance new worktree session visability button
This commit is contained in:
@@ -188,7 +188,7 @@ export const McpDropdown: React.FC<McpDropdownProps> = ({ headerIconButtonClass
|
|||||||
|
|
||||||
{sortedNames.length === 0 && (
|
{sortedNames.length === 0 && (
|
||||||
<div className="px-2 py-3 typography-ui-label text-muted-foreground text-center">
|
<div className="px-2 py-3 typography-ui-label text-muted-foreground text-center">
|
||||||
Configure MCP servers in settings.
|
Configure MCP servers in Opencode config.
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ interface SortableProjectItemProps {
|
|||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
sentinelRef: (el: HTMLDivElement | null) => void;
|
sentinelRef: (el: HTMLDivElement | null) => void;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
|
settingsAutoCreateWorktree: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const SortableProjectItem: React.FC<SortableProjectItemProps> = ({
|
const SortableProjectItem: React.FC<SortableProjectItemProps> = ({
|
||||||
@@ -161,6 +162,7 @@ const SortableProjectItem: React.FC<SortableProjectItemProps> = ({
|
|||||||
onClose,
|
onClose,
|
||||||
sentinelRef,
|
sentinelRef,
|
||||||
children,
|
children,
|
||||||
|
settingsAutoCreateWorktree,
|
||||||
}) => {
|
}) => {
|
||||||
const {
|
const {
|
||||||
attributes,
|
attributes,
|
||||||
@@ -255,7 +257,7 @@ const SortableProjectItem: React.FC<SortableProjectItemProps> = ({
|
|||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
|
|
||||||
{isRepo && onNewWorktreeSession && (
|
{isRepo && onNewWorktreeSession && !settingsAutoCreateWorktree && (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger asChild>
|
<TooltipTrigger asChild>
|
||||||
<button
|
<button
|
||||||
@@ -1598,6 +1600,7 @@ export const SessionSidebar: React.FC<SessionSidebarProps> = ({
|
|||||||
}}
|
}}
|
||||||
onClose={() => removeProject(projectKey)}
|
onClose={() => removeProject(projectKey)}
|
||||||
sentinelRef={(el) => { projectHeaderSentinelRefs.current.set(projectKey, el); }}
|
sentinelRef={(el) => { projectHeaderSentinelRefs.current.set(projectKey, el); }}
|
||||||
|
settingsAutoCreateWorktree={settingsAutoCreateWorktree}
|
||||||
>
|
>
|
||||||
{!isCollapsed ? (
|
{!isCollapsed ? (
|
||||||
<div className="space-y-[0.6rem] py-1 pl-1">
|
<div className="space-y-[0.6rem] py-1 pl-1">
|
||||||
|
|||||||
Reference in New Issue
Block a user