Skip to content

Conversation

@dougfabris
Copy link
Member

@dougfabris dougfabris commented Aug 26, 2025

Proposed changes (including videos or screenshots)

Important

This change is under feature preview

Introduced here: #36049
Depends on: RocketChat/fuselage#1742

Issue(s)

Steps to test or reproduce

Further comments

SIDE2-119
SIDE2-127
SIDE2-153
SIDE2-154

Copilot AI review requested due to automatic review settings August 26, 2025 16:38
@dougfabris dougfabris requested a review from a team as a code owner August 26, 2025 16:38
@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Aug 26, 2025

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

@changeset-bot
Copy link

changeset-bot bot commented Aug 26, 2025

⚠️ No Changeset found

Latest commit: 3027604

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

@dougfabris dougfabris marked this pull request as draft August 26, 2025 16:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request fixes a regression in the sidepanel list where incorrect spacing/gap was being applied. The changes address layout issues by restructuring how the SidepanelListWrapper component handles refs and removing unnecessary padding from the SidePanel container.

  • Restructures SidepanelListWrapper to properly handle ref forwarding
  • Removes bottom padding from SidePanel container
  • Updates class name reference for keyboard shortcuts
  • Fixes typos in localization strings

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/i18n/src/locales/en.i18n.json Corrects "hear" to "here" in multiple description strings
apps/meteor/client/views/navigation/sidepanel/SidepanelListWrapper.tsx Restructures component to wrap content in a div and handle refs differently
apps/meteor/client/views/navigation/sidepanel/SidePanel.tsx Removes bottom padding from container Box
apps/meteor/client/views/navigation/sidebar/hooks/useShortcutOpenMenu.ts Updates class name from 'rcx-sidebar-item' to 'rcx-sidebar-v2-item'

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

import { useTranslation } from 'react-i18next';

import { useSidebarListNavigation } from '../../../sidebar/RoomList/useSidebarListNavigation';
import { useSidebarListNavigation } from '../sidebar/RoomList/useSidebarListNavigation';
Copy link

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

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

The import path has been changed but appears incorrect. The path '../sidebar/RoomList/useSidebarListNavigation' suggests going up one level to 'sidebar', but from the sidepanel directory, the correct path should be '../../../sidebar/RoomList/useSidebarListNavigation' as it was originally.

Copilot uses AI. Check for mistakes.
Comment on lines 13 to 17

return <SidepanelList aria-label={t('Channels')} ref={mergedRefs} {...props} />;
return (
<SidepanelList aria-label={t('Channels')} ref={sidebarListRef}>
<div ref={ref} {...props} />
</SidepanelList>
Copy link

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

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

The component structure has been fundamentally changed from forwarding refs to the SidepanelList to wrapping content in a div. This breaks the expected API where the forwarded ref should reference the SidepanelList component itself, not an inner div wrapper.

Copilot uses AI. Check for mistakes.
@dougfabris dougfabris changed the title regression: Sidebarsidepanel list wrong gap regression: SidepanelItem visual issues Aug 26, 2025
@dougfabris dougfabris added this to the 7.10.0 milestone Aug 26, 2025
@codecov
Copy link

codecov bot commented Aug 26, 2025

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 66.02%. Comparing base (4fc1b60) to head (3027604).
⚠️ Report is 4 commits behind head on release-7.10.0.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##           release-7.10.0   #36798      +/-   ##
==================================================
+ Coverage           65.97%   66.02%   +0.04%     
==================================================
  Files                3285     3287       +2     
  Lines              110045   110192     +147     
  Branches            20837    20855      +18     
==================================================
+ Hits                72607    72750     +143     
- Misses              34765    34766       +1     
- Partials             2673     2676       +3     
Flag Coverage Δ
e2e 57.17% <85.71%> (+0.01%) ⬆️
unit 71.43% <ø> (+0.02%) ⬆️

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.

@dougfabris dougfabris requested a review from ggazzo August 28, 2025 02:28
@dougfabris dougfabris marked this pull request as ready for review August 28, 2025 02:29
@ggazzo ggazzo added the stat: QA assured Means it has been tested and approved by a company insider label Aug 29, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Aug 29, 2025
@ggazzo ggazzo merged commit edc96cd into release-7.10.0 Aug 29, 2025
50 checks passed
@ggazzo ggazzo deleted the reg/sidebar-visuals branch August 29, 2025 00:29
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.

2 participants