Skip to content

refactor(widget): simplify state and hooks to support scalable interpretation flow#7

Merged
digitalrisedorset merged 1 commit intomainfrom
refactor/widget-state-flow
Apr 2, 2026
Merged

refactor(widget): simplify state and hooks to support scalable interpretation flow#7
digitalrisedorset merged 1 commit intomainfrom
refactor/widget-state-flow

Conversation

@digitalrisedorset
Copy link
Copy Markdown
Contributor

  • reorganise widget state to reduce coupling between UI and intent logic
  • simplify hook structure and remove unnecessary dependencies
  • clarify interpretation flow from user input → readiness → execution
  • centralise state transitions (INTERPRETATION_READY, SUGGEST_CLICKED, etc.)
  • improve handling of loading and async transitions
  • prepare widget to support both text-driven and payload-driven scenarios

this refactor reduces complexity in the component tree and establishes a
clear orchestration layer, enabling the widget to scale without introducing
state inconsistencies or duplicated logic

@digitalrisedorset digitalrisedorset merged commit deced05 into main Apr 2, 2026
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