Skip to content

BSL-26 org application UI#23

Open
DarshikaMishra wants to merge 4 commits intomainfrom
bsl-26-org-application-ui
Open

BSL-26 org application UI#23
DarshikaMishra wants to merge 4 commits intomainfrom
bsl-26-org-application-ui

Conversation

@DarshikaMishra
Copy link
Copy Markdown
Contributor

Built org/company form UI, page that renders below:
Screenshot 2026-02-24 at 7 00 10 PM

@rohanarcot rohanarcot self-requested a review April 3, 2026 16:52
function handleSubmit(e: React.FormEvent) {
e.preventDefault();
console.log("Submitting Company Project:", form);
alert("Project details logged to console!");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove the alert()

import { useState } from "react";
import PublicLayout from "@/components/layout/PublicLayout";

type ProjectFormState = {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

add:
submitterName: string;
submitterEmail: string;
skillsNeeded: string;

the application DB model requires submitterName and submitterEmail as top-level fields on every application record.

and add the corresponding form fields for submitterName and submitterEmail

placeholder="Outline the main objectives and deliverables..."
/>
</div>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Let's also add a skills needed part as part of the org application... something like this would do:

{/* Skills / Expertise Needed */}
<div className="flex flex-col gap-2">
  <Label htmlFor="skillsNeeded">Skills / Expertise Needed</Label>
  <Input
    id="skillsNeeded"
    type="text"
    required
    value={form.skillsNeeded}
    onChange={(e) => updateField("skillsNeeded", e.target.value)}
    placeholder="e.g. React, Node.js, UI/UX Design"
  />
</div>

(also I made the comment above to add the skillsNeeded: string to ProjectFormState

/>
</div>

<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This grid has only one child.. projectTitle is rendering at half-width on desktop with nothing next to it. So either remove the grid wrapper and use the same flex flex-col gap-2 as your other fields, or place the skillsNeeded field which I recommended as the second column here if that layout makes sense.

Would probably just remove the grid, but you can experiment.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(FIX THIS LATER ONCE BSL-24 MERGED IN)

For lines 49–51, 52–60, 66–68, 69–77, 83–85, 86–94, 99–101, 102–110, 115–120:

use shared UI components that were created in BSL-24, once that is merged in...
Currently every form element in the file is a raw HTML element with inline Tailwind instead of the , , <textarea>, and components built in BSL-24.. so once that is merged in use that instead

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Once BSL-24 is merged in, you will have to rebase on main to be able to use the shared components

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