-
Notifications
You must be signed in to change notification settings - Fork 113
.pr_agent_accepted_suggestions
| PR 444 (2026-06-01) |
[correctness] Project type still referenced
Project type still referenced
`CompactProjectTableProps.projects` was changed to `CompactProjectRow[]`, but component state and handlers still use `Project`, making `projects.map(...)` values not assignable to handler parameter types and breaking compilation. The `Project` import was also removed, worsening the type errors.After changing projects to CompactProjectRow[], the implementation still types selectedProject and handler parameters as Project. This creates type incompatibilities and also references a now-unimported type.
CompactProjectRow is defined from Prisma Playground plus optional Starmark, but internal code still expects the older dashboard Project type.
-
Replace internal
Projectannotations withCompactProjectRow(or a shared compatible type), includingselectedProjectstate and handler signatures. -
Update any logic that relied on fields present on
Projectbut not onCompactProjectRow. -
modules/profile/components/CompactProjectTable.tsx[8-36]
-
modules/profile/components/CompactProjectTable.tsx[88-170]
[correctness] Missing required imports
Missing required imports
`CompactProjectTable.tsx` deletes imports for React hooks and UI components (Table/Dialog/Dropdown/etc.) but the component still uses them, causing immediate TypeScript compile errors. This blocks the build and makes the component non-functional.modules/profile/components/CompactProjectTable.tsx removed imports for many symbols that are still referenced in the component (e.g., useState, shadcn/ui components, lucide icons, and toast). This will produce Cannot find name ... TypeScript errors.
The file currently only imports Link, format, Playground (type), and Badge, but uses many additional identifiers throughout the component body.
-
Re-add the missing imports (or remove corresponding usages) so the module compiles.
-
Ensure imports match the actual identifiers used in JSX/handlers.
-
modules/profile/components/CompactProjectTable.tsx[1-40]
-
modules/profile/components/CompactProjectTable.tsx[76-170]
-
modules/profile/components/CompactProjectTable.tsx[175-239]