ui: Gantt に図形の層と Drawings リボン、選択・移動・削除を追加する

Open
#1,416 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
java

Research direction

Start with GanttRenderer.paintNode and its row/dependency drawing paths, then inspect CoordinatesConverter and the TabGanttChartFormat/GroupDrawings ribbon code. Check the ribbon order CSV and MspRibbonOrderDiffTest exclusions, and trace the existing drawing data from child issue #1415. Done means drawing creation, selection, move, delete, undo/redo, save/reload, print, and SVG behavior meet the listed tests; run the UI tests and build.

Written by the indexing model from the issue text.

Description

area: msp-compat area: ui enhancement priority: medium status: ready

親:#1290(Drawings の調査と提案)。前提:#1415(子 A)。

概要

#1290 の提案に従い、Gantt に図形の層を足す。子 A で入れた図形のデータを描き、リボンの Drawings グループから直線・四角形・テキスト ボックスを作れるようにし、選択・移動・削除をマウスで行えるようにする。印刷と SVG にも図形を出す。

作業手順

  1. GanttRenderer(modules/microproject_ui/src/main/java/com/microproject/ui/view/gantt/GanttRenderer.java:1069 の paintNode)で、行と依存の矢印(同 :930-1010)を描いたあとに図形の層を 1 回描く。x は CoordinatesConverter、y はタイムスケール上端からのオフセットで決め、RowHeights(同 :587-588 など)に依存させない。
  2. リボンの TabGanttChartFormat/GroupDrawings で、DrawLine、DrawFilledRectangle、DrawTextBox、DrawingProperties だけを有効にする。並びは modules/microproject_ui/src/test/resources/com/microproject/ui/ribbon/msp-ribbon-order.csv:341-355 に合わせる。MspRibbonOrderDiffTest(modules/microproject_ui/src/test/java/com/microproject/ui/ribbon/MspRibbonOrderDiffTest.java:267)の除外を、実装した分だけ外す。
  3. チャート部分のドラッグで図形を作り、クリックで選択、ドラッグで移動、Delete で削除する。移動はドラッグ終了時に 1 回だけ Undo に積む。図形の上でのクリックは、行の選択に伝播させない。
  4. DrawingProperties で線色と塗り色を変えるダイアログを出す。OK で 1 つの Undo にする。
  5. 印刷と SVG で図形が出ることを確かめる。GanttSVGRenderer(modules/microproject_ui/src/main/java/com/microproject/ui/export/svg/GanttSVGRenderer.java:86、:107、:122)が新しい状態も複製するようにする。
  6. キーボード ショートカットは追加しない(docs/agent-workflows.md のショートカットの規則)。

検証

.\gradlew.bat :microproject_ui:test --console=plain
.\gradlew.bat build --console=plain

実機では docs/gui-quality-gate.md に従い、リボン → 図形 → ドラッグ → 選択 → 移動 → Delete → Undo/Redo → MPO 保存 → 再読み込みを 1 経路として確かめる。

完了条件

  • リボンの Drawings から直線・四角形・テキスト ボックスを作れ、キャンセルで何も残らない(Robot の経路テストあり)
  • 図形の選択・移動・削除が 1 操作 1 Undo で、Undo/Redo で元に戻る(テストあり)
  • MPO に保存して開き直すと、同じ位置に同じ図形が出る(保存・再読み込みのテストあり)
  • 印刷と SVG の出力に図形が含まれる(テストあり)
  • 行の高さを変えても図形の位置が変わらない(テストあり)
  • :microproject_ui:test と build が通る

範囲外

  • 日付への固定、多角形・円弧、パターン、重なり順のコマンド。
  • MSPDI / MPP の図形の読み書き。
  • レポートの図形(TabDrawingToolsFormat)。
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tetsuji16/microProject

All issues in tetsuji16/microProject

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.