Refactor form data structure and keys - #1
Open
Ulimonster wants to merge 5 commits into
Open
Conversation
Update getFormData in generador_prompt.html to a reorganized, English-keyed object shape. Consolidates rol_sistema and tipo_salida into instruction_config (adds persona, framework, temperature, style, standard), renames contexto_curricular -> curriculum_context, planeacion -> planning (with renamed subfields), tareas -> tasks, and refinamiento -> reasoning_phase. Preserves original default values/behaviour while standardizing property names and adding instruction metadata.
Update generador_prompt.html to embed the `campo` variable into the generated JSON filename. The download filename now uses `Prompt_NEM_F6_${campo}${date}.json` instead of a static prefix, making saved files distinguishable by campo and date.
Change the form validation to check the English-named JSON field (data.curriculum_context.formative_field) instead of the original Spanish key (data.contexto_curricular.campo_formativo). Added a brief inline comment about basic JSON field validation; preserves the existing alert when the field is missing.
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.
Update getFormData in generador_prompt.html to a reorganized, English-keyed object shape. Consolidates rol_sistema and tipo_salida into instruction_config (adds persona, framework, temperature, style, standard), renames contexto_curricular -> curriculum_context, planeacion -> planning (with renamed subfields), tareas -> tasks, and refinamiento -> reasoning_phase. Preserves original default values/behaviour while standardizing property names and adding instruction metadata.