[T-192] 可結案提示改成只講狀態,拿掉權限與按鈕的實作說明 - #502
Merged
Merged
Conversation
owner 看到定稿後裁定:「一般結案只有負責人本人做得到,這個畫面上沒有那顆 按鈕」是在解釋權限怎麼切,是寫給開發者的理由,不該印在使用者的卡片上。 中英文都改成只講兩件事:所有步驟都完成了、正在等負責人收尾。 那兩個子句被拿掉後,①b 裡抓「一般結案」子句與「按鈕」子句的極性斷言失去 主詞,整組移除而不是放寬(放寬成恆真正是那個 block 當初被開出來要防的事)。 接手的是同一組測試裡對「等的是負責人、不是讀者」的極性斷言,以及本來就在 的 DOM 斷言——畫面上沒有一般結案控制項這件事,現在由 DOM 斷言單獨守著, 不再由文案複述。三份檔頭註解一併改掉,因為它們描述的本體已經不在。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sds57Nw738UGnxzaMh5wk5
This was referenced Sep 15, 2026
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.
起因
owner 看到任務卡片上「可結案」時的那段藍框提示,說:這訊息很怪,把實作細節都顯示出來了,並逐字點名「一般結案只有負責人本人做得到,這個畫面上沒有那顆按鈕。」
那一段在解釋權限怎麼切、以及某顆按鈕為什麼不在這個畫面上——是寫給開發者的理由。使用者只需要知道兩件事:為什麼停著、以及他能做什麼。
改成什麼
owner 於
rc-bcb57813b468圈了較短的那個版本(只講狀態):所有步驟都完成了,正在等負責人收尾。Every step is done — this task is waiting for its assignee to wrap it up.他知情地放棄了一件事:畫面上不再指路到「強制結案」。那顆按鈕在狀態標籤的選單裡,卡上寫明了這個代價。
一組守衛跟著動了,處理方式寫在這裡
TaskCard.force-done.test.tsx有幾條斷言在驗「那句話的兩個主張跟畫面一致」——它們存在的原因是那句話曾經被改成謊話(宣稱讀者自己就能結案、按鈕就在這裡)而整套測試沒紅。新句子把那兩個子句整個拿掉,所以:
因改動而變假的註解一併改掉,不是留著再補一句。
驗證
TaskCard.force-done.test.tsx31 支全過(該檔總共 31 支),兩支型別檢查乾淨。沒驗到