Skip to content

Conversation

@luizhf42
Copy link
Member

This pull request introduces a new reusable component, PrivateKeySelectWithAdd, which streamlines the process of selecting and adding private keys in the UI. The TerminalLoginForm is refactored to use this new component, simplifying its logic and improving maintainability. Comprehensive tests for the new component are also added, and relevant test files are updated to support these changes.

Component Refactoring and Feature Addition:

  • Added a new PrivateKeySelectWithAdd component that provides a dropdown for selecting private keys and an integrated option to add a new key, automatically selecting it upon creation.
  • Refactored TerminalLoginForm to use the new PrivateKeySelectWithAdd component, removing the previous manual select logic and integrating the new event-driven approach for key selection and addition.
  • Added a comprehensive test suite for the PrivateKeySelectWithAdd component, covering rendering, selection, addition, and edge cases such as an empty key list. (ui/tests/components/PrivateKeys/PrivateKeySelectWithAdd.spec.ts)

@luizhf42 luizhf42 self-assigned this Dec 11, 2025
@luizhf42 luizhf42 requested a review from a team as a code owner December 11, 2025 20:24
@luizhf42 luizhf42 added kind/feature New feature or request area/ui labels Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ui kind/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants