Skip to content

Conversation

@nensidosari
Copy link
Contributor

@nensidosari nensidosari commented Oct 30, 2025

Changes

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

Jira ticket

MI-1071

Preview domain

https://mi-1071-activity-section-profile.preview.app.daily.dev

@vercel
Copy link

vercel bot commented Oct 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
daily-webapp Ready Ready Preview Nov 4, 2025 1:56pm
1 Skipped Deployment
Project Deployment Preview Updated (UTC)
storybook Ignored Ignored Nov 4, 2025 1:56pm

Base automatically changed from MI-1069-about-section-profile to MI-1027-profile October 31, 2025 09:53
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We've always had trouble in profile in between laptop/tablet breakpoints (closing the sidebar at this certain breakpoint gives us more room for the profile - which seems like a nice trade off.)

Comment on lines 24 to 36
useEffect(() => {
const mediaQuery = window.matchMedia(`(max-width: ${COLLAPSE_BREAKPOINT - 1}px)`);

const handleBreakpointChange = (e: MediaQueryListEvent) => {
if (e.matches && sidebarExpandedRef.current) {
toggleSidebarExpanded();
}
};

mediaQuery.addEventListener('change', handleBreakpointChange);
return () => mediaQuery.removeEventListener('change', handleBreakpointChange);
}, [toggleSidebarExpanded]);
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Best approach to do this as it only fires in breakpoint crossings

…-1071-activity-section-profile

# Conflicts:
#	packages/shared/src/components/HorizontalScroll/HorizontalScrollHeader.tsx
#	packages/webapp/pages/[userId]/index.tsx
@rebelchris rebelchris marked this pull request as ready for review November 4, 2025 12:58
@rebelchris rebelchris requested a review from a team as a code owner November 4, 2025 12:58
@rebelchris rebelchris requested review from capJavert, ilasw, omBratteng, rebelchris and sshanzel and removed request for a team November 4, 2025 12:58
Copy link
Contributor

@rebelchris rebelchris left a comment

Choose a reason for hiding this comment

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

Think we could actually do some CSS magic, but let's see :) approving so we can merge and re-see in another pr

@rebelchris rebelchris merged commit 1ca700b into MI-1027-profile Nov 4, 2025
11 checks passed
@rebelchris rebelchris deleted the MI-1071-activity-section-profile branch November 4, 2025 17:30
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.

3 participants