Skip to content

Conversation

@Fabio-Ramirez
Copy link
Collaborator

Requerimiento

https://proyectos.andes.gob.ar/browse/AM-331

Funcionalidad desarrollada

  1. SI bien no se realiza algo referido a la tarea, sino que se aprovecha a refactorizar código.

UserStory llegó a completarse

  • Si
  • No
  • No corresponde

Requiere actualizaciones en la base de datos

  • Si
  • No

Requiere actualizaciones en la API

Requiere actualizaciones en andes-test-integracion

  • Si
  • No

@Fabio-Ramirez Fabio-Ramirez requested review from a team as code owners May 5, 2025 19:13
<ion-card-header>
<ion-avatar>
<ion-icon *ngIf="a?.link" name="desktop-outline" color="primary" class="icono-info">
<ion-icon *ngIf="agenda?.link" name="desktop-outline" color="primary" class="icono-info">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por qué se consulta si agenda existe? Puede ser undefined?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tambien si lo unico que cambia si existe el link o no es el nombre, se podría hacer

<ion-icon [name]="agenda?.link ? 'desktop-outline' : 'andes-turno'" color="primary" class="icono-info"></ion-icon>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se agrega el cambio.

*ngIf="b.restantesProgramados > 0 && (b.restantesMobile > 0 || a.cumpleRegla) && incluyePrestacion(b)">
<ng-container *ngFor="let t of b.turnos">
<ion-item *ngIf="disponible(t)">
*ngIf="bloque.restantesProgramados > 0 && (bloque.restantesMobile > 0 || agenda.cumpleRegla) && incluyePrestacion(bloque)">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se podria extraer esto en una funcion de componente para evitar tener tanta lógica en el html y hacerlo más legible

<ng-container *ngIf="debeMostrarBloque(bloque, agenda)">

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agregada la sugerencia.

Copy link
Collaborator

@juuliotero juuliotero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deje algunos comentarios como para sumar a la refactorización, ya que se tocan esas lineas

@Fabio-Ramirez
Copy link
Collaborator Author

Deje algunos comentarios como para sumar a la refactorización, ya que se tocan esas lineas

Gracias Juli, muy buenas observaciones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants