Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Zapiony/PUCE_UZDI_2026/llms.txt

Use this file to discover all available pages before exploring further.

The Parámetros module is the system-wide configuration centre for each UZDI unit. Administrators can update institutional identity data, tune security policies, and control automated notification behaviour — all from a single page at /app/parametros. Access is restricted to users with tppr_id >= 3 (Administrador and Superadministrador); lower-privilege users are redirected to the dashboard by the router guard. The page is organised as a responsive card grid with three independent configuration sections. Each section has its own Guardar button, so you can save changes to one area without affecting the others.
Changes to each section take effect immediately within the current session once saved. Organisational data is persisted to the backend via PATCH /api/v1/uzdi/:id. Security and notification settings are stored in localStorage under the keys uzdi_params_seg and uzdi_params_notif respectively.

Section 1 — Organización

Organización

Stores the institutional identity of the UZDI unit assigned to the currently logged-in administrator. Data is loaded on mount from GET /api/v1/uzdi/:id (where :id is the uzdi_id on the user’s session token).

Editable Fields

FieldDescription
Nombre de la unidadOfficial name of the UZDI office
ZonaGeographic zone code (e.g. Zona 9)
TeléfonoContact phone number
DirecciónPhysical address of the unit
Correo institucionalOfficial email address (validated as email format)

How to Save

1

Edit the fields

Click into any field in the Organización card and update the value. Changes are tracked reactively — no separate “Edit mode” toggle is needed in this section.
2

Click Guardar

Click the Guardar button at the bottom of the card. While the save is in progress the button shows "Guardando…" and is temporarily disabled to prevent duplicate submissions.
3

Confirm success

On a successful save a green confirmation banner appears at the top of the card:
Cambios guardados correctamente.
The banner fades automatically after 2.8 seconds. If the backend is unreachable the error is swallowed silently — verify the backend connection if the banner does not appear.
The Organización form only loads after uzdi_id is read from the session token. If the currently logged-in user has no UZDI assigned, the form is replaced with the message: “El usuario no tiene UZDI asignada.” Assign a uzdi_id to the account via the Usuarios module to resolve this.

Section 2 — Seguridad

Seguridad

Controls access and credential policies for the UZDI platform. Settings are saved to localStorage under the key uzdi_params_seg and loaded automatically on the next visit.

Editable Fields

FieldTypeRangeDefaultDescription
Tiempo de sesión inactivaNumber (minutes)5 – 12030Idle session timeout before the user is logged out
Intentos de login antes de bloqueoNumber1 – 103Maximum consecutive failed login attempts before the account is blocked
Caducidad de contraseñaNumber (days)30 – 36590Number of days before users are required to change their password

How to Save

Edit the numeric fields directly and click Guardar at the bottom of the Seguridad card. The same green confirmation banner ("Cambios guardados correctamente.") confirms a successful write to localStorage.
Security settings (session timeout, login attempts, password expiry) are currently enforced by client-side logic only. Full server-side enforcement requires integration with the seguridad module in the NestJS backend.

Section 3 — Notificaciones

Notificaciones

Configures how and when the system sends automated alerts about upcoming expediente expirations. Settings are persisted to localStorage under the key uzdi_params_notif.

Editable Fields

FieldTypeRangeDefaultDescription
Días de anticipación para alertar vencimientosNumber1 – 307How many days before fecha_fin_medida an alert should be triggered
Correo destinatario de alertasEmailEmail address that receives automated expiration notifications
Alertas por correo electrónicoToggle switchon / offon (enabled)Master switch to enable or disable all email alert delivery

The Email Alerts Toggle

The Alertas por correo electrónico field uses a custom CSS toggle switch (<label class="toggle">). Click it to flip between enabled (blue track, thumb slid right) and disabled (grey track, thumb left). The visual state is bound two-way to notif.emailActivo via v-model.
<!-- ParametrosView.vue — toggle switch -->
<label class="toggle">
  <input v-model="notif.emailActivo" type="checkbox" />
  <span class="toggle-track" />
</label>
When emailActivo is false, the destination correo field is still saved but no alerts will be dispatched.

How to Save

Click Guardar in the Notificaciones card. The confirmation banner appears for 2.8 seconds on success, just like the other sections.
Set Días de anticipación to 7 or more to give coordinators enough lead time to schedule revision appointments before expediente deadlines. The Dashboard’s Próximas revisiones table uses this same urgency window to colour-code rows.

Saving Changes — Summary

Each of the three sections is saved independently:
SectionSave targetEndpoint / Storage
OrganizaciónUZDI record in the databasePATCH /api/v1/uzdi/:id
SeguridadBrowser local storagelocalStorage.uzdi_params_seg
NotificacionesBrowser local storagelocalStorage.uzdi_params_notif
All three sections use the same UX pattern: click Guardar → button shows "Guardando…" → green banner confirms success. Sections load their persisted values on every page mount, so previously saved settings are always restored across sessions.
Because Seguridad and Notificaciones settings are stored in localStorage, they are browser- and device-specific. Clearing browser data or opening the app in a different browser will revert those two sections to their default values (sesionTimeout: 30, intentosMaximos: 3, cambioPassDias: 90, diasAnticipacionVencimiento: 7, emailActivo: true).

Build docs developers (and LLMs) love