From c86721f4340ecd1cefddb3c5d124a2d7577a0b07 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sat, 18 Apr 2026 21:34:25 -0700 Subject: [PATCH] fix(new-workspace): clean up backgrounds, contrast, and loading UX (#816) - fix(new-workspace): clean up backgrounds, contrast, and loading UX Address feedback on the NewWorkspacePage: drop the LightRays backdrop, repo badge-color radial gradient, and custom dark bg override so the page uses standard bg-background. Switch card surfaces from translucent bg-background/X to bg-muted/50 so cards read as distinct from the page in both themes. Give the unselected source toggles a visible bg+border. Size the task list card to its content (capped at viewport) instead of always stretching. Add a 3-row shimmer skeleton while the initial fetch is in flight (only when nothing is cached). --- .../src/components/NewWorkspacePage.tsx | 74 +++++--- src/renderer/src/components/ui/light-rays.tsx | 179 ------------------ 2 files changed, 43 insertions(+), 210 deletions(-) delete mode 100644 src/renderer/src/components/ui/light-rays.tsx diff --git a/src/renderer/src/components/NewWorkspacePage.tsx b/src/renderer/src/components/NewWorkspacePage.tsx index 848b1b0d8..c4f862fd6 100644 --- a/src/renderer/src/components/NewWorkspacePage.tsx +++ b/src/renderer/src/components/NewWorkspacePage.tsx @@ -29,7 +29,6 @@ import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip import RepoCombobox from '@/components/repo/RepoCombobox' import GitHubItemDrawer from '@/components/GitHubItemDrawer' import { cn } from '@/lib/utils' -import { LightRays } from '@/components/ui/light-rays' import { getLinkedWorkItemSuggestedName, getTaskPresetQuery } from '@/lib/new-workspace' import type { LinkedWorkItemSummary } from '@/lib/new-workspace' import { isGitRepoKind } from '../../../shared/repo-kind' @@ -411,29 +410,7 @@ export default function NewWorkspacePage(): React.JSX.Element { }, [closeNewWorkspacePage, drawerWorkItem]) return ( -
- {/* Why: 3 rays at blur=20 looks visually equivalent to 6 at 44 while - cutting the compositor cost of the backdrop roughly 3x — the large - blur radius + mix-blend-screen pass dominated paint time during - page mount on integrated GPUs. */} - - - {selectedRepo?.badgeColor && ( -
- )} - +
{/* Why: left-aligned so it doesn't collide with the app sidebar on the right edge. The GitHub preview is a modal sheet that overlays the @@ -476,8 +453,8 @@ export default function NewWorkspacePage(): React.JSX.Element { className={cn( 'group flex h-11 w-11 items-center justify-center rounded-xl border transition', active - ? 'border-border/50 bg-background/50 backdrop-blur-md supports-[backdrop-filter]:bg-background/50' - : 'border-border/50 bg-transparent hover:bg-muted/40', + ? 'border-border bg-muted/70 shadow-sm' + : 'border-border/70 bg-muted/30 hover:bg-muted/60 hover:border-border', source.disabled && 'cursor-not-allowed opacity-55' )} > @@ -497,13 +474,13 @@ export default function NewWorkspacePage(): React.JSX.Element { value={repoId} onValueChange={setRepoId} placeholder="Select a repository" - triggerClassName="h-11 w-full rounded-[10px] border border-border/50 bg-background/50 backdrop-blur-md px-3 text-sm font-medium shadow-sm transition hover:bg-muted/50 focus:ring-2 focus:ring-ring/20 focus:outline-none supports-[backdrop-filter]:bg-background/50" + triggerClassName="h-11 w-full rounded-[10px] border border-border/50 bg-muted/50 px-3 text-sm font-medium shadow-sm transition hover:bg-muted/50 focus:ring-2 focus:ring-ring/20 focus:outline-none" />
{taskSource === 'github' && ( -
+
{TASK_QUERY_PRESETS.map((option) => { @@ -569,7 +546,7 @@ export default function NewWorkspacePage(): React.JSX.Element { onChange={handleTaskSearchChange} onKeyDown={handleTaskSearchKeyDown} placeholder="GitHub search, e.g. assignee:@me is:open" - className="h-10 border-border/50 bg-background/50 pl-10 pr-10 backdrop-blur-md supports-[backdrop-filter]:bg-background/50" + className="h-10 border-border/50 bg-background pl-10 pr-10" /> {taskSearchInput || appliedTaskSearch ? (