Skip to content

refactor(uikit-playground): Adapt to linting changes#39162

Merged
dionisio-bot[bot] merged 9 commits intodevelopfrom
refactor/lint-uikit-playground
Feb 28, 2026
Merged

refactor(uikit-playground): Adapt to linting changes#39162
dionisio-bot[bot] merged 9 commits intodevelopfrom
refactor/lint-uikit-playground

Conversation

@tassoevan
Copy link
Copy Markdown
Member

@tassoevan tassoevan commented Feb 27, 2026

Proposed changes (including videos or screenshots)

It applies the new centralized ESLint rules over the @rocket.chat/uikit-playground workspace.

Issues

Related to #38989.

Further comments

It workspace demanded a set of isolated ESLint rules and its own Prettier configuration. While most of the changes were autofixed and/or easy to adapt, there is some level of refactoring involved that demands careful code review.

Task: ARCH-2013

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot bot commented Feb 27, 2026

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 27, 2026

⚠️ No Changeset found

Latest commit: 43639fa

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

@tassoevan tassoevan changed the title refactor(uikit-playground) refactor(uikit-playground): Adapt to linting changes Feb 27, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 27, 2026

Important

Review skipped

Too many files!

This PR contains 173 files, which is 23 over the limit of 150.

📥 Commits

