Skip to content

refactor: remove unused CSS#733

Merged
paanSinghCoder merged 4 commits intomainfrom
refactor/remove-unused-code
Apr 9, 2026
Merged

refactor: remove unused CSS#733
paanSinghCoder merged 4 commits intomainfrom
refactor/remove-unused-code

Conversation

@paanSinghCoder
Copy link
Copy Markdown
Contributor

Description

refactor: remove unused CSS

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes, no bug fixes just code improvements)
  • Chore (changes to the build process or auxiliary tools and libraries such as documentation generation)
  • Style (changes that do not affect the meaning of the code (white-space, formatting, etc))
  • Test (adding missing tests or correcting existing tests)
  • Improvement (Improvements to existing code)
  • Other (please specify)

How Has This Been Tested?

[Describe the tests that you ran to verify your changes]

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (.mdx files)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Screenshots (if appropriate):

[Add screenshots here]

Related Issues

[Link any related issues here using #issue-number]

@paanSinghCoder paanSinghCoder requested a review from rsbh April 8, 2026 06:47
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2026

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

Project Deployment Actions Updated (UTC)
apsara Ready Ready Preview, Comment Apr 8, 2026 7:38am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 8, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1ed56644-a474-4af8-884e-6ff9154b053d

📥 Commits

Reviewing files that changed from the base of the PR and between 75acdff and 30cd99d.

📒 Files selected for processing (3)
  • apps/www/src/components/editor/editor.module.css
  • packages/raystack/components/input-field/input-field.module.css
  • packages/raystack/components/text-area/index.tsx
💤 Files with no reviewable changes (2)
  • apps/www/src/components/editor/editor.module.css
  • packages/raystack/components/input-field/input-field.module.css
✅ Files skipped from review due to trivial changes (1)
  • packages/raystack/components/text-area/index.tsx

📝 Walkthrough

Walkthrough

The PR marks the public Box component as deprecated via a JSDoc annotation (advising use of Flex), removes Box from the site Components table, and applies multiple CSS cleanups across components: button focus/disabled/active rules simplified and loader CSS removed; callout width and standalone gradient class trimmed; empty-state .emptyStateLeft and .actionContainer removed; filter-chip .value removed; input-field .input-default removed; editor empty selector removed; theme-provider’s disableAnimation() drops several vendor-prefixed transition rules. No runtime logic or exported API signatures were changed.

Suggested reviewers

  • rsbh
  • rohanchkrabrty
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'refactor: remove unused CSS' clearly summarizes the primary change—a refactoring effort to clean up unused CSS across multiple components and stylesheets.
Description check ✅ Passed The description is directly related to the changeset, identifying the change type as a refactor and providing context about removing unused CSS, though it lacks specific testing details.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
apps/www/src/content/docs/(overview)/index.mdx (1)

24-24: Documentation update aligns with Box deprecation.

Removing Box from the components table is consistent with the deprecation annotation added in packages/raystack/components/box/box.tsx.

Consider adding a brief migration note in the documentation to help users transition from Box to Flex. For example, you could add a callout in the "Components" section or create a separate migration guide page.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/www/src/content/docs/`(overview)/index.mdx at line 24, Remove Box from
the components table is fine; add a short migration note telling users how to
replace Box with Flex: update the Components section in the same MDX (index.mdx)
to include a brief callout explaining that Box is deprecated, suggest using the
Flex component API (referencing Flex) with a small example description of how
common Box props map to Flex props, and link to a new or existing migration
guide page (create a new migration docs page if none exists) to cover code
snippets and edge cases; ensure the callout references the deprecation in
packages/raystack/components/box/box.tsx and uses the same wording for
consistency.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/raystack/components/box/box.tsx`:
- Around line 3-6: The deprecation note for Box is incomplete because Box
renders a block-level <div> while Flex uses display:flex and different defaults;
either introduce a true drop-in replacement called Block that preserves Box
behavior (create a new Block component exporting the same props and rendering a
plain div with current Box styling and mark Box deprecated in favor of Block),
or instead update the deprecation to include a migration guide showing how to
replicate block layout with Flex (examples: remove display:flex or wrap children
in a non-flex container) — implement option 1 by adding a Block component
(mirror Box's props and rendering logic) and change Box's JSDoc to point to
Block, or implement option 2 by expanding the deprecation comment and docs to
show exact Flex alternatives and examples; reference the Box and Flex component
symbols when making these changes.

---

Nitpick comments:
In `@apps/www/src/content/docs/`(overview)/index.mdx:
- Line 24: Remove Box from the components table is fine; add a short migration
note telling users how to replace Box with Flex: update the Components section
in the same MDX (index.mdx) to include a brief callout explaining that Box is
deprecated, suggest using the Flex component API (referencing Flex) with a small
example description of how common Box props map to Flex props, and link to a new
or existing migration guide page (create a new migration docs page if none
exists) to cover code snippets and edge cases; ensure the callout references the
deprecation in packages/raystack/components/box/box.tsx and uses the same
wording for consistency.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ce20803d-37dc-48cb-817b-b8e654795e12

📥 Commits

Reviewing files that changed from the base of the PR and between 0a939c3 and b475326.

📒 Files selected for processing (7)
  • apps/www/src/content/docs/(overview)/index.mdx
  • packages/raystack/components/box/box.tsx
  • packages/raystack/components/button/button.module.css
  • packages/raystack/components/callout/callout.module.css
  • packages/raystack/components/empty-state/empty-state.module.css
  • packages/raystack/components/filter-chip/filter-chip.module.css
  • packages/raystack/components/theme-provider/theme.tsx
💤 Files with no reviewable changes (3)
  • packages/raystack/components/filter-chip/filter-chip.module.css
  • packages/raystack/components/empty-state/empty-state.module.css
  • packages/raystack/components/callout/callout.module.css

@paanSinghCoder paanSinghCoder merged commit 11e124d into main Apr 9, 2026
5 checks passed
@paanSinghCoder paanSinghCoder deleted the refactor/remove-unused-code branch April 9, 2026 06:00
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