Allow task assignment from new task page

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

从 component #1172 及其组件测试开始,然后检查 project/tasks/task/new.hbs 和 new-task route/controller,尤其是现有的 skill-assignment 流程。实现 subtasks 中描述的 assignment UI 和保存行为,更新组件测试,并验证 sidebar 样式和 task 保存路径。

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

描述

blocked Skill: CSS Skill: Ember.js Skill: HTML Skill: JavaScript Skill: Testing

Problem

Users which are allowed to do so should be able to assign tasks from the new task page. We should use the component extracted in #1172 to achieve this, so this will be marked as blocked until we're ready for that.

Since this is for a new task, it should be implemented similarly to skill assignments. Instead of immediately creating a userTask record as soon as the user makes a dropdown selection, we should assign the selected user to a controller/route property. Once the user then saves the task, we should create and save the userTask record automatically.

This means that the component defined in #1172 might have to be modified to allow external assignment of the user, and tests would have to be updated to support this.

Subtasks

  • Include component from #1172 in project/tasks/task/new.hbs
  • [ ] Modify component so it allows external assignment of the assigned user. This should be relatively simple and be just a matter of overwriting the component property.
  • Update component tests so they cover this case
  • [ ] Handle onChange action correctly in route/controller. It should work similarly to how skill assignment works.
  • Modify task save action on route/controller to also create a userTask once saving is done
  • Fix any styling issues that might occur from using the component in the sidebar instead of the task card.
主要语言
JavaScript
星标
120
派生
75
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

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

code-corps/code-corps-ember 的其他 Issue

查看 code-corps/code-corps-ember 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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