Skip to content

feat(ui): Move draftlist from sdk to sample app.#2637

Merged
xsahil03x merged 6 commits into
v10.0.0from
feat/move-draft-list-to-sample-app
May 12, 2026
Merged

feat(ui): Move draftlist from sdk to sample app.#2637
xsahil03x merged 6 commits into
v10.0.0from
feat/move-draft-list-to-sample-app

Conversation

@renefloor
Copy link
Copy Markdown
Contributor

@renefloor renefloor commented May 1, 2026

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

Draft list was not supposed to be part of the sdk, so this is moved to the sample app.

Summary by CodeRabbit

  • Breaking Changes

    • Removed draft list widgets and theming from the main library. Users should migrate to the sample app implementation, which provides updated draft list components with improved UI and custom theming.
  • Chores

    • Updated sample app with custom draft list implementations and simplified loading/error state UI.

@renefloor renefloor changed the title Move draftlist from sdk to sample app. feat(ui): Move draftlist from sdk to sample app. May 1, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 1, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dd7814bf-617f-4b98-8cf6-d166260baa9f

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/move-draft-list-to-sample-app

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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
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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@sample_app/lib/widgets/stream_draft_list_view.dart`:
- Around line 274-283: The _LoadMoreError widget currently hardcodes
Colors.white for the Text and Icon causing poor contrast in light themes; update
the build so both the Text(error) and Icon use theme-based foreground colors
instead (e.g., replace Colors.white with Theme.of(context).colorScheme.onSurface
or IconTheme.of(context).color) so the row respects current Theme brightness and
accessibility; ensure you access Theme.of(context) inside the widget's build
method and apply it to the TextStyle and Icon color.
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 89458776-9b99-4084-9282-279707ad4860

📥 Commits

Reviewing files that changed from the base of the PR and between 45dde33 and c333b4e.

⛔ Files ignored due to path filters (2)
  • packages/stream_chat_flutter/test/src/scroll_view/draft_scroll_view/goldens/ci/stream_draft_list_tile_dark.png is excluded by !**/*.png
  • packages/stream_chat_flutter/test/src/scroll_view/draft_scroll_view/goldens/ci/stream_draft_list_tile_light.png is excluded by !**/*.png
📒 Files selected for processing (12)
  • docs/docs_screenshots/test/draft_list/draft_list_view_test.dart
  • packages/stream_chat_flutter/CHANGELOG.md
  • packages/stream_chat_flutter/lib/src/theme/draft_list_tile_theme.dart
  • packages/stream_chat_flutter/lib/src/theme/stream_chat_theme.dart
  • packages/stream_chat_flutter/lib/src/theme/themes.dart
  • packages/stream_chat_flutter/lib/stream_chat_flutter.dart
  • packages/stream_chat_flutter/test/src/scroll_view/draft_scroll_view/stream_draft_list_tile_test.dart
  • packages/stream_chat_flutter/test/src/theme/draft_list_tile_theme_test.dart
  • sample_app/lib/pages/draft_list_page.dart
  • sample_app/lib/widgets/stream_draft_list_tile.dart
  • sample_app/lib/widgets/stream_draft_list_tile_theme.dart
  • sample_app/lib/widgets/stream_draft_list_view.dart
💤 Files with no reviewable changes (7)
  • packages/stream_chat_flutter/lib/src/theme/themes.dart
  • packages/stream_chat_flutter/test/src/theme/draft_list_tile_theme_test.dart
  • packages/stream_chat_flutter/lib/stream_chat_flutter.dart
  • docs/docs_screenshots/test/draft_list/draft_list_view_test.dart
  • packages/stream_chat_flutter/test/src/scroll_view/draft_scroll_view/stream_draft_list_tile_test.dart
  • packages/stream_chat_flutter/lib/src/theme/draft_list_tile_theme.dart
  • packages/stream_chat_flutter/lib/src/theme/stream_chat_theme.dart

Comment thread sample_app/lib/widgets/stream_draft_list_view.dart Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.91%. Comparing base (4a22a44) to head (b752986).

Additional details and impacted files
@@             Coverage Diff             @@
##           v10.0.0    #2637      +/-   ##
===========================================
+ Coverage    66.88%   66.91%   +0.02%     
===========================================
  Files          410      408       -2     
  Lines        24887    24731     -156     
===========================================
- Hits         16646    16548      -98     
+ Misses        8241     8183      -58     

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

renefloor and others added 5 commits May 6, 2026 09:50
…st-to-sample-app

# Conflicts:
#	sample_app/lib/widgets/stream_draft_list_view.dart
…t list

Export StreamScrollViewLoadMoreError and StreamScrollViewLoadMoreIndicator
from the public API (their EmptyWidget/ErrorWidget/LoadingWidget siblings
were already exported). The sample app's draft list view now uses the
public API for these widgets and the rest of its empty/error/loading
builders, and drops the boilerplate SDK-style customization hooks it
didn't need.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Export StreamTimestamp along with its DateFormatter typedef and the
formatDate / formatRecentDateTime helpers from the public API, then use
StreamTimestamp in the sample app's StreamDraftListTile instead of a
hand-rolled Jiffy formatter. The default formatter also adds a
"Yesterday" case the inline version was missing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@xsahil03x xsahil03x merged commit 76a4adf into v10.0.0 May 12, 2026
9 checks passed
@xsahil03x xsahil03x deleted the feat/move-draft-list-to-sample-app branch May 12, 2026 17:18
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