Skip to content

Refactor Sidebar Logic into a Shared Context #1364

@AlexanderArce

Description

@AlexanderArce

Currently, the sidebar functionality (state management, toggle logic, and contextual data) is duplicated across multiple components such as ProcessView and ProcessCreate. This redundancy increases maintenance complexity and risks inconsistent behavior when updates are made to sidebar interactions.

Proposed Solution

  • Create a new SidebarContext to centralize sidebar logic and state.
  • Move toggle, visibility, and related actions into this shared context provider.
  • Replace the local sidebar state in ProcessView and ProcessCreate with the new context hooks.
  • Ensure the context is easily extensible for future sidebar-enabled components.

Acceptance Criteria

  • Sidebar open/close and data behavior is consistent across ProcessView and ProcessCreate.
  • No duplicated sidebar logic remains within individual components.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions