Extensible header controls with shared desktop/mobile rendering
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start with templates/layout.html.twig and compare the header_custom_menu and settings_dropdown_wrapper desktop blocks with the responsive header path. Then review the Twig components and UI Kit mentioned in the issue to understand how they could fit a shared extension point. Done means documenting a backward-compatible way to add ordered controls for desktop and mobile while preserving the existing default layout, with examples for the locale selector and a custom dropdown.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Now that EasyAdmin has Twig components, the UI Kit, and the refreshed design, could we provide a documented way to add application-specific controls to the top navigation, shared by desktop and mobile?
This builds on #6900, which requested an independent locale dropdown like Symfony Demo and was closed automatically for inactivity. I added an updated proposal there, but could not reopen the issue: https://github.com/EasyCorp/EasyAdminBundle/issues/6900#issuecomment-6714138968
Current limitation
On the current 5.x branch, desktop header customization and the responsive header follow separate template paths in templates/layout.html.twig. Desktop exposes blocks such as header_custom_menu and settings_dropdown_wrapper, while the responsive header renders its controls separately.
Adding an application-specific control in both places therefore requires knowing and overriding layout internals. The UI Kit provides reusable components, but a supported place to compose those components into the header would make them much more useful.
Use cases
- Locale selection: keep the current Settings placement by default, with an option to display a standalone language dropdown in the header, as Symfony Demo does. Both placements should reuse the same locale-switching implementation.
- Recently visited: render an application-provided dropdown of recently visited pages alongside the built-in controls. The application supplies the history and handles permissions; EasyAdmin supplies the placement and presentation.
Proposed direction
- Add a documented header extension point shared by desktop and mobile, allowing applications to render EasyAdmin components or their own Twig components.
- Preserve the existing default layout and template extension points.
- Define placement, ordering, and responsive behavior so application authors do not need to duplicate the surrounding header markup.
- Demonstrate the built-in locale selector and a custom dropdown in the UI Kit or documentation.
The exact API is open for discussion: a shared Twig block/slot may be enough initially, rather than introducing a large new configuration system.
Would you be open to a PR in this direction? Happy to start with a small, backward-compatible extension point and locale selector example, following your preferred API.
- Lenguaje dominante
- PHP
- Estrellas
- 4.3k
- Forks
- 1.1k
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 52
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 EasyCorp/EasyAdminBundle
-
bug design
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
EasyCorp/EasyAdminBundle#7958 ·
Los mantenedores suelen responder en 2 días
-
design feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
EasyCorp/EasyAdminBundle#7930 ·
Los mantenedores suelen responder en 2 días
-
design
Dificultad 2/5 Menos de una hora Aptitud para principiantes 88/100
EasyCorp/EasyAdminBundle#7879 ·
Los mantenedores suelen responder en 2 días
-
design
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
EasyCorp/EasyAdminBundle#7875 ·
Los mantenedores suelen responder en 2 días
-
#[AdminRoute]: the requirements of an action silently replace the ones of the classPosiblemente ocupada @anthonyhacart la tomó hace 1 día. Abiertofeature
Dificultad 3/5 Medio día Aptitud para principiantes 30/100
EasyCorp/EasyAdminBundle#7956 ·
Los mantenedores suelen responder en 2 días
Todos los issues de EasyCorp/EasyAdminBundle
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
taskforcesh/bullmq#5238 ·
Los mantenedores suelen responder en 1 día
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itPosiblemente ocupada @bfs2021 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Automattic/jetpack#55517 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
-
area/import type/enhancement when/later
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día