Lead ingestion + API-first lead management UI (CSV/TXT/JSON/XLSX, normalization, CORS)#4
Open
Lead ingestion + API-first lead management UI (CSV/TXT/JSON/XLSX, normalization, CORS)#4
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Motivation
Description
LeadImporterwith CSV/TXT/JSON/XLSX parsing, header-alias normalization (full_name,email_address,job_title, etc.), and invalid-row accounting; updated import results to includeinvalid_rows(app/services/lead_importer.py,app/models/schemas.py)./api/v1for health, dashboard metrics, paginated/filtered lead listing, and a validated multipartPOST /api/v1/leads/importthat returns import summary and proper HTTP errors (app/api/routes.py).frontend/bundle for separate hosting; included safe HTML escaping and UI filters (app/templates/dashboard.html,app/static/js/app.js,app/static/css/style.css,frontend/).openpyxland restrict packages discovery toapp*(app/core/config.py,app/main.py,pyproject.toml).Testing
pip install -e .[dev]successfully to build and install dependencies includingopenpyxl(success).ruff check .which passed (success).pytest -qand all tests passed (5 passed, added tests for XLSX import and invalid-row tracking) (success).uvicorn app.main:appand captured a dashboard screenshot to validate the UI and API integration (manual run + screenshot captured).Codex Task