Extensible header controls with shared desktop/mobile rendering
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PHP
- Star
- 4.3k
- Fork
- 1.1k
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 52
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của EasyCorp/EasyAdminBundle
-
bug design
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
EasyCorp/EasyAdminBundle#7958 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
design feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
EasyCorp/EasyAdminBundle#7930 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
design
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 88/100
EasyCorp/EasyAdminBundle#7879 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
design
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
EasyCorp/EasyAdminBundle#7875 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
#[AdminRoute]: the requirements of an action silently replace the ones of the classCó thể đã có người làm @anthonyhacart đã nhận 2 ngày trước. Đang mởfeature
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 30/100
EasyCorp/EasyAdminBundle#7956 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của EasyCorp/EasyAdminBundle
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
taskforcesh/bullmq#5238 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itCó thể đã có người làm @bfs2021 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Automattic/jetpack#55517 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
-
area/import type/enhancement when/later
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày