Feature #58
closedFeature #21: Enhance Matching Results and AI Assistant with Company Enrichment and Market Insights
[Enrichment + GetYourJob API] Surface enriched company data in the matching result payload
0%
Description
**Surface:** Enrichment Agent (data availability) + GetYourJob API routes (`GetYourJob/src/app/api/`, `GetYourJob/src/application/` + `infrastructure/`).
## Description
Enriched company data (size, industry, location, remote policy, company type / ESN flag) is produced by background enrichment workers but is not surfaced in the matching result payload. Join the enriched company fields into the matching response so downstream UI (#4) and the assistant (#6) can consume them.
- Confirm the Enrichment Agent persists the needed company fields (size, industry, location, remote policy, company type/ESN) and they are reachable from the matching result join (Company/JobOffer relation).
- Extend the matching result use-case / response mapper to include a `companyEnrichment` object per result (only when present; absent gracefully).
- Add a seam test on the use-case ensuring the enrichment object is populated when company data exists and omitted otherwise.
Foundation task â blocks #4 (inline card) and #6 (assistant company data).
## Acceptance criteria
- [ ] Matching result payload includes a per-result company-enrichment object (size, industry, location, remote policy, company type/ESN) when available.
- [ ] Missing enrichment data degrades gracefully (no error, field omitted/null).
- [ ] Use-case/mapper seam test covers populated and missing cases.
- [ ] No regression on existing matching response shape for consumers that ignore the new field.
**Estimate:** S/M