Skip to content

Conversation

@gtryus
Copy link
Contributor

@gtryus gtryus commented Jan 8, 2026

… mobile

  • Updated OrgHead component to conditionally render settings menu items based on screen size and user permissions.
  • Implemented viewport adjustments in Cypress tests to ensure proper visibility of settings buttons on both desktop and mobile widths.
  • Added new tests to verify the display of settings buttons and menu items under varying viewport conditions, improving user experience across devices.

These changes collectively enhance the responsiveness and usability of the OrgHead and SwitchTeams components.

… mobile

- Updated OrgHead component to conditionally render settings menu items based on screen size and user permissions.
- Implemented viewport adjustments in Cypress tests to ensure proper visibility of settings buttons on both desktop and mobile widths.
- Added new tests to verify the display of settings buttons and menu items under varying viewport conditions, improving user experience across devices.

These changes collectively enhance the responsiveness and usability of the OrgHead and SwitchTeams components.
@gtryus gtryus requested a review from Copilot January 8, 2026 23:37
@gtryus gtryus changed the title TT-7016,TT-7020 Enhance OrgHead and SwitchTeams no admin functions on… TT-7016,TT-7020 Enhance OrgHead and SwitchTeams no admin on mobile Jan 8, 2026
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 PR enhances the mobile responsiveness of the OrgHead and SwitchTeams components by conditionally hiding settings buttons and menu items on mobile viewports while maintaining access to essential sorting functionality when needed.

Key changes:

  • Added mobile viewport detection to conditionally render settings UI elements based on screen size
  • Fixed test selector bug that prevented proper detection of team settings buttons
  • Added comprehensive Cypress tests to verify responsive behavior across desktop and mobile viewports

Reviewed changes

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

File Description
src/renderer/src/routes/SwitchTeams.tsx Added mobileWidth media query to hide settings buttons on mobile screens
src/renderer/src/routes/SwitchTeams.cy.tsx Set desktop viewports in existing tests and added new tests for mobile/desktop settings button visibility; fixed test selector from team-settings- to team-settings
src/renderer/src/components/App/OrgHead.tsx Conditionally render settings button and menu items based on mobile width and showSort state
src/renderer/src/components/App/OrgHead.cy.tsx Improved teamProjects function implementation and added comprehensive tests for mobile/desktop menu item visibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sarahentzel sarahentzel merged commit 8ebe3a1 into develop Jan 9, 2026
8 checks passed
@sarahentzel sarahentzel deleted the TT-7016-no-mobile-team-settings branch January 9, 2026 20:18
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