Reviewing files that changed from the base of the PR and between 0f8317a and 43639fa.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (173)
  • apps/uikit-playground/.prettierrc
  • apps/uikit-playground/index.html
  • apps/uikit-playground/package.json
  • apps/uikit-playground/src/App.tsx
  • apps/uikit-playground/src/Components/CodeEditor/BlockEditor.tsx
  • apps/uikit-playground/src/Components/CodeEditor/Extensions/Extensions.ts
  • apps/uikit-playground/src/Components/CodeEditor/Extensions/HighlightStyle.ts
  • apps/uikit-playground/src/Components/CodeEditor/Extensions/basicSetup.ts
  • apps/uikit-playground/src/Components/CodeEditor/Extensions/payloadLinter.ts
  • apps/uikit-playground/src/Components/CodeEditor/Extensions/theme.ts
  • apps/uikit-playground/src/Components/CodeEditor/Parser/parsePayload.ts
  • apps/uikit-playground/src/Components/CodeEditor/PreviewEditor.tsx
  • apps/uikit-playground/src/Components/CodeEditor/index.tsx
  • apps/uikit-playground/src/Components/ComponentSideBar/ScrollableSideBar.tsx
  • apps/uikit-playground/src/Components/ComponentSideBar/SideBar.tsx
  • apps/uikit-playground/src/Components/ComponentSideBar/SliderBtn.tsx
  • apps/uikit-playground/src/Components/CreateNewScreen/CreateNewScreenContainer.tsx
  • apps/uikit-playground/src/Components/CreateNewScreen/ScreenThumbnail.tsx
  • apps/uikit-playground/src/Components/Draggable/DraggableList.tsx
  • apps/uikit-playground/src/Components/Draggable/DraggableListItem.tsx
  • apps/uikit-playground/src/Components/DropDown/DropDown.tsx
  • apps/uikit-playground/src/Components/DropDown/Items.tsx
  • apps/uikit-playground/src/Components/DropDown/ItemsIcon.tsx
  • apps/uikit-playground/src/Components/DropDown/itemsStyle.ts
  • apps/uikit-playground/src/Components/DropDown/types.ts
  • apps/uikit-playground/src/Components/FlowContainer/ConnectionLine.tsx
  • apps/uikit-playground/src/Components/FlowContainer/ControlButtons/ControlButtons.tsx
  • apps/uikit-playground/src/Components/FlowContainer/ControlButtons/index.ts
  • apps/uikit-playground/src/Components/FlowContainer/FlowContainer.tsx
  • apps/uikit-playground/src/Components/FlowContainer/UIKitWrapper/UIKitWrapper.tsx
  • apps/uikit-playground/src/Components/FlowContainer/UIKitWrapper/index.ts
  • apps/uikit-playground/src/Components/FlowContainer/utils.ts
  • apps/uikit-playground/src/Components/HomeContainer/HomeContainer.tsx
  • apps/uikit-playground/src/Components/HomeContainer/ProjectsList/ProjectsList.tsx
  • apps/uikit-playground/src/Components/HomeContainer/ProjectsList/ProjectsThumbnail.tsx
  • apps/uikit-playground/src/Components/NavBar/BurgerIcon/BurgerIcon.tsx
  • apps/uikit-playground/src/Components/NavBar/BurgerIcon/Line.tsx
  • apps/uikit-playground/src/Components/NavBar/BurgerIcon/Wrapper.tsx
  • apps/uikit-playground/src/Components/NavBar/Divider.tsx
  • apps/uikit-playground/src/Components/NavBar/Logo.tsx
  • apps/uikit-playground/src/Components/NavBar/NavBar.tsx
  • apps/uikit-playground/src/Components/NavBar/RightNavBtn.tsx
  • apps/uikit-playground/src/Components/PersistStore/PersistStore.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Display.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Surface/BannerSurface.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Surface/ContextualBarSurface.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Surface/MessageSurface.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Surface/ModalSurface.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Surface/Reorder.ts
  • apps/uikit-playground/src/Components/Preview/Display/Surface/Surface.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Surface/SurfaceRender.tsx
  • apps/uikit-playground/src/Components/Preview/Display/Surface/constant.ts
  • apps/uikit-playground/src/Components/Preview/Display/UiKitElementWrapper/DeleteElementBtn.tsx
  • apps/uikit-playground/src/Components/Preview/Display/UiKitElementWrapper/UiKitElementWrapper.scss
  • apps/uikit-playground/src/Components/Preview/Display/UiKitElementWrapper/UiKitElementWrapper.tsx
  • apps/uikit-playground/src/Components/Preview/Editor/ActionBlockEditor.tsx
  • apps/uikit-playground/src/Components/Preview/Editor/ActionPreviewEditor.tsx
  • apps/uikit-playground/src/Components/Preview/Editor/EditorPanel.tsx
  • apps/uikit-playground/src/Components/Preview/NavPanel/NavPanel.tsx
  • apps/uikit-playground/src/Components/Preview/Preview.tsx
  • apps/uikit-playground/src/Components/Preview/SplitPlaneContainer/SplitPlaneContainer.tsx
  • apps/uikit-playground/src/Components/Preview/Wrapper.tsx
  • apps/uikit-playground/src/Components/PrototypeRender/PrototypeRender.tsx
  • apps/uikit-playground/src/Components/PtototypeContainer/PrototypeContainer.tsx
  • apps/uikit-playground/src/Components/PtototypeContainer/index.ts
  • apps/uikit-playground/src/Components/RenderPayload/RenderPayload.tsx
  • apps/uikit-playground/src/Components/Routes/HomeLayout.tsx
  • apps/uikit-playground/src/Components/Routes/ProjectSpecificLayout.tsx
  • apps/uikit-playground/src/Components/Routes/ProtectedLayout.tsx
  • apps/uikit-playground/src/Components/ScreenThumbnail/CreateNewScreenButton.tsx
  • apps/uikit-playground/src/Components/ScreenThumbnail/EditMenu/EditMenu.tsx
  • apps/uikit-playground/src/Components/ScreenThumbnail/EditMenu/index.ts
  • apps/uikit-playground/src/Components/ScreenThumbnail/EditableLabel/EditableLabel.tsx
  • apps/uikit-playground/src/Components/ScreenThumbnail/ScreenThumbnailWrapper.tsx
  • apps/uikit-playground/src/Components/ScreenThumbnail/Thumbnail.tsx
  • apps/uikit-playground/src/Components/SurfaceSelect/SurfaceSelect.tsx
  • apps/uikit-playground/src/Components/SurfaceSelect/options.ts
  • apps/uikit-playground/src/Components/Templates/Container/Container.tsx
  • apps/uikit-playground/src/Components/Templates/Container/Payload.tsx
  • apps/uikit-playground/src/Components/Templates/Container/Section.tsx
  • apps/uikit-playground/src/Components/Templates/Templates.tsx
  • apps/uikit-playground/src/Components/ToggleTabs/index.tsx
  • apps/uikit-playground/src/Components/navMenu/Menu/MenuItem.tsx
  • apps/uikit-playground/src/Components/navMenu/Menu/Wrapper.tsx
  • apps/uikit-playground/src/Components/navMenu/Menu/index.tsx
  • apps/uikit-playground/src/Components/navMenu/NavMenu.tsx
  • apps/uikit-playground/src/Context/action/actionPreviewAction.ts
  • apps/uikit-playground/src/Context/action/activeProjectAction.ts
  • apps/uikit-playground/src/Context/action/activeScreenAction.ts
  • apps/uikit-playground/src/Context/action/createNewProjectAction.ts
  • apps/uikit-playground/src/Context/action/createNewScreenAction.ts
  • apps/uikit-playground/src/Context/action/deleteProjectAction.ts
  • apps/uikit-playground/src/Context/action/deleteScreenAction.ts
  • apps/uikit-playground/src/Context/action/duplicateProjectAction.ts
  • apps/uikit-playground/src/Context/action/duplicateScreenAction.ts
  • apps/uikit-playground/src/Context/action/editorTabsToggleAction.ts
  • apps/uikit-playground/src/Context/action/isMobileAction.ts
  • apps/uikit-playground/src/Context/action/isTabletAction.ts
  • apps/uikit-playground/src/Context/action/navMenuToggleAction.ts
  • apps/uikit-playground/src/Context/action/openCreateNewScreenAction.ts
  • apps/uikit-playground/src/Context/action/previewTabsToggleAction.ts
  • apps/uikit-playground/src/Context/action/renameProjectAction.ts
  • apps/uikit-playground/src/Context/action/renameScreenAction.ts
  • apps/uikit-playground/src/Context/action/sidebarToggleAction.ts
  • apps/uikit-playground/src/Context/action/surfaceAction.ts
  • apps/uikit-playground/src/Context/action/tabsToggleAction.ts
  • apps/uikit-playground/src/Context/action/templatesToggleAction.ts
  • apps/uikit-playground/src/Context/action/updateFlowEdgesAction.ts
  • apps/uikit-playground/src/Context/action/updateNodesAndViewPortAction.ts
  • apps/uikit-playground/src/Context/action/updatePayloadAction.ts
  • apps/uikit-playground/src/Context/action/userAction.ts
  • apps/uikit-playground/src/Context/createCtx.tsx
  • apps/uikit-playground/src/Context/index.tsx
  • apps/uikit-playground/src/Context/initialState.ts
  • apps/uikit-playground/src/Context/reducer.ts
  • apps/uikit-playground/src/Pages/FlowDiagram.tsx
  • apps/uikit-playground/src/Pages/Home.tsx
  • apps/uikit-playground/src/Pages/Playground.tsx
  • apps/uikit-playground/src/Pages/Prototype.tsx
  • apps/uikit-playground/src/Pages/SignInSignUp.tsx
  • apps/uikit-playground/src/Payload/action/checkbox.ts
  • apps/uikit-playground/src/Payload/action/radioButton.ts
  • apps/uikit-playground/src/Payload/action/timePicker.ts
  • apps/uikit-playground/src/Payload/action/toggleSwitch.ts
  • apps/uikit-playground/src/Payload/actionBlock/BlocksTree.ts
  • apps/uikit-playground/src/Payload/actionBlock/action/button.ts
  • apps/uikit-playground/src/Payload/actionBlock/action/datePicker.ts
  • apps/uikit-playground/src/Payload/actionBlock/action/image.ts
  • apps/uikit-playground/src/Payload/actionBlock/action/input.ts
  • apps/uikit-playground/src/Payload/actionBlock/action/linearScale.ts
  • apps/uikit-playground/src/Payload/actionBlock/action/menu.ts
  • apps/uikit-playground/src/Payload/actionBlock/action/staticSelect.ts
  • apps/uikit-playground/src/Payload/actionBlock/context/index.ts
  • apps/uikit-playground/src/Payload/actionBlock/divider/index.ts
  • apps/uikit-playground/src/Payload/actionBlock/image/index.ts
  • apps/uikit-playground/src/Payload/actionBlock/infoCard/index.ts
  • apps/uikit-playground/src/Payload/actionBlock/input/datePicker.ts
  • apps/uikit-playground/src/Payload/actionBlock/input/input.ts
  • apps/uikit-playground/src/Payload/actionBlock/input/linearScale.ts
  • apps/uikit-playground/src/Payload/actionBlock/input/staticSelect.ts
  • apps/uikit-playground/src/Payload/actionBlock/preview/index.ts
  • apps/uikit-playground/src/Payload/actionBlock/section/button.ts
  • apps/uikit-playground/src/Payload/actionBlock/section/datePicker.ts
  • apps/uikit-playground/src/Payload/actionBlock/section/image.ts
  • apps/uikit-playground/src/Payload/actionBlock/section/menu.ts
  • apps/uikit-playground/src/Payload/actionBlock/section/text.ts
  • apps/uikit-playground/src/Payload/actionPreview/container.ts
  • apps/uikit-playground/src/Payload/actionPreview/generateActionPreview.ts
  • apps/uikit-playground/src/Payload/callout/index.ts
  • apps/uikit-playground/src/Payload/index.ts
  • apps/uikit-playground/src/Payload/tabNavigation/disabled.ts
  • apps/uikit-playground/src/Payload/tabNavigation/index.ts
  • apps/uikit-playground/src/Payload/tabNavigation/plain.ts
  • apps/uikit-playground/src/Payload/tabNavigation/selected.ts
  • apps/uikit-playground/src/Routes/Routes.ts
  • apps/uikit-playground/src/hooks/useAuth.tsx
  • apps/uikit-playground/src/hooks/useCodeMirror.ts
  • apps/uikit-playground/src/hooks/useFormatCodeMirrorValue.ts
  • apps/uikit-playground/src/hooks/useHorizontalScroll.ts
  • apps/uikit-playground/src/hooks/useNodesAndEdges.ts
  • apps/uikit-playground/src/main.tsx
  • apps/uikit-playground/src/module.d.ts
  • apps/uikit-playground/src/utils/codePrettier.ts
  • apps/uikit-playground/src/utils/filterEdges.ts
  • apps/uikit-playground/src/utils/formatDate.ts
  • apps/uikit-playground/src/utils/getDate.ts
  • apps/uikit-playground/src/utils/persistStore.ts
  • apps/uikit-playground/src/utils/templates.ts
  • apps/uikit-playground/tsconfig.json
  • apps/uikit-playground/vite.config.ts
  • eslint.config.mjs
  • package.json
  • packages/eslint-config/index.js

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.

