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 — refactor(web): the new design is the only design, with no toggle (#25… · pingdotgg/t3code@96fc7b9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps
    • desktop/src/window
      • DesktopWindow.ts
    • web
      • index.html
      • src
        • appInit.tsx
        • components
          • ChatView.tsx
          • ComposerPromptEditorTiptap.tsx
          • DiffPanel.tsx
          • DiffWorkerPoolProvider.tsx
          • GitActionsControl.tsx
          • Sidebar.tsx
          • ThreadStatusIndicators.tsx
          • chat
            • ChatCanvas.tsx
            • ChatComposer.tsx
            • ComposerPrimaryActions.tsx
            • ModelListRow.tsx
            • ModelPickerContent.tsx
            • ModelPickerSidebar.tsx
            • ThreadDetailsControl.tsx
            • ThreadDetailsPrRow.tsx
            • ThreadDetailsPrRows.tsx
            • ThreadRelationshipsControl.tsx
            • ThreadStatusLine.tsx
            • TraitsPicker.tsx
            • canvasStore.test.ts
            • canvasStore.ts
            • chatCanvasLayout.test.ts
            • chatCanvasLayout.ts
          • pullRequest
            • PullRequestGhosts.tsx
          • settings
            • AppearanceSettingsPanel.tsx
            • ProviderInstanceCard.tsx
            • ProviderModelsSection.tsx
            • ProviderSettingsPanel.tsx
            • SettingsFontPreviews.tsx
            • SettingsPanels.tsx
            • ThemePreviewCircles.tsx
            • ThemeSettings.tsx
            • settingsSearch.ts
          • sidebar
            • SidebarListMarkers.tsx
            • SidebarThreadHeader.tsx
            • SidebarThreadRow.tsx
          • ui
            • button.tsx
            • collapsible-section-header.tsx
            • combobox.tsx
            • command.tsx
            • kbd.tsx
          • usage
            • UsageLimitsPooled.tsx
            • UsagePage.tsx
        • index.css
        • lib
          • diffRendering.ts
          • incrementalHighlighting.ts
          • syntaxHighlighting.ts
  • packages/contracts/src
    • settings.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/desktop/src/window/DesktopWindow.ts‎

Copy file name to clipboardExpand all lines: apps/desktop/src/window/DesktopWindow.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function getIconOption(
131131
}
132132

133133
function getInitialWindowBackgroundColor(shouldUseDarkColors: boolean): string {
134-
return shouldUseDarkColors ? "#0a0a0a" : "#ffffff";
134+
return shouldUseDarkColors ? "#000000" : "#ffffff";
135135
}
136136

137137
type DisplayBounds = Pick<Electron.Rectangle, "x" | "y" | "width" | "height">;
Collapse file

‎apps/web/index.html‎

Copy file name to clipboardExpand all lines: apps/web/index.html
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
name="viewport"
77
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
88
/>
9-
<meta name="theme-color" content="#0a0a0a" />
9+
<meta name="theme-color" content="#000000" />
1010
<link rel="icon" href="/favicon.ico" sizes="48x48" />
1111
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
1212
<link rel="manifest" href="/manifest.webmanifest" />
1313
<script>
1414
(() => {
1515
const LIGHT_BACKGROUND = "#ffffff";
16-
const DARK_BACKGROUND = "#0a0a0a";
16+
const DARK_BACKGROUND = "#000000";
1717
const CUSTOM_THEMES_STORAGE_KEY = "t3code:themes:v1";
1818
const THEME_FOLLOW_SYSTEM_STORAGE_KEY = "t3code:theme-follow-system";
1919
const THEME_APPEARANCE_MODE_STORAGE_KEY = "t3code:theme-appearance-mode";
@@ -25,7 +25,7 @@
2525
accent: "#4f46e5",
2626
},
2727
dark: {
28-
background: "#0a0a0a",
28+
background: "#000000",
2929
foreground: "#f5f5f5",
3030
accent: "#818cf8",
3131
},
@@ -403,7 +403,7 @@
403403
}
404404

405405
html.dark body {
406-
background: #0a0a0a;
406+
background: #000000;
407407
color: #f5f5f5;
408408
}
409409

@@ -462,7 +462,7 @@
462462

463463
html.dark #boot-error {
464464
--boot-error-fg: #f5f5f5;
465-
--boot-error-bg: #0a0a0a;
465+
--boot-error-bg: #000000;
466466
}
467467

468468
html[data-theme-selected="true"] #boot-error {
Collapse file

