-
Notifications
You must be signed in to change notification settings - Fork 374
Update HorizontalForm.res with demo text #734
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,7 @@ let make = (~author, ~handleAuthorChange, ~text, ~handleTextChange, ~handleSubmi | |||||
| <div className="flex flex-col gap-0 items-center lg:gap-4 lg:flex-row"> | ||||||
| <label htmlFor="comment_author" className="w-full lg:w-2/12 lg:text-end shrink-0"> | ||||||
| {"Name"->React.string} | ||||||
| DEMO OF cpflow PR deploys | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid ReScript syntax + temporary demo text
Suggested change
However, this line also appears to be intentional temporary text for testing the cpflow PR deploy pipeline — not something that should be merged into the main branch at all. If the goal is to verify that PR deploys render correctly, this label text should be removed before merging. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This adds a hard-coded Useful? React with 👍 / 👎. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: In ReScript React JSX (.res files), bare text like Citations:
🏁 Script executed: find . -type f -name "HorizontalForm.res" | head -5Repository: shakacode/react-webpack-rails-tutorial Length of output: 158 🏁 Script executed: cat -n ./client/app/bundles/comments/rescript/CommentForm/forms/HorizontalForm.res | head -30Repository: shakacode/react-webpack-rails-tutorial Length of output: 1386 Bare text in JSX is invalid ReScript syntax—wrap the demo text as a React string. Line 11 contains bare text Proposed fix- DEMO OF cpflow PR deploys
+ {"DEMO OF cpflow PR deploys"->React.string}🤖 Prompt for AI Agents |
||||||
| </label> | ||||||
| <input | ||||||
| type_="text" | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Demo text accidentally committed to production component
High Severity
The raw string
DEMO OF cpflow PR deploysis rendered directly inside the<label>element next to the "Name" text. This demo/testing text will be visible to end users in the comment submission form.Reviewed by Cursor Bugbot for commit 624f1cc. Configure here.