code-corps / code-corps/code-corps-ember

Allow task assignment from new task page

未關閉
#1,174 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
blocked Skill: CSS Skill: Ember.js Skill: HTML Skill: JavaScript Skill: Testing
主要語言
JavaScript
星號
120
分支
75
PR 合併指標
30 天內沒有已合併 PR

描述

# 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.

貢獻指南

開啟貢獻指南

研究方向

從 component #1172 及其元件測試開始,接著檢查 project/tasks/task/new.hbs 和 new-task route/controller,尤其是現有的 skill-assignment 流程。實作 subtasks 中描述的 assignment UI 和儲存行為,更新元件測試,並確認 sidebar 樣式與 task 儲存路徑。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
frontend
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。