Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Implements a new “Company Research” step in the job multi-step form, backed by a new API route that generates research via Gemini using a dedicated research API key, and allows saving results to job documents.
Changes:
- Adds a Company Research step + draft state to the job multi-step form flow.
- Introduces
/api/ai/company-research-draftto generate tailored company research usingGEMINI_RESEARCH_KEY. - Extends the Gemini helper to support selecting between multiple API keys.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/dashboard/company-research-step-section.tsx | New UI step for generating/editing/saving company research content. |
| src/app/api/ai/company-research-draft/route.ts | New API endpoint that builds a research prompt and calls Gemini with the research key. |
| src/lib/ai/gemini.ts | Adds support for selecting which Gemini API key to use (default vs research). |
| src/lib/jobs/multi-step-form.ts | Adds companyResearch step id + draft typing. |
| src/components/dashboard/job-multi-step-form.tsx | Wires the new step into the multi-step form and extends AI-document saving to support “other”. |
| src/components/dashboard/job-multi-step-form-logic.ts | Initializes companyResearch in buildInitialDraft. |
| src/lib/jobs/timeline.ts | Formatting-only change. |
| src/components/profile/EducationSection.tsx | Formatting-only change. |
| src/components/dashboard/job-sort-control.test.tsx | Formatting-only change. |
| src/components/dashboard/job-search-filter-control.test.tsx | Formatting-only change. |
| src/components/dashboard/job-item-step-section.tsx | Formatting-only change. |
| src/app/api/jobs/[id]/timeline/[eventId]/route.ts | Formatting-only change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
parkab
approved these changes
Apr 30, 2026
Owner
parkab
left a comment
There was a problem hiding this comment.
Great work on the company research feature, I like the tailored prompt, LGTM!
Iamironman15
approved these changes
Apr 30, 2026
Collaborator
Iamironman15
left a comment
There was a problem hiding this comment.
lgtm great job sunny!
srineshselvaraj
approved these changes
Apr 30, 2026
Collaborator
srineshselvaraj
left a comment
There was a problem hiding this comment.
Great work on this new AI feature which will take our product to the next level! lgtm!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements the company research feature. It uses a dedicated Gemini API key to make requests and a tailored prompt in order to output relevant information. Users can either get standard company research or ask for specific things. Research is saved as a document, multiple researches can be saved for a job, and everything is persistent in the sense that it is visible in the Supabase DB. My next task will involve making the research editable, which I forgot to do. Copilot was used for planning and fixing errors.