Skip to content

Conversation

@simonguo
Copy link
Member

@simonguo simonguo commented Dec 9, 2025

This pull request updates and refines the SVG thumbnails for various UI components in the documentation, focusing on improving visual consistency, clarity, and alignment with the design system. It also adds thumbnails for new hooks and components. The changes are grouped into improvements to component mapping and significant visual updates to the thumbnails themselves.

Component and Hook Thumbnail Mapping Updates:

  • Added SVG thumbnail mappings for the segmented-control component and the use-dialog and use-toaster hooks in ComponentThumbnail.tsx. [1] [2]

Visual and Structural Updates to Thumbnails:

Buttons:

  • Updated the Button thumbnail to a more abstract representation, removing the text label and using rectangles for a cleaner look.
  • Changed the IconButton thumbnail from a rounded rectangle to a circle, improving visual consistency, and added strokeLinejoin="round" for better rendering. [1] [2]
  • Redesigned the ButtonGroup thumbnail to use paths for a more accurate depiction of grouped buttons and improved border rendering.

Data Display Components:

  • Refactored the thumbnails for Accordion, Carousel, List, Timeline, Panel, Card, Stat, and Tag to use consistent sizing, spacing, and opacity. These changes enhance readability, align with the design system, and provide a more modern appearance. [1] [2] [3] [4] [5] [6] [7] [8]

Default Thumbnail:

  • Updated the default thumbnail to use a dashed border and adjusted its size and fill for consistency with other thumbnails.

@simonguo simonguo requested a review from Copilot December 9, 2025 08:41
@codesandbox
Copy link

codesandbox bot commented Dec 9, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 9, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

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 pull request comprehensively redesigns SVG thumbnails across the documentation to achieve better visual consistency, improved clarity, and stronger alignment with the design system. The changes span 16 files and introduce thumbnails for new components (segmented-control, use-dialog, use-toaster) while modernizing existing ones through simplified geometries, consistent sizing, updated color variables, and unified stroke widths.

Key Changes:

  • Added thumbnail mappings for segmented-control, use-dialog, and use-toaster components
  • Standardized thumbnail dimensions, stroke widths (primarily to 2px), and border radius values
  • Replaced text elements with abstract shapes (rectangles with rounded corners) for cleaner, more maintainable designs
  • Updated color references to use design system variables consistently
  • Simplified complex SVG paths to improve rendering performance and maintainability

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/components/overview/ComponentThumbnail.tsx Added mappings for three new components: segmented-control, use-dialog, and use-toaster
docs/components/thumbnails/typography.tsx Updated comments to English, replaced text elements with abstract rectangles, standardized sizing
docs/components/thumbnails/status.tsx Improved visual consistency with updated dimensions, stroke widths, and simplified Badge design
docs/components/thumbnails/overlays.tsx Dramatically simplified overlay thumbnails (Drawer, Modal, Popover, Tooltip, Whisper) with cleaner designs
docs/components/thumbnails/navigation.tsx Simplified all navigation component thumbnails with consistent styling and abstract representations
docs/components/thumbnails/misc.tsx Minor opacity and stroke width adjustments for Animation, CustomProvider, DOMHelper, and Hooks
docs/components/thumbnails/media.tsx Updated Avatar, Icon, and Image thumbnails with cleaner layouts and better proportions
docs/components/thumbnails/layout.tsx Simplified layout component thumbnails (Box, Center, Divider, Frame, Grid, Stack) with consistent fills and opacity
docs/components/thumbnails/form.tsx Streamlined form component designs with consistent input field representations
docs/components/thumbnails/disclosure.tsx Simplified Accordion, Tabs, and VisuallyHidden with cleaner chevron indicators
docs/components/thumbnails/default.tsx Updated default thumbnail with dashed border and removed fill
docs/components/thumbnails/dateTime.tsx Massively simplified date/time picker thumbnails, reducing complexity by ~70%
docs/components/thumbnails/dataPickers.tsx Simplified all data picker thumbnails with consistent dropdown patterns and cleaner checkbox representations
docs/components/thumbnails/dataGrid.tsx Streamlined table thumbnails with cleaner grid representations and simplified tree structures
docs/components/thumbnails/dataEntry.tsx Added new SegmentedControl component; simplified all input components with consistent styling
docs/components/thumbnails/buttons.tsx Removed text labels from buttons, converted IconButton to circle, redesigned ButtonGroup with path-based approach

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vercel
Copy link

vercel bot commented Dec 9, 2025

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

Project Deployment Preview Comments Updated (UTC)
rsuite-main Ready Ready Preview Comment Dec 9, 2025 8:47am
rsuite-storybook Ready Ready Preview Comment Dec 9, 2025 8:47am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
rsuite-v5 Ignored Ignored Dec 9, 2025 8:47am

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.47%. Comparing base (0832f36) to head (e2e41c3).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4457   +/-   ##
=======================================
  Coverage   94.47%   94.47%           
=======================================
  Files         559      559           
  Lines       13740    13740           
  Branches     4081     4081           
=======================================
  Hits        12981    12981           
  Misses        687      687           
  Partials       72       72           
Flag Coverage Δ
chromium 94.47% <ø> (ø)
firefox 94.47% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@simonguo simonguo merged commit 170ad4f into main Dec 9, 2025
23 checks passed
@simonguo simonguo deleted the docs/update-thumbnails branch December 9, 2025 08:48
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.

1 participant