Skip to content

Move recent activity recording into SelectAssetViewModel - #981

Merged
DRadmir merged 1 commit into
mainfrom
wt1/asset-selection-effect
Aug 27, 2026
Merged

Move recent activity recording into SelectAssetViewModel#981
DRadmir merged 1 commit into
mainfrom
wt1/asset-selection-effect

Conversation

@DRadmir

@DRadmir DRadmir commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Picking an asset from the select-asset list is what adds it to Recents, but that rule lived in the navigation layer instead of the screen's view model. The view model only passed a flag along so navigation could decide.

The rule now sits in the same flow table that already decides what a selection does, so it is visible in one place, and the flag type is gone. Behaviour is unchanged.

Selecting an asset from the list recorded a recent activity entry from
the navigation layer, which switched on an AssetSelectionType tag the
view model produced only to carry that decision across the boundary.

Fold the decision into SelectAssetFlow.selectionEffect, which already
drives the same choice for select-style flows, and delete the enum.
@DRadmir DRadmir self-assigned this Aug 27, 2026
@DRadmir
DRadmir merged commit 0a87c4c into main Aug 27, 2026
2 checks passed
@DRadmir
DRadmir deleted the wt1/asset-selection-effect branch August 27, 2026 06:06
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