Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Conversation

jeremy-babylonlabs
Copy link
Collaborator

@jeremy-babylonlabs jeremy-babylonlabs commented Jul 19, 2025

@Copilot Copilot AI review requested due to automatic review settings July 19, 2025 09:48
@jeremy-babylonlabs jeremy-babylonlabs marked this pull request as draft July 19, 2025 09:48
Copy link
Contributor

@Copilot 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 implements a comprehensive settings menu feature with theme selection, bug reporting, and additional menu options. The implementation replaces a simple theme toggle with a full-featured settings interface.

Key changes:

  • Implements a new settings menu with theme selector, bug reporting, and policy links
  • Adds new icon components for theme selection and bug reporting
  • Updates the core UI library dependency to support the new menu components

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/ui/common/components/Wallet/Connect.tsx Adds onClose prop to SettingMenuContent components
src/ui/common/components/Menu/SettingMenu/index.ts Exports new SettingMenuThemeSelector component
src/ui/common/components/Menu/SettingMenu/components/SettingMenuThemeSelector.tsx New theme selector component with light/dark/system options
src/ui/common/components/Menu/SettingMenu/components/SettingMenuContent.tsx Complete rewrite to implement full settings menu with multiple sections
src/ui/common/components/Icons/index.ts Updates icon exports to use wildcard exports and adds new icons
src/ui/common/components/Icons/common/ThemeIcon.tsx New theme icon component
src/ui/common/components/Icons/common/ReportBugIcon.tsx New bug report icon component
src/ui/common/components/Icons/common/ChevronLeftIcon.tsx New chevron left icon component
package.json Updates core-ui library from 1.4.2 to 1.5.0

interface SettingMenuContentProps {
className?: string;
onClose?: () => void;
}

export const SettingMenuContent = ({ className }: SettingMenuContentProps) => {
Copy link
Preview

Copilot AI Jul 19, 2025

Choose a reason for hiding this comment

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

The onClose prop is defined in the interface but not destructured in the function parameter. Either remove it from the interface or use it in the component.

Suggested change
export const SettingMenuContent = ({ className }: SettingMenuContentProps) => {
export const SettingMenuContent = ({ className, onClose }: SettingMenuContentProps) => {

Copilot uses AI. Check for mistakes.

<SettingMenu.Spacer />
<SettingMenu.CustomContent className="my-4 flex justify-center">
<Button
className="!bg-[#D5FCE8] !text-black"
Copy link
Preview

Copilot AI Jul 19, 2025

Choose a reason for hiding this comment

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

Hard-coded color values with important flags should be replaced with theme variables or CSS classes to maintain consistency with the design system.

Suggested change
className="!bg-[#D5FCE8] !text-black"
className="bg-baby-staking text-baby-staking-text"

Copilot uses AI. Check for mistakes.

@jeremy-babylonlabs jeremy-babylonlabs force-pushed the feat/implement-setting-menu branch from fe3d623 to 90407a0 Compare July 19, 2025 10:13
@jeremy-babylonlabs jeremy-babylonlabs force-pushed the feat/implement-setting-menu branch from 90407a0 to 93b17ca Compare August 15, 2025 02:54
@jeremy-babylonlabs jeremy-babylonlabs force-pushed the feat/implement-setting-menu branch from 93b17ca to 04ac10e Compare August 17, 2025 10:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant