Skip to content

Document design system dependency management and verify safeguards#965

Closed
jottakka wants to merge 1 commit intomainfrom
cursor/design-system-dependency-analysis-f3e7
Closed

Document design system dependency management and verify safeguards#965
jottakka wants to merge 1 commit intomainfrom
cursor/design-system-dependency-analysis-f3e7

Conversation

@jottakka
Copy link
Copy Markdown
Contributor

@jottakka jottakka commented May 7, 2026

Overview

This PR documents the current design system dependency management strategy and verifies that existing safeguards are working correctly.

Analysis Summary

✅ Current Safeguards Are Working

The docs repo already has effective safeguards in place:

  1. Exact version pinning - Using 3.39.1 (not ^3.39.1)
  2. Automated workflow with build gate
  3. Test suite runs before PR creation

🛡️ Breaking Change Was Caught

On May 6, 2026, the automated workflow successfully prevented a breaking change:

  • Design system 3.39.2 removed the asChild prop from Button component
  • Workflow run 25439865535 failed at build step
  • No PR was created (system working as designed)

📊 Impact Assessment

If we were to upgrade to 3.39.2, these files would need updates:

  • app/not-found.tsx (1 usage)
  • app/en/resources/integrations/components/filters-bar.tsx (3 usages)
  • app/_components/glossary-term.tsx (1 usage)
  • app/_components/challenge-solution.tsx (1 usage)
  • app/en/home/landing-page.tsx (4 usages)

Total: 10 instances of asChild prop across 5 files

Changes in This PR

1. Added Analysis Document

Created DESIGN_SYSTEM_DEPENDENCY_ANALYSIS.md documenting:

  • Current version management strategy
  • Automated update workflow details
  • Breaking change impact analysis
  • Recommendations for design system repo (upstream)
  • Workflow history and effectiveness

2. Enhanced Workflow Clarity

Updated .github/workflows/update-design-system-dependency.yml with clarifying comments explaining that test failures are expected behavior when breaking changes are detected.

Recommendations

For Docs Repo (This Repo)

Keep current approach - No changes needed. The system is working correctly.

For Design System Repo (Upstream)

The root issue is upstream semver adherence:

  • Removing asChild prop is a breaking change
  • Should be released as 4.0.0, not 3.39.2
  • Consider adding automated breaking change detection

For Process

When the automated workflow fails:

  1. Check the failed run logs
  2. Determine if it's a breaking change (expected) or compatibility bug
  3. If breaking: Coordinate with design system team on semver
  4. If not breaking: Fix docs compatibility and re-run

Questions Addressed

"Any chance to add some checks for when updating DS that builds other projects that depend on it?"

Already implemented: The workflow includes a full production build before creating PRs.

"Are we not pinning the version of DS used in docs?"

Answer: Yes, we are pinning to exact version 3.39.1. This is correct.

"+1 that this should be signaled by semver"

Agreed: The upstream design system repo should follow semver more strictly.

Conclusion

The concerns raised were already addressed by existing safeguards. The workflow correctly caught and prevented a breaking change from being merged. This PR adds documentation to make the current system more transparent and provides recommendations for upstream improvements.


Related:

  • Failed workflow run: #25439865535
  • Latest DS version: 3.39.2 (blocked by breaking changes)
  • Current DS version: 3.39.1 (stable)

Slack Thread

Open in Web Open in Cursor 

- Document current version pinning strategy (exact versions)
- Document automated update workflow with test gates
- Verify workflow successfully caught breaking change in 3.39.2
- Identify 10 instances of deprecated asChild prop across 5 files
- Add clarifying comments to workflow about expected failures
- Provide recommendations for semver adherence upstream

Context: Addresses concerns from #team-eng Slack thread about
design system updates breaking docs. Analysis shows current
safeguards are working correctly - the breaking change was
caught and prevented from merging.

Co-authored-by: Francisco Or Something <fjlimal@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 7, 2026 0:29am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants