GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • apps/web/src
    • components
      • ChatView.tsx
      • RightPanelTabs.tsx
    • lazurio
      • LazurioEnvironmentBrowser.tsx
      • LazurioNewTab.browser.test.tsx
      • LazurioNewTab.test.ts
      • LazurioNewTab.tsx
      • LazurioNewTab.withoutElement.browser.test.tsx
    • rightPanelStore.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/ChatView.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/ChatView.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2864,7 +2864,7 @@ export default function ChatView(props: ChatViewProps) {
28642864
)
28652865
? "Available once the thread's worktree is set up."
28662866
: null;
2867-
const openSideChatStable = useStableCallback(() => void sideChat.open());
2867+
const openSideChatStable = useStableCallback(() => sideChat.open());
28682868
const sendSideChatStable = useStableCallback((prompt: string) => sideChat.open(prompt));
28692869
const { onConfirmRevertStable, onForkFromRunStable, onRevertTimelineTurnStable } =
28702870
useTimelineRewind({
Collapse file

‎apps/web/src/components/RightPanelTabs.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/RightPanelTabs.tsx
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
10651065
event.preventDefault();
10661066
event.stopPropagation();
10671067
if (!event.repeat) {
1068+
if (Lazurio.openNewTab()) return;
10681069
addSurfaceTriggerRef.current?.focus();
10691070
setAddSurfaceMenuOpen(true);
10701071
}
@@ -1424,7 +1425,8 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
14241425
);
14251426
})}
14261427
</SortableTabList>
1427-
{props.open !== false ? (
1428+
{props.open !== false && lazurio.newTab ? <Lazurio.NewTabButton /> : null}
1429+
{props.open !== false && !lazurio.newTab ? (
14281430
<Menu open={addSurfaceMenuOpen} onOpenChange={setAddSurfaceMenuOpen}>
14291431
<MenuTrigger
14301432
ref={addSurfaceTriggerRef}
@@ -1556,7 +1558,9 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
15561558
) : null}
15571559
</div>
15581560
<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 ? (
15601564
<RightPanelEmptyState
15611565
onAddBrowser={props.onAddBrowser}
15621566
onAddBrowserInProfile={props.onAddBrowserInProfile}
Collapse file

‎apps/web/src/lazurio/LazurioEnvironmentBrowser.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/lazurio/LazurioEnvironmentBrowser.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ import {
6161
} from "./threadTabs";
6262

6363
// 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";
6565

6666
/**
6767
* The thread where the Environment browser can serve it, else null: a thread of this page's own

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.