Template Management
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
- Área
- full-stack, web-dev
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
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)
- User selects a template and clicks on the kebab menu.
- The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
- User clicks on the Vizualizeaza option.
- The system displays the template in view mode.
- User has the option to download the template as a PDF.
Main Flow 2 (edit template)
- User selects a template and clicks on the kebab menu.
- The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
- User clicks on the Editeaza option.
- The system displays the template in edit mode
- User updates the inputs according to preferences and clicks 'Save changes'.
- The system saves the updated template.
Alt. Flow 1 (duplicate template)
- User selects a template and clicks on the kebab menu.
- The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
- User clicks on the Fa o copie option.
- The system creates a copy of the template and updates the list to include the new copy.
- The system displays a toast message confirming the successful operation.
Alt. Flow 2 (download template)
- User selects a template and clicks on the kebab menu.
- The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
- User clicks on the Fa o copie option.
- The system creates a copy of the template and updates the list to include the new copy.
- A toast message is displayed confirming the successful operation.
Alt. Flow 3 (delete template)
- User selects a template and clicks on the kebab menu.
- The system presents the following options: Vizualizeaza, Editeaza, Fa o copie, Descarca necompletat, and Elimina.
- User clicks on the Elimina option.
- The system displays a confirmation modal.
- User confirms the deletion by clicking 'Sterge' button.
- The system deletes the template.
Business Rules
- The Editeaza and Elimina options must only be available for templates that have not been used to generate a contract.
- Both View mode and Edit mode must include an option for users to download the template.
- The delete option must trigger a confirmation modal to verify the user's action before proceeding.
Acceptance Criteria
- 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.
- The option to download the template must be available in both View mode and Edit mode.
- Newly created templates using the copy function must be named by appending "_copy" to the original template's name.
- 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.
- For templates created via the copy function, the 'Creat de' value must reflect the name of the user who made the copy.
- 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
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de code4romania/vic
-
bug :bug:
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
code4romania/vic#463 ·
-
Typos & small fixes neededAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 20/100
code4romania/vic#461 ·
-
bug :bug: web-app
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
code4romania/vic#458 ·
-
Update cards highlight issueAbiertobug :bug: mobile-app
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
code4romania/vic#457 ·
-
bug :bug: web-app
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
code4romania/vic#456 ·
Todos los issues de code4romania/vic
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
stellar/stellar-dev-skill#151 ·
Los mantenedores suelen responder en 1 día
-
Trial & Error: guided Blind offer squeezes on phones and sits under the touch toolbar on iPadAbiertoarea:arcade game ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
fderuiter/deruiter.dev#2281 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
scope: data grid type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
fix(frontend): correct VITE_IS_DEVELPOMENT typo in shared/app.ts and align dev environment flagsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vicharanashala/ajrasakha#1439 ·
Los mantenedores suelen responder en 1 día
-
Add: TV5Monde AsieAbiertoapproved check:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día