Skip to content

Company Research#45

Merged
parkab merged 1 commit intoDevfrom
CompanyResearch
Apr 30, 2026
Merged

Company Research#45
parkab merged 1 commit intoDevfrom
CompanyResearch

Conversation

@Subhanshu-Soma
Copy link
Copy Markdown
Collaborator

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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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-draft to generate tailored company research using GEMINI_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.

Comment thread src/components/dashboard/company-research-step-section.tsx
Comment thread src/components/dashboard/company-research-step-section.tsx
Comment thread src/app/api/ai/company-research-draft/route.ts
Comment thread src/app/api/ai/company-research-draft/route.ts
Comment thread src/components/dashboard/job-multi-step-form.tsx
Comment thread src/components/dashboard/company-research-step-section.tsx
Copy link
Copy Markdown
Owner

@parkab parkab left a comment

Choose a reason for hiding this comment

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

Great work on the company research feature, I like the tailored prompt, LGTM!

Copy link
Copy Markdown
Collaborator

@Iamironman15 Iamironman15 left a comment

Choose a reason for hiding this comment

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

lgtm great job sunny!

Copy link
Copy Markdown
Collaborator

@srineshselvaraj srineshselvaraj left a comment

Choose a reason for hiding this comment

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

Great work on this new AI feature which will take our product to the next level! lgtm!

@parkab parkab merged commit 60cbedb into Dev Apr 30, 2026
5 checks passed
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.

5 participants