[3.x] Move the discussion list side pane out of core into a bundled extension
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, php
- Área
- developer-experience, frontend
Línea de trabajo
Start by tracing ForumApplication, PageStructure, DiscussionPage, Navigation.items(), and the pane files and styles named in the issue. Then review Embed's workaround, the upgrade guide, and the flarum/docs extension documentation structure. The work is done when the pane lives in a bundled extension, core retains a general extension point, the pinned preference survives upgrades, and the migration and extension docs are updated.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
On wide screens the discussion page has a side pane that shows the discussion list. It slides out from the left edge on hover and can be pinned open. #5525 (pinned discussion list pane does not show when loading directly to a discussion) showed how little it's used, and how much core code it costs for that:
- It depends on a list the index page happens to leave behind. Opening a discussion by URL showed no pane until #5526 made the discussion page load the list itself when the pane is pinned.
- It's built into core's layout.
ForumApplicationcreatesapp.pane, andPageStructurehas a slot for it.DiscussionPageturns it on and off.Navigation(incommon, so the admin frontend gets it too) renders the pin button.- Core's styles carry
hasPane/panePinnedrules inApp.less,Navigation.less,Composer.lessandDiscussionListPane.less.
- Other extensions have to work around it. Embed has to unpin it in memory so that a pin saved on the forum doesn't load the list into an embed.
The reporter of #5525 suggested moving it to an optional extension. 3.0 is the place to do that, because removing it is a breaking change for extensions that use app.pane or the pane's markup and classes.
Proposed scope
- New bundled extension, e.g.
flarum/discussion-pane, enabled by default so existing forums keep the feature. It takes over:forum/utils/Paneandforum/components/DiscussionListPane, with their styles and the--pane-width/--zindex-panevariables;- the pin button now added in
Navigation.items(); - turning the pane on and off on the discussion page, including loading the list on a direct load (#5526);
- the locale strings
core.lib.nav.pin_pane_buttonandcore.forum.discussion_list.skip_discussion_list_pane.
- Core keeps a general extension point where the pane sat, such as
PageStructure'spaneslot or anItemListbeside the main content. It should not know about a discussion list pane orapp.pane. - Remove
app.panefrom core'sApplication/ForumApplication. Once the pane is an extension, Embed's workaround can go. - Keep the pinned preference across the upgrade: the extension keeps the
panePinnedlocalStorage key. - Write the upgrade guide entry for extensions that use
app.pane,DiscussionListPane, theNavigationpin item or thehasPane/panePinnedclasses. Deck's styles are one case:extensions/deck/less/forum.lesscopies the pane's narrow-column rules. - Add a docs page for the new extension in flarum/docs (
docs/extensions/<name>.md, sidebar, artwork).
Open questions
- Enabled by default, or opt-in? Default keeps today's behaviour; opt-in matches how rarely it seems to be used.
- Name:
flarum/discussion-pane,flarum/discussion-sidebar, or something else.
- Lenguaje dominante
- PHP
- Estrellas
- 6.8k
- Forks
- 891
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 209
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 flarum/framework
-
type/accessibility type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Default language is ignored for anyone who chose a language, when the language selector is hiddenPosiblemente ocupada @1AbdullahButt la tomó hace 15 días. Abiertotype/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
[2.x] False CLI/Web PHP mismatch when /usr/bin/php differs from the site's FPMPosiblemente ocupada @lazerg la tomó hace 15 días. Abiertotype/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 78/100
Los mantenedores suelen responder en 1 día
-
[2.x] A filter on a resource without a searcher returns a 500Posiblemente ocupada @imorland la tomó hoy. Abiertotype/bug
flarum/framework#5578 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de flarum/framework
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 87/100
Sylius/Sylius#19359 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add php 8.6Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 66/100
mailersend/mailersend-php#199 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Tool: somcp_delete_currencyAbiertoConfiguration new tool
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
novalo-dev/Prestashop-MCP-Server#366 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 10 días