:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(today): tint the merged status badge in the space feed (#109819)
Shy Alter035685f2b74d
diff --git a/products/tasks/frontend/spaces/spaceFeedStatus.test.ts b/products/tasks/frontend/spaces/spaceFeedStatus.test.tsindex c2295297701b..6efccda2764b 100644--- a/products/tasks/frontend/spaces/spaceFeedStatus.test.ts+++ b/products/tasks/frontend/spaces/spaceFeedStatus.test.ts@@ -30,12 +30,12 @@ describe('spaceFeedStatus', () => {})it.each([- ['merged', 'Merged'],- ['closed', 'Closed'],- ['draft', 'Draft PR'],- ['unknown', 'PR ready'],- ] as const)('labels a run whose pull request is %s', (prState, label) => {+ ['merged', 'Merged', 'completed'],+ ['closed', 'Closed', 'destructive'],+ ['draft', 'Draft PR', 'default'],+ ['unknown', 'PR ready', 'info'],+ ] as const)('labels a run whose pull request is %s', (prState, label, variant) => {const latestRun = run('completed', 'cloud', { pr_url: 'https://github.com/org/app/pull/1' })- expect(spaceFeedStatus(latestRun, prState)?.label).toEqual(label)+ expect(spaceFeedStatus(latestRun, prState)).toMatchObject({ label, variant })})})diff --git a/products/tasks/frontend/spaces/spaceFeedStatus.ts b/products/tasks/frontend/spaces/spaceFeedStatus.tsindex fe6adb1c5b33..b6a491b16d8b 100644--- a/products/tasks/frontend/spaces/spaceFeedStatus.ts+++ b/products/tasks/frontend/spaces/spaceFeedStatus.ts@@ -22,7 +22,7 @@ const RUN_STATUSES: Record<string, SpaceFeedStatus> = {const PR_STATUSES: Record<Exclude<PrStateEnumApi, 'unknown'>, SpaceFeedStatus> = {open: { label: 'PR ready', variant: 'info' },draft: { label: 'Draft PR', variant: 'default' },- merged: { label: 'Merged', variant: 'default' },+ merged: { label: 'Merged', variant: 'completed' },closed: { label: 'Closed', variant: 'destructive' },}