GeezerVison is showing github.com — refactor(web): the new design is the only design, with no toggle (#25… · pingdotgg/t3code@96fc7b9
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/window/DesktopWindow.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -131,7 +131,7 @@ function getIconOption( | 131 | 131 | } | 132 | 132 |
| 133 | 133 | function getInitialWindowBackgroundColor(shouldUseDarkColors: boolean): string { | 134 | | - return shouldUseDarkColors ? "#0a0a0a" : "#ffffff"; | | 134 | + return shouldUseDarkColors ? "#000000" : "#ffffff"; | 135 | 135 | } | 136 | 136 |
| 137 | 137 | type DisplayBounds = Pick<Electron.Rectangle, "x" | "y" | "width" | "height">; | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/index.html +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | name="viewport" | 7 | 7 | content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" | 8 | 8 | /> | 9 | | - <meta name="theme-color" content="#0a0a0a" /> | | 9 | + <meta name="theme-color" content="#000000" /> | 10 | 10 | <link rel="icon" href="/favicon.ico" sizes="48x48" /> | 11 | 11 | <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> | 12 | 12 | <link rel="manifest" href="/manifest.webmanifest" /> | 13 | 13 | <script> | 14 | 14 | (() => { | 15 | 15 | const LIGHT_BACKGROUND = "#ffffff"; | 16 | | - const DARK_BACKGROUND = "#0a0a0a"; | | 16 | + const DARK_BACKGROUND = "#000000"; | 17 | 17 | const CUSTOM_THEMES_STORAGE_KEY = "t3code:themes:v1"; | 18 | 18 | const THEME_FOLLOW_SYSTEM_STORAGE_KEY = "t3code:theme-follow-system"; | 19 | 19 | const THEME_APPEARANCE_MODE_STORAGE_KEY = "t3code:theme-appearance-mode"; | | 25 | 25 | accent: "#4f46e5", | 26 | 26 | }, | 27 | 27 | dark: { | 28 | | - background: "#0a0a0a", | | 28 | + background: "#000000", | 29 | 29 | foreground: "#f5f5f5", | 30 | 30 | accent: "#818cf8", | 31 | 31 | }, | | 403 | 403 | } | 404 | 404 |
| 405 | 405 | html.dark body { | 406 | | - background: #0a0a0a; | | 406 | + background: #000000; | 407 | 407 | color: #f5f5f5; | 408 | 408 | } | 409 | 409 |
| | 462 | 462 |
| 463 | 463 | html.dark #boot-error { | 464 | 464 | --boot-error-fg: #f5f5f5; | 465 | | - --boot-error-bg: #0a0a0a; | | 465 | + --boot-error-bg: #000000; | 466 | 466 | } | 467 | 467 |
| 468 | 468 | html[data-theme-selected="true"] #boot-error { | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/appInit.tsx -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -62,9 +62,6 @@ function startClientAppearance(): void { | 62 | 62 | if (previous?.chatWidth !== settings.chatWidth) { | 63 | 63 | root.dataset.chatWidth = settings.chatWidth; | 64 | 64 | } | 65 | | - if (previous?.redesignEnabled !== settings.redesignEnabled) { | 66 | | - root.toggleAttribute("data-redesign", settings.redesignEnabled); | 67 | | - } | 68 | 65 | if (previous?.appearanceContrast !== settings.appearanceContrast) { | 69 | 66 | applyAppearanceContrast(root, settings.appearanceContrast); | 70 | 67 | } | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/ChatView.tsx -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1835,7 +1835,6 @@ export default function ChatView(props: ChatViewProps) { | 1835 | 1835 | const threadPanelInlineOpen = useRightPanelStore((state) => | 1836 | 1836 | selectThreadPanelOpen(state.threadPanelVisibilityByThreadKey, activeThreadRef, "inline"), | 1837 | 1837 | ); | 1838 | | - const centerChatBesideDetails = useClientSettings((s) => s.redesignEnabled); | 1839 | 1838 | // Selects only the mode, so canvas resizes rerender the chat view only when the | 1840 | 1839 | // card switches presentation. | 1841 | 1840 | const threadPanelPresentation = useStore( | @@ -1847,7 +1846,6 @@ export default function ChatView(props: ChatViewProps) { | 1847 | 1846 | threadRef: activeThreadRef, | 1848 | 1847 | preview: canvasPreview, | 1849 | 1848 | detailsCardInlineOpen: threadPanelInlineOpen, | 1850 | | - centerBesideDetails: centerChatBesideDetails, | 1851 | 1849 | }).detailsCardMode, | 1852 | 1850 | ); | 1853 | 1851 | const threadPanelOpen = useRightPanelStore((state) => | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/ComposerPromptEditorTiptap.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1077,7 +1077,7 @@ function ComposerPromptEditorTiptapInner( | 1077 | 1077 |
| 1078 | 1078 | const editorAttributes = { | 1079 | 1079 | 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", | 1081 | 1081 | className, | 1082 | 1082 | ), | 1083 | 1083 | "data-testid": "composer-editor", | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/DiffPanel.tsx +6-12Lines changed: 6 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -40,7 +40,6 @@ import { useStableCallback } from "../hooks/useStableCallback"; | 40 | 40 | import { | 41 | 41 | buildFileDiffContentVersion, | 42 | 42 | buildFileDiffIdentityKey, | 43 | | - getDiffCollapseIconClassName, | 44 | 43 | getDiffLineStat, | 45 | 44 | getRenderablePatch, | 46 | 45 | resolveDiffThemeName, | @@ -122,14 +121,12 @@ function DiffFileCollapseToggle({ | 122 | 121 | fileKey, | 123 | 122 | collapsed, | 124 | 123 | unavailable, | 125 | | - iconClassName, | 126 | 124 | onToggle, | 127 | 125 | }: { | 128 | 126 | filePath: string; | 129 | 127 | fileKey: string; | 130 | 128 | collapsed: boolean; | 131 | 129 | unavailable: boolean; | 132 | | - iconClassName: string; | 133 | 130 | onToggle: (fileKey: string) => void; | 134 | 131 | }) { | 135 | 132 | return ( | @@ -151,7 +148,7 @@ function DiffFileCollapseToggle({ | 151 | 148 | } | 152 | 149 | > | 153 | 150 | <MorphIcon | 154 | | - className={cn("size-4", iconClassName)} | | 151 | + className="size-4 text-muted-foreground/80" | 155 | 152 | icon={collapsed ? ChevronRight : ChevronDown} | 156 | 153 | /> | 157 | 154 | </TooltipTrigger> | @@ -706,9 +703,9 @@ export default function DiffPanel({ | 706 | 703 | <Tooltip> | 707 | 704 | <TooltipTrigger | 708 | 705 | 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" /> | 712 | 709 | } | 713 | 710 | > | 714 | 711 | <span className="min-w-0 max-w-48 truncate"> | @@ -722,9 +719,7 @@ export default function DiffPanel({ | 722 | 719 | </Tooltip> | 723 | 720 | <Tooltip> | 724 | 721 | <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" />} | 728 | 723 | > | 729 | 724 | vs | 730 | 725 | </TooltipTrigger> | @@ -746,7 +741,7 @@ export default function DiffPanel({ | 746 | 741 | > | 747 | 742 | <ComboboxTrigger | 748 | 743 | 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" | 750 | 745 | aria-label={`Change comparison target. Currently ${selectedGitSource.baseRef}`} | 751 | 746 | > | 752 | 747 | <span className="min-w-0 truncate">{selectedGitSource.baseRef}</span> | @@ -1126,7 +1121,6 @@ export default function DiffPanel({ | 1126 | 1121 | fileKey={fileKey} | 1127 | 1122 | collapsed={unavailable || collapsedDiffFileKeys.has(fileKey)} | 1128 | 1123 | unavailable={unavailable} | 1129 | | - iconClassName={getDiffCollapseIconClassName(fileDiff)} | 1130 | 1124 | onToggle={toggleDiffFileCollapsed} | 1131 | 1125 | /> | 1132 | 1126 | ); | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/DiffWorkerPoolProvider.tsx +2-8Lines changed: 2 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,14 +3,13 @@ import { WorkerPoolManager } from "@pierre/diffs/worker"; | 3 | 3 | import DiffsWorker from "@pierre/diffs/worker/worker.js?worker"; | 4 | 4 | import * as Schema from "effect/Schema"; | 5 | 5 | import { useEffect, useState, useSyncExternalStore, type ReactNode } from "react"; | 6 | | -import { subscribeClientSettings } from "../hooks/useSettings"; | 7 | 6 | import { getRenderedAppearance, subscribeRenderedAppearance } from "../hooks/useTheme"; | 8 | 7 | import { resolveDiffThemeName } from "../lib/diffRendering"; | 9 | 8 | import { PREFERRED_HIGHLIGHTER } from "../lib/syntaxHighlighting"; | 10 | 9 |
| 11 | 10 | export class DiffWorkerError extends Schema.TaggedError<DiffWorkerError>()("DiffWorkerError", { | 12 | 11 | 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"]), | 14 | 13 | cause: Schema.Defect(), | 15 | 14 | }) { | 16 | 15 | override get message(): string { | @@ -73,12 +72,7 @@ function createDiffWorkerPool(poolSize: number) { | 73 | 72 | ); | 74 | 73 | return { | 75 | 74 | 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)), | 82 | 76 | consumers: 0, | 83 | 77 | idleTimer: undefined, | 84 | 78 | }; | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/GitActionsControl.tsx -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -122,7 +122,6 @@ import { getSourceControlPresentation, sourceControlIcon } from "~/sourceControl | 122 | 122 | import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients"; | 123 | 123 | import { formatDiffCount } from "@t3tools/client-runtime/diff-count"; | 124 | 124 | import { useOpenLink } from "~/browser/useOpenLink"; | 125 | | -import { useClientSettings } from "~/hooks/useSettings"; | 126 | 125 |
| 127 | 126 | interface GitActionsControlProps { | 128 | 127 | presentation?: "toolbar" | "menu"; | @@ -1149,10 +1148,8 @@ export default function GitActionsControl({ | 1149 | 1148 | ? (quickAction.hint ?? "This action is currently unavailable.") | 1150 | 1149 | : null; | 1151 | 1150 | const gitActionProgress = resolveGitActionProgressPresentation(vcsActionState); | 1152 | | - const redesign = useClientSettings((s) => s.redesignEnabled); | 1153 | 1151 | // A fresh draft or a thread with no turns hides commit, push, and diff rows until there is work. | 1154 | 1152 | const quietEmptyDraft = | 1155 | | - redesign && | 1156 | 1153 | isPanel && | 1157 | 1154 | (draftId !== undefined || activeServerThreadShell?.latestRun === null) && | 1158 | 1155 | gitActionProgress === null && | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/Sidebar.tsx +3-7Lines changed: 3 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3201,14 +3201,10 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve | 3201 | 3201 | olderSettledShelf.retry(); | 3202 | 3202 | showMoreSettled(); | 3203 | 3203 | }} | 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" | 3205 | 3205 | > | 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" /> | 3212 | 3208 | {olderSettledShelf.loading | 3213 | 3209 | ? "Loading" | 3214 | 3210 | : olderSettledShelf.failed | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/ThreadStatusIndicators.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -287,7 +287,7 @@ function PullRequestBadge({ | 287 | 287 | className={cn("contents font-normal text-xs tabular-nums", presentation.toneClassName)} | 288 | 288 | > | 289 | 289 | <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> | 291 | 291 | </span> | 292 | 292 | </TooltipTrigger> | 293 | 293 | <TooltipPopup | |
|