Skip to content

Make deeplinks in history selectable#518

Merged
rteyssandier merged 1 commit intoopenflocon:mainfrom
snappdevelopment:copy-deeplink
Apr 5, 2026
Merged

Make deeplinks in history selectable#518
rteyssandier merged 1 commit intoopenflocon:mainfrom
snappdevelopment:copy-deeplink

Conversation

@snappdevelopment
Copy link
Copy Markdown
Contributor

Hi,
I have a small improvement for the new deeplink screen. I often find myself wanting to copy a deeplink from the history and paste it into the free form text field to edit and send it. Currently the deeplinks are not selectable, so they can't be copied. Adding a SelectionContainer around the history items makes this possible.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enables text selection for the deeplink history list by wrapping items in a SelectionContainer. Feedback suggests adding a unique key to the items in the LazyColumn for improved performance and state management. Additionally, it is recommended to move the SelectionContainer to a higher level to allow for continuous text selection across multiple items and to improve overall efficiency.

variableValues = variableValues,
modifier = Modifier.fillMaxWidth(),
)
SelectionContainer {
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.

medium

Placing SelectionContainer inside the items block creates a separate selection context for each row. This prevents users from selecting text across multiple items and is less efficient than using a single container for the whole list. Additionally, this approach is inconsistent as it only applies to the History section and not the main Deeplinks list.

Consider moving the SelectionContainer to a higher level (e.g., wrapping the LazyColumn inside DeeplinkScrollablePanel) to provide a better user experience and improved performance.

@openflocon openflocon deleted a comment from gemini-code-assist bot Apr 5, 2026
@rteyssandier rteyssandier merged commit 8acf90c into openflocon:main Apr 5, 2026
2 checks passed
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