ui: Gantt に図形の層と Drawings リボン、選択・移動・削除を追加する
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
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
親:#1290(Drawings の調査と提案)。前提:#1415(子 A)。
概要
#1290 の提案に従い、Gantt に図形の層を足す。子 A で入れた図形のデータを描き、リボンの Drawings グループから直線・四角形・テキスト ボックスを作れるようにし、選択・移動・削除をマウスで行えるようにする。印刷と SVG にも図形を出す。
作業手順
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など)に依存させない。- リボンの
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)の除外を、実装した分だけ外す。 - チャート部分のドラッグで図形を作り、クリックで選択、ドラッグで移動、Delete で削除する。移動はドラッグ終了時に 1 回だけ Undo に積む。図形の上でのクリックは、行の選択に伝播させない。
DrawingPropertiesで線色と塗り色を変えるダイアログを出す。OK で 1 つの Undo にする。- 印刷と SVG で図形が出ることを確かめる。
GanttSVGRenderer(modules/microproject_ui/src/main/java/com/microproject/ui/export/svg/GanttSVGRenderer.java:86、:107、:122)が新しい状態も複製するようにする。 - キーボード ショートカットは追加しない(
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
- 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