Initial MVP: VibeMovil Lead Engine API with scoring, storage, frontend, Docker and CI - #1
Initial MVP: VibeMovil Lead Engine API with scoring, storage, frontend, Docker and CI#1Digitalconect25 wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 30070a8bc8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <strong>${l.full_name}</strong> | ||
| <span class="pill ${l.priority}">${l.priority.toUpperCase()}</span> | ||
| <div>Score: <b>${l.score}</b></div> | ||
| <div>Acción: ${l.action}</div> |
There was a problem hiding this comment.
Render
assigned_action from lead records
GET /leads returns LeadRecord objects with an assigned_action field, but this renderer reads l.action. In the normal case (real leads loaded from the API), the action text shows as undefined, so operators lose the recommended next step in the preview UI. Read assigned_action here (or map it when loading data).
Useful? React with 👍 / 👎.
Motivation
Description
app/main.py) exposing/health,POST /leadsandGET /leadsplus a preview root that servesfrontend/index.html.app/models.py, scoring logic inapp/scoring.py, and action assignment inapp/automation.py.data/storage.py(classLeadStorage) and created a simple frontend preview atfrontend/index.htmlthat calls the API.Dockerfile,.dockerignore,.env.example,requirements.txt, GitHub Actions workflows (.github/workflows/ci.yml,deploy-ghcr.yml,deploy-pages.yml) and aREADME.mdwith usage and deployment notes.Testing
pytest -q, executingtests/test_scoring.pyandtests/test_api.py.tests/test_scoring.pyverifies scoring and priority boundaries and succeeded.tests/test_api.pyexercisesPOST /leads,GET /leadsand the preview route and succeeded..github/workflows/ci.yml) is configured to runpytestand to validate a Docker build as part of the pipeline.Codex Task