Skip to content

chore: bump version, bun config, linting#150

Merged
WINOFFRG merged 5 commits into
mainfrom
chore/linting
May 23, 2026
Merged

chore: bump version, bun config, linting#150
WINOFFRG merged 5 commits into
mainfrom
chore/linting

Conversation

@WINOFFRG
Copy link
Copy Markdown
Owner

@WINOFFRG WINOFFRG commented May 23, 2026

Summary by CodeRabbit

  • Style

    • Updated Tailwind CSS utilities across components for consistency and brevity (e.g., h-4 w-4size-4, text-sm leading-normaltext-sm/normal).
    • Refined typography, spacing, positioning, and border-radius styling throughout the UI.
  • Refactor

    • Updated OG image generation to use default component from fumadocs-ui/og.
    • Adjusted component styling and layout utilities.
  • Documentation

    • Improved code examples and formatting in component documentation files.
  • Chores

    • Added CSS import to documentation stylesheet.

Review Change Stack

Copilot AI review requested due to automatic review settings May 23, 2026 19:49
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 23, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • .prettierignore is excluded by none and included by none
  • apps/www/next-env.d.ts is excluded by none and included by none

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: cda2fe8a-b9ff-46a8-8852-dfd09e0c74b9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This PR modernizes Tailwind CSS utilities across the application and refactors the OG image generation route. Changes include converting leading-* to slash-based text sizing, replacing h-* w-* with size-* shorthand, simplifying positioning utilities, and switching from a custom OG helper to fumadocs-ui's DefaultImage component. Documentation examples are updated to reflect current API patterns.

Changes

Tailwind Modernization & OG Route Refactor

Layer / File(s) Summary
OG image route refactoring
apps/www/app/og/docs/[...slug]/route.tsx
Route switches from custom mono OG helper to fumadocs-ui's DefaultImage component. Imports updated, generateStaticParams adds lang field, GET handler uses RouteContext typing, and ImageResponse renders with PROD_BASE_HOST and explicit dimensions.
Home page hero and typography modernization
apps/www/app/(home)/page.tsx
Hero text line-height syntax converts from explicit leading-* classes to slash-based text sizing (text-[28px]/7, md:text-[38px]/11, md:text-[16px]/6).
Component typography modernization (leading to slash-based)
apps/www/components/hero.tsx, apps/www/components/player-container.tsx, apps/www/components/stream-panel/presets-overlay.tsx, apps/www/components/ui/field.tsx, apps/www/components/ui/item.tsx, apps/www/registry/default/ui/error-screen.tsx
Multiple components switch from explicit leading-* to Tailwind slash-based text/line-height shorthand (e.g., text-sm/normal, text-xs/relaxed).
Size shorthand and positioning utility updates
apps/www/components/feature-trail-section.tsx, apps/www/components/header.tsx, apps/www/components/hero-buttons.tsx, apps/www/components/player-container.tsx, apps/www/components/block-viewer.tsx, apps/www/registry/default/blocks/linear-player/components/timeline-slider-control.tsx, apps/www/components/nav-tabs.tsx, apps/www/components/ui/sidebar.tsx
Tailwind sizing utilities modernized: h-* w-* pairs replaced with size-* shorthand, positioning consolidated (e.g., right-0 left-0 to inset-x-0), sidebar components switch to size-full.
Block viewer toolbar and display updates
apps/www/components/block-viewer.tsx
Comprehensive styling refresh: container margins adjusted, resizable handle dividers refined, toolbar separators normalized, device toggle and button icons updated to size-3.5, preview background grid switched to bg-[radial-gradient(...)] form, sidebar icons converted to size-4, resizable handle thumb pseudo-element positioning tweaked.
UI component library styling and selectors
apps/www/components/ui/badge.tsx, apps/www/components/ui/breadcrumb.tsx, apps/www/components/ui/dropdown-menu.tsx, apps/www/components/ui/field.tsx, apps/www/components/ui/item.tsx, apps/www/components/ui/kbd.tsx, apps/www/components/ui/select.tsx, apps/www/components/ui/tabs.tsx, apps/www/components/ui/toggle-group.tsx, apps/www/components/ui/tooltip.tsx
Badge destructive variant reflowed, breadcrumb text-wrapping utility updated, dropdown menu focus styling reformatted with RTL-flip removed from ChevronRightIcon, field and select classes split across lines, item variants reformatted, kbd tooltip selectors converted to in-data-[slot=...] form, tabs and toggle-group classes reorganized, tooltip arrow with updated translate-y expression.
Sidebar component positioning and styling
apps/www/components/blocks/sidebar.tsx, apps/www/components/ui/sidebar.tsx
Blocks sidebar scrollbar utility changed from [scrollbar-width:none] to scrollbar-none and z-index converted to z-15 standard. UI sidebar desktop off-canvas positioning switches to CSS custom property form, SidebarInset and SidebarRail compositions restructured for readability.
Feature component styling updates
apps/www/components/codeblock.tsx, apps/www/components/cloud-search.tsx, apps/www/components/preview-tab-component.tsx, apps/www/registry/default/blocks/linear-player/components/playlist.tsx, apps/www/registry/default/blocks/linear-player/ui/toggle.tsx
Codeblock max-height simplified to fixed 486px, cloud search popover positioning and floating button updated with inset-e- utilities, preview tab border-radius changed to rounded-sm, linear player thumbnail and toggle glass variant classes adjusted.
Documentation examples and stylesheet imports
apps/www/app/docs/docs.css, apps/www/content/docs/components/captions.mdx, apps/www/content/docs/components/error-screen.mdx, apps/www/content/docs/components/fallback-poster.mdx, apps/www/content/docs/components/media.mdx
MDX examples updated: captions and media include proper semicolon formatting, fallback-poster shows FallbackPoster wrapping pattern, error-screen callout text rewrapped; docs CSS adds global stylesheet import.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • WINOFFRG/limeplay#149: Modifies the Blocks sidebar component in the same file with overlapping Tailwind class string changes.
  • WINOFFRG/limeplay#121: Both PRs update the OG docs route handler and static params generation logic for metadata/slug handling.
  • WINOFFRG/limeplay#144: Both PRs touch the captions documentation file with formatting adjustments in the same example code block.

