Skip to content

Conversation

@Yogyerek1
Copy link
Collaborator

No description provided.

Yogyerek1 and others added 27 commits October 1, 2025 17:34
@Yogyerek1 Yogyerek1 requested a review from vycos-zen November 1, 2025 18:20
@Yogyerek1 Yogyerek1 self-assigned this Nov 1, 2025
@Yogyerek1 Yogyerek1 added the ui user interface label Nov 1, 2025
@Yogyerek1 Yogyerek1 marked this pull request as ready for review November 1, 2025 18:22
Copilot AI review requested due to automatic review settings November 1, 2025 18:22
vycos-zen
vycos-zen previously approved these changes Nov 1, 2025
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 refactors the cookie consent feature by extracting types, services, and components into separate files, and updates the UI to use a new expandable cookie option design with improved styling based on a design system.

  • Refactored cookie consent logic by separating types, services, and cookie options into dedicated modules
  • Introduced a new expandable CookieOptionSegment component with collapsible details
  • Updated styling to use semantic color tokens (bg-primary, bg-secondary, etc.) instead of hardcoded colors

Reviewed Changes

Copilot reviewed 13 out of 36 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages-ui/mwe-ui-core/src/core/types/CookieConsent.ts Defines new types for cookie consent data and options
packages-ui/mwe-ui-core/src/core/services/CookieService.ts Refactors service to import types externally and renames export to camelCase
packages-ui/mwe-ui-core/src/core/CookieOptions.ts Extracts cookie options configuration into a separate file
packages-ui/mwe-ui-core/src/core/components/CookieOptionSegment.tsx New expandable component for displaying individual cookie options
packages-ui/mwe-ui-core/src/core/components/CookieConsent.tsx Refactored to use extracted modules and new component
packages-ui/mwe-ui-core/src/ui-interactive/components/Button.tsx Simplified imports and destructured props
packages-ui/mwe-ui-core/src/ui-interactive/components/CheckBox.tsx Added bg-secondary class
apps-ui/john-glenn-ui/app/layout.tsx Integrated ClientRoot component
apps-ui/john-glenn-ui/app/ClientRoot.tsx New client-side component wrapper for CookieConsent
package.json Added @tailwindcss/typography dependency
Files not reviewed (1)
  • .pnp.cjs: Language not supported
Comments suppressed due to low confidence (2)

packages-ui/mwe-ui-core/src/ui-interactive/components/Button.tsx:13

  • The type prop is destructured from ButtonProps but not used. The button always has type=\"button\" hardcoded, ignoring the type prop passed by the caller. Either use the type prop or remove it from the interface.
    packages-ui/mwe-ui-core/src/ui-interactive/components/Button.tsx:13
  • The onClick prop is destructured from ButtonProps but never attached to the button element. Add onClick={onClick} to the button attributes to make it functional.

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

@@ -0,0 +1,22 @@
import { CookieOption} from './types'
Copy link

Copilot AI Nov 1, 2025

Choose a reason for hiding this comment

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

Missing space before closing brace in import statement. Should be { CookieOption } instead of { CookieOption}.

Suggested change
import { CookieOption} from './types'
import { CookieOption } from './types'
Copilot uses AI. Check for mistakes.
/>
</div>
</>
)}
Copy link

Copilot AI Nov 1, 2025

Choose a reason for hiding this comment

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

Trailing whitespace detected after the closing parenthesis. Remove the extra spaces for code cleanliness.

Suggested change
)}
)}
Copilot uses AI. Check for mistakes.
vycos-zen and others added 2 commits November 1, 2025 19:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vycos-zen vycos-zen merged commit 051c9ee into main Nov 1, 2025
4 checks passed
@vycos-zen vycos-zen deleted the feature/mwe-183_cookie_consent branch November 1, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui user interface

3 participants