diff --git a/src/components/projects/ProjectGrid.tsx b/src/components/projects/ProjectGrid.tsx
index d22423a10..0a057d4b6 100644
--- a/src/components/projects/ProjectGrid.tsx
+++ b/src/components/projects/ProjectGrid.tsx
@@ -2,7 +2,7 @@
import { useState, useMemo } from "react";
import { useSearchParams } from "next/navigation";
-import { GitBranch, Globe, ShieldAlert, AlertTriangle, Search } from "lucide-react";
+import { ArrowRight, GitBranch, Globe, ShieldAlert, AlertTriangle, Search } from "lucide-react";
import { IvyDispatchButton } from "@/components/shared/IvyDispatchButton";
import { useEscapeKey } from "@/hooks/use-escape-key";
import { ProjectDetail } from "./ProjectDetail";
@@ -36,14 +36,17 @@ function ProjectCard({
const { prodUrl, repo } = getProjectLinks(attrs);
const maturity = attrs["maturity"];
const status = attrs["status"];
+ const nextStep = attrs["next_step"] ?? null;
const signals = getHealthSignals(attrs);
const hasIssues = signals.length > 0;
+ const extraAttrs = Object.entries(attrs).filter(([k]) => !RESERVED.includes(k));
const ivyPrompt = [
`Project: ${project.name}`,
status && `Status: ${status}`,
maturity && `Maturity: ${maturity}`,
description && `Description: ${description}`,
+ nextStep && `Next Step: ${nextStep}`,
signals.length > 0 && `Issues: ${signals.map((s) => s.label).join(", ")}`,
"",
"What should I prioritize for this project? What are the biggest risks or next steps?",
@@ -123,17 +126,25 @@ function ProjectCard({
)}
- {!status && !maturity && !hasIssues && (
-
- {Object.entries(attrs)
- .filter(([k]) => !RESERVED.includes(k))
- .slice(0, 2)
- .map(([key, value]) => (
+ {nextStep && (
+
+ )}
+
+ {!status && !maturity && !hasIssues && !nextStep && (
+ extraAttrs.length > 0 ? (
+
+ {extraAttrs.slice(0, 2).map(([key, value]) => (
{String(value).slice(0, 30)}
))}
-
+
+ ) : (
+ No context yet — click to add
+ )
)}
);
diff --git a/src/components/projects/ProjectOverviewTab.tsx b/src/components/projects/ProjectOverviewTab.tsx
index fea6991cd..c02d710bf 100644
--- a/src/components/projects/ProjectOverviewTab.tsx
+++ b/src/components/projects/ProjectOverviewTab.tsx
@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
-import { Plus, Users, MessageSquare, Loader2 } from "lucide-react";
+import { ArrowRight, Plus, Users, MessageSquare, Loader2 } from "lucide-react";
import type { ProjectData } from "./project-detail-types";
import {
ISSUE_ATTRS, RESERVED, SUGGESTED_ATTRS, PROJECT_CHANNELS,
@@ -14,6 +14,61 @@ import { toLocalDateStr } from "@/lib/dates";
import { ENTITY_TYPE, INTERACTION_DIRECTION } from "@/lib/constants/statuses";
import { APP_LOCALE } from "@/lib/constants";
+function NextStepSection({
+ attrs, projectId, editable, onReload,
+}: {
+ attrs: Record;
+ projectId: string;
+ editable: boolean;
+ onReload: () => void;
+}) {
+ const [editing, setEditing] = useState(false);
+ const value = attrs["next_step"];
+
+ if (!value && !editable) return null;
+
+ if (editing) {
+ return (
+
+
Next Step
+
{ setEditing(false); onReload(); }}
+ onCancel={() => setEditing(false)}
+ />
+
+ );
+ }
+
+ if (!value) {
+ return (
+
+ );
+ }
+
+ return (
+ setEditing(true) : undefined}
+ title={editable ? "Click to edit next step" : undefined}
+ >
+
+
{value}
+
+ );
+}
+
export function OverviewTab({
data,
projectId,
@@ -61,12 +116,11 @@ export function OverviewTab({
const attrs = data.attrs;
const displayAttrs = Object.entries(attrs).filter(([k]) => !RESERVED.includes(k));
- const missingSuggested = SUGGESTED_ATTRS.filter(({ key }) => !attrs[key]);
+ // next_step has its own dedicated section — exclude from the missing-suggested list
+ const missingSuggested = SUGGESTED_ATTRS.filter(({ key }) => !attrs[key] && key !== "next_step");
return (
-
-
{ISSUE_ATTRS.some((k) => attrs[k]) && (
{HEALTH_SIGNAL_CONFIG.filter((cfg) => attrs[cfg.key]).map(({ key, icon: Icon, cardLabel, cardBorder, cardBg, cardText, cardBody }) => (
@@ -80,7 +134,14 @@ export function OverviewTab({
)}
- {displayAttrs.length > 0 ? (
+
+
+ {displayAttrs.length > 0 && (
{displayAttrs.map(([key, value]) => (
))}
- ) : (
-
No details recorded yet.
)}
{!data.readonly && missingSuggested.length > 0 && (
@@ -253,6 +312,8 @@ export function OverviewTab({
{data.activity.length > 0 && (
)}
+
+
);
}
diff --git a/src/components/projects/project-detail-types.ts b/src/components/projects/project-detail-types.ts
index 1290fa620..f5f840c30 100644
--- a/src/components/projects/project-detail-types.ts
+++ b/src/components/projects/project-detail-types.ts
@@ -74,7 +74,7 @@ export const LINK_ATTRS = ["production_url", "repo", "github_repo", "url"];
// Issue keys rendered as warning cards
export const ISSUE_ATTRS = ["broken_features", "security_vulnerability", "deployment_issue"];
// Keys with dedicated rendering (not shown in generic grid)
-export const RESERVED = [...LINK_ATTRS, ...ISSUE_ATTRS, "status", "maturity", "description", "owner"];
+export const RESERVED = [...LINK_ATTRS, ...ISSUE_ATTRS, "status", "maturity", "description", "owner", "next_step"];
/**
* Resolve project quick-link attrs into ready-to-use href strings.