Repository navigation
Removed dead exports from Shade - #30142
Conversation
no ref Deletion-only prune of Shade code with no consumers, verified by grepping apps/ and e2e/ for each export name: - Deleted layout/page, layout/header, layout/list-header, layout/view-header, ui/right-sidebar, patterns/utm-campaign-tabs and patterns/table-filter-tabs (UtmCampaignTabs was its only consumer), along with their stories and unit tests - Trimmed the unused KpiTabs/KpiTabsList/KpiTabsContent wrappers from patterns/kpi-tabs; consumers pass variant='kpis' to Tabs directly - Deleted the unused formatUrl, isValidDomain, getYRangeWithMinPadding and getYRangeWithLargePadding utils (Admin settings has its own format-url copy) and formatUrl's unit test - Un-exported MetricValue and TrendBadge from the components barrel; they remain internal building blocks of the KPI patterns - Dropped the retired shade-stats and shade-posts app names from SHADE_APP_NAMESPACES
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET Plan: Pro Plus Run ID: 📒 Files selected for processing (23)
💤 Files with no reviewable changes (21)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (10)
🧰 Additional context used📓 Path-based instructions (4)**/*.{ts,tsx}📄 CodeRabbit inference engine (Custom checks)
Files:
**/*📄 CodeRabbit inference engine (AGENTS.md)
Files:
⚙️ CodeRabbit configuration file
Files:
**/*.{ts,tsx,mts,cts}⚙️ CodeRabbit configuration file
Files:
apps/{admin,activitypub,admin-x-framework,shade}/**/*.{ts,tsx}⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (2)
WalkthroughThe change removes deprecated Shade layout components, patterns, sidebar components, stories, and unit tests. It reduces public barrel exports and removes URL, domain, and Y-axis utility helpers. It removes the related Merge Risk: ⚪ Minimal · up to This deletion-only cleanup removes unused Shade exports and related tests without changing behavior; the reported checks are green, and no actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run @tryghost/admin:test:acceptance |
✅ Succeeded | 8m 12s | View ↗ |
nx run-many -t test:unit -p @tryghost/shade,@tr... |
✅ Succeeded | 5m 5s | View ↗ |
nx run ghost-admin:test |
✅ Succeeded | 3m 10s | View ↗ |
nx run ghost-monorepo:lint:boundaries |
✅ Succeeded | 22s | View ↗ |
nx run-many -t lint -p @tryghost/shade,@tryghos... |
✅ Succeeded | 2m 14s | View ↗ |
nx run @tryghost/admin:build |
✅ Succeeded | 2m 6s | View ↗ |
nx run @tryghost/activitypub:test:acceptance |
✅ Succeeded | 1m 1s | View ↗ |
nx run-many --target=build --projects=tag:publi... |
✅ Succeeded | 3s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-08-20 14:15:58 UTC
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #30142 +/- ##
=======================================
Coverage 75.54% 75.54%
=======================================
Files 1635 1635
Lines 145908 145908
Branches 18203 18203
=======================================
Hits 110230 110230
Misses 34676 34676
Partials 1002 1002
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ref https://linear.app/ghost/issue/NY-1498/automation-run-analytics-ux Main removed MetricValue from Shade's public components barrel as a dead export (#30142). It was dead in main — only KpiCard and KpiTabs use it, internally — but this prototype was importing it, so the catch-up merge broke the admin build. Both call sites now compose the exported KpiCard pair from @tryghost/shade/patterns instead, which is the supported way to reach the same rendering: KpiCardHeaderValue wraps MetricValue itself, and KpiCardHeaderLabel carries chrome identical to MetricValue's own label. They're separate components rather than one with a label prop, so a Stack holds them — gap="sm" is gap-2, the gap MetricValue used between its label and value. Nothing shared changed. Re-adding the export would have made a prototype re-open API surface Shade had just deliberately retired. Worth knowing for next time: a local `tsc --noEmit` passed on the broken code, because apps/shade/types still held the pre-merge barrel. The typecheck is only as current as the last Shade build, so after merging main the build has to come first — or the check quietly validates against exports that no longer exist.

Deletion-only prune of Shade code with no consumers anywhere in the repo (each export name grep-verified across
apps/ande2e/before removal):layout/page,layout/header,layout/list-header,layout/view-header,ui/right-sidebar,patterns/utm-campaign-tabsandpatterns/table-filter-tabs(UtmCampaignTabs was its only consumer), along with their stories and unit testsKpiTabs/KpiTabsList/KpiTabsContentwrappers frompatterns/kpi-tabs— consumers passvariant='kpis'toTabsdirectly, andKpiTabTrigger/KpiTabValue/KpiDropdownButtonstayformatUrl,isValidDomain,getYRangeWithMinPaddingandgetYRangeWithLargePaddingutils fromlib/app-utils(Admin settings has its own format-url copy)MetricValueandTrendBadgefrom the components barrel; they remain internal building blocks of the KPI patternsshade-statsandshade-postsapp names fromSHADE_APP_NAMESPACESViewBarwas a candidate but stays: it is the documentedListPage.Headerslot component (used bylist-page.stories.tsxanddocs/page-types.mdx).23 files changed, +2/−1995. No behaviour change.
Verification: shade
pnpm build+pnpm test:unit(31 files / 276 tests) +pnpm lintgreen; admintsc -b+eslint srcgreen; activitypubtsc --noEmitgreen; final repo-wide grep sweep shows zero references to every deleted name.