Skip to content

Insert menu context menu#19

Open
Muaz-T wants to merge 2 commits into
certfrom
insert-menu-context-menu
Open

Insert menu context menu#19
Muaz-T wants to merge 2 commits into
certfrom
insert-menu-context-menu

Conversation

@Muaz-T

@Muaz-T Muaz-T commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Added context menu to insert menu, moved MenuButton to app-menu.tsx, and made it so it open document/copy url saves the current configuration

@AlexKempen

AlexKempen commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Types are a little weird since a configuration only makes sense for an ElementPath (as a Document/Version can't be configured). I wonder if updating ConfigurablePath to extend ElementPath, updating makeUrl to include a ConfigurablePath, and then updating your component to take an InstancePath | ElementPath | ConfigurablePath (or just InstancePath if eslint gets uppity) would solve the issue.

@AlexKempen

Copy link
Copy Markdown
Collaborator

You could also optionally define a type OnshapePath = DocumentPath | InstancePath | ... type and use that in makeUrl/your component for convienience

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