You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Structure builder documentation indicates that a menu item can have an intent of type create and edit. When using the create intent things work as expected, but when using an edit intent nothing happens.
To Reproduce
Steps to reproduce the behaviour:
Use the structure builder to add an menu item with an edit intent
When rendered, click on the menu item with edit intent
Nothing happens
Expected behavior
The edit intent is executed and the studio navigates to the edit route so the document can be edited
Screenshots
Which versions of Sanity are you using?
@sanity/cli 3.16.2 (up to date)
@sanity/code-input 4.1.1 (up to date)
@sanity/eslint-config-studio 3.0.1 (up to date)
@sanity/icons 2.4.1 (up to date)
@sanity/types 3.16.2 (up to date)
@sanity/ui 1.8.2 (up to date)
@sanity/vision 3.16.2 (up to date)
sanity 3.16.2 (up to date)
What operating system are you using?
macOS Ventura 13.4.1
Which versions of Node.js / npm are you running?
8.19.3
v18.13.0
Additional context
I have dug into the desk code and found out the root cause: sanity/desk/menuNodes.ts is excluding the intent when resolving the menuNodes from the pane actions configuration.
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
The Structure builder documentation indicates that a menu item can have an intent of type
create
andedit
. When using thecreate
intent things work as expected, but when using anedit
intent nothing happens.To Reproduce
Steps to reproduce the behaviour:
Expected behavior
The edit intent is executed and the studio navigates to the edit route so the document can be edited
Screenshots
![image](https://private-user-images.githubusercontent.com/159962/265023937-6d28128e-5533-4ae6-a3fc-ed3dfe4111ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1MzU1NjgsIm5iZiI6MTcxOTUzNTI2OCwicGF0aCI6Ii8xNTk5NjIvMjY1MDIzOTM3LTZkMjgxMjhlLTU1MzMtNGFlNi1hM2ZjLWVkM2RmZTQxMTFhYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyOFQwMDQxMDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZWU0NzBlYmY5MjhkMTEzNzY5MjAwMTBkMTU4YmE1M2I1N2M4YWUwNDUzYTFkZWUyZGI4Yjk1MzY2M2IwMTI2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.PyNE3ZvC0_7hnpC5La_O449FRHEtZJGHnO9si_SQ6JQ)
Which versions of Sanity are you using?
What operating system are you using?
macOS Ventura 13.4.1
Which versions of Node.js / npm are you running?
Additional context
I have dug into the desk code and found out the root cause:
sanity/desk/menuNodes.ts
is excluding theintent
when resolving the menuNodes from the pane actions configuration.The text was updated successfully, but these errors were encountered: