Skip to content

Conversation

iobuhov
Copy link
Collaborator

@iobuhov iobuhov commented Sep 30, 2025

Pull request type

Bug fix (non-breaking change which fixes an issue)


Description

Fix issue with checkbox state by making it observable

@iobuhov iobuhov requested a review from a team as a code owner September 30, 2025 12:34
@Copilot Copilot AI review requested due to automatic review settings September 30, 2025 12:34
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the selection helper widget to use MobX for better state management and reactivity. The changes modernize the context API to directly expose the MobX-enabled MultiSelectionHelper and update the SelectionHelper component to be a MobX observer.

  • Adds MobX observability to MultiSelectionHelper class with proper observable/computed/action decorators
  • Simplifies the context API to directly expose the selection helper instead of a custom wrapper object
  • Updates the SelectionHelper component to use MobX observer pattern for reactive rendering

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/shared/widget-plugin-grid/src/selection/helpers.ts Adds MobX decorators to MultiSelectionHelper and implements togglePageSelection method
packages/shared/widget-plugin-grid/src/selection/context.ts Simplifies context API to directly expose SelectionStore interface
packages/pluggableWidgets/selection-helper-web/src/package.xml Updates version from 3.3.0 to 3.6.1
packages/pluggableWidgets/selection-helper-web/src/components/SelectionHelperComponent.tsx Adds TODO comment and reorders imports
packages/pluggableWidgets/selection-helper-web/src/SelectionHelper.tsx Converts component to MobX observer and updates property access
packages/pluggableWidgets/selection-helper-web/package.json Updates version and adds mobx-react-lite dependency
packages/pluggableWidgets/selection-helper-web/CHANGELOG.md Adds changelog entry for checkbox state synchronization fix
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@iobuhov iobuhov force-pushed the 3073_selection_helper_ticket branch from 1e2d9b0 to 4eb380e Compare October 3, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants