Skip to content

TASK-1884601 - code review improvements#128

Closed
tomaszmlocek-pega wants to merge 3 commits intomasterfrom
refactor/code-review-improvements
Closed

TASK-1884601 - code review improvements#128
tomaszmlocek-pega wants to merge 3 commits intomasterfrom
refactor/code-review-improvements

Conversation

@tomaszmlocek-pega
Copy link
Copy Markdown
Contributor

No description provided.

marekpelc-pega and others added 3 commits April 1, 2026 09:26
- Extract complex conditions into descriptive variables (shouldPreloadOptions, shouldDisplayOnlySingle, etc.)
- Refactor #setChildDatasource() with early exits to reduce nesting
- Remove commented-out code blocks
- Remove TODO comment (readonly handling tracked in US-743258)
- Extract multi-mode and single-mode logic into separate methods in CheckBoxComponent
- Add early exit in #initMultiMode() for better readability
- Replace if/else with when expression in CheckboxRenderer for exhaustive enum handling

These changes improve code readability and maintainability while preserving existing functionality.
@tomaszmlocek-pega tomaszmlocek-pega requested a review from a team as a code owner April 2, 2026 10:16
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.

2 participants