[3.x] Move the discussion list side pane out of core into a bundled extension
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, php
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- PHP
- スター
- 6.8k
- フォーク
- 891
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 209
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
flarum/framework のほかの issue
-
type/accessibility type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
Default language is ignored for anyone who chose a language, when the language selector is hidden対応中かも @1AbdullahButt が 15 日前に担当しました。 オープンtype/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
[2.x] False CLI/Web PHP mismatch when /usr/bin/php differs from the site's FPM対応中かも @lazerg が 15 日前に担当しました。 オープンtype/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[2.x] A filter on a resource without a searcher returns a 500対応中かも @imorland が今日担当しました。 オープンtype/bug
flarum/framework#5578 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
flarum/framework の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 87/100
Sylius/Sylius#19359 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add php 8.6オープン
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
mailersend/mailersend-php#199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Configuration new tool
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
novalo-dev/Prestashop-MCP-Server#366 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 10 日以内に返信