Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

@ArtyomSavchenko ArtyomSavchenko commented Sep 11, 2025

Screenshot 2025-09-11 at 15 42 40 Screenshot 2025-09-11 at 15 43 42 Screenshot 2025-09-11 at 15 43 50

Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13652

@aonnikov
Copy link
Member

Maybe we can add some titles, or somehow redesign the dialog to explain users what all these options mean.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko marked this pull request as ready for review September 11, 2025 09:44
Copy link
Contributor

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 adds search functionality to card type dropdown menus, enabling users to filter nested dropdown items by typing. The search feature includes internationalization support and uses caching for performance optimization.

Key Changes

  • Added search input field to nested dropdown menus with withSearch prop
  • Implemented LocalizedSearch class with translation caching for filtering internationalized dropdown items
  • Added comprehensive test coverage for the search functionality

Reviewed Changes

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

Show a summary per file
File Description
TypeSelector.svelte Enables search functionality and disables focus on mouseover for card type dropdown
search.ts New LocalizedSearch class for filtering dropdown items with translation support
NestedMenu.svelte Integrates search functionality with filtered items display and empty state handling
NestedDropdown.svelte Passes through search-related props to nested menu component
search.test.ts Comprehensive test coverage for LocalizedSearch functionality
location.test.ts Adds Jest mocks for svelte/store to prevent ES module issues
package.json Adds test scripts for the UI package
jest.config.js Updates Jest configuration for proper testing environment

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ArtyomSavchenko
Copy link
Member Author

Maybe we can add some titles, or somehow redesign the dialog to explain users what all these options mean.

We discussed it and decided to leave it as is for now
In the future, we will need to improve the system of standard types, add descriptions and improve their display

@haiodo haiodo merged commit 113e72e into develop Sep 11, 2025
15 checks passed
@haiodo haiodo deleted the types-search branch September 11, 2025 10:55
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.

4 participants