Removing Preprint Creation from Notebook - #976
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9fe0033a8a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (isPreprint) { | ||
| toast.error('Preprints can no longer be created in the notebook.'); | ||
| return; | ||
| } |
There was a problem hiding this comment.
Allow updates to existing preprints
When the details form is opened for a note that already has a published discussion post, populateFromPost sets both workId and articleType to discussion; this new unconditional preprint guard blocks the publish/republish path for that existing post, and the disabled state below also prevents the explanatory toast from firing. That removes editing/updating existing notebook preprints, not just new preprint creation, so gate the block on the absence of workId or another create-only condition.
Useful? React with 👍 / 👎.



Overview
This PR removes the ability to create Preprints in the notebook.
Screenshots