Skip to content

Conversation

@xsahil03x
Copy link
Member

No description provided.

renefloor and others added 2 commits January 15, 2026 17:34
* poc of button and gallery

* chore: fix analysis issues

* chore: format

* chore: format

* add temporary branch for PR title

---------

Co-authored-by: Sahil Kumar <sahil@getstream.io>
@coderabbitai
Copy link

coderabbitai bot commented Jan 16, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

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

  • 🔍 Trigger a full review

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.

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 21.15385% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.96%. Comparing base (81fa8bd) to head (92c6863).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...s/stream_core/lib/src/errors/stream_api_error.dart 0.00% 9 Missing ⚠️
.../client/reconnect/connection_recovery_handler.dart 0.00% 9 Missing ⚠️
...lib/src/ws/client/web_socket_connection_state.dart 0.00% 7 Missing ⚠️
packages/stream_core/lib/src/utils/result.dart 0.00% 4 Missing ⚠️
...re/lib/src/ws/client/reconnect/retry_strategy.dart 0.00% 3 Missing ⚠️
...b/src/attachment/uploader/attachment_uploader.dart 0.00% 2 Missing ⚠️
packages/stream_core/lib/src/user/user.dart 0.00% 2 Missing ⚠️
...re/lib/src/ws/client/stream_web_socket_client.dart 0.00% 2 Missing ⚠️
...stream_core/lib/src/api/stream_core_dio_error.dart 0.00% 1 Missing ⚠️
...ckages/stream_core/lib/src/user/token_manager.dart 0.00% 1 Missing ⚠️
... and 1 more

❌ Your patch check has failed because the patch coverage (21.15%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
- Coverage   40.39%   39.96%   -0.44%     
==========================================
  Files          53       53              
  Lines        1057     1041      -16     
==========================================
- Hits          427      416      -11     
+ Misses        630      625       -5     

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

xsahil03x and others added 5 commits January 22, 2026 10:15
…31)

* feat: Introduce Stream Design System foundations and gallery app

This commit introduces the foundational elements of the new Stream Design System and a comprehensive gallery application (Widgetbook) for showcasing and customizing components.

**Core Package (`stream_core_flutter`):**

*   **Design Tokens**: Added foundational design tokens for colors, spacing, radius, typography, and box shadows. These tokens are organized into primitive and semantic layers.
    *   `StreamColors`: Defines the primitive color palette.
    *   `StreamColorScheme`: Provides semantic color roles (e.g., `accentPrimary`, `textSecondary`).
    *   `StreamTypography`, `StreamTextTheme`: Defines font primitives and semantic text styles.
    *   `StreamSpacing`, `StreamRadius`, `StreamBoxShadow`: Adds tokens for layout and elevation.
*   **`StreamTheme`**: Implemented a new `ThemeExtension` to aggregate all design tokens and component themes, enabling centralized theming.
*   **New Components**: Added `StreamAvatar`, `StreamAvatarStack`, and `StreamOnlineIndicator`.
*   **Theming Infrastructure**: Added `theme_extensions_builder` to auto-generate `copyWith`, `lerp`, and `==`/`hashCode` for theme classes.

**Design System Gallery (`design_system_gallery`):**

*   **Gallery App**: Replaced the basic Widgetbook setup with a new, fully-featured gallery application (`StreamDesignSystemGallery`).
*   **Theme Studio**: Added a "Theme Studio" panel for real-time customization of all `StreamColorScheme` properties.
*   **Enhanced Previews**:
    *   Added a toolbar with controls for device selection (`DeviceFrame`), text scaling, and light/dark mode toggles.
    *   Created a `PreviewWrapper` to apply theme, device frame, and text scale to all use cases.
*   **New Use Cases**:
    *   Added comprehensive use cases for new components (`StreamAvatar`, `StreamAvatarStack`, `StreamOnlineIndicator`).
    *   Added showcases for semantic tokens (`Typography`, `Elevations`).
    *   Improved `StreamButton` use cases with more variants and real-world examples.
*   **Agent Guide**: Added `AGENTS.md`, a guide for AI agents on contributing to the gallery.

* chore: format code

* refactor: Remove StreamButtonTheme

The `StreamButtonTheme` and its related data classes have been removed from the core theme structure. This simplifies the theme by removing the button-specific theming.

Additionally, the `lerp` function for `StreamBrandColor` has been adjusted, and `StreamAvatarColorPair` is now generated using `themeGen`.

* refactor: Remove StreamButtonTheme

The `StreamButtonTheme` and its related data classes have been removed from the core theme structure. This simplifies the theme by removing the button-specific theming.

Additionally, the `lerp` function for `StreamBrandColor` has been adjusted, and `StreamAvatarColorPair` is now generated using `themeGen`.

* chore: update code to use Dart 3 shorthand syntax
* chore(repo): Add workflow to publish design system gallery (#32)

* Add workflow to publish design system gallery

* remove specific flutter version

* don't fetch remote branch
* add swatch from single color

* remove print statement

* remove unused import
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.

3 participants