-
Notifications
You must be signed in to change notification settings - Fork 7
feat(apollo-vertex): Roadmap Status page with live Jira data #962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hfrancis31
wants to merge
1
commit into
main
Choose a base branch
from
feat/vertex-roadmap-status
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }); | ||
| } | ||
|
0xr3ngar marked this conversation as resolved.
|
||
| } | ||
235 changes: 235 additions & 0 deletions
235
apps/apollo-vertex/app/design-system-status/_components/status-board.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 /> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.