‎apps/web/src/appInit.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/appInit.tsx
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ function startClientAppearance(): void {
6262
if (previous?.chatWidth !== settings.chatWidth) {
6363
root.dataset.chatWidth = settings.chatWidth;
6464
}
65-
if (previous?.redesignEnabled !== settings.redesignEnabled) {
66-
root.toggleAttribute("data-redesign", settings.redesignEnabled);
67-
}
6865
if (previous?.appearanceContrast !== settings.appearanceContrast) {
6966
applyAppearanceContrast(root, settings.appearanceContrast);
7067
}
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/ChatView.tsx
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,6 @@ export default function ChatView(props: ChatViewProps) {
18351835
const threadPanelInlineOpen = useRightPanelStore((state) =>
18361836
selectThreadPanelOpen(state.threadPanelVisibilityByThreadKey, activeThreadRef, "inline"),
18371837
);
1838-
const centerChatBesideDetails = useClientSettings((s) => s.redesignEnabled);
18391838
// Selects only the mode, so canvas resizes rerender the chat view only when the
18401839
// card switches presentation.
18411840
const threadPanelPresentation = useStore(
@@ -1847,7 +1846,6 @@ export default function ChatView(props: ChatViewProps) {
18471846
threadRef: activeThreadRef,
18481847
preview: canvasPreview,
18491848
detailsCardInlineOpen: threadPanelInlineOpen,
1850-
centerBesideDetails: centerChatBesideDetails,
18511849
}).detailsCardMode,
18521850
);
18531851
const threadPanelOpen = useRightPanelStore((state) =>
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/ComposerPromptEditorTiptap.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ function ComposerPromptEditorTiptapInner(
10771077

10781078
const editorAttributes = {
10791079
class: cn(
1080-
"composer-tiptap -m-1 block max-h-52 min-h-19.5 redesign:min-h-12 overflow-y-auto p-1 whitespace-pre-wrap wrap-break-word bg-transparent leading-relaxed text-foreground focus:outline-none",
1080+
"composer-tiptap -m-1 block max-h-52 min-h-12 overflow-y-auto p-1 whitespace-pre-wrap wrap-break-word bg-transparent leading-relaxed text-foreground focus:outline-none",
10811081
className,
10821082
),
10831083
"data-testid": "composer-editor",
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/DiffPanel.tsx
+6-12Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import { useStableCallback } from "../hooks/useStableCallback";
4040
import {
4141
buildFileDiffContentVersion,
4242
buildFileDiffIdentityKey,
43-
getDiffCollapseIconClassName,
4443
getDiffLineStat,
4544
getRenderablePatch,
4645
resolveDiffThemeName,
@@ -122,14 +121,12 @@ function DiffFileCollapseToggle({
122121
fileKey,
123122
collapsed,
124123
unavailable,
125-
iconClassName,
126124
onToggle,
127125
}: {
128126
filePath: string;
129127
fileKey: string;
130128
collapsed: boolean;
131129
unavailable: boolean;
132-
iconClassName: string;
133130
onToggle: (fileKey: string) => void;
134131
}) {
135132
return (
@@ -151,7 +148,7 @@ function DiffFileCollapseToggle({
151148
}
152149
>
153150
<MorphIcon
154-
className={cn("size-4", iconClassName)}
151+
className="size-4 text-muted-foreground/80"
155152
icon={collapsed ? ChevronRight : ChevronDown}
156153
/>
157154
</TooltipTrigger>
@@ -706,9 +703,9 @@ export default function DiffPanel({
706703
<Tooltip>
707704
<TooltipTrigger
708705
render={
709-
// Too narrow for both refs, the New design keeps the target readable and drops
710-
// the head, which is the thread's own branch.
711-
<span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden redesign:@max-[20rem]/diff-refs:hidden" />
706+
// Too narrow for both refs, keep the target readable and drop the head, which
707+
// is the thread's own branch.
708+
<span className="flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden @max-[20rem]/diff-refs:hidden" />
712709
}
713710
>
714711
<span className="min-w-0 max-w-48 truncate">
@@ -722,9 +719,7 @@ export default function DiffPanel({
722719
</Tooltip>
723720
<Tooltip>
724721
<TooltipTrigger
725-
render={
726-
<span aria-hidden className="hidden redesign:@max-[20rem]/diff-refs:inline" />
727-
}
722+
render={<span aria-hidden className="hidden @max-[20rem]/diff-refs:inline" />}
728723
>
729724
vs
730725
</TooltipTrigger>
@@ -746,7 +741,7 @@ export default function DiffPanel({
746741
>
747742
<ComboboxTrigger
748743
render={<Button variant="ghost-muted" size="xs" />}
749-
className="min-w-9 max-w-48 shrink redesign:shrink-0"
744+
className="min-w-9 max-w-48 shrink-0"
750745
aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`}
751746
>
752747
<span className="min-w-0 truncate">{selectedGitSource.baseRef}</span>
@@ -1126,7 +1121,6 @@ export default function DiffPanel({
11261121
fileKey={fileKey}
11271122
collapsed={unavailable || collapsedDiffFileKeys.has(fileKey)}
11281123
unavailable={unavailable}
1129-
iconClassName={getDiffCollapseIconClassName(fileDiff)}
11301124
onToggle={toggleDiffFileCollapsed}
11311125
/>
11321126
);
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/DiffWorkerPoolProvider.tsx
+2-8Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ import { WorkerPoolManager } from "@pierre/diffs/worker";
33
import DiffsWorker from "@pierre/diffs/worker/worker.js?worker";
44
import * as Schema from "effect/Schema";
55
import { useEffect, useState, useSyncExternalStore, type ReactNode } from "react";
6-
import { subscribeClientSettings } from "../hooks/useSettings";
76
import { getRenderedAppearance, subscribeRenderedAppearance } from "../hooks/useTheme";
87
import { resolveDiffThemeName } from "../lib/diffRendering";
98
import { PREFERRED_HIGHLIGHTER } from "../lib/syntaxHighlighting";
109

1110
export class DiffWorkerError extends Schema.TaggedError<DiffWorkerError>()("DiffWorkerError", {
1211
operation: Schema.Literals(["create-worker", "get-render-options", "set-render-options"]),
13-
themeName: Schema.Literals(["pierre-light", "pierre-dark", "t3-light"]),
12+
themeName: Schema.Literals(["pierre-dark", "t3-light"]),
1413
cause: Schema.Defect(),
1514
}) {
1615
override get message(): string {
@@ -73,12 +72,7 @@ function createDiffWorkerPool(poolSize: number) {
7372
);
7473
return {
7574
pool,
76-
unsubscribeTheme: (() => {
77-
const apply = () => applyDiffWorkerTheme(pool);
78-
// The New design picks the light syntax palette, so a settings change can switch it too.
79-
const unsubscribes = [subscribeRenderedAppearance(apply), subscribeClientSettings(apply)];
80-
return () => unsubscribes.forEach((unsubscribe) => unsubscribe());
81-
})(),
75+
unsubscribeTheme: subscribeRenderedAppearance(() => applyDiffWorkerTheme(pool)),
8276
consumers: 0,
8377
idleTimer: undefined,
8478
};
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/GitActionsControl.tsx
-3Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ import { getSourceControlPresentation, sourceControlIcon } from "~/sourceControl
122122
import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";
123123
import { formatDiffCount } from "@t3tools/client-runtime/diff-count";
124124
import { useOpenLink } from "~/browser/useOpenLink";
125-
import { useClientSettings } from "~/hooks/useSettings";
126125

127126
interface GitActionsControlProps {
128127
presentation?: "toolbar" | "menu";
@@ -1149,10 +1148,8 @@ export default function GitActionsControl({
11491148
? (quickAction.hint ?? "This action is currently unavailable.")
11501149
: null;
11511150
const gitActionProgress = resolveGitActionProgressPresentation(vcsActionState);
1152-
const redesign = useClientSettings((s) => s.redesignEnabled);
11531151
// A fresh draft or a thread with no turns hides commit, push, and diff rows until there is work.
11541152
const quietEmptyDraft =
1155-
redesign &&
11561153
isPanel &&
11571154
(draftId !== undefined || activeServerThreadShell?.latestRun === null) &&
11581155
gitActionProgress === null &&
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/Sidebar.tsx
+3-7Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3201,14 +3201,10 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
32013201
olderSettledShelf.retry();
32023202
showMoreSettled();
32033203
}}
3204-
className="flex h-9 w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 text-left text-sm text-sidebar-muted-foreground/55 hover:bg-sidebar-row-hover hover:text-sidebar-foreground disabled:cursor-default redesign:text-sidebar-muted-foreground"
3204+
className="flex h-9 w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 text-left text-sm text-sidebar-muted-foreground hover:bg-sidebar-row-hover hover:text-sidebar-foreground disabled:cursor-default"
32053205
>
3206-
{/* The New design keeps plus for "add" and uses a chevron to reveal more. */}
3207-
<PlusIcon aria-hidden className="size-4 shrink-0 redesign:hidden" />
3208-
<ChevronDownIcon
3209-
aria-hidden
3210-
className="hidden size-4 shrink-0 redesign:block"
3211-
/>
3206+
{/* Plus means "add", so revealing more uses a chevron. */}
3207+
<ChevronDownIcon aria-hidden className="size-4 shrink-0" />
32123208
{olderSettledShelf.loading
32133209
? "Loading"
32143210
: olderSettledShelf.failed
Collapse file

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

Copy file name to clipboardExpand all lines: apps/web/src/components/ThreadStatusIndicators.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function PullRequestBadge({
287287
className={cn("contents font-normal text-xs tabular-nums", presentation.toneClassName)}
288288
>
289289
<presentation.Icon aria-hidden className="size-3 shrink-0" />
290-
<span className="redesign:text-secondary-label">{presentation.text}</span>
290+
<span className="text-secondary-label">{presentation.text}</span>
291291
</span>
292292
</TooltipTrigger>
293293
<TooltipPopup

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.