Skip to content

Simplify the Cosmos entrypoint and tighten workspace sidebar sizing#7

Merged
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:fix/cosmos-tailwind-preview-regression
Jun 28, 2026
Merged

Simplify the Cosmos entrypoint and tighten workspace sidebar sizing#7
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:fix/cosmos-tailwind-preview-regression

Conversation

@rushabhcodes

Copy link
Copy Markdown
Contributor

Summary

This PR removes the dedicated cosmos/ folder by moving the React Cosmos entrypoint into src, and tightens the workspace sidebar sizing so the preview uses stable Tailwind utility classes.

Changes

  • move the Cosmos entrypoint from cosmos/main.tsx to src/main.tsx
  • update index.html to load /src/main.tsx
  • remove the cosmos path from tsconfig.json includes
  • replace bracketed Tailwind width and tracking utilities in WorkspaceCodeEditor with equivalent standard utilities

Why

This keeps the repo structure aligned with sibling packages and removes a special-case top-level folder. It also avoids depending on bracketed Tailwind utilities for the workspace sidebar preview.

Impact

  • no change to the published package entrypoint or public exports
  • no change to the Cosmos-based dev workflow
  • simpler project layout for local development

Validation

  • bun run typecheck

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
monaco-code-editor Ready Ready Preview, Comment Jun 28, 2026 12:34pm

Request Review

@rushabhcodes rushabhcodes force-pushed the fix/cosmos-tailwind-preview-regression branch from 6f8d4ad to ddeefbb Compare June 28, 2026 12:34
@rushabhcodes rushabhcodes marked this pull request as ready for review June 28, 2026 12:35
@rushabhcodes rushabhcodes merged commit 763bc78 into tscircuit:main Jun 28, 2026
4 checks passed
@rushabhcodes rushabhcodes deleted the fix/cosmos-tailwind-preview-regression branch June 28, 2026 12:35
@tscircuitbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

PR Rating:
Impact: Tiny

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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