Skip to content

Feat/persistent combobox updates#1193

Merged
aslakihle merged 17 commits into
mainfrom
feat/persistent-combobox-updates
Jan 6, 2026
Merged

Feat/persistent combobox updates#1193
aslakihle merged 17 commits into
mainfrom
feat/persistent-combobox-updates

Conversation

@aslakihle

@aslakihle aslakihle commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

Azure DevOps links


  • Needs to be tested locally by reviewer

Description

Test setup for persistent combobox

Tests for new env toggle functionality

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds loading state support for the persistent combobox component and improves test coverage. The implementation introduces skeleton loading indicators and enhances the existing test suite with comprehensive interaction tests for various scenarios.

Key Changes:

  • Added SelectItemSkeleton component for loading state visualization
  • Implemented loading state handling in persistent mode of Select component
  • Enhanced Storybook stories with extensive interaction tests using the play function
  • Improved test structure for custom value component functionality

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/molecules/Select/SelectItemSkeleton.tsx New skeleton loading component with test-id for loading indication
src/molecules/Select/Select.tsx Added loading state support to persistent mode with conditional skeleton rendering
src/molecules/Select/Select.test.tsx Added test for SingleSelect error validation in persistent mode
src/molecules/Select/PersistentComboBox/PersistentComboBox.stories.tsx Enhanced stories with deterministic fake data generation and comprehensive play functions for interaction testing
src/molecules/Select/ComboBox/ComboBox.test.tsx Restructured custom value component tests into a describe block with separate removal test cases
public/mockServiceWorker.js Updated MSW version from 2.12.1 to 2.12.4
bun.lock Updated multiple dependencies including rolldown, tiptap, tanstack, and typescript-eslint packages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Select/Select.test.tsx
@github-actions

github-actions Bot commented Dec 10, 2025

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 16568 / 16568
🔵 Statements 100% (🎯 100%) 16568 / 16568
🔵 Functions 100% (🎯 100%) 1195 / 1195
🔵 Branches 100% (🎯 100%) 4122 / 4122
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/atoms/utils/environmentToggle.ts 100% 100% 100% 100%
src/molecules/Select/DynamicMenuItem.tsx 100% 100% 100% 100%
src/molecules/Select/GroupedSelectPersistent.tsx 100% 100% 100% 100%
src/molecules/Select/ListSelectPersistent.tsx 100% 100% 100% 100%
src/molecules/Select/SearchBar.tsx 100% 100% 100% 100%
src/molecules/Select/Select.tsx 100% 100% 100% 100%
src/molecules/Select/SelectItemSkeleton.tsx 100% 100% 100% 100%
src/molecules/Select/SelectMenuItem.utils.ts 100% 100% 100% 100%
src/organisms/TopBar/Account/AccountAvatar.tsx 100% 100% 100% 100%
src/organisms/TopBar/Account/AccountButton.tsx 100% 100% 100% 100%
src/organisms/TopBar/Account/ImpersonateMenu/Actions.tsx 100% 100% 100% 100%
Generated in workflow #2022 for commit 3e05fc5 by the Vitest Coverage Report Action

Copilot AI review requested due to automatic review settings December 16, 2025 09:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/molecules/Select/SelectMenuItem.utils.ts:42

  • The removal of the early return guard for items without children could lead to incorrect behavior. When an item has no children, flattenOptions will return an array containing only the parent item. This means the function will incorrectly calculate the parent state for items without children. Consider keeping the early return or ensuring the logic properly handles items without children.
export function getParentState<T extends SelectOptionRequired>(
  item: SelectOption<T>,
  values: SelectOption<T>[]
): SelectedState {
  const isSelected = values.some((value) => value.value === item.value);
  const selectedValues = values.map(({ value }) => value);
  const allOptions = flattenOptions([item])?.map(({ value }) => value);
  if (isSelected) {
    return 'selected';
  } else if (allOptions.some((option) => selectedValues.includes(option))) {
    return 'indeterminate';
  }

  return 'none';

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Select/Select.test.tsx Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Select/Select.tsx
Comment thread src/molecules/Select/Select.test.tsx
@aslakihle aslakihle marked this pull request as ready for review December 17, 2025 12:22
@aslakihle aslakihle requested a review from a team as a code owner December 17, 2025 12:22
Copilot AI review requested due to automatic review settings December 17, 2025 12:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Select/SelectMenuItem.utils.ts
@mariush2 mariush2 self-requested a review January 5, 2026 08:13
Comment thread src/molecules/Select/PersistentComboBox/PersistentComboBox.stories.tsx Outdated
Copilot AI review requested due to automatic review settings January 5, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 19 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mariush2
mariush2 previously approved these changes Jan 5, 2026
Copilot AI review requested due to automatic review settings January 5, 2026 14:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 19 out of 20 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Select/GroupedSelectPersistent.tsx
@aslakihle aslakihle requested a review from mariush2 January 5, 2026 14:17
@aslakihle aslakihle merged commit 714d70f into main Jan 6, 2026
16 of 17 checks passed
@aslakihle aslakihle deleted the feat/persistent-combobox-updates branch January 6, 2026 09: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.

3 participants