@tassoevan
Copy link
Copy Markdown
Member Author

/jira ARCH-1935

@tassoevan tassoevan closed this Feb 27, 2026
@tassoevan tassoevan reopened this Feb 27, 2026
@tassoevan tassoevan added this to the 8.3.0 milestone Feb 27, 2026
@tassoevan tassoevan marked this pull request as ready for review February 27, 2026 17:37
@tassoevan tassoevan requested a review from a team as a code owner February 27, 2026 17:37
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 174 files

Note: This PR contains a large number of files. cubic only reviews up to 75 files per PR, so some files may not have been reviewed.

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/uikit-playground/src/Components/PersistStore/PersistStore.tsx">

<violation number="1" location="apps/uikit-playground/src/Components/PersistStore/PersistStore.tsx:15">
P2: `useEffect` should return a cleanup function. This line calls `removeEventListener` immediately and returns `void`, so the unload handler is never cleaned up; it also doesn’t match the `onbeforeunload` property assignment. Return a cleanup function and clear/reset the handler (or use add/removeEventListener with the correct event name).</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.66%. Comparing base (0f8317a) to head (43639fa).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #39162      +/-   ##
===========================================
- Coverage    70.70%   70.66%   -0.04%     
===========================================
  Files         3195     3195              
  Lines       113106   113106              
  Branches     20513    20493      -20     
===========================================
- Hits         79970    79932      -38     
- Misses       31088    31127      +39     
+ Partials      2048     2047       -1     
Flag Coverage Δ
e2e 60.34% <ø> (-0.04%) ⬇️
e2e-api 47.79% <ø> (+0.01%) ⬆️
unit 71.31% <ø> (-0.04%) ⬇️

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.

@ggazzo ggazzo added the stat: QA assured Means it has been tested and approved by a company insider label Feb 27, 2026
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Feb 27, 2026
@dionisio-bot dionisio-bot bot added this pull request to the merge queue Feb 27, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 27, 2026
@dionisio-bot dionisio-bot bot enabled auto-merge February 27, 2026 23:03
@dionisio-bot dionisio-bot bot added this pull request to the merge queue Feb 27, 2026
Merged via the queue into develop with commit a5aac0c Feb 28, 2026
45 checks passed
@dionisio-bot dionisio-bot bot deleted the refactor/lint-uikit-playground branch February 28, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants