Skip to content

restricted volume and issue to positive integers only :)#8

Open
AuroraAustralis7 wants to merge 1 commit into
stuyspec:mainfrom
AuroraAustralis7:main
Open

restricted volume and issue to positive integers only :)#8
AuroraAustralis7 wants to merge 1 commit into
stuyspec:mainfrom
AuroraAustralis7:main

Conversation

@AuroraAustralis7

Copy link
Copy Markdown

also tried to make the text box replace whitespace but not sure if it works

Copilot AI review requested due to automatic review settings June 5, 2026 19:56

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates server dependencies/node tooling and improves draft creation UI/text formatting.

Changes:

  • Adds new dependencies and bumps nodemon in the server package.json.
  • Adjusts HTML post-processing to attempt to preserve paragraph indentation.
  • Adds min={1} constraints to volume/issue numeric inputs.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
server/package.json Dependency/tooling updates for the server runtime/dev workflow
client/src/routes/create_draft/create_draft.tsx Draft HTML normalization + numeric input constraints
Files not reviewed (1)
  • server/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread server/package.json
"jsonwebtoken": "^8.5.1",
"mongoose": "^6.7.2",
"morgan": "^1.10.0",
"node": "^24.16.0",
let text: string = String(html);
text = text.replace(new RegExp("<p></p>", "g"), ""); // remove breaks between paragraphs
text = text.replace(new RegExp("\n", "g"), ""); // remove line breaks in the html
text = text.replace(/(<p[^>]*>)\s+/g, "$1&#9;"); // replace indents
Comment on lines +104 to +106
<input type="number" id="new_volume" min={1}/>
&nbsp;|&nbsp; Issue:&nbsp;
<input type="number" id="new_issue" />
<input type="number" id="new_issue" min={1}/>
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