Poem

🐰 A tail of Tailwind's graceful dance,
Where leading meets the slash's glance,
Size shorthand hops with elegant stride,
OG images bloom with UI pride,
Modernization's gentle touch,
Makes the code love TypeScript much!

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title claims to cover version bumping, bun config, and linting, but the changeset is entirely focused on Tailwind CSS styling migrations and documentation formatting with no version changes, bun config modifications, or linting tool configurations present. Update the title to accurately reflect the actual changes, such as 'refactor: migrate Tailwind classes to modern syntax' or 'chore: update Tailwind CSS class formatting across components'.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/linting

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

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the repo’s Bun/Turbo-driven developer workflow by moving linting to the apps/www workspace, adding a Bun install policy (bunfig.toml), refreshing dependencies/lockfile, and applying widespread Tailwind v4-style class refactors across the docs site and registry UI.

Changes:

  • Switch lint scripts to run within apps/www, adjust ESLint configs (including re-enabling better-tailwindcss in apps/www).
  • Add bunfig.toml with minimumReleaseAge policy and update bun.lock with dependency bumps.
  • Apply formatting/refactor changes across many UI components and docs (Tailwind utility updates, minor layout tweaks).

Reviewed changes

Copilot reviewed 41 out of 43 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
package.json Moves root linting to apps/www via Bun filters; trims root devDependencies; bumps Prettier.
eslint.config.mjs Removes better-tailwindcss from the root ESLint base config.
bunfig.toml Adds Bun install policy (minimumReleaseAge + excludes).
bun.lock Updates lockfile to reflect dependency bumps and workspace devDependency relocation.
apps/www/scripts/registry-dev.mts Updates usage docs to Bun-based invocation for the registry pipeline script.
apps/www/registry/default/ui/error-screen.tsx Tailwind class refactor (text-xs/relaxed style).
apps/www/registry/default/blocks/linear-player/ui/toggle.tsx Tailwind class wrapping refactor for state styles.
apps/www/registry/default/blocks/linear-player/components/timeline-slider-control.tsx Tailwind utility refactor (size-2 usage).
apps/www/registry/default/blocks/linear-player/components/playlist.tsx Adjusts thumbnail rounding class (rounded-sm).
apps/www/package.json Adds lint scripts; switches registry scripts to Bun; bumps many dependencies/devDependencies.
apps/www/next-env.d.ts Updates referenced Next-generated routes types path.
apps/www/eslint.config.mjs Enables better-tailwindcss plugin in apps/www ESLint config.
apps/www/content/docs/components/media.mdx Removes stray blank line in usage snippet.
apps/www/content/docs/components/fallback-poster.mdx Removes stray blank line in usage snippet.
apps/www/content/docs/components/error-screen.mdx Reflows Callout text for readability.
apps/www/content/docs/components/captions.mdx Removes stray blank line in usage snippet.
apps/www/components/ui/tooltip.tsx Tailwind calc formatting change for translate utility.
apps/www/components/ui/toggle-group.tsx Splits long Tailwind lines for readability.
apps/www/components/ui/tabs.tsx Tailwind line wrapping refactor for dark active state styles.
apps/www/components/ui/sidebar.tsx Tailwind refactors + CSS var shorthand for offcanvas positioning and sizing.
apps/www/components/ui/select.tsx Splits long dark-mode Tailwind line into multiple lines.
apps/www/components/ui/navigation-menu.tsx Reorders Tailwind utilities (no behavior change intended).
apps/www/components/ui/kbd.tsx Refactors selector utilities to in-data-* form.
apps/www/components/ui/item.tsx Tailwind refactors including text-sm/normal and text-sm/snug.
apps/www/components/ui/field.tsx Tailwind refactors including text-sm/normal and wrapping long responsive utilities.
apps/www/components/ui/dropdown-menu.tsx Splits long Tailwind lines; refactors focus and destructive styles formatting.
apps/www/components/ui/breadcrumb.tsx Changes wrapping utility for breadcrumb list styling.
apps/www/components/ui/badge.tsx Tailwind indentation/formatting refactor in variant definitions.
apps/www/components/stream-panel/presets-overlay.tsx Tailwind refactor to font-size/line-height shorthand (text-[10px]/4).
apps/www/components/preview-tab-component.tsx Changes code pill rounding to rounded-sm.
apps/www/components/player-container.tsx Tailwind refactors (text-xs/relaxed, size-3).
apps/www/components/nav-tabs.tsx Tailwind refactor for icon sizing utility.
apps/www/components/hero.tsx Tailwind refactor (text-sm/relaxed).
apps/www/components/hero-buttons.tsx Tailwind refactor (size-4).
apps/www/components/header.tsx Uses inset-x-0 instead of separate left/right.
apps/www/components/feature-trail-section.tsx Consolidates sizing utilities to size-[...] and adjusts responsive sizing.
apps/www/components/codeblock.tsx Changes max-height value for the code viewport container.
apps/www/components/cloud-search.tsx Tailwind refactors and logical property changes (inset-e-*, sm:inset-e-2).
apps/www/components/blocks/sidebar.tsx Tailwind refactor for z-index utility.
apps/www/components/block-viewer.tsx Tailwind refactors (spacing, separators, background utilities, aspect ratio utility changes).
apps/www/components/ai/page-actions.tsx Tailwind utility ordering changes for consistency.
apps/www/app/og/docs/[...slug]/route.tsx Switches OG generator to fumadocs-ui/og default generator and updates route typing approach.
apps/www/app/(home)/page.tsx Tailwind refactors using font-size/line-height shorthand (e.g., text-[28px]/7).

