ui: print/theme 境界の契約を維持して整理する

Open
#1,516 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
49/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
testing

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

area: ui enhancement priority: low status: ready

概要

ExtendedPrintService、ViewPrintableParamsImpl、LafManager は印刷倍率、印刷描画パラメータ、テーマ操作の境界です。既存 API を整理しても、印刷倍率・レンダリング寸法・ズームとテーマ切替/描画の振る舞いを変えないよう、契約テストを追加します。
変更はこの3型と関連する focused test に限定し、画面や印刷結果の仕様を再設計しません。Refs #1445

作業手順

  1. modules/microproject_ui/src/main/java/com/microproject/ui/print/ExtendedPrintService.java と ViewPrintableParamsImpl.java の呼び出し元・実装を確認し、GraphParams による倍率と renderer、寸法、zoom setter の既存契約をテストで固定する。
  2. PrintThemeBoundaryContractTest を追加し、ViewPrintableParamsImpl の値設定・取得、ExtendedPrintService の倍率契約、LafManager の theme-switch / painting API が既存実装で維持されることを検証する。
  3. modules/microproject_ui/src/main/java/com/microproject/ui/theme/LafManager.java の API と LafManagerImpl の実装を確認し、テーマ変更時の描画・更新契約を変えずに整理する。
  4. 実際の印刷倍率、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

  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.