-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add My Tasks view & dashboard widget #1285
base: develop
Are you sure you want to change the base?
Conversation
…into tasks/my-tasks
…into tasks/my-tasks
…into tasks/my-tasks
<ul class="list-group tasks"> | ||
<% @tasks.each do |task| %> | ||
<li class="d-flex flex-column list-group-item"> | ||
<%= link_to project_board_list_card_path(current_project, task.board, task.list, task), class: "list-group-item-action text-truncate" do %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is to extend this to include other assignable record types in the future correct?
In order to leave this open for extension as easily as possible, we should check for record type before rendering the link_to and the <li>
content since it will vary between record types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add a switch statement or a new helper method for this once we introduce another record type as a task
cards = current_user.cards.order(Arel.sql('due_date IS NULL, due_date ASC')) | ||
|
||
if project_id | ||
cards.select { |card| card.project.id == current_project.id } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're passing project_id
we should use it here otherwise it could have unexpected results
cards.select { |card| card.project.id == current_project.id } | |
cards.select { |card| card.project.id == project_id } |
…ds they are still assigned to
Summary
Currently, when methodology cards are assigned to users, the assigned users do not have a way to see which cards are assigned to them unless they manually go through each card. This is tedious and prone to letting cards fall through the cracks.
The proposed solution, allows the users to:
This will allow users to have better command of their tasks, make the process of finding a task easier, and will help the users stay on top of things.
Copyright assignment
Check List