Skip to content

refactor(web): stack-related service and actions#29403

Open
meesfrensel wants to merge 1 commit into
mainfrom
refactor/stack-actions
Open

refactor(web): stack-related service and actions#29403
meesfrensel wants to merge 1 commit into
mainfrom
refactor/stack-actions

Conversation

@meesfrensel

@meesfrensel meesfrensel commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Convert the old stack-related actions to a service and new action structure. Old style callbacks are moved to events and where applicable, handled directly in the timeline manager instead of delegating to the asset viewer first.

I think I tested all flows and actions, and everything I tested works as expected.

@meesfrensel meesfrensel force-pushed the refactor/stack-actions branch from 96b08df to 698b96d Compare June 30, 2026 18:15
@@ -115,6 +116,23 @@ export class TimelineManager extends VirtualScrollManager {
this.#unsubscribes.push(
eventManager.on({
AssetUpdate: (asset: AssetResponseDto) => this.#updateAssets([toTimelineAsset(asset)]),
StackCreate: (stack) => updateStackedAssetInTimeline(this, stack),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the timeline manager event handlers need a guard with if (withStacked) or something? The scenario I'm afraid of is that stacks could appear in non-withStacked views like album timeline. However, I couldn't reproduce that case so I'm not sure it's needed.

@meesfrensel meesfrensel marked this pull request as ready for review June 30, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant