Skip to content

K2GO-434 refactor(setup): decomposition ADR + first three pure-domain slices - #600

Merged
luisguzman-adfa merged 5 commits into
mainfrom
refactor/K2GO-434-setupprogress-decomposition
Sep 30, 2026
Merged

luisguzman-adfa merged 5 commits into
mainfrom
refactor/K2GO-434-setupprogress-decomposition

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Decompose SetupProgressActivity (ADR-434). Strangler-fig, behavior-preserving,
one commit per slice.

  • ADR-434: the decomposition plan and slice roadmap (controller/docs).
  • Slice 1: the run completion + success/failure rule -> setup/domain/RunVerdict.
  • Slice 2: the four *InSession latches -> setup/domain/RunScope.
  • Slice 3: the status-line + bottom-controls derivation -> setup/domain/SetupUiState.

render() now gathers inputs and maps results; the three rules are pure JVM and
unit-tested. No behavior change, no dash-node change, no version bump.

Verification: :app:testStandardDebugUnitTest green (30 cases across the three domain tests).

Move the setup-run completion + success/failure logic out of
SetupProgressActivity.render() into setup/domain/RunVerdict (pure JVM,
unit-tested). render() now only gathers a RunSnapshot. No behavior change.
…t tests

Review nits on the slice-1 extraction: replace the fully-qualified
setup.domain references in render() with imports, and cover the
noRest-without-proot branch and a slow server restart in a REST run.
…tate machine

Move the four *InSession latch fields (maps/module/forgejo-seed/rebuild)
out of SetupProgressActivity into setup/domain/RunScope, a small monotonic
latch set (pure JVM, unit-tested). The four session methods now delegate;
each still computes its signal from the live sources. No behavior change.
Move the status-line (dot tone + message + ellipsis) and the
bottom-controls mode out of render() into setup/domain/SetupUiState
(semantic enums, pure JVM, unit-tested). render() gathers the inputs and
maps the result to resources and to show()/schedule/cancel. No behavior
change.
@luisguzman-adfa
luisguzman-adfa merged commit fadfa50 into main Sep 30, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the refactor/K2GO-434-setupprogress-decomposition branch September 30, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant