Skip to content

conditionals implemented#9

Merged
AgustinPose merged 4 commits intomainfrom
feature/conditionals
Feb 24, 2026
Merged

conditionals implemented#9
AgustinPose merged 4 commits intomainfrom
feature/conditionals

Conversation

@AgustinPose
Copy link
Copy Markdown
Collaborator

Se implementó lógica condicional y validación en el wizard de postulación.

Ahora el flujo evalúa conditional/condition_field/condition_values en [questions.py] para saltar preguntas no aplicables (ej. con has_idea=NO no muestra 13–20), valida respuestas antes de avanzar (email/teléfono/CI/opciones/longitud mínima), mantiene la misma pregunta cuando hay error de validación y persiste correctamente wizard_responses/estado entre turnos.
Además, se ajustó la rehidratación para iniciar en current_question=1 como fallback seguro. Se implementó lógica condicional y validación en el wizard de postulación.

Ahora el flujo evalúa conditional/condition_field/condition_values en [questions.py] para saltar preguntas no aplicables (ej. con has_idea=NO no muestra 13–20), valida respuestas antes de avanzar (email/teléfono/CI/opciones/longitud mínima), mantiene la misma pregunta cuando hay error de validación y persiste correctamente wizard_responses/estado entre turnos.
Además, se ajustó la rehidratación para iniciar en current_question=1 como fallback seguro.

Copilot AI review requested due to automatic review settings February 23, 2026 23:02
Copy link
Copy Markdown

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

Este PR agrega lógica condicional y validación al wizard de postulación, para omitir preguntas no aplicables según respuestas previas (p.ej. has_idea) y validar inputs antes de avanzar, preservando estado entre turnos.

Changes:

  • Se incorporó evaluación de condiciones (conditional, condition_field, condition_values) para saltear preguntas no aplicables.
  • Se agregó validación de respuestas (email/teléfono/CI/opciones/longitud mínima) con errores que no avanzan el wizard.
  • Se ajustó la rehidratación del wizard para usar current_question=1 como fallback.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
app/utils/validators.py Nuevos helpers de validación (email/teléfono/CI) y excepción ValidationError.
app/utils/init.py Marca app.utils como paquete e introduce docstring de módulo.
app/graph/workflow.py Cambia fallback de rehidratación de current_question a 1.
app/config/questions.py Añade metadatos condicionales a preguntas 13–20 basados en has_idea.
app/agents/wizard_workflow/wizard_graph.py Ajustes de routing del sub-grafo del wizard y mensaje de finalización.
app/agents/wizard_workflow/nodes.py Implementa salto condicional de preguntas y validación antes de persistir respuestas.
app/agents/validator.py Corrige import para usar app.utils.validators vía import relativo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 23, 2026 23:21
Copy link
Copy Markdown

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

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AgustinPose AgustinPose requested a review from Tincho44 February 23, 2026 23:37
@AgustinPose AgustinPose merged commit aa15d70 into main Feb 24, 2026
0 of 2 checks passed
@AgustinPose AgustinPose deleted the feature/conditionals branch February 24, 2026 21:36
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.

3 participants