Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/apollo-vertex/app/_meta.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default {
index: "Introduction",
"design-system-status": "Roadmap status",
foundation: "Foundation",
components: "Components",
patterns: "Patterns",
Expand Down
22 changes: 22 additions & 0 deletions apps/apollo-vertex/app/api/jira/route.ts

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this even be in the apollo-vertex? shouldn't we just mock jira tickets in the UI and explicitly tell the consumers to connect it to the actual JIRA API. I don't think this needs to be here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I discussed with @ruudandriessen that this is needed so that we can provide visibility to all eng teams on what is coming and the status. We are wanting more visibility across teams.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { type NextRequest, NextResponse } from "next/server";
import { fetchJiraIssues } from "@/lib/jira";
import { processIssues } from "@/lib/jira-resolve";

// Intentionally public — this endpoint surfaces cross-team design system status.
// No auth guard is by design; confirmed with @ruudandriessen.
export async function GET(_req: NextRequest) {
try {
const issues = await fetchJiraIssues();
const jiraBaseUrl =
process.env.JIRA_BASE_URL ?? "https://uipath.atlassian.net";
const data = processIssues(issues, jiraBaseUrl);
return NextResponse.json(data, {
headers: {
"Cache-Control": "public, s-maxage=300, stale-while-revalidate=60",
},
});
Comment on lines +13 to +17
} catch (e) {
const message = e instanceof Error ? e.message : String(e);
return NextResponse.json({ error: message }, { status: 500 });
}
Comment thread
0xr3ngar marked this conversation as resolved.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
import {
ArrowUpRight,
CheckCircle2,
Clock,
Inbox,
TriangleAlert,
} from "lucide-react";
import Link from "next/link";
import type { ReactNode } from "react";
import { fetchJiraIssues } from "@/lib/jira";
import {
type BadgeLabel,
type BoardData,
type ProcessedCard,
processIssues,
} from "@/lib/jira-resolve";
import { Badge } from "@/registry/badge/badge";

// ─── status tag ──────────────────────────────────────────────────────────────

function StatusTag({ status }: { status: string }) {
const s = status.toLowerCase();

if (s === "in review" || s === "review") {
return (
<Badge variant="default" status="info">
In Review
</Badge>
);
}
if (s === "in progress") {
return <Badge variant="secondary">In Progress</Badge>;
}
if (s === "closed" || s === "done") {
return (
<Badge variant="secondary" status="success">
Delivered
</Badge>
);
}
return <Badge variant="secondary">{status}</Badge>;
}

// ─── label badge ─────────────────────────────────────────────────────────────

function LegalBadge({ label }: { label: BadgeLabel }) {
if (label === "required") {
return (
<Badge variant="secondary" status="error">
Required
</Badge>
);
}
if (label === "best-practice") {
return (
<Badge variant="secondary" status="warning">
Best practice
</Badge>
);
}
return null;
}

// ─── card ────────────────────────────────────────────────────────────────────

function StatusCard({ card }: { card: ProcessedCard }) {
const isExternal = card.link.startsWith("http");

return (
<Link
href={card.link}
{...(isExternal ? { target: "_blank", rel: "noopener noreferrer" } : {})}
className="group flex flex-col gap-3 rounded-lg border border-border bg-card p-4 transition-colors hover:border-primary hover:bg-accent"
>
<div className="flex items-start justify-between gap-2">
<div className="flex flex-wrap gap-1.5">
<StatusTag status={card.status} />
{card.badge && <LegalBadge label={card.badge} />}
</div>
<ArrowUpRight className="size-4 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100" />
</div>

<p className="text-sm font-medium leading-snug text-card-foreground">
{card.summary}
</p>

<div className="flex flex-col gap-0.5">
{card.epicName && (
<p className="text-xs text-muted-foreground/70">{card.epicName}</p>
)}
<p className="text-xs text-muted-foreground">{card.key}</p>
</div>
</Link>
);
}

// ─── section ─────────────────────────────────────────────────────────────────

function Section({
title,
description,
icon,
cards,
empty,
}: {
title: string;
description: string;
icon: ReactNode;
cards: ProcessedCard[];
empty: string;
}) {
return (
<section>
<div className="mb-4 flex items-center gap-2">
{icon}
<div>
<h2 className="text-lg font-semibold text-foreground">{title}</h2>
<p className="text-sm text-muted-foreground">{description}</p>
</div>
<span className="ml-auto rounded-full bg-muted px-2.5 py-0.5 text-xs font-medium text-muted-foreground">
{cards.length}
</span>
</div>

{cards.length === 0 ? (
<p className="rounded-lg border border-dashed border-border py-10 text-center text-sm text-muted-foreground">
{empty}
</p>
) : (
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
{cards.map((card) => (
<StatusCard key={card.key} card={card} />
))}
</div>
)}
</section>
);
}

// ─── error state ─────────────────────────────────────────────────────────────

function SetupError({ message }: { message: string }) {
const isMissingConfig = message.includes("Missing Jira configuration");
return (
<div className="rounded-lg border border-border bg-card p-6">
<div className="mb-3 flex items-center gap-2 text-warning-foreground">
<TriangleAlert className="size-5" />
<span className="font-semibold">
{isMissingConfig
? "Jira credentials not configured"
: "Could not load Jira data"}
</span>
</div>
{isMissingConfig ? (
<div className="space-y-2 text-sm text-muted-foreground">
<p>
Add{" "}
<code className="rounded bg-muted px-1 font-mono text-xs">
JIRA_BASE_URL
</code>
,{" "}
<code className="rounded bg-muted px-1 font-mono text-xs">
JIRA_EMAIL
</code>
, and{" "}
<code className="rounded bg-muted px-1 font-mono text-xs">
JIRA_API_TOKEN
</code>{" "}
to{" "}
<code className="rounded bg-muted px-1 font-mono text-xs">
apps/apollo-vertex/.env.local
</code>
, then restart the dev server.
</p>
</div>
) : (
<p className="text-sm text-muted-foreground">{message}</p>
)}
</div>
);
}

// ─── board ───────────────────────────────────────────────────────────────────

export async function StatusBoard() {
let data: BoardData | null = null;
let error: string | null = null;

try {
const issues = await fetchJiraIssues();
const jiraBaseUrl =
process.env.JIRA_BASE_URL ?? "https://uipath.atlassian.net";
data = processIssues(issues, jiraBaseUrl);
} catch (e) {
error = e instanceof Error ? e.message : String(e);
}

if (error) {
return (
<div className="not-prose mt-6">
<SetupError message={error} />
</div>
);
}

if (!data) return null;

return (
<div className="not-prose mt-6 space-y-10">
<Section
title="Recently Delivered"
description="Curated list of shipped work. Links go to the Vertex doc page when available."
icon={<CheckCircle2 className="size-5 shrink-0 text-success" />}
cards={data.delivered}
empty="No delivered items yet."
/>

<Section
title="Coming Soon"
description="In Review is closest to landing and sorted first."
icon={<Clock className="size-5 shrink-0 text-info" />}
cards={data.comingSoon}
empty="Nothing in progress right now."
/>

<Section
title="Backlog"
description="Planned work not yet started."
icon={<Inbox className="size-5 shrink-0 text-muted-foreground" />}
cards={data.backlog}
empty="Backlog is empty."
/>
</div>
);
}
11 changes: 11 additions & 0 deletions apps/apollo-vertex/app/design-system-status/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Roadmap status
---

import { StatusBoard } from './_components/status-board';

# Roadmap status

Live view of design system work for developers building on Vertex. Jira is the single source of truth. [View the VS Horizontal UX board →](https://uipath.atlassian.net/jira/software/projects/DESIGN/boards)

<StatusBoard />
Loading
Loading