You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The useEffect hook updated on line 188 now depends on sort but does not include sortOrder even though sortOrder is used in the API query. Please verify if sortOrder should also be added to the dependency array to ensure state consistency.
The onClick handlers for the ToggleButton components (lines 439–456) use the signature (e, v) => setSortOrder(v). Ensure these callbacks correctly capture the intended new value and consider if using an onChange handler might improve clarity and consistency with other input handling.
Why: Adding sortOrder to the dependency array ensures that state changes trigger the necessary effect, which is a critical fix for keeping the view in sync; this adjustment directly addresses a potential bug in state management.
Medium
Use group onChange
Replace individual onClick handlers with a single onChange on the ToggleButtonGroup to correctly capture the selected value.
Why: The suggestion proposes consolidating individual onClick handlers into an onChange handler which improves conciseness and consistency, though it may slightly alter event handling semantics; the overall impact is moderate.
Low
Consolidate toggle events
Modify the view toggle group to use an onChange handler on the ToggleButtonGroup for consistent state updates.
Why: Similar to suggestion 1, this change streamlines event handling for view toggles by moving to an onChange handler; it is a stylistic improvement with moderate benefit assuming the ToggleButtonGroup supports such handling.
Corrected sorting functionality on settings pages.
Changed
Updated sort options and enhanced UI tooltips.
to commit the new content to the CHANGELOG.md file, please type:
'/update_changelog --pr_update_changelog.push_changelog_changes=true'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Bug fix for Settings pages sorting options.
Changes Made
Adding in sort options to the MyEngines reactor. Changing style and adding tooltips for sorting/views.
How to Test
Notes
pending merge of BE to test
SEMOSS/Semoss#479