Skip to content

fix: adjust message UI for network error when sending a message#3042

Merged
MartinCupela merged 3 commits intomasterfrom
fix/error-network-message-error
Mar 24, 2026
Merged

fix: adjust message UI for network error when sending a message#3042
MartinCupela merged 3 commits intomasterfrom
fix/error-network-message-error

Conversation

@MartinCupela
Copy link
Contributor

@MartinCupela MartinCupela commented Mar 23, 2026

BREAKING CHANGE: remove MessageErrorText component
BREAKING CHANGE: re-throw error from handleDelete in MessageContext

Closes REACT-909

🎯 Goal

Make sure the Message UI does not render MessageErrorText component as it is not needed anymore.
Make sure Delete message and Edit Message options are available in MessageActions menu when message error is caused by ERR_NETWORK error.

@github-actions
Copy link

github-actions bot commented Mar 23, 2026

Size Change: -430 B (-0.1%)

Total Size: 441 kB

Filename Size Change
./dist/cjs/emojis.js 2.96 kB -4 B (-0.13%)
./dist/cjs/index.js 236 kB -842 B (-0.36%)
./dist/css/index.css 46.9 kB -28 B (-0.06%)
./dist/WithAudioPlayback-CuaWloLg.js 88.7 kB +88.7 kB (new file) πŸ†•
./dist/WithAudioPlayback-TERIQpZ6.js 0 B -88.3 kB (removed) πŸ†
ℹ️ View Unchanged
Filename Size
./dist/audioProcessing-BbOs2wMd.js 1.32 kB
./dist/cjs/mp3-encoder.js 1.27 kB
./dist/css/v2/emoji-mart.css 1.84 kB
./dist/css/v2/emoji-replacement.css 300 B
./dist/css/v2/index.css 39.4 kB
./dist/css/v2/index.layout.css 22.8 kB

compressed-size-action

BREAKING CHANGE: remove MessageErrorText component
BREAKING CHANGE: re-throw error from handleDelete in MessageContext
@MartinCupela MartinCupela force-pushed the fix/error-network-message-error branch from 7233e1f to eba2b41 Compare March 23, 2026 12:24
@codecov
Copy link

codecov bot commented Mar 24, 2026

Codecov Report

❌ Patch coverage is 71.73913% with 13 lines in your changes missing coverage. Please review.
βœ… Project coverage is 80.27%. Comparing base (a9feb11) to head (0552510).
⚠️ Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
src/components/Channel/utils.ts 57.69% 6 Missing and 5 partials ⚠️
src/components/Message/hooks/useDeleteHandler.ts 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3042      +/-   ##
==========================================
- Coverage   80.31%   80.27%   -0.05%     
==========================================
  Files         561      560       -1     
  Lines       13098    13116      +18     
  Branches     3413     3423      +10     
==========================================
+ Hits        10520    10529       +9     
- Misses       1912     1916       +4     
- Partials      666      671       +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.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MartinCupela MartinCupela merged commit e0207cd into master Mar 24, 2026
9 of 10 checks passed
@MartinCupela MartinCupela deleted the fix/error-network-message-error branch March 24, 2026 09:49
github-actions bot pushed a commit that referenced this pull request Mar 25, 2026
## [14.0.0-beta.2](v14.0.0-beta.1...v14.0.0-beta.2) (2026-03-25)

### ⚠ BREAKING CHANGES

* remove components ActionsIcon, ReactionIcon,
ThreadIcon, MessageErrorIcon
* replace class str-chat__message-error-icon with str-chat__message-error-indicator
* do not allow to mark own messages unread
* remove MessageErrorText component
* re-throw error from handleDelete in MessageContext

### Bug Fixes

* adjust message UI for network error when sending a message ([#3042](#3042)) ([e0207cd](e0207cd))
* align textarea placeholder and text with the surroundings ([#3052](#3052)) ([da293f0](da293f0))
* allow useNotificationTarget to return undefined ([#3046](#3046)) ([38b278e](38b278e))
* calculate message read status for the first message in a channel (ported from v13) ([#3056](#3056)) ([b7c33c8](b7c33c8))
* clear message composer on unmount ([#3053](#3053)) ([f2a79ab](f2a79ab))
* keep the distance of command menus constant from the invoking button ([#3049](#3049)) ([960c1f9](960c1f9))
* prevent empty message composer textarea from growing ([#3051](#3051)) ([880d12d](880d12d))
* prevent poll options layout shifting upon voting ([#3048](#3048)) ([cdaf480](cdaf480))

### Features

* add "Voice message deleted" notification ([#3045](#3045)) ([9982c45](9982c45))
* do not allow to mark own messages unread ([#3043](#3043)) ([fe05b62](fe05b62))
* redesign message actions icons and message error badge ([#3050](#3050)) ([f4caa0e](f4caa0e))
* shared gallery preview in AttachmentPreviewList ([#3044](#3044)) ([f05f47d](f05f47d))
@stream-ci-bot
Copy link

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

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