Skip to content

Add missing education category#305

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-education-category
Draft

Add missing education category#305
Copilot wants to merge 2 commits intomainfrom
copilot/add-education-category

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 27, 2026

The LLM returns "education" for education-related messages (e.g., school construction), but it wasn't in the valid category enum, causing Zod validation failures at ingest time.

Changes

  • Schema (shared/src/schema/category.schema.ts): Add "education" to CategoryEnum, CATEGORY_LABELS (Bulgarian: "Образование"), and CATEGORY_DISPLAY_ORDER
  • Public API contract (api/src/schema/contract.ts): Add "education" to the forked CategoryEnum
  • LLM prompt (ingest/prompts/categorize.md): Add education to the allowed categories list
  • Web UI (web/lib/category-styles.ts): GraduationCap icon, teal-600/teal-100 color scheme
  • Tests & snapshots: Updated category enumerations and count (17→18)

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI linked an issue Mar 27, 2026 that may be closed by this pull request
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

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

Project Deployment Actions Updated (UTC)
oboapp-api Ready Ready Preview, Comment Mar 27, 2026 6:15pm
oborishte-map Ready Ready Preview, Comment Mar 27, 2026 6:15pm

@vercel vercel bot temporarily deployed to Preview – oboapp-api March 27, 2026 18:04 Inactive
@vercel vercel bot temporarily deployed to Preview – oborishte-map March 27, 2026 18:04 Inactive
Add the missing "education" category across the entire stack:
- shared CategoryEnum, labels, and display order
- API contract schema
- LLM categorization prompt
- Web UI icon (GraduationCap) and color (teal)
- Updated tests and OpenAPI snapshot

Fixes the ingest error when LLM returns "education" for
education-related messages like school construction.

Agent-Logs-Url: https://github.com/vbuch/oboapp/sessions/dcef9a58-1b57-4441-a9c8-99126eda0352
Copilot AI changed the title [WIP] Add education category to data ingestion and revise prompt Add missing education category Mar 27, 2026
Copilot AI requested a review from vbuch March 27, 2026 18:15
@vbuch
Copy link
Copy Markdown
Owner

vbuch commented Mar 27, 2026

scary stuff! if we add a new category in the public api and the clients are not ready for it, we maybreak them. we would need versioning for this. and v1 to only return records excluding the new category

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.

Ingest error: Missing education category

2 participants