Skip to content

refactor(uikit-playground): remove unnecessary ReactElement type annotations from components#40813

Draft
tassoevan wants to merge 11 commits into
developfrom
refactor/prepare-types-for-react-19-11
Draft

refactor(uikit-playground): remove unnecessary ReactElement type annotations from components#40813
tassoevan wants to merge 11 commits into
developfrom
refactor/prepare-types-for-react-19-11

Conversation

@tassoevan
Copy link
Copy Markdown
Member

⚠️ This is part 11/23 of #40796. PR for refactor/prepare-types-for-react-19-10 must be merged first.


Proposed changes (including videos or screenshots)

As a first step towards upgrading to React 19, it handles types from @types/react looking forward the next major.

Issue(s)

Task: ARCH-2170

Steps to test or reproduce

Further comments

No runtime change is expected from it.

tassoevan added 11 commits June 3, 2026 23:15
… from AppAvatar, MessageAvatar, and RoomAvatar components
…ations in components

- Updated multiple components to remove explicit return type annotations of ReactElement, allowing TypeScript to infer the return type.
- Adjusted BlockProps to use ReactElement<any> for better type compatibility.
- Cleaned up imports by removing unused ReactElement imports across various files.
…onal components

- Removed explicit return type annotations of ReactElement from multiple functional components across the codebase.
- Updated components in Markup, PreviewMarkup, HeadingBlock, OrderedListBlock, ParagraphBlock, QuoteBlock, SpoilerBlock, TaskListBlock, UnorderedListBlock, CodeBlock, CodeElement, PreviewCodeBlock, PreviewCodeElement, ColorElement, PreviewColorElement, BoldSpan, ImageElement, InlineElements, ItalicSpan, LinkSpan, PlainSpan, PreviewInlineElements, SpoilerSpan, StrikeSpan, BigEmojiBlock, BigEmojiElement, Emoji, EmojiElement, EmojiRenderer, PreviewBigEmojiBlock, PreviewEmojiElement, KatexBlock, KatexElement, KatexErrorBoundary, PreviewKatexBlock, PreviewKatexElement, ChannelMentionElement, PreviewChannelMentionElement, PreviewUserMentionElement, UserMentionElement.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 4, 2026

⚠️ No Changeset found

Latest commit: 21cbb9a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 4, 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.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 73fc34a5-28f2-4d14-9e8b-514449182bc1

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

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.

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot Bot commented Jun 4, 2026

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 4, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.93%. Comparing base (85fc0dd) to head (21cbb9a).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #40813      +/-   ##
===========================================
+ Coverage    69.90%   69.93%   +0.03%     
===========================================
  Files         3337     3337              
  Lines       123489   123489              
  Branches     22013    22036      +23     
===========================================
+ Hits         86322    86362      +40     
+ Misses       33813    33783      -30     
+ Partials      3354     3344      -10     
Flag Coverage Δ
e2e 59.40% <ø> (+0.05%) ⬆️
e2e-api 47.07% <ø> (+0.83%) ⬆️
unit 70.67% <75.00%> (-0.01%) ⬇️

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

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

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