Project Summary Task 2/2: リボンのチェック ボックスとビューごとの保存
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with the existing GanttSummaryTasks command in GraphicManager.java and the summaryTasksVisible save and restore paths in GanttView.java; then trace the equivalent Task Sheet and Task Usage view state and the Workspace persistence path. The issue also names MspRibbonOrderDiffTest, RibbonButtonBehaviorTest, menu.properties, and menu_ja.properties as entry points. Done means the checkbox works and persists across all three views, the specified tests pass, and the GUI journey confirms the Task Sheet’s first row appears.
Written by the indexing model from the issue text.
Description
概要
#1284 で作ったプロジェクトの概要行を、リボンの [書式] タブの「プロジェクトの概要タスク」チェック ボックスで表示・非表示にし、ビューごとに保存する。
前提: #1284 がマージ済み。親 issue: #1180。行番号は master 442494033 時点。
作業手順
- 既存の「サマリー タスク」チェック ボックス(
MenuActionConstants.ACTION_GFMT_SUMMARY_TASKS=GanttSummaryTasks、GraphicManager.java:1999/:3426/:6172/:6189)と同じ作りで、ACTION_GFMT_PROJECT_SUMMARY_TASKを足す。対象は Gantt Chart、Task Sheet、Task Usage の 3 つの書式タブ。 - 状態はビューの Workspace に Boolean で持つ。
GanttViewのsummaryTasksVisible(復元GanttView.java:693、保存:733)と同じ場所にprojectSummaryTaskVisibleを足す。nullは false とみなす(既存ファイルは今の表示のまま)。Task Sheet と Task Usage のビューにも同じ項目を足す。 - チェックの切り替えで
NodeCacheTransformerのフラグを変え、キャッシュを更新する。切り替えは表示の設定なので Undo の対象にしない(「サマリー タスク」と同じ扱い)。 - MPO:Workspace の保存経路で値が往復することを確かめる。保存先が MPO の sidecar(
MpoSidecarJson)なら、summaryTasksVisibleと同じ書き方でキーを足す。 - リボン:
- リボンの台帳
modules/microproject_ui/src/test/java/com/microproject/ui/ribbon/MspRibbonOrderDiffTest.javaのMISSING_CONTROLSから、この issue で実装したエントリだけを削除する。理由の定数がどこからも参照されなくなったら定数も削除する。 - ボタンの文言は
modules/microproject_ui/src/main/resources/com/microproject/menu/menu.properties(英語)とmenu_ja.properties(日本語)の両方に足す。 - コマンドは
RibbonCommandCatalogに登録し、RibbonButtonBehaviorTestの表に 1 行足す。
- テスト:チェック ボックスの選択状態がビューの状態と一致するテスト、Workspace の保存→復元で値が残るテスト、GUI acceptance に Task Sheet でチェックを入れると先頭行が出るジャーニーを 1 件(
@GuiJourney)。
検証
.\gradlew.bat :microproject_ui:test --tests "*MspRibbonOrderDiffTest*" --tests "*RibbonButtonBehaviorTest*" --tests "*ProjectSummary*" --console=plain
.\gradlew.bat :microproject_ui:test :microproject_exchange:test --console=plain
.\gradlew.bat :microproject_ui:guiTest --tests "*ProjectSummary*" --console=plain
python scripts/test_source_inventory.py --check --output build/audit/test-source-inventory.json
git diff --check
画面の確認は docs/gui-quality-gate.md に従い、日本語と英語の両方で行う。
完了条件
- Gantt Chart、Task Sheet、Task Usage の書式タブに「プロジェクトの概要タスク」があり、切り替えで先頭行が出入りする
- ビューを閉じて開き直しても、保存したファイルを開き直しても、状態が残る(テストあり)
- 値を持たない既存ファイルでは非表示のまま
-
MISSING_CONTROLSからTabGanttChartFormat、TabTaskSheetViewFormat、TabTaskUsageViewFormatのProjectSummaryTaskShowが消え、MspRibbonOrderDiffTestが通る - 必須チェック
buildとGUI acceptanceが成功する
範囲外
- 概要行そのもの(#1284)
- Network Diagram と Calendar の
ProjectSummaryTaskShow(エントリは残す。理由の文言は「Network Diagram / Calendar には概要行の表示を作っていない」に直す)
- Dominant language
- Java
- Stars
- 2
- Forks
- 1
- Avg merge
- 4h 52m
- Merged PRs (30d)
- 349
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tetsuji16/microProject
-
area: ui priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
tetsuji16/microProject#1721 ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
tetsuji16/microProject#1386 · 3 comments ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
tetsuji16/microProject#1384 ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
tetsuji16/microProject#1385 ·
Maintainers usually reply within 1 day
-
area: ui enhancement priority: low status: ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tetsuji16/microProject#1383 · 1 comment ·
Maintainers usually reply within 1 day
All issues in tetsuji16/microProject
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
The engine's "loaded, but had errors" message leaves out which library and line each error is inOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cqframework/clinical_quality_language#1980 ·
Maintainers usually reply within 3 days
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Open
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
dedicatedcode/reitti#1445 ·
Maintainers usually reply within 1 day
-
backlog kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
TencentBlueKing/bk-job#4642 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
hapifhir/hapi-fhir-jpaserver-starter#1024 ·
Maintainers usually reply within 1 day