Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Template Management

Abierto
#359 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript

Línea de trabajo

Comienza revisando el flujo de la pestaña Template-uri y la referencia de Figma vinculada; después, sigue cómo se visualizan, editan, copian, descargan y eliminan las plantillas. Implementa los criterios de aceptación indicados, incluidas las opciones de menú basadas en el uso, la asignación de nombres al copiar, la atribución al creador, las acciones de descarga, la confirmación y las actualizaciones de la lista; investiga también la subtask de datos de ONGHub.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement :rocket: web-app

User Story

As user, I want to manage contract templates for volunteers, so that I can ensure consistency in our organizational documents.

Description

The system should allow users to view, edit, duplicate and delete contract templates.

Actors

  • Web Users

Preconditions

  • User must be logged in and have navigated to the 'Template-uri' tab

Main Flow 1 (view template)

  1. User selects a template and clicks on the kebab menu.
  2. The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
  3. User clicks on the Vizualizeaza option.
  4. The system displays the template in view mode.
  5. User has the option to download the template as a PDF.

Main Flow 2 (edit template)

  1. User selects a template and clicks on the kebab menu.
  2. The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
  3. User clicks on the Editeaza option.
  4. The system displays the template in edit mode
  5. User updates the inputs according to preferences and clicks 'Save changes'.
  6. The system saves the updated template.

Alt. Flow 1 (duplicate template)

  1. User selects a template and clicks on the kebab menu.
  2. The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
  3. User clicks on the Fa o copie option.
  4. The system creates a copy of the template and updates the list to include the new copy.
  5. The system displays a toast message confirming the successful operation.

Alt. Flow 2 (download template)

  1. User selects a template and clicks on the kebab menu.
  2. The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
  3. User clicks on the Fa o copie option.
  4. The system creates a copy of the template and updates the list to include the new copy.
  5. A toast message is displayed confirming the successful operation.

Alt. Flow 3 (delete template)

  1. User selects a template and clicks on the kebab menu.
  2. The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
  3. User clicks on the Elimina option.
  4. The system displays a confirmation modal.
  5. User confirms the deletion by clicking 'Sterge' button.
  6. The system deletes the template.

Business Rules

  1. The Editeaza and Elimina options must only be available for templates that have not been used to generate a contract.
  2. Both View mode and Edit mode must include an option for users to download the template.
  3. The delete option must trigger a confirmation modal to verify the user's action before proceeding.

Acceptance Criteria

  1. The system must display the following options for each template based on the number of uses:
  • For templates with 0 uses: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
  • For templates with more than 0 uses: Vizualizeaza, Fa o copie, Descarca necompletat.
  1. The option to download the template must be available in both View mode and Edit mode.
  2. Newly created templates using the copy function must be named by appending "_copy" to the original template's name.
  3. If multiple copies of the same template are created, subsequent copies will be named with incremental suffixes, such as "_copy(1)", "_copy(2)", and so on.
  4. For templates created via the copy function, the 'Creat de' value must reflect the name of the user who made the copy.
  5. Upon confirming the deletion by clicking 'Sterge' button, the system must delete the template and update the list accordingly.

Additional Information

  • Figma references: here

Subtasks:

  • Pull more data from ONGHub to make it available for template generation (organization cui, legal representative and his role)
Lenguaje dominante
TypeScript
Estrellas
3
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de code4romania/vic

Todos los issues de code4romania/vic

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.