Skip to content

feat: add 'create and copy' button to the neuroglancer link dialog#310

Merged
allison-truhlar merged 4 commits intomainfrom
copy-ng-link
Feb 12, 2026
Merged

feat: add 'create and copy' button to the neuroglancer link dialog#310
allison-truhlar merged 4 commits intomainfrom
copy-ng-link

Conversation

@allison-truhlar
Copy link
Collaborator

Clickup id: 86aerzhc7

This PR adds a step to the 'create' and 'update' functions of the Neuroglancer short link generation dialog, to copy the generated Neuroglancer link to the clipboard after it is successfully created on the backend. It also updates the text on the buttons to indicate that the link will be copied, and adds a toast notification that the link has been copied. Also in this PR, I updated the NGLinkPayload type to be more specific to the possible sets of data submitted through the dialog - either a URL or state data and a base URL. In both cases, an optional short name and title can also be provided.

Copy link
Member

@neomorphic neomorphic left a comment

Choose a reason for hiding this comment

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

Looks good. I would consider combing the two toasts into a single statement, but it isn't necessary.

@allison-truhlar allison-truhlar merged commit 34464ce into main Feb 12, 2026
7 checks passed
@allison-truhlar allison-truhlar deleted the copy-ng-link branch February 12, 2026 16: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.

2 participants