GeezerVison is showing github.com — feat(web): "+" and the empty panel open Nová karta · Lazurio/t3code@9b84822
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: apps/web/src/components/ChatView.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2864,7 +2864,7 @@ export default function ChatView(props: ChatViewProps) { |
2864 | 2864 | ) |
2865 | 2865 | ? "Available once the thread's worktree is set up." |
2866 | 2866 | : null; |
2867 | | - const openSideChatStable = useStableCallback(() => void sideChat.open()); |
| 2867 | + const openSideChatStable = useStableCallback(() => sideChat.open()); |
2868 | 2868 | const sendSideChatStable = useStableCallback((prompt: string) => sideChat.open(prompt)); |
2869 | 2869 | const { onConfirmRevertStable, onForkFromRunStable, onRevertTimelineTurnStable } = |
2870 | 2870 | useTimelineRewind({ |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/web/src/components/RightPanelTabs.tsx +6-2Lines changed: 6 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1065,6 +1065,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) { |
1065 | 1065 | event.preventDefault(); |
1066 | 1066 | event.stopPropagation(); |
1067 | 1067 | if (!event.repeat) { |
| 1068 | + if (Lazurio.openNewTab()) return; |
1068 | 1069 | addSurfaceTriggerRef.current?.focus(); |
1069 | 1070 | setAddSurfaceMenuOpen(true); |
1070 | 1071 | } |
@@ -1424,7 +1425,8 @@ export function RightPanelTabs(props: RightPanelTabsProps) { |
1424 | 1425 | ); |
1425 | 1426 | })} |
1426 | 1427 | </SortableTabList> |
1427 | | - {props.open !== false ? ( |
| 1428 | + {props.open !== false && lazurio.newTab ? <Lazurio.NewTabButton /> : null} |
| 1429 | + {props.open !== false && !lazurio.newTab ? ( |
1428 | 1430 | <Menu open={addSurfaceMenuOpen} onOpenChange={setAddSurfaceMenuOpen}> |
1429 | 1431 | <MenuTrigger |
1430 | 1432 | ref={addSurfaceTriggerRef} |
@@ -1556,7 +1558,9 @@ export function RightPanelTabs(props: RightPanelTabsProps) { |
1556 | 1558 | ) : null} |
1557 | 1559 | </div> |
1558 | 1560 | <div className="flex min-h-0 flex-1 flex-col" data-right-panel-surface-content> |
1559 | | - {props.activeSurfaceId === null ? ( |
| 1561 | + {props.activeSurfaceId === null && lazurio.newTab ? ( |
| 1562 | + <Lazurio.NewTab /> |
| 1563 | + ) : props.activeSurfaceId === null ? ( |
1560 | 1564 | <RightPanelEmptyState |
1561 | 1565 | onAddBrowser={props.onAddBrowser} |
1562 | 1566 | onAddBrowserInProfile={props.onAddBrowserInProfile} |
|
Collapse file
Copy file name to clipboardExpand all lines: apps/web/src/lazurio/LazurioEnvironmentBrowser.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,7 @@ import { |
61 | 61 | } from "./threadTabs"; |
62 | 62 |
|
63 | 63 | // RightPanelTabs reaches the overlay through this one module: Nová karta is LazurioNewTab.tsx's. |
64 | | -export { NewTab, NewTabButton } from "./LazurioNewTab"; |
| 64 | +export { NewTab, NewTabButton, openNewTab } from "./LazurioNewTab"; |
65 | 65 |
|
66 | 66 | /** |
67 | 67 | * The thread where the Environment browser can serve it, else null: a thread of this page's own |
|