Skip to content

Conversation

@juanlou1217
Copy link
Contributor

  • 添加 Mega Logo 组织图标组件
  • 移除开发环境标识(DEV 红框)
  • 精简用户菜单:删除 Support 和 Apps & integrations 选项
  • 移除组织切换器中的 "New Organization" 按钮

- 添加 Mega Logo 组织图标组件
- 移除开发环境标识(DEV 红框)
- 精简用户菜单:删除 Support 和 Apps & integrations 选项
- 移除组织切换器中的 "New Organization" 按钮
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 Moon web UI/navigation to better match the desired product surface by introducing a Mega organization logo icon and removing several development- or onboarding-oriented UI affordances.

Changes:

  • Add MegaLogoIcon to the shared UI icon set and render it for the Mega organization in the org switcher.
  • Remove the dev-mode banner from the authenticated app provider layout.
  • Simplify navigation menus by removing “Support”, “Apps & integrations”, and the “New organization” entry.

Reviewed changes

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

File Description
moon/packages/ui/src/Icons/index.tsx Adds a new MegaLogoIcon SVG icon to the UI icon library.
moon/apps/web/components/Providers/AuthAppProviders.tsx Removes DevModeBanner from the app-wide authenticated provider tree.
moon/apps/web/components/NavigationSidebar/ProfileDropdown.tsx Removes several profile dropdown items (currently via commented-out blocks).
moon/apps/web/components/NavigationSidebar/OrganizationSwitcher.tsx Removes “New organization” menu entry (currently via commented-out block) and conditionally shows MegaLogoIcon as the org avatar.
Comments suppressed due to low confidence (1)

moon/apps/web/components/NavigationSidebar/ProfileDropdown.tsx:166

  • isStaff && { type: 'separator' } will currently produce two consecutive separators for staff users because there is already an unconditional separator earlier in topBarItems, and buildMenuItems only filters truthy values (it doesn’t collapse/trim separators). Consider removing this staff-only separator or only inserting separators when there is a real item boundary.
    isStaff && { type: 'separator' },
    {
      type: 'item',
      label: 'Sign out',
      leftSlot: <LogOutIcon />,
      onSelect: () => signout.mutate(),

Comment on lines +5 to +8
// import { isMobile } from 'react-device-detect'
// import { SITE_URL } from '@gitmono/config'
// import { useIsDesktopApp } from '@gitmono/ui/src/hooks'

Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

Large blocks of commented-out imports/menu items were left in place. This makes the file harder to read and can become stale quickly; prefer deleting the unused code (or gating it behind a feature flag) instead of commenting it out.

Copilot uses AI. Check for mistakes.
name={organization?.name}
urls={organization?.avatar_urls}
/>
organization?.name === 'Mega' ? (
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

The Mega logo avatar switch is keyed off organization.name === 'Mega', which is brittle (names can change, be localized, or differ in casing). Use a stable identifier such as organization.slug === 'mega' (or a shared constant from config) to decide when to render MegaLogoIcon.

Suggested change
organization?.name === 'Mega' ? (
organization?.slug === 'mega' ? (

Copilot uses AI. Check for mistakes.
Comment on lines +160 to +166
...(!isLg ? mobileItems : [])
// (!isLg || memberships?.length === 1) && {
// type: 'item',
// leftSlot: <PlusIcon />,
// label: 'New organization',
// url: '/new'
// }
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

There is commented-out menu-item code left inside the allItems array (and commented icon imports above). Prefer removing the dead code entirely to avoid confusion and keep the menu definition clean.

Copilot uses AI. Check for mistakes.
Comment on lines 12 to 18
import { AutoTimezoneSwitcher } from '@/components/AutoTimezoneSwitcher'
import { IncomingCallRoomInvitationToast } from '@/components/Call/IncomingCallRoomInvitationToast'
import { LocalCommandMenu } from '@/components/CommandMenu'
import { FeedbackDialog } from '@/components/Feedback/FeedbackDialog'
import { GlobalKeyboardShortcuts } from '@/components/GlobalKeyboardShortcuts'
import { DevModeBanner } from '@/components/NavigationSidebar/DevModeBanner'
import { PostComposer } from '@/components/PostComposer'
import { AuthProvider } from '@/components/Providers/AuthProvider'
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

After removing DevModeBanner from the provider tree, the DevModeBanner component appears to be unused across the web app. Consider deleting components/NavigationSidebar/DevModeBanner.tsx (or otherwise referencing it) to avoid shipping dead code.

Copilot uses AI. Check for mistakes.
@benjamin-747 benjamin-747 added this pull request to the merge queue Feb 10, 2026
Merged via the queue into web3infra-foundation:main with commit 884de55 Feb 10, 2026
14 checks passed
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.

2 participants