Template Management
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- full-stack, web-dev
调研方向
首先检查 Template-uri 标签页流程和链接的 Figma 参考,然后跟踪模板的查看、编辑、复制、下载和删除流程。实现列出的验收标准,包括基于使用情况的菜单选项、复制时的命名、创建者归属、下载操作、确认以及列表更新;同时调查 ONGHub 数据子任务。
由索引模型根据 Issue 内容生成。
描述
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)
- 主要语言
- TypeScript
- 星标
- 3
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
code4romania/vic 的其他 Issue
-
bug :bug:
难度 3/5 1-2 天 新手友好度 35/100
code4romania/vic#463 ·
-
难度 1/5 1 小时以内 新手友好度 20/100
code4romania/vic#461 ·
-
bug :bug: web-app
难度 3/5 1-2 天 新手友好度 35/100
code4romania/vic#458 ·
-
bug :bug: mobile-app
难度 3/5 1-2 天 新手友好度 45/100
code4romania/vic#457 ·
-
bug :bug: web-app
难度 2/5 1-3 小时 新手友好度 45/100
code4romania/vic#456 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
wormhole-foundation/wormhole#5062 ·
维护者通常 1 天内回复
-
internal os specific
难度 2/5 1-3 小时 新手友好度 65/100
frostney/GocciaScript#1688 ·
维护者通常 1 天内回复
-
integration:hermes
难度 2/5 1-3 小时 新手友好度 70/100
vectorize-io/hindsight#5592 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
vercel/streamdown#673 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
apache/rocketmq-dashboard#6712 ·
维护者通常 3 天内回复