fix(desktop): remove remaining Projects panel fills (#3742)

## Summary

- let the Projects page surface flow through repository, pull request,
and issue list/grid layouts
- remove opaque fills from project-detail content across Overview,
Files, Commits, Issues, Pull Requests, and Contributors
- preserve borders, hover feedback, and intentional nested fills for
code, inputs, badges, and warnings

## Related

Follow-up to #3416.

## Testing

- `pnpm exec biome check` on the changed Projects UI and E2E files
- `pnpm build:e2e`
- focused Playwright smoke coverage for overview, subsection list/grid,
and project-detail transparency (3 passed)
- pre-commit checks passed
- desktop pre-push checks passed; the unrelated integration hook remains
blocked by a stale local checksum for migration 25

Signed-off-by: Thomas Petersen <thomasp@squareup.com>
This commit is contained in:
thomaspblock
2026-07-30 16:31:10 +02:00
committed by GitHub
parent 85edc0572a
commit c55e421a06
13 changed files with 162 additions and 25 deletions

View File

@@ -34,6 +34,10 @@ import { cn } from "@/shared/lib/cn";
import { normalizePubkey } from "@/shared/lib/pubkey";
import { SyntaxHighlightedCode } from "@/shared/ui/markdown";
import { UserAvatar } from "@/shared/ui/UserAvatar";
import {
PROJECT_DETAIL_PANEL_CLASS,
PROJECT_DETAIL_PANEL_MESSAGE_CLASS,
} from "./projectPanelStyles";
import {
type RepoSourceHeaderControls,
RepoSourceDropdown,
@@ -550,7 +554,7 @@ function FileContentPanel({
const directorySegments = pathSegments.slice(0, -1);
return (
<div className="overflow-hidden rounded-xl border border-border/60 bg-card">
<div className={PROJECT_DETAIL_PANEL_CLASS} data-project-detail-panel>
<div className="flex min-h-14 items-center gap-1 border-border/50 border-b bg-muted/20 px-3 py-3">
<BreadcrumbButton onClick={() => onOpenPath("")}>
Files
@@ -687,13 +691,16 @@ export function RepositoryFilesPanel({
if (stateMessage) {
if (!sourceControls) {
return (
<div className="rounded-xl border border-border/60 bg-card p-4 text-sm text-muted-foreground">
<div
className={PROJECT_DETAIL_PANEL_MESSAGE_CLASS}
data-project-detail-panel
>
{stateMessage}
</div>
);
}
return (
<div className="overflow-hidden rounded-xl border border-border/60 bg-card">
<div className={PROJECT_DETAIL_PANEL_CLASS} data-project-detail-panel>
<div className="flex min-h-14 min-w-0 items-center gap-1 border-border/50 border-b px-3 py-3">
<RepoSourceDropdown controls={sourceControls} />
<RepositoryBranchDropdown
@@ -733,7 +740,7 @@ export function RepositoryFilesPanel({
}
return (
<div className="overflow-hidden rounded-xl border border-border/60 bg-card">
<div className={PROJECT_DETAIL_PANEL_CLASS} data-project-detail-panel>
<div className="flex min-h-14 min-w-0 items-center gap-1 border-border/50 border-b px-3 py-3">
{sourceControls ? (
<>