use CopyableText (click-to-copy) in GUI for instance info #3878
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.
closes #3821
This pull request introduces a new
CopyableText
widget and updates several components to use this widget for improved text copy functionality. Additionally, it modifies theTooltip
widget to be stateful to handle dynamic changes in the tooltip message.New
CopyableText
widget:src/client/gui/lib/copyable_text.dart
: Created a newCopyableText
widget that allows text to be copied to the clipboard with a click and displays a tooltip indicating the copy status.Updates to
Tooltip
widget:src/client/gui/lib/tooltip.dart
: ChangedTooltip
from a stateless to a stateful widget to handle updates to the tooltip message dynamically.Integration of
CopyableText
widget:src/client/gui/lib/vm_details/ip_addresses.dart
: Updated theIpAddresses
widget to optionally useCopyableText
for IP addresses, enabling copy functionality.src/client/gui/lib/vm_details/vm_details_general.dart
: Replaced several instances ofText
withCopyableText
in theVmDetailsHeader
andGeneralDetails
widgets to allow copying of VM details such as name, release, and IP addresses.src/client/gui/lib/vm_table/vm_table_headers.dart
: Updated the VM table headers to useCopyableText
for displaying and copying VM image and IP addresses.Screencast_20250115_121606.webm