refactor(01-lista-de-tareas-cli): mejoras de UX, rutas CSV e IDs 1-ba… - #53
Merged
Conversation
Contributor
|
¡Hola @Kaia-Alenia! 👋 ¡Felicidades por abrir tu primer Pull Request en Un mantenedor revisará tu código lo antes posible. Si te pedimos cambios, no te preocupes — es el flujo normal para aprender juntos. Si necesitas algo, comenta aquí mismo. ¡Mucho éxito! |
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.
…sed en CesarAAR-python
📌 ¿Qué reto resuelve este PR?
Reto 01 - chat-terminal #13
✅ Checklist
Refactor y Mejoras de UX: Solución CesarAAR-python
Hola @CesarAAR . Realizamos algunas pruebas de uso interactivo sobre la solución del Reto 01 y aplicamos un conjunto de optimizaciones enfocadas en la experiencia de usuario y el manejo de archivos CSV.
Cambios realizados:
IDs iniciando en 1 (UX):
id_task = 1y la validación en Pydantic aField(ge=1).Limpieza de comillas en rutas CSV:
pandas.read_csv()reciba la ruta sin comillas cuando el usuario arrastra un archivo desde la terminal.Manejo de rutas relativas a la carpeta del reto:
Path(__file__).parent) para garantizar que la importación y exportación de archivos se realice dentro de la carpeta de la solución (CesarAAR-python).Visualización de tablas en consola:
df.to_string(index=False)al imprimir en pantalla para ocultar el índice interno de Pandas y evitar mostrar dos numeraciones simultáneas.Opción de exportación interactiva:
Inserción de filas mediante pd.concat:
pd.concatal crear tareas para prevenir sobrescrituras de registros en caso de haber eliminado tareas intermedias.