From aec0ef8467bcf28a05746748ca494986d064ef9d Mon Sep 17 00:00:00 2001 From: g-but <41178744+g-but@users.noreply.github.com> Date: Sun, 31 May 2026 02:24:30 +0200 Subject: [PATCH] =?UTF-8?q?fix(projects):=20drop=20"Add=20context=20?= =?UTF-8?q?=E2=86=92"=20placeholder=20on=20bare=20project=20cards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bare projects (no description, no status, no maturity, no health signals, no next_step, no extra attrs) rendered a dashed-bordered "Add context →" box at the bottom of every tile. Caught during a live cloud audit: in a 29-tile grid, every empty card had this prompt dominating the visual — looked like a row of empty form placeholders instead of a project portfolio. The placeholder added zero data; the whole card is already clickable via the wrapper's onClick, so the affordance to open and add context is preserved. Bare tiles now show just the title (+ readonly badge, action icons), which reads as "this project exists, click to learn more" — same affordance, less visual noise. extraAttrs path is untouched: when the user HAS set custom attrs beyond the reserved set, those still render as micro-badges. Smaller follow-up worth filing separately: surface dirPath + agentPref from user_projects so even bare-attr tiles show concrete metadata. That requires a query-level join (entities ⨝ user_projects) — not in this commit. --- src/components/projects/ProjectGrid.tsx | 27 ++++++++++++------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/components/projects/ProjectGrid.tsx b/src/components/projects/ProjectGrid.tsx index 391560bbf..855a39f17 100644 --- a/src/components/projects/ProjectGrid.tsx +++ b/src/components/projects/ProjectGrid.tsx @@ -142,21 +142,20 @@ function ProjectCard({ )} - {!status && !maturity && !hasIssues && !nextStep && ( - extraAttrs.length > 0 ? ( -