GeezerVison is showing github.com — chore: generate · bewareoftheleopard/opencode@d14735e
File treeExpand 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: packages/app/src/components/dialog-connect-provider.tsx +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -143,7 +143,9 @@ export function DialogConnectProvider(props: { provider: string }) { | 143 | 143 | } | 144 | 144 |
| 145 | 145 | return ( | 146 | | - <Dialog title={<IconButton tabIndex={-1} icon="arrow-left" variant="ghost" onClick={goBack} aria-label="Go back" />}> | | 146 | + <Dialog | | 147 | + title={<IconButton tabIndex={-1} icon="arrow-left" variant="ghost" onClick={goBack} aria-label="Go back" />} | | 148 | + > | 147 | 149 | <div class="flex flex-col gap-6 px-2.5 pb-3"> | 148 | 150 | <div class="px-2.5 flex gap-4 items-center"> | 149 | 151 | <ProviderIcon id={props.provider as IconName} class="size-5 shrink-0 icon-strong-base" /> | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/components/prompt-input.tsx +1-4Lines changed: 1 addition & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1653,10 +1653,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { | 1653 | 1653 | title={language.t("command.model.choose")} | 1654 | 1654 | keybind={command.keybind("model.choose")} | 1655 | 1655 | > | 1656 | | - <ModelSelectorPopover | 1657 | | - triggerAs={Button} | 1658 | | - triggerProps={{ variant: "ghost" }} | 1659 | | - > | | 1656 | + <ModelSelectorPopover triggerAs={Button} triggerProps={{ variant: "ghost" }}> | 1660 | 1657 | <Show when={local.model.current()?.provider?.id}> | 1661 | 1658 | <ProviderIcon id={local.model.current()!.provider.id as IconName} class="size-4 shrink-0" /> | 1662 | 1659 | </Show> | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/components/session/session-header.tsx +64-62Lines changed: 64 additions & 62 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -260,71 +260,73 @@ export function SessionHeader() { | 260 | 260 | }} | 261 | 261 | trigger={language.t("session.share.action.share")} | 262 | 262 | > | 263 | | - <div class="flex flex-col gap-2"> | 264 | | - <Show | 265 | | - when={shareUrl()} | 266 | | - fallback={ | 267 | | - <div class="flex"> | 268 | | - <Button | 269 | | - size="large" | 270 | | - variant="primary" | 271 | | - class="w-1/2" | 272 | | - onClick={shareSession} | 273 | | - disabled={state.share} | 274 | | - > | 275 | | - {state.share | 276 | | - ? language.t("session.share.action.publishing") | 277 | | - : language.t("session.share.action.publish")} | 278 | | - </Button> | | 263 | + <div class="flex flex-col gap-2"> | | 264 | + <Show | | 265 | + when={shareUrl()} | | 266 | + fallback={ | | 267 | + <div class="flex"> | | 268 | + <Button | | 269 | + size="large" | | 270 | + variant="primary" | | 271 | + class="w-1/2" | | 272 | + onClick={shareSession} | | 273 | + disabled={state.share} | | 274 | + > | | 275 | + {state.share | | 276 | + ? language.t("session.share.action.publishing") | | 277 | + : language.t("session.share.action.publish")} | | 278 | + </Button> | | 279 | + </div> | | 280 | + } | | 281 | + > | | 282 | + <div class="flex flex-col gap-2 w-72"> | | 283 | + <TextField value={shareUrl() ?? ""} readOnly copyable class="w-full" /> | | 284 | + <div class="grid grid-cols-2 gap-2"> | | 285 | + <Button | | 286 | + size="large" | | 287 | + variant="secondary" | | 288 | + class="w-full shadow-none border border-border-weak-base" | | 289 | + onClick={unshareSession} | | 290 | + disabled={state.unshare} | | 291 | + > | | 292 | + {state.unshare | | 293 | + ? language.t("session.share.action.unpublishing") | | 294 | + : language.t("session.share.action.unpublish")} | | 295 | + </Button> | | 296 | + <Button | | 297 | + size="large" | | 298 | + variant="primary" | | 299 | + class="w-full" | | 300 | + onClick={viewShare} | | 301 | + disabled={state.unshare} | | 302 | + > | | 303 | + {language.t("session.share.action.view")} | | 304 | + </Button> | | 305 | + </div> | 279 | 306 | </div> | | 307 | + </Show> | | 308 | + </div> | | 309 | + </Popover> | | 310 | + <Show when={shareUrl()} fallback={<div class="size-6" aria-hidden="true" />}> | | 311 | + <Tooltip | | 312 | + value={ | | 313 | + state.copied | | 314 | + ? language.t("session.share.copy.copied") | | 315 | + : language.t("session.share.copy.copyLink") | 280 | 316 | } | | 317 | + placement="top" | | 318 | + gutter={8} | 281 | 319 | > | 282 | | - <div class="flex flex-col gap-2 w-72"> | 283 | | - <TextField value={shareUrl() ?? ""} readOnly copyable class="w-full" /> | 284 | | - <div class="grid grid-cols-2 gap-2"> | 285 | | - <Button | 286 | | - size="large" | 287 | | - variant="secondary" | 288 | | - class="w-full shadow-none border border-border-weak-base" | 289 | | - onClick={unshareSession} | 290 | | - disabled={state.unshare} | 291 | | - > | 292 | | - {state.unshare | 293 | | - ? language.t("session.share.action.unpublishing") | 294 | | - : language.t("session.share.action.unpublish")} | 295 | | - </Button> | 296 | | - <Button | 297 | | - size="large" | 298 | | - variant="primary" | 299 | | - class="w-full" | 300 | | - onClick={viewShare} | 301 | | - disabled={state.unshare} | 302 | | - > | 303 | | - {language.t("session.share.action.view")} | 304 | | - </Button> | 305 | | - </div> | 306 | | - </div> | 307 | | - </Show> | 308 | | - </div> | 309 | | - </Popover> | 310 | | - <Show when={shareUrl()} fallback={<div class="size-6" aria-hidden="true" />}> | 311 | | - <Tooltip | 312 | | - value={ | 313 | | - state.copied ? language.t("session.share.copy.copied") : language.t("session.share.copy.copyLink") | 314 | | - } | 315 | | - placement="top" | 316 | | - gutter={8} | 317 | | - > | 318 | | - <IconButton | 319 | | - icon={state.copied ? "check" : "copy"} | 320 | | - variant="secondary" | 321 | | - class="rounded-l-none" | 322 | | - onClick={copyLink} | 323 | | - disabled={state.unshare} | 324 | | - aria-label="Copy share link" | 325 | | - /> | 326 | | - </Tooltip> | 327 | | - </Show> | | 320 | + <IconButton | | 321 | + icon={state.copied ? "check" : "copy"} | | 322 | + variant="secondary" | | 323 | + class="rounded-l-none" | | 324 | + onClick={copyLink} | | 325 | + disabled={state.unshare} | | 326 | + aria-label="Copy share link" | | 327 | + /> | | 328 | + </Tooltip> | | 329 | + </Show> | 328 | 330 | </div> | 329 | 331 | </Show> | 330 | 332 | </div> | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/components/session/session-sortable-tab.tsx +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,7 +37,12 @@ export function SortableTab(props: { tab: string; onTabClose: (tab: string) => v | 37 | 37 | value={props.tab} | 38 | 38 | closeButton={ | 39 | 39 | <Tooltip value={language.t("common.closeTab")} placement="bottom"> | 40 | | - <IconButton icon="close" variant="ghost" onClick={() => props.onTabClose(props.tab)} aria-label="Close tab" /> | | 40 | + <IconButton | | 41 | + icon="close" | | 42 | + variant="ghost" | | 43 | + onClick={() => props.onTabClose(props.tab)} | | 44 | + aria-label="Close tab" | | 45 | + /> | 41 | 46 | </Tooltip> | 42 | 47 | } | 43 | 48 | hideCloseButton | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/pages/session.tsx +18-3Lines changed: 18 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1553,7 +1553,11 @@ export default function Page() { | 1553 | 1553 |
| 1554 | 1554 | {/* Desktop tabs panel (Review + Context + Files) - hidden on mobile */} | 1555 | 1555 | <Show when={isDesktop() && showTabs()}> | 1556 | | - <aside id="review-panel" aria-label="Review and files" class="relative flex-1 min-w-0 h-full border-l border-border-weak-base"> | | 1556 | + <aside | | 1557 | + id="review-panel" | | 1558 | + aria-label="Review and files" | | 1559 | + class="relative flex-1 min-w-0 h-full border-l border-border-weak-base" | | 1560 | + > | 1557 | 1561 | <DragDropProvider | 1558 | 1562 | onDragStart={handleDragStart} | 1559 | 1563 | onDragEnd={handleDragEnd} | @@ -1587,7 +1591,12 @@ export default function Page() { | 1587 | 1591 | value="context" | 1588 | 1592 | closeButton={ | 1589 | 1593 | <Tooltip value={language.t("common.closeTab")} placement="bottom"> | 1590 | | - <IconButton icon="close" variant="ghost" onClick={() => tabs().close("context")} aria-label="Close context tab" /> | | 1594 | + <IconButton | | 1595 | + icon="close" | | 1596 | + variant="ghost" | | 1597 | + onClick={() => tabs().close("context")} | | 1598 | + aria-label="Close context tab" | | 1599 | + /> | 1591 | 1600 | </Tooltip> | 1592 | 1601 | } | 1593 | 1602 | hideCloseButton | @@ -1995,7 +2004,13 @@ export default function Page() { | 1995 | 2004 | keybind={command.keybind("terminal.new")} | 1996 | 2005 | class="flex items-center" | 1997 | 2006 | > | 1998 | | - <IconButton icon="plus-small" variant="ghost" iconSize="large" onClick={terminal.new} aria-label="New terminal" /> | | 2007 | + <IconButton | | 2008 | + icon="plus-small" | | 2009 | + variant="ghost" | | 2010 | + iconSize="large" | | 2011 | + onClick={terminal.new} | | 2012 | + aria-label="New terminal" | | 2013 | + /> | 1999 | 2014 | </TooltipKeybind> | 2000 | 2015 | </div> | 2001 | 2016 | </Tabs.List> | |
Collapse file Copy file name to clipboardExpand all lines: packages/ui/src/components/dialog.tsx +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -40,7 +40,13 @@ export function Dialog(props: DialogProps) { | 40 | 40 | <Switch> | 41 | 41 | <Match when={props.action}>{props.action}</Match> | 42 | 42 | <Match when={true}> | 43 | | - <Kobalte.CloseButton data-slot="dialog-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Close" /> | | 43 | + <Kobalte.CloseButton | | 44 | + data-slot="dialog-close-button" | | 45 | + as={IconButton} | | 46 | + icon="close" | | 47 | + variant="ghost" | | 48 | + aria-label="Close" | | 49 | + /> | 44 | 50 | </Match> | 45 | 51 | </Switch> | 46 | 52 | </div> | |
Collapse file Copy file name to clipboardExpand all lines: packages/ui/src/components/image-preview.tsx +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,13 @@ export function ImagePreview(props: ImagePreviewProps) { | 14 | 14 | <div data-slot="image-preview-container"> | 15 | 15 | <Kobalte.Content data-slot="image-preview-content"> | 16 | 16 | <div data-slot="image-preview-header"> | 17 | | - <Kobalte.CloseButton data-slot="image-preview-close" as={IconButton} icon="close" variant="ghost" aria-label="Close" /> | | 17 | + <Kobalte.CloseButton | | 18 | + data-slot="image-preview-close" | | 19 | + as={IconButton} | | 20 | + icon="close" | | 21 | + variant="ghost" | | 22 | + aria-label="Close" | | 23 | + /> | 18 | 24 | </div> | 19 | 25 | <div data-slot="image-preview-body"> | 20 | 26 | <img src={props.src} alt={props.alt ?? i18n.t("ui.imagePreview.alt")} data-slot="image-preview-image" /> | |
Collapse file Copy file name to clipboardExpand all lines: packages/ui/src/components/list.tsx +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -230,7 +230,12 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void }) | 230 | 230 | /> | 231 | 231 | </div> | 232 | 232 | <Show when={internalFilter()}> | 233 | | - <IconButton icon="circle-x" variant="ghost" onClick={() => setInternalFilter("")} aria-label="Clear filter" /> | | 233 | + <IconButton | | 234 | + icon="circle-x" | | 235 | + variant="ghost" | | 236 | + onClick={() => setInternalFilter("")} | | 237 | + aria-label="Clear filter" | | 238 | + /> | 234 | 239 | </Show> | 235 | 240 | </div> | 236 | 241 | {searchAction()} | |
Collapse file Copy file name to clipboardExpand all lines: packages/ui/src/components/popover.tsx +20-3Lines changed: 20 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,9 @@ import { Popover as Kobalte } from "@kobalte/core/popover" | 2 | 2 | import { ComponentProps, JSXElement, ParentProps, Show, splitProps, ValidComponent } from "solid-js" | 3 | 3 | import { IconButton } from "./icon-button" | 4 | 4 |
| 5 | | -export interface PopoverProps<T extends ValidComponent = "div"> extends ParentProps, Omit<ComponentProps<typeof Kobalte>, "children"> { | | 5 | +export interface PopoverProps<T extends ValidComponent = "div"> | | 6 | + extends ParentProps, | | 7 | + Omit<ComponentProps<typeof Kobalte>, "children"> { | 6 | 8 | trigger?: JSXElement | 7 | 9 | triggerAs?: T | 8 | 10 | triggerProps?: ComponentProps<T> | @@ -13,7 +15,16 @@ export interface PopoverProps<T extends ValidComponent = "div"> extends ParentPr | 13 | 15 | } | 14 | 16 |
| 15 | 17 | export function Popover<T extends ValidComponent = "div">(props: PopoverProps<T>) { | 16 | | - const [local, rest] = splitProps(props, ["trigger", "triggerAs", "triggerProps", "title", "description", "class", "classList", "children"]) | | 18 | + const [local, rest] = splitProps(props, [ | | 19 | + "trigger", | | 20 | + "triggerAs", | | 21 | + "triggerProps", | | 22 | + "title", | | 23 | + "description", | | 24 | + "class", | | 25 | + "classList", | | 26 | + "children", | | 27 | + ]) | 17 | 28 |
| 18 | 29 | return ( | 19 | 30 | <Kobalte gutter={4} {...rest}> | @@ -32,7 +43,13 @@ export function Popover<T extends ValidComponent = "div">(props: PopoverProps<T> | 32 | 43 | <Show when={local.title}> | 33 | 44 | <div data-slot="popover-header"> | 34 | 45 | <Kobalte.Title data-slot="popover-title">{local.title}</Kobalte.Title> | 35 | | - <Kobalte.CloseButton data-slot="popover-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Close" /> | | 46 | + <Kobalte.CloseButton | | 47 | + data-slot="popover-close-button" | | 48 | + as={IconButton} | | 49 | + icon="close" | | 50 | + variant="ghost" | | 51 | + aria-label="Close" | | 52 | + /> | 36 | 53 | </div> | 37 | 54 | </Show> | 38 | 55 | <Show when={local.description}> | |
Collapse file Copy file name to clipboardExpand all lines: packages/ui/src/components/toast.tsx +10-1Lines changed: 10 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,16 @@ function ToastActions(props: ComponentProps<"div">) { | 62 | 62 | } | 63 | 63 |
| 64 | 64 | function ToastCloseButton(props: ToastCloseButtonProps & ComponentProps<"button">) { | 65 | | - return <Kobalte.CloseButton data-slot="toast-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Dismiss" {...props} /> | | 65 | + return ( | | 66 | + <Kobalte.CloseButton | | 67 | + data-slot="toast-close-button" | | 68 | + as={IconButton} | | 69 | + icon="close" | | 70 | + variant="ghost" | | 71 | + aria-label="Dismiss" | | 72 | + {...props} | | 73 | + /> | | 74 | + ) | 66 | 75 | } | 67 | 76 |
| 68 | 77 | function ToastProgressTrack(props: ComponentProps<typeof Kobalte.ProgressTrack>) { | |
|