Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Template Management

未关闭
#359 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript

调研方向

首先检查 Template-uri 标签页流程和链接的 Figma 参考,然后跟踪模板的查看、编辑、复制、下载和删除流程。实现列出的验收标准,包括基于使用情况的菜单选项、复制时的命名、创建者归属、下载操作、确认以及列表更新;同时调查 ONGHub 数据子任务。

由索引模型根据 Issue 内容生成。

描述

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)
主要语言
TypeScript
星标
3
派生
2
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

code4romania/vic 的其他 Issue

查看 code4romania/vic 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。