Comment on lines +17 to +19
plugins: {
"better-tailwindcss": pluginBetterTailwindcss,
},
Comment thread apps/www/package.json
Comment on lines +11 to +12
"registry:build": "REGISTRY_HOST=https://limeplay.winoffrg.dev bun run ./scripts/registry-dev.mts",
"registry:dev": "REGISTRY_HOST=http://localhost:3000 bun --watch run ./scripts/registry-dev.mts --watch",
Comment on lines +14 to +15
* REGISTRY_HOST=http://localhost:3000 bun --watch run ./scripts/registry-dev.mts --watch
* REGISTRY_HOST=https://limeplay.winoffrg.dev bun run ./scripts/registry-dev.mts
Comment on lines 17 to 20
export async function GET(
_req: Request,
{ params }: { params: Promise<{ slug: string[] }> }
{ params }: RouteContext<"/og/docs/[...slug]">
) {
Copy link
Copy Markdown

@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

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/www/components/ui/dropdown-menu.tsx`:
- Line 309: The submenu chevron (ChevronRightIcon) lost RTL-aware flipping;
restore an RTL-aware class on the ChevronRightIcon element so it points left in
RTL layouts (e.g., replace the current className="ml-auto" with an RTL-aware
variant that keeps right-aligned layout in LTR and flips the icon in RTL, such
as adding rtl:mr-auto rtl:ml-0 and an RTL horizontal flip like rtl:scale-x-[-1]
on ChevronRightIcon).
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3458b71a-54b8-4c1d-8adc-54c5f7340fec

📥 Commits

Reviewing files that changed from the base of the PR and between 3fd5678 and e4ee03d.

⛔ Files ignored due to path filters (6)
  • apps/www/eslint.config.mjs is excluded by none and included by none
  • apps/www/next-env.d.ts is excluded by none and included by none
  • apps/www/package.json is excluded by none and included by none
  • bun.lock is excluded by !**/*.lock and included by none
  • eslint.config.mjs is excluded by none and included by none
  • package.json is excluded by none and included by none
📒 Files selected for processing (4)
  • apps/www/app/docs/docs.css
  • apps/www/components/blocks/sidebar.tsx
  • apps/www/components/cloud-search.tsx
  • apps/www/components/ui/dropdown-menu.tsx

>
{children}
<ChevronRightIcon className="cn-rtl-flip ml-auto" />
<ChevronRightIcon className="ml-auto" />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Restore RTL-aware submenu chevron direction.

Line 309 drops RTL flipping, so submenu affordance points the wrong way in RTL layouts. Please keep RTL-aware flipping on this icon.

Suggested fix
-      <ChevronRightIcon className="ml-auto" />
+      <ChevronRightIcon className="cn-rtl-flip ml-auto" />
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<ChevronRightIcon className="ml-auto" />
<ChevronRightIcon className="cn-rtl-flip ml-auto" />
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/www/components/ui/dropdown-menu.tsx` at line 309, The submenu chevron
(ChevronRightIcon) lost RTL-aware flipping; restore an RTL-aware class on the
ChevronRightIcon element so it points left in RTL layouts (e.g., replace the
current className="ml-auto" with an RTL-aware variant that keeps right-aligned
layout in LTR and flips the icon in RTL, such as adding rtl:mr-auto rtl:ml-0 and
an RTL horizontal flip like rtl:scale-x-[-1] on ChevronRightIcon).

@WINOFFRG WINOFFRG merged commit 3594e6a into main May 23, 2026
6 checks passed
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