GeezerVison is showing github.com — refactor(web): settings group by concern, with General split into foc… · pingdotgg/t3code@9db433f
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/backend/DesktopBackendPool.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -132,7 +132,7 @@ export const layer = Layer.effect( | 132 | 132 | }); | 133 | 133 | yield* electronDialog.showErrorBox( | 134 | 134 | "WSL backend couldn't start", | 135 | | - `${reason}\n\nFalling back to the Windows backend so T3 Code can open. Re-enable the WSL backend from Settings > Connections once the WSL distro is fixed.`, | | 135 | + `${reason}\n\nFalling back to the Windows backend so T3 Code can open. Re-enable the WSL backend from Settings > Sharing & access once the WSL distro is fixed.`, | 136 | 136 | ); | 137 | 137 | // Clear wslOnly too so enabling WSL cannot restore a failed mode. | 138 | 138 | // Keep the in-memory fallback if persistence fails. | |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/vcs/GitVcsDriverCore.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -3695,7 +3695,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function* | 3695 | 3695 | operation: "GitVcsDriver.createWorktree", | 3696 | 3696 | command: "git worktree add", | 3697 | 3697 | cwd: input.cwd, | 3698 | | - detail: `The worktree location "${options?.worktreesDirectory}" must be an absolute folder on this machine, not a drive root. Change it in Settings → Storage.`, | | 3698 | + detail: `The worktree location "${options?.worktreesDirectory}" must be an absolute folder on this machine, not a drive root. Change it in Settings → Worktrees.`, | 3699 | 3699 | }); | 3700 | 3700 | } | 3701 | 3701 | worktreePath = path.join(parentDir, repoName, sanitizedBranch); | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/HostedEmptyState.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,7 @@ export function HostedEmptyState() { | 49 | 49 | <EmptyContent> | 50 | 50 | {localEnvironmentOff ? ( | 51 | 51 | <Button render={<Link to="/settings/connections" />} size="sm"> | 52 | | - Open Connections | | 52 | + Open Environments | 53 | 53 | </Button> | 54 | 54 | ) : ( | 55 | 55 | <ol className="w-full space-y-4 text-left"> | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/PermissionUpdateNotice.ts +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -48,10 +48,10 @@ function showPermissionNotice( | 48 | 48 | timeout: 0, | 49 | 49 | onClose: persistDismissal, | 50 | 50 | actionProps: { | 51 | | - children: "Open Connections", | | 51 | + children: "Open Sharing & access", | 52 | 52 | onClick: () => { | 53 | 53 | dismiss(); | 54 | | - void router.navigate({ to: "/settings/connections" }); | | 54 | + void router.navigate({ to: "/settings/access" }); | 55 | 55 | }, | 56 | 56 | }, | 57 | 57 | data: { | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/auth/ConnectAgentSurface.tsx +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -233,8 +233,8 @@ export function ConnectAgentSurface() { | 233 | 233 | value={pairingCode} | 234 | 234 | /> | 235 | 235 | <p className="text-xs text-muted-foreground"> | 236 | | - Create one in Settings → Connections, or run <code>t3 auth pairing create</code> on | 237 | | - this machine. | | 236 | + Create one in Settings → Sharing & access, or run <code>t3 auth pairing create</code>{" "} | | 237 | + on this machine. | 238 | 238 | </p> | 239 | 239 | </div> | 240 | 240 | )} | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/chat/guestShareAvailability.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import { serverEnvironment } from "~/state/server"; | 6 | 6 |
| 7 | 7 | /** | 8 | 8 | * Whether this environment offers "Share with guest": the user may create links there, and its | 9 | | - * Guest links beta is on (Settings > Beta). The server refuses links while the beta is off. | | 9 | + * Guest links beta is on (Settings > Labs). The server refuses links while the beta is off. | 10 | 10 | */ | 11 | 11 | export const canShareWithGuestAtom = Atom.family((environmentId: EnvironmentId) => | 12 | 12 | Atom.make( | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/chat/useSystemComposerBanners.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -178,7 +178,7 @@ export function useSystemComposerBanners(input: SystemComposerBannersInput) { | 178 | 178 | size="xs" | 179 | 179 | variant="ghost" | 180 | 180 | disabled={disconnectingEnvironment} | 181 | | - title="Hide this server's threads. Switch it on again in Connections." | | 181 | + title="Hide this server's threads. Switch it on again in Environments." | 182 | 182 | onClick={() => | 183 | 183 | void handleDisconnectActiveEnvironmentStable( | 184 | 184 | activeEnvironmentUnavailableState.environmentId, | |
Collapse file Copy file name to clipboard +42Lines changed: 42 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +import { ChevronRightIcon } from "lucide-react"; | | 2 | +import { type ReactNode, useState } from "react"; | | 3 | + | | 4 | +import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible"; | | 5 | +import { useSettingsSearchTargetId } from "./settingsLayout"; | | 6 | + | | 7 | +/** | | 8 | + * Folds power-user rows at the end of a section. `targetIds` names the search targets inside, so a | | 9 | + * search jump opens the fold before its row mounts. | | 10 | + */ | | 11 | +export function AdvancedSettings({ | | 12 | + targetIds, | | 13 | + children, | | 14 | +}: { | | 15 | + readonly targetIds: ReadonlyArray<string>; | | 16 | + readonly children: ReactNode; | | 17 | +}) { | | 18 | + const [open, setOpen] = useState(false); | | 19 | + const searchTargetId = useSettingsSearchTargetId(); | | 20 | + const [seenSearchTargetId, setSeenSearchTargetId] = useState<string | null>(null); | | 21 | + if (seenSearchTargetId !== searchTargetId) { | | 22 | + setSeenSearchTargetId(searchTargetId); | | 23 | + if (searchTargetId !== null && targetIds.includes(searchTargetId)) setOpen(true); | | 24 | + } | | 25 | + | | 26 | + return ( | | 27 | + <Collapsible open={open} onOpenChange={setOpen}> | | 28 | + <CollapsibleTrigger className="group flex min-h-10 w-full items-center gap-1.5 rounded-b-xl px-3 text-left text-xs font-medium text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring data-panel-open:rounded-none sm:px-4"> | | 29 | + <ChevronRightIcon | | 30 | + aria-hidden | | 31 | + className="size-3.5 shrink-0 transition-transform duration-150 group-data-panel-open:rotate-90 motion-reduce:transition-none" | | 32 | + /> | | 33 | + Advanced | | 34 | + </CollapsibleTrigger> | | 35 | + <CollapsiblePanel> | | 36 | + <div className="border-t border-border/50 [&>*+*]:border-t [&>*+*]:border-border/50"> | | 37 | + {children} | | 38 | + </div> | | 39 | + </CollapsiblePanel> | | 40 | + </Collapsible> | | 41 | + ); | | 42 | +} |
|