Skip to content

Commit 140bacc

Browse files
feat: show 'not linked' for missing design doc and recording in Design Notes panel
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 693a524 commit 140bacc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

hub/src/App.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,14 +1490,13 @@ function HpuxPrototypesEmbedFullscreenPage() {
14901490
{(() => {
14911491
const effectiveDesignDocUrl = designNotes.designDocUrl ?? manifestLinks.designDocUrl;
14921492
const effectiveRecordingUrl = designNotes.recordingUrl ?? manifestLinks.recordingUrl;
1493-
if (!effectiveDesignDocUrl && !effectiveRecordingUrl && !designNotes.jiraUrl) return null;
14941493
return (
14951494
<div>
14961495
<Title headingLevel="h3" size="md" style={{ marginBottom: "var(--pf-t--global--spacer--sm)" }}>
14971496
Resources
14981497
</Title>
14991498
<div style={{ display: "flex", flexDirection: "column", alignItems: "flex-start", gap: "var(--pf-t--global--spacer--xs)" }}>
1500-
{effectiveDesignDocUrl && (
1499+
{effectiveDesignDocUrl ? (
15011500
<Button
15021501
variant="link"
15031502
icon={<ExternalLinkAltIcon aria-hidden />}
@@ -1510,8 +1509,10 @@ function HpuxPrototypesEmbedFullscreenPage() {
15101509
>
15111510
Design doc
15121511
</Button>
1512+
) : (
1513+
<Content component="small" style={{ color: "var(--pf-t--global--text--color--subtle)" }}>Design doc — Not linked</Content>
15131514
)}
1514-
{effectiveRecordingUrl && (
1515+
{effectiveRecordingUrl ? (
15151516
<Button
15161517
variant="link"
15171518
icon={<ExternalLinkAltIcon aria-hidden />}
@@ -1524,6 +1525,8 @@ function HpuxPrototypesEmbedFullscreenPage() {
15241525
>
15251526
Recording
15261527
</Button>
1528+
) : (
1529+
<Content component="small" style={{ color: "var(--pf-t--global--text--color--subtle)" }}>Recording — Not linked</Content>
15271530
)}
15281531
{designNotes.jiraUrl && (
15291532
<Button

0 commit comments

Comments
 (0)