Skip to content

Refactor DrawAreaTask state management and enforce UDF#3678

Draft
shobhitagarwal1612 wants to merge 4 commits intomasterfrom
draw-area-task-ui-state
Draft

Refactor DrawAreaTask state management and enforce UDF#3678
shobhitagarwal1612 wants to merge 4 commits intomasterfrom
draw-area-task-ui-state

Conversation

@shobhitagarwal1612
Copy link
Copy Markdown
Member

Towards #3630

This PR refactors the state management for the DrawAreaTask to adhere to Unidirectional Data Flow (UDF) principles and improves the consistency of the UI state.

Key Changes

  • Unified UI State: Migrated DrawAreaTask state management to a unified DrawAreaUiState flow, centralizing transient UI state.
  • Consolidated State: Combined self-intersection related states into a single boolean property in DrawAreaUiState.
  • Consistent Naming: Renamed boolean properties in DrawAreaUiState to use the is- prefix for consistency.
  • UDF Enforcement: Derived map display vertices directly from the task state and simplified the logic for vertex removal and addition to ensure a single source of truth.

@andreia-ferreira PTAL?

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