ui: print/theme 境界の契約を維持して整理する
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 49/100
Research direction
Read ExtendedPrintService.java, ViewPrintableParamsImpl.java, and LafManager.java, then trace their callers and the LafManagerImpl implementation. Start by running the named focused print and theme tests and identify the existing contracts for scale, renderer, dimensions, zoom, theme switching, and painting. Done means focused tests preserve those behaviors and the UI module tests pass.
Written by the indexing model from the issue text.
Description
概要
ExtendedPrintService、ViewPrintableParamsImpl、LafManager は印刷倍率、印刷描画パラメータ、テーマ操作の境界です。既存 API を整理しても、印刷倍率・レンダリング寸法・ズームとテーマ切替/描画の振る舞いを変えないよう、契約テストを追加します。
変更はこの3型と関連する focused test に限定し、画面や印刷結果の仕様を再設計しません。Refs #1445
作業手順
modules/microproject_ui/src/main/java/com/microproject/ui/print/ExtendedPrintService.javaとViewPrintableParamsImpl.javaの呼び出し元・実装を確認し、GraphParams による倍率と renderer、寸法、zoom setter の既存契約をテストで固定する。PrintThemeBoundaryContractTestを追加し、ViewPrintableParamsImplの値設定・取得、ExtendedPrintServiceの倍率契約、LafManagerの theme-switch / painting API が既存実装で維持されることを検証する。modules/microproject_ui/src/main/java/com/microproject/ui/theme/LafManager.javaの API とLafManagerImplの実装を確認し、テーマ変更時の描画・更新契約を変えずに整理する。- 実際の印刷倍率、renderer、寸法、zoom、テーマ切替結果を変えない。必要な小さな実装変更と focused test のみを行う。
検証
UI 部品変更の試験として focused test と既存の print/theme テストを先に実行し、次に UI モジュール全体を実行する。
.\gradlew.bat :microproject_ui:test --tests "com.microproject.ui.print.PrintThemeBoundaryContractTest" --tests "com.microproject.ui.print.PageSetupPrintServiceOptionTest" --tests "com.microproject.ui.print.PrintDocumentFactoryTest" --tests "com.microproject.ui.theme.ThemeManagerTest" --console=plain
.\gradlew.bat :microproject_ui:test --console=plain
git diff --check
完了条件
-
ExtendedPrintServiceの倍率計算契約とViewPrintableParamsImplの renderer・寸法・zoom 契約を focused test が確認する。 -
LafManagerのテーマ切替と描画 API が既存実装と focused test で維持される。 - print / theme の既存テストが通り、印刷・描画・テーマの利用者向け結果が変わらない。
-
:microproject_ui:testとgit diff --checkが成功する。 - PR の
buildとGUI acceptanceが通る。
範囲外
- 印刷レイアウト、出力内容、倍率の仕様変更。
- テーマの色・Look and Feel の変更、GUI 導線変更。
FrameHolder等の frame lifecycle または workspace 永続化。
- 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