Skip to content

[DEV-532] added question input page and page navigation#67

Open
adambelouad wants to merge 7 commits intopreviewfrom
ask-question-page
Open

[DEV-532] added question input page and page navigation#67
adambelouad wants to merge 7 commits intopreviewfrom
ask-question-page

Conversation

@adambelouad
Copy link
Copy Markdown

References

Proposed Changes

  • added question input form
  • added navigation from button to form

@linear
Copy link
Copy Markdown

linear bot commented Feb 11, 2026

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 11, 2026

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

Project Deployment Actions Updated (UTC)
help Ready Ready Preview, Comment Apr 1, 2026 5:29pm

Request Review

@adambelouad adambelouad changed the title [DEV-362] added question input page and page navigation [DEV-532] added question input page and page navigation Feb 12, 2026
<label className='block text-sm font-semibold mb-1'>
Question Title
</label>
<input
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Swap these html input elements for TextInput evergreen elements


{/* Buttons */}
<div className='flex gap-3 mt-2'>
<button
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use the Evergreen Button element

{/* Category */}
<div>
<label className='block text-sm font-semibold mb-1'>Category</label>
<select
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use Evergreen SelectMenu

Copy link
Copy Markdown
Contributor

@issacli-0821 issacli-0821 left a comment

Choose a reason for hiding this comment

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

Left some comments!

Comment on lines +134 to +137
<option value='Assignments and PSETs'>Assignments and PSETs</option>
<option value='Exam Prep'>Exam Prep</option>
<option value='Resource Recommendations'>
Resource Recommendations
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Put these options in a list as a constant on the top of the file

Copy link
Copy Markdown
Contributor

@issacli-0821 issacli-0821 left a comment

Choose a reason for hiding this comment

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

Left a couple more comments

{/* Question Title */}
<div>
<label className='block text-sm font-semibold mb-1'>
Question Title
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some of these elements still need to be swapped over to Evergreen elements

{/* Category */}
<div>
<label className='block text-sm font-semibold mb-1'>Category</label>
<SelectMenu
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We need to add validation logic here. Right now, users can submit a question without a category being selected

setForm((prev) => ({ ...prev, category: e.target.value }));
};

const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add a comment here for TODO: API request to submit a question

package.json Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The dependencies should be in frontend folder. Also, we're using yarn as our package manager, not npm

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