Repository navigation
帖子頁與樓層選單:分享與複製、樓層管理收進面板;帖子頁拆出子檔 - #488
Merged
Merged
Conversation
Carinoasd
force-pushed
the
refactor/settings-ia-search
branch
from
November 27, 2026 08:09
624736b to
947f61d
Compare
Carinoasd
force-pushed
the
refactor/thread-post-menus
branch
from
November 27, 2026 08:09
d809fd8 to
13bd10e
Compare
Carinoasd
changed the base branch from
refactor/settings-ia-search
to
master
November 27, 2026 08:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
疊在 #487 上(base 是
refactor/settings-ia-search)。沒有刪除功能,不新增設定鍵,不動packages/。1. 選單
帖子頁「更多」選單(最多 28 項 → 22 項),項目改成選單打開時才建立,分五組:
後面接原本的全站 5 項(沒動)。
ListAppBar新增pageMenuItems。頁面用它自列全部項目時,頂欄不再印「重新整理/回到頂部/倒序」和「複製連結/在瀏覽器開啟」,改由頁面自己排。版塊頁沒有傳這個參數,選單和以前一樣。樓層選單(最多 24 項 → 11 項):
shareLink就顯示。沒有shareLink但有圖的樓層,面板裡只有「保存全部圖片」。共用面板
widgets/action_sheet.dart:showActionSheet只回傳選到的動作。點選時面板先關閉,呼叫端確認mounted後用自己的context執行,對話框不會疊在面板上,也不會用到已關閉的 context。樓層的面板回傳的是原本選單的動作值,直接交給原本的處理函式,所以每個動作的行為沒有改。圖示列每一項有文字、tooltip 和無障礙標籤。2. 檔案整理
thread_page.dart3265 行 → 2822 行:view/thread_page_menu.dart(part)view/thread_page_parts.dart(part)view/thread_search_bar.dartview/thread_multi_quote_bar.dartwidgets/thread_share_sheet.dartpost_card.dart1291 行 → 1073 行:post_card_menu.dart、post_share_sheet.dart、post_moderate_sheet.dart(都是 part)。3.
setState收斂:做到 6 處,少於原本說的 13 處主檔從 20 處降到 13 處(另有 1 處隨對話框搬到 parts 檔)。
ValueNotifier,只重建橫幅)。4. 不受影響的部分
KeyboardPageActions,沒有動。postCard.shareAndCopy一條。測試
test_276、test_854、test_224:改成進面板找被移動的項目。test_490、test_269:點選單項目前多等選單展開動畫結束。原因是選單變短後,展開到一半時第二項還沒露出來;以前選單很長,同一時間點已經露出。程式行為沒變。test_276第 5 組(4 個):面板列出全部方式且選單裡不再有;有圖沒連結仍有入口;兩者皆無則沒有入口;點選後面板先關再執行(以複製 PID 驗證)。test_224(1 個):帖內搜尋排第一、各組順序、複製連結等不在選單裡重複、收藏在頁面沒重建的情況下重開選單會切換文字、面板內容、點二維碼後面板關閉且對話框由頁面開啟。離線那一條也補了面板內容的檢查。dart ./Makefile.dart build、dart ./scripts/check_strict_analyzing.dart:No issues found。沒有驗證的部分
🤖 Generated with Claude Code