Skip to content

Conversation

@ariflogs
Copy link
Member

@ariflogs ariflogs commented Apr 30, 2025

  • dark mode
  • minor fixes

Summary by CodeRabbit

  • New Features

    • Introduced a dark mode toggle in the top navigation bar, allowing users to switch between light and dark themes.
    • Added an icon-style button example and documentation.
    • Added a new "progress" component to the registry.
  • Enhancements

    • Updated overall color palette and theme variables, improving dark mode appearance and component consistency.
    • Refined button, badge, checkbox, and card styles for smoother transitions and improved color theming.
    • Updated navigation and sidebar backgrounds to use theme-based colors.
    • Improved tooltip and popover component APIs for more intuitive usage.
  • Bug Fixes

    • Removed hardcoded black borders and colors from multiple components, ensuring better theme compatibility.
  • Documentation

    • Simplified and updated documentation for Button, Popover, Progress, Sonner, and Tooltip components.
    • Added new and consolidated example showcases for Sonner and Button components.
    • Included additional resource links in Tooltip and Sonner documentation.
  • Chores

    • Updated Docker image tag to 1.2.0 in deployment workflow.
    • Reformatted JSON registry for readability.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 30, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update implements a comprehensive visual and structural refresh of the application's UI components, documentation, and configuration. The primary focus is on enhancing theme support, particularly dark mode, by introducing new CSS variables, adjusting color palettes, and standardizing component color usage to rely on theme variables instead of hardcoded values. The navigation and layout components now support dynamic theme switching, including a user-accessible dark mode toggle. Component APIs for Popover and Tooltip have been refactored to use namespaced exports. Documentation and example showcases have been updated to align with these changes, with new examples added and outdated ones removed. The deployment workflow is updated to use a new Docker image version.

Changes

