Component groups: max-components prop (limit how many components a group holds)
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
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,nullclears 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: nongroup(...).
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de components-web-app/docs
-
documentation
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
components-web-app/docs#285 ·
-
documentation
Dificultad 4/5 1-2 días Aptitud para principiantes 35/100
components-web-app/docs#284 ·
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
components-web-app/docs#283 ·
-
documentation
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
components-web-app/docs#282 ·
-
documentation
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
components-web-app/docs#281 ·
Todos los issues de components-web-app/docs
Issues similares
-
skillopt: success-reflect prompt omits the edit schema, so every success-only edit is droppedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Workspace secrets/constants containing "$" are corrupted when resolved in data source optionsAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
mobile-next/mobile-mcp#526 ·
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 1/5 Menos de una hora Aptitud para principiantes 73/100
redhat-developer/rhdh-plugin-export-overlays#4470 · 1 comentario ·
Los mantenedores suelen responder en 1 día