- {/* ── Agent Panel — Atlas for discovery, Orchestrator once PRD is done ── */}
- {(!project.stage || project.stage === 'discovery') ? (
-
- ) : (
-
- )}
-
{/* ── Header ── */}
@@ -255,268 +144,17 @@ export default function ProjectOverviewPage() {
- {/* ── Quick Stats ── */}
-
- {[
- { label: "Sessions", value: project.stats?.sessions ?? 0 },
- { label: "AI Cost", value: `$${(project.stats?.costs ?? 0).toFixed(2)}` },
- { label: "Open PRs", value: snap?.openPRs?.length ?? 0 },
- { label: "Open Issues", value: snap?.openIssues?.length ?? 0 },
- ].map(({ label, value }) => (
-
-
- {value}
- {label}
-
-
- ))}
-
-
-
-
- {/* ── Code / Gitea ── */}
-
-
-
-
- Code Repository
-
-
-
- {project.giteaRepo ? (
- <>
-
-
- {snap?.lastCommit ? (
-
-
-
- {snap.lastCommit.sha.slice(0, 8)}
- ·
- {timeAgo(snap.lastCommit.timestamp)}
- {snap.lastCommit.author && · {snap.lastCommit.author}}
-
-
{snap.lastCommit.message}
-
- ) : (
- No commits yet — push to get started
- )}
-
-
-
Clone
-
{project.giteaCloneUrl}
- {project.giteaSshUrl && (
-
{project.giteaSshUrl}
- )}
-
- >
- ) : (
-
-
- {project.giteaError
- ? `Repo provisioning failed: ${project.giteaError}`
- : "No repository linked"}
-
-
- )}
-
-
-
- {/* ── Deployment ── */}
-
-
-
-
- Deployment
-
-
-
- {snap?.lastDeployment ? (
- <>
-
-
- {timeAgo(snap.lastDeployment.timestamp)}
-
- {snap.lastDeployment.url && (
-
-
- {snap.lastDeployment.url}
-
- )}
- >
- ) : (
-
-
No deployments yet
-
-
- )}
-
-
-
- {/* ── Open PRs ── */}
-
-
-
-
- Pull Requests
- {(snap?.openPRs?.length ?? 0) > 0 && (
- {snap!.openPRs!.length} open
- )}
-
-
-
- {snap?.openPRs?.length ? (
-
- ) : (
- No open pull requests
- )}
-
-
-
- {/* ── Open Issues ── */}
-
-
-
-
- Issues
- {(snap?.openIssues?.length ?? 0) > 0 && (
- {snap!.openIssues!.length} open
- )}
-
-
-
- {snap?.openIssues?.length ? (
-
- ) : (
- No open issues
- )}
-
-
-
-
-
- {/* ── Recent Commits ── */}
- {snap?.recentCommits && snap.recentCommits.length > 1 && (
-
-
-
-
- Recent Commits
-
-
-
-
- {snap.recentCommits.map((c, i) => (
- -
- {c.sha.slice(0, 8)}
- {c.message}
- {c.author ?? ""}
- {timeAgo(c.timestamp)}
-
- ))}
-
-
-
- )}
-
- {/* ── Resources ── */}
-
-
-
-
- Resources
-
- Databases and services linked to this project
-
-
- {project.coolifyDbUuid ? (
-
-
- Database provisioned
- {project.coolifyDbUuid}
-
- ) : (
-
-
No databases provisioned yet
-
-
- )}
-
-
-
- {/* ── Context snapshot freshness ── */}
- {snap?.updatedAt && (
-
- Context updated {timeAgo(snap.updatedAt)} via webhooks
-
+ {/* ── Agent Panel — Atlas for discovery, Orchestrator once PRD is done ── */}
+ {(!project.stage || project.stage === 'discovery') ? (
+
+ ) : (
+
)}