Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Component groups: max-components prop (limit how many components a group holds)

Cerrado
#246 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
nuxt
Área
full-stack

Línea de trabajo

The work spans the CwaComponentGroup prop, the synchroniser that writes it, the admin Group tab and add/merge options, and an api-components-bundle release containing #467, so start by confirming that release exists. Read commit 6789579f in cwa-nuxt-module to see how allowedComponents is synced, then mirror that path for maxComponents. Done means a full group disables adds, a refused save shows the API message, and the fixture builder accepts max: n.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

documentation

cwa-nuxt-module#398 (commit 6789579f, unreleased after 2.0.0-alpha.17) with api-components-bundle#467.

<CwaComponentGroup> takes :max-components="n" alongside allowed-components:

  • The synchroniser writes it to the group as it does allowedComponents: omitted leaves the stored value, null clears it. Anything but a positive whole number logs a warning and is not sent.
  • The count is the group's positions, as the API counts them: a dynamic page-data slot counts as one, and a draft and its published component count once.
  • A full group: the Group tab's Add to start/end are disabled with the reason on hover, the manager's add options are left out, and the stranded-group merge doesn't offer it as a target unless it has room for every component.
  • A group over its limit (the limit was set after content existed) shows a warning in the Group tab. Nothing is removed; it takes no more components until it's under the limit.
  • If a save is refused anyway, the API's message ("The component group <reference> is full …") shows in the admin's error notification.
  • Needs an api-components-bundle release containing #467; the fixture builder takes max: n on group(...).

Example: <CwaComponentGroup reference="headerButton" :location="$cwa.resources.layoutIri.value" :allowed-components="['HeaderButton']" :max-components="1" />

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
1 h 20 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de components-web-app/docs

Todos los issues de components-web-app/docs

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.