Skip to content

Removing Preprint Creation from Notebook - #976

Open
michaelcanova wants to merge 1 commit into
mainfrom
remove_preprint_creation
Open

Removing Preprint Creation from Notebook#976
michaelcanova wants to merge 1 commit into
mainfrom
remove_preprint_creation

Conversation

@michaelcanova

Copy link
Copy Markdown
Member

Overview

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

Screenshots

image image

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Ready Ready Preview Jul 31, 2026 4:35pm

@michaelcanova michaelcanova changed the title Removing Preprint creation Removing Preprint Creation from Notebook Jul 31, 2026
@sonarqubecloud

Copy link
Copy Markdown

@michaelcanova
michaelcanova marked this pull request as ready for review July 31, 2026 16:39
@michaelcanova
michaelcanova requested a review from a team as a code owner July 31, 2026 16:39

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +388 to +391
if (isPreprint) {
toast.error('Preprints can no longer be created in the notebook.');
return;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

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.

1 participant