Files / Groups Change Summary
.github/workflows/deploy.yml Updated Docker image tag from 1.1.10 to 1.2.0 in build and push steps.
app/global.css Introduced new CSS variables for theme support, adjusted dark mode palette, updated color assignments, and removed unused variables.
app/layout.tsx Added inline script for theme detection and switching; updated <body> classes for theme-based backgrounds and text.
components/SideNav.tsx, components/TopNav.tsx Updated navigation components for theme-based backgrounds; TopNav now includes a dark mode toggle and uses React client-side state.
components/retroui/* (Accordion, Alert, Avatar, Badge, BasicCard, Button, Card, Checkbox, Dialog, Input, Menu, Popover, Progress, Sonner, Tooltip) Standardized color usage to theme variables; removed hardcoded black/white colors; refactored Popover and Tooltip to use namespaced exports; updated button and badge variants; adjusted shadows and borders.
app/(docs)/docs/[[...slug]]/page.tsx Added text-black class to links container for explicit text color.
config/components.ts Added new button icon example, removed/replaced popover and sonner example entries.
content/docs/components/button.mdx, content/docs/components/sonner.mdx Updated last updated dates; added/renamed example showcases; simplified Sonner examples.
content/docs/components/popover.mdx Removed primary/primary-shadowed popover examples.
content/docs/components/progress.mdx Removed commented-out alternative installation/usage instructions.
content/docs/components/tooltip.mdx Added links section with source and API references.
preview/components/* (accordion, button, input, popover, sonner, tooltip) Updated examples to use new component APIs and theming; added new examples; removed outdated popover and sonner examples.
registry.json Reformatted arrays for readability; added new progress component entry.
preview/components/popover-style-primary.tsx, preview/components/popover-style-primary-shadow.tsx, preview/components/sonner-style-warning.tsx Deleted outdated example components.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant TopNav
    participant LocalStorage
    participant DocumentRoot

    User->>TopNav: Clicks dark mode toggle
    TopNav->>LocalStorage: Read current 'theme'
    TopNav->>DocumentRoot: Add/remove 'dark' class
    TopNav->>LocalStorage: Update 'theme' value
    TopNav-->>User: UI updates to reflect theme
Loading
sequenceDiagram
    participant App
    participant Popover
    participant Popover.Trigger
    participant Popover.Content

    App->>Popover: Render Popover component
    Popover->>Popover.Trigger: Render trigger button
    User->>Popover.Trigger: Click trigger
    Popover.Trigger->>Popover.Content: Show popover content
Loading

Possibly related PRs

  • Logging-Stuff/RetroUI#44: Updates Docker image tag version in the same deploy workflow, indicating related changes to deployment versioning.
  • Logging-Stuff/RetroUI#31: Modifies Docker image version in the workflow, similar in scope to the deployment changes here.
  • Logging-Stuff/RetroUI#46: Updates Docker image tag in the deploy workflow, showing a pattern of version bump PRs for deployment.

Poem

In the garden of themes where colors bloom bright,
The rabbit hops swiftly from dark into light.
With toggles and variables, the palette anew,
The nav and the buttons now change with the view.
Out with the old, in with the new flair—
This bunny’s UI magic is floating on air!
🐇✨


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 8f22b21 and 77a7c2e.

📒 Files selected for processing (41)
  • .github/workflows/deploy.yml (1 hunks)
  • app/(docs)/docs/[[...slug]]/page.tsx (1 hunks)
  • app/global.css (3 hunks)
  • app/layout.tsx (1 hunks)
  • components/SideNav.tsx (2 hunks)
  • components/TopNav.tsx (3 hunks)
  • components/retroui/Accordion.tsx (2 hunks)
  • components/retroui/Alert.tsx (1 hunks)
  • components/retroui/Avatar.tsx (1 hunks)
  • components/retroui/Badge.tsx (1 hunks)
  • components/retroui/BasicCard.tsx (1 hunks)
  • components/retroui/Button.tsx (1 hunks)
  • components/retroui/Card.tsx (1 hunks)
  • components/retroui/Checkbox.tsx (1 hunks)
  • components/retroui/Dialog.tsx (3 hunks)
  • components/retroui/Input.tsx (1 hunks)
  • components/retroui/Menu.tsx (2 hunks)
  • components/retroui/Popover.tsx (2 hunks)
  • components/retroui/Progress.tsx (1 hunks)
  • components/retroui/Sonner.tsx (1 hunks)
  • components/retroui/Tooltip.tsx (2 hunks)
  • config/components.ts (2 hunks)
  • content/docs/components/button.mdx (2 hunks)
  • content/docs/components/popover.mdx (0 hunks)
  • content/docs/components/progress.mdx (1 hunks)
  • content/docs/components/sonner.mdx (2 hunks)
  • content/docs/components/tooltip.mdx (1 hunks)
  • preview/components/accordion-style-default.tsx (1 hunks)
  • preview/components/button-style-icon.tsx (1 hunks)
  • preview/components/input-style-default.tsx (1 hunks)
  • preview/components/popover-style-default-shadow.tsx (2 hunks)
  • preview/components/popover-style-default.tsx (2 hunks)
  • preview/components/popover-style-primary-shadow.tsx (0 hunks)
  • preview/components/popover-style-primary.tsx (0 hunks)
  • preview/components/sonner-style-colored-status.tsx (1 hunks)
  • preview/components/sonner-style-status.tsx (1 hunks)
  • preview/components/sonner-style-warning.tsx (0 hunks)
  • preview/components/tooltip-style-default.tsx (1 hunks)
  • preview/components/tooltip-style-primary.tsx (1 hunks)
  • preview/components/tooltip-style-solid.tsx (1 hunks)
  • registry.json (82 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

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.
    • Generate unit testing code for this file.
    • 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. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

Documentation and Community

  • 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.

@ariflogs ariflogs merged commit 330884f into main Apr 30, 2025
1 check was pending
This was referenced Sep 5, 2025
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