Skip to content

Conversation

@mkucmus
Copy link
Contributor

@mkucmus mkucmus commented Jan 14, 2026

Description

adds AGENTS.md

@vercel
Copy link

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
frontends-starter-template-extended Ready Ready Preview, Comment Jan 15, 2026 3:17pm
frontends-vue-starter-template Building Building Preview, Comment Jan 15, 2026 3:17pm
old-frontends-demo Building Building Preview, Comment Jan 15, 2026 3:17pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
shopware-frontends-docs Skipped Skipped Jan 15, 2026 3:17pm

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 adds comprehensive AI agent documentation for the @shopware/cms-base-layer package. The documentation provides detailed guidance for AI assistants working with this Nuxt layer, including architecture, component structure, usage patterns, and customization options.

Changes:

  • Added AGENTS.md with detailed package documentation including TL;DR, architecture overview, directory structure, component naming conventions, and usage examples
  • Documented CMS hierarchy, key files, common components, and customization patterns
  • Included practical examples, troubleshooting tips, and best practices

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

## TL;DR

**What**: Nuxt layer providing Vue components for Shopware 6 Shopping Experiences (CMS)
**Purpose**: Pre-built, customizable CMS components styled with UnoCSS/Tailwind
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The statement 'styled with UnoCSS/Tailwind' is slightly misleading. The package uses UnoCSS with Tailwind-compatible utility classes (via presetWind3), not Tailwind CSS itself. Consider rewording to 'styled with UnoCSS (Tailwind-compatible)' for accuracy.

Copilot uses AI. Check for mistakes.
Comment on lines +153 to +158
- `SwBaseButton` - Button component
- `SwBaseIcon` - Icon wrapper
- `SwCheckbox` - Checkbox input
- `SwRadioButton` - Radio input
- `SwSwitchButton` - Toggle switch
- `SwIconButton` - Icon-only button
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The component names listed don't match the actual filenames in app/components/ui/. The actual files are BaseButton.vue, BaseIcon.vue, Checkbox.vue, etc. (without the 'Sw' prefix in the filename). These components get the 'Sw' prefix via the nuxt.config.ts configuration. The documentation should clarify that these are the registered component names (with prefix), not the filename.

Copilot uses AI. Check for mistakes.
## TL;DR

**What**: Nuxt layer providing Vue components for Shopware 6 Shopping Experiences (CMS)
**Purpose**: Pre-built, customizable CMS components styled with UnoCSS/Tailwind
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

This line mentions 'UnoCSS/Tailwind' but the actual implementation uses UnoCSS with presetWind3, which provides Tailwind-compatible classes. The documentation should be more specific about this distinction to avoid confusion.

Copilot uses AI. Check for mistakes.

#### vue-starter-template

The [vue-starter-template](../../templates/vue-starter-template/) demonstrates full cms-base-layer integration:
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The relative path ../../templates/vue-starter-template/ is correct for the repository structure, but may be confusing in the context of the published npm package. Consider adding a note that these paths are for the monorepo context.

Copilot uses AI. Check for mistakes.

#### vue-starter-template

The [vue-starter-template](../../templates/vue-starter-template/) demonstrates full cms-base-layer integration:
Copy link
Contributor

Choose a reason for hiding this comment

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

This will not work because cms-package is standalone package, this path will not exist in other projects

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the relative paths are valid for AI agents working within this monorepo - that's the purpose of AGENTS.md files. we will remove it entirely once templates will be moved to separate repository 👌🏼


#### vue-starter-template-extended

The [vue-starter-template-extended](../../templates/vue-starter-template-extended/) shows how to extend and customize:
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as above - monorepo context is intentional.

Comment on lines 374 to 385
## Dependencies

### Required Peer Dependencies
- `@shopware/composables` - Vue composables for Shopware
- `@shopware/helpers` - Utility functions
- `@shopware/api-client` - API communication

### Key Dependencies
- `@unocss/nuxt` - Styling framework
- `@nuxt/image` - Image optimization
- `@vuelidate/core` - Form validation
- `three` / `@tresjs/core` - 3D product visualization
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need this section, AI will read it from the package.json

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