Skip to content

feat(examples): add RTL direction toggle to vite example app#3084

Merged
oliverlaz merged 1 commit intomasterfrom
feat/examples-rtl-toggle
Mar 31, 2026
Merged

feat(examples): add RTL direction toggle to vite example app#3084
oliverlaz merged 1 commit intomasterfrom
feat/examples-rtl-toggle

Conversation

@oliverlaz
Copy link
Copy Markdown
Member

@oliverlaz oliverlaz commented Mar 31, 2026

🎯 Goal

Add an RTL direction toggle to the vite example app so we can easily test and demo RTL layouts.

πŸ›  Implementation details

  • Added direction: 'ltr' | 'rtl' to ThemeSettingsState in the app settings store
  • Direction is persisted to localStorage (stream-chat-react:example-direction) and applied via <html dir="..."> attribute
  • Added a sidebar toggle button (bottom section, next to the theme toggle) using a text-direction icon
  • Added a new "General" tab in the settings modal with LTR/RTL button group
  • Fixed SidebarThemeToggle to spread ...theme so toggling dark/light mode doesn't lose the direction value

🎨 UI Changes

No visual changes to the SDK β€” this only affects the vite example app's settings UI.

Add an RTL/LTR direction toggle to the vite example app, accessible
from both the sidebar bottom section and the new General settings tab.
The preference is persisted to localStorage and applied via the
`dir` attribute on the `<html>` element.
@github-actions
Copy link
Copy Markdown

Size Change: 0 B

Total Size: 614 kB

ℹ️ View Unchanged
Filename Size
dist/cjs/audioProcessing.js 1.32 kB
dist/cjs/emojis.js 2.96 kB
dist/cjs/index.js 237 kB
dist/cjs/mp3-encoder.js 1.27 kB
dist/cjs/WithAudioPlayback.js 42.1 kB
dist/css/emoji-replacement.css 456 B
dist/css/index.css 47.3 kB
dist/es/audioProcessing.mjs 1.31 kB
dist/es/emojis.mjs 2.47 kB
dist/es/index.mjs 235 kB
dist/es/mp3-encoder.mjs 756 B
dist/es/WithAudioPlayback.mjs 42 kB

compressed-size-action

@oliverlaz oliverlaz merged commit 887a326 into master Mar 31, 2026
7 checks passed
@oliverlaz oliverlaz deleted the feat/examples-rtl-toggle branch March 31, 2026 13:39
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 79.08%. Comparing base (a82bdcb) to head (1346040).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3084   +/-   ##
=======================================
  Coverage   79.08%   79.08%           
=======================================
  Files         426      426           
  Lines       12155    12155           
  Branches     3919     3919           
=======================================
  Hits         9613     9613           
  Misses       2542     2542           

β˜” 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.

github-actions bot pushed a commit that referenced this pull request Mar 31, 2026
## [14.0.0-beta.5](v14.0.0-beta.4...v14.0.0-beta.5) (2026-03-31)

### Bug Fixes

* assorted UI/UX fixes (Giphy, polls, dialogs, composer, headers) ([#3081](#3081)) ([6c06e04](6c06e04))
* close CSS gaps, fix ChannelList dialog portal, and clean up icons ([#3079](#3079)) ([a47981f](a47981f))
* **Icons:** sync icon catalog with refreshed Line SVGs ([#3080](#3080)) ([9472f7b](9472f7b))
* **MessageList:** set width on message list scroll container ([#3077](#3077)) ([3f09362](3f09362))
* post-review `MessageReactionsDetail` adjustments ([#3082](#3082)) ([a82bdcb](a82bdcb))
* use link icon for link-type attachments ([#3083](#3083)) ([241209e](241209e))

### Features

* **examples:** add RTL direction toggle to vite example app ([#3084](#3084)) ([887a326](887a326))
* **examples:** refresh react tutorial app for v14 ([#3078](#3078)) ([86ada37](86ada37))
@stream-ci-bot
Copy link
Copy Markdown

πŸŽ‰ This PR is included in version 14.0.0-beta.5 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants