Skip to content

refactor(widget): centralize interaction view state in InteractionView#656

Open
kjmitchelljr wants to merge 1 commit intomainfrom
refactor/481-interaction-view-state
Open

refactor(widget): centralize interaction view state in InteractionView#656
kjmitchelljr wants to merge 1 commit intomainfrom
refactor/481-interaction-view-state

Conversation

@kjmitchelljr
Copy link
Copy Markdown
Collaborator

@kjmitchelljr kjmitchelljr commented Apr 7, 2026

Summary

Refactors the widget payment interaction screen so all views share one rendering path

What changed

  • resolveInteractionView() maps currentView to correct view
  • renderInteractionView(view) renders the shared layout once

Closes #481

Follow-up: automated tests

I'm still working to add automated tests for this flow, but as I was going through I wondered what would be best approach. Adding unit tests to perform in isolation or begin to build out E2E tests to test out whole payment flow which may be too much overhead at this point. But could have a starting point

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Deployment results

Worker Alias URL Outcome
API - staging success
CDN - 639e22c6 success
App - acd88269 success

Logs #24062400921

@kjmitchelljr kjmitchelljr requested a review from DarianM April 7, 2026 03:19
@kjmitchelljr kjmitchelljr self-assigned this Apr 7, 2026
@kjmitchelljr kjmitchelljr marked this pull request as ready for review April 7, 2026 03:25
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.

[refactor] improve interaction view state in the Widget tool component

1 participant