Skip to content

Conversation

@ameer2468
Copy link
Contributor

@ameer2468 ameer2468 commented Aug 21, 2025

This PR:

  • Export to buttons occupy the full width of the container.
  • Sign out/in buttons had weird blue hover colors.
Screenshot 2025-08-21 at 15 20 49

Summary by CodeRabbit

  • Style
    • Sign-in button now consistently uses primary styling when idle; pending state remains secondary.
    • Button hover colors refined; “white” variant adopts a darker theme for improved contrast.
    • Export dialog polish: title updated to “Export Cap,” icons slightly smaller, and Export To options are full-width, non-wrapping buttons (File, Clipboard, Link) for better readability and touch targets.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 21, 2025

Walkthrough

UI adjustments across desktop app and shared Button component: SignInButton now always uses primary variant when idle; ExportDialog updates icon sizes, title text, and layout classes; UI Solid Button variants tweak hover colors and overhaul “white” styling. No API/signature changes or control-flow modifications.

Changes

Cohort / File(s) Summary of Changes
Desktop Sign-In Button
apps/desktop/src/components/SignInButton.tsx
Non-pending Button variant forced to "primary" (ignores passed-in variant); pending remains "secondary". No other logic changes; signature unchanged.
Desktop Export Dialog UI
apps/desktop/src/routes/editor/ExportDialog.tsx
Icon sizes reduced to 3.5; idle action icons updated to 3.5; dialog title changed to "Export Cap"; option buttons now full-width with no-wrap layout class. No API changes.
UI Solid Button Styles
packages/ui-solid/src/Button.tsx
Primary variant hover color updated (enabled hover uses gray-11 instead of blue-8). White variant restyled to dark theme: background/text/hover adjusted, disabled states retained; no exports changed.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A hop, a tap, a stylish glow,
Buttons shift from blue to snow.
Exports trimmed, icons light,
“Export Cap” by moonlit night.
I twitch my nose—UI feels right,
Then bound away—ship day delight! 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ui-improvements

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@ameer2468 ameer2468 merged commit 8277982 into main Aug 21, 2025
14 of 15 checks passed
@ameer2468 ameer2468 deleted the ui-improvements branch August 21, 2025 12:25
Copy link
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: 0

🧹 Nitpick comments (5)
packages/ui-solid/src/Button.tsx (1)

14-17: Clean up duplicate hover and conflicting disabled classes in primary variant

The string sets both hover:bg-gray-11 and enabled:hover:bg-gray-11, and also sets disabled:bg twice (gray-6 and gray-4). The latter wins due to order, but this is confusing and brittle. Prefer a single enabled:hover and a single disabled:bg for clarity and predictability.

- "bg-gray-12 text-gray-1 hover:bg-gray-11 enabled:hover:bg-gray-11 disabled:bg-gray-6 disabled:text-gray-9 outline-blue-300 disabled:bg-gray-4 disabled:dark:text-gray-9",
+ "bg-gray-12 text-gray-1 enabled:hover:bg-gray-11 disabled:bg-gray-6 disabled:text-gray-9 outline-blue-300 disabled:dark:text-gray-9",
apps/desktop/src/routes/editor/ExportDialog.tsx (2)

171-175: Let icons inherit text color instead of hard-coding text-gray-1

These icons always render as text-gray-1. Since they sit inside a Button whose text color already matches the variant, letting them inherit currentColor reduces future coupling to palette changes.

- file: <IconCapFile class="text-gray-1 size-3.5" />,
- clipboard: <IconCapCopy class="text-gray-1 size-3.5" />,
- link: <IconCapLink class="text-gray-1 size-3.5" />,
+ file: <IconCapFile class="size-3.5" />,
+ clipboard: <IconCapCopy class="size-3.5" />,
+ link: <IconCapLink class="size-3.5" />,

483-485: Make full-width option buttons resilient to overflow

text-nowrap prevents wrapping, but long labels could overflow. Add min-w-0 on the Button and truncate the label for safe ellipsis within flexible layouts.

- class={cx(
-   "flex flex-1 gap-2 items-center text-nowrap",
-   settings.exportTo === option.value && selectedStyle,
- )}
+ class={cx(
+   "flex flex-1 gap-2 items-center text-nowrap min-w-0",
+   settings.exportTo === option.value && selectedStyle,
+ )}

Additionally (outside these lines), wrap the label:

<Button ...>
  {option.icon}
  <span class="truncate">{option.label}</span>
</Button>
apps/desktop/src/components/SignInButton.tsx (2)

12-17: If variant is intentionally controlled, omit it from the public props

The component now overrides any caller-provided variant. To avoid a misleading API, remove variant from the accepted props type. This documents the opinionated styling and prevents accidental no-op props.

-export function SignInButton(
-  props: Omit<ComponentProps<typeof Button>, "onClick">,
-) {
+export function SignInButton(
+  props: Omit<ComponentProps<typeof Button>, "onClick" | "variant">,
+) {

12-27: Optional: expose pending state to assistive tech

Consider adding aria-busy to communicate the pending state to screen readers.

-    <Button
+    <Button
+      aria-busy={signIn.isPending ? "true" : "false"}
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d4ec8d8 and 9b03cea.

📒 Files selected for processing (3)
  • apps/desktop/src/components/SignInButton.tsx (1 hunks)
  • apps/desktop/src/routes/editor/ExportDialog.tsx (4 hunks)
  • packages/ui-solid/src/Button.tsx (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Build Desktop (x86_64-pc-windows-msvc, windows-latest)
  • GitHub Check: Build Desktop (aarch64-apple-darwin, macos-latest)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (rust)
🔇 Additional comments (3)
packages/ui-solid/src/Button.tsx (1)

20-24: Audit: ∼17 usages of variant="white" detected — renaming will be a breaking change, proceed with caution

The “white” variant is now a dark-style button (bg-gray-12/text-gray-1), which conflicts with its name and may confuse downstream consumers. Our search found approximately 17 call sites across both web and desktop apps, including components like CommercialGetStarted, SpeedController, TrimmingTool, AboutPage, BlogTemplate, HomePage/Header, MediaFormatConverter, FeaturesPage, recordings-overlay, several Transcript tabs, ShareHeader, CapCard, CapCardButtons, and InviteAccept.

• Renaming this variant (e.g. to “dark” or “neutral”) will require updating every occurrence above.
• To avoid breaking changes, consider introducing a new key (e.g. variant="neutral") and aliasing white to it within Button.tsx (deprecating white over time).
• Independently, ensure disabled buttons never receive hover styles by using enabled:hover instead of plain hover.

Suggested minimal hover fix in packages/ui-solid/src/Button.tsx:

- "bg-gray-12 hover:bg-gray-11 text-gray-1 dark:disabled:bg-gray-300 dark:disabled:text-gray-8 dark:text-gray-1 disabled:bg-gray-6 disabled:text-gray-9 outline-blue-300",
+ "bg-gray-12 enabled:hover:bg-gray-11 text-gray-1 dark:disabled:bg-gray-300 dark:disabled:text-gray-8 dark:text-gray-1 disabled:bg-gray-6 disabled:text-gray-9 outline-blue-300",

Please verify all variant="white" usages and decide on a deprecation/aliasing strategy to minimize downstream impact.

apps/desktop/src/routes/editor/ExportDialog.tsx (2)

375-375: Dialog title update looks good

“Export Cap” clarifies scope and matches the product name.


72-88: size-3.5 utility is already supported—no changes needed

I ran the verification script and confirmed:

  • Tailwind CSS v3.x is in use across all packages (apps/web → ^3, packages/ui → ^3.3.3, packages/ui-solid → ^3.4.10).
  • The 3.5 spacing token is already being applied in dozens of existing icon usages (both in web and desktop code).
  • The desktop and web Tailwind configs extend a shared baseConfig, which includes the spacing[‘3.5’] value.

Since size-3.5 is a widely-used, recognized class and hasn’t been dropped at build time, you can leave it as-is.

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