Skip to content

TT-7035 Enhance OrgHead and related components for offline and mobile view#246

Merged
sarahentzel merged 1 commit intodevelopfrom
feature/TT-7035-offline-admin-fn
Apr 13, 2026
Merged

TT-7035 Enhance OrgHead and related components for offline and mobile view#246
sarahentzel merged 1 commit intodevelopfrom
feature/TT-7035-offline-admin-fn

Conversation

@gtryus
Copy link
Copy Markdown
Contributor

@gtryus 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.
Copy link
Copy Markdown
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 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 (unless offlineOnly), 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.

Comment thread src/renderer/src/components/App/OrgHead.tsx
Comment thread src/renderer/src/components/App/OrgHead.cy.tsx
@sarahentzel sarahentzel merged commit a19b64f into develop Apr 13, 2026
6 checks passed
@sarahentzel sarahentzel deleted the feature/TT-7035-offline-admin-fn branch April 13, 2026 16:55
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