Skip to content

Conversation

@gtryus
Copy link
Contributor

@gtryus gtryus commented Jan 13, 2026

…n mobile width

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 updates the ProjectMenu component to conditionally hide certain menu items on mobile devices (screens smaller than the 'sm' breakpoint). The change uses MUI's useMediaQuery and useTheme hooks to determine when the viewport is mobile-sized and applies the !isMobileWidth condition to most admin-related menu items.

Changes:

  • Added useMediaQuery and useTheme imports from @mui/material
  • Added mobile width detection using theme breakpoints
  • Conditionally rendered settings, copy, integrations, category edit, import, and delete menu items based on mobile width

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

Comment on lines 168 to 172
{!justFilter &&
!isMobileWidth &&
pathname &&
projType.toLowerCase() === 'scripture' &&
pathname.indexOf(ArtifactTypeSlug.Retell) === -1 &&
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

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

The offline availability menu item (lines 148-159) is missing the mobile width check that was added to other menu items. This creates an inconsistency in which menu items are shown on mobile devices. Consider whether this option should also be hidden on mobile for consistency with the other admin-related features.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sarahentzel sarahentzel merged commit 6e1c852 into develop Jan 13, 2026
1 check passed
@sarahentzel sarahentzel deleted the feature/TT-7036-no-proj-mobile-admin branch January 13, 2026 15:42
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