TT-7035 Enhance OrgHead and related components for offline and mobile view#246
Merged
sarahentzel merged 1 commit intodevelopfrom Apr 13, 2026
Merged
Conversation
Contributor
gtryus
commented
Apr 8, 2026
- Added a test to ensure Team Settings and Edit Workflow are hidden in mobile view at desktop width.
- Refactored mobile view handling across OrgHead, PersonalItem, ProjectMenu, TeamItem, and ProjectsScreen components to improve responsiveness and user experience.
- Updated canModify logic to include connection status, ensuring proper access control based on online/offline state.
- Cleaned up imports and optimized state management for better performance.
… view - Added a test to ensure Team Settings and Edit Workflow are hidden in mobile view at desktop width. - Refactored mobile view handling across OrgHead, PersonalItem, ProjectMenu, TeamItem, and ProjectsScreen components to improve responsiveness and user experience. - Updated canModify logic to include connection status, ensuring proper access control based on online/offline state. - Cleaned up imports and optimized state management for better performance.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves responsiveness and offline/online access control in the renderer’s team/project navigation UI by centralizing “mobile view” behavior (isMobile) and tightening “can modify” gating when disconnected.
Changes:
- Refactors multiple screens/components to use
useMobile().isMobile(mobile-view override OR small viewport) instead of width-only checks. - Updates “can modify / can add” logic to also require
connected(unlessofflineOnly), reducing UI actions when disconnected. - Adds a Cypress test ensuring Team Settings / Edit Workflow are hidden when mobile view is enabled at desktop width.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/renderer/src/routes/SwitchTeams.tsx | Uses isMobile to hide team settings affordances when mobile view is enabled. |
| src/renderer/src/routes/ProjectsScreen.tsx | Gates “Add Project” visibility on connected/offline state; passes isMobile into styled container. |
| src/renderer/src/components/Team/TeamItem.tsx | Requires connected for modify actions unless offlineOnly. |
| src/renderer/src/components/Team/ProjectMenu.tsx | Uses isMobile to hide admin menu items consistently with mobile-view override. |
| src/renderer/src/components/Team/PersonalItem.tsx | Requires connected for modify actions unless offlineOnly. |
| src/renderer/src/components/App/OrgHead.tsx | Uses isMobile throughout; requires connected for modify actions unless offlineOnly. |
| src/renderer/src/components/App/OrgHead.cy.tsx | Adds coverage for hiding menu items under mobile-view override at desktop width. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sarahentzel
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.