Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide schedule action in some documents #6605

Open
Laruxo opened this issue May 8, 2024 · 0 comments
Open

Hide schedule action in some documents #6605

Laruxo opened this issue May 8, 2024 · 0 comments

Comments

@Laruxo
Copy link

Laruxo commented May 8, 2024

Describe the bug

I want to filter out "schedule" actions for some documents. Based on the docs, the intended way is to use action property however it is not available for actions created by plugins (e.g. schedule or document-internationalization). There is also a name property available in development, but it is being minified during the build, so it is inconsistent in the deployed studio.

Expected behavior

  1. Now that schedule is a built-in feature, it should have the action property
  2. Automatically remove publish and schedule actions for live documents
  3. In the types, action property could be made mandatory and changed to string, so all plugins would add it.

Screenshots
Here is the log of actions in the deployed Studio, 2nd one is schedule action:

image

Which versions of Sanity are you using?

4.39.1

Additional context

There is a related issue about extending document actions which might indicate why plugin actions are missing action property.

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

No branches or pull requests

1 participant