feat: allow marking a related task done directly from the list of related tasks #2330

Closed
konrad wants to merge 3 commits from feature/enable-related-task-done into main
Owner

Related forum thread: https://community.vikunja.io/t/task-checklists/680/11?u=kolaente

There is one caveat remaining: If the user does not have the right to mark the related task as done an error message will be shown and the task won't be marked as done. Currently the api does not provide a way for us to check this in advance (without loading each task individually) so we can't really prevent this.

Related forum thread: https://community.vikunja.io/t/task-checklists/680/11?u=kolaente There is one caveat remaining: If the user does not have the right to mark the related task as done an error message will be shown and the task won't be marked as done. Currently the api does not provide a way for us to check this in advance (without loading each task individually) so we can't really prevent this.
dpschen was assigned by konrad 2022-09-07 15:47:44 +00:00
konrad requested review from dpschen 2022-09-07 15:49:16 +00:00
Member

Hi konrad!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://2330-feature-enable-related-task-done--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi konrad! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://2330-feature-enable-related-task-done--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
konrad changed title from feat: allow marking a related task done directly from the list to feat: allow marking a related task done directly from the list of related tasks 2022-09-07 17:55:39 +00:00
Member

I would love if we could fix the related task script setup and apply this to that pull request.

I would love if we could fix the related task script setup and apply this to that pull request.
dpschen reviewed 2022-09-08 09:58:46 +00:00
@ -317,0 +324,4 @@
async toggleTaskDone(task: ITask) {
if (task.done) {
playPop()

Unsure: Wouldn't it make sense to play this from the store when we update the task an the done prop has changed?

Unsure: Wouldn't it make sense to play this from the store when we update the task an the `done` prop has changed?
Author
Owner

Yes.

Yes.
Author
Owner

Done.

Done.
konrad marked this conversation as resolved
dpschen reviewed 2022-09-08 10:00:06 +00:00
@ -389,1 +415,4 @@
.task-done-checkbox {
padding: 0;
height: 18px; // The exact height of the checkbox in the container

Why do we need to set a height from outside here?

Why do we need to set a height from outside here?
Author
Owner

Because otherwise the height of the actual checkbox in the <Fancycheckbox component is too much resulting in a weired positioning of the checkbox. Setting the height here is a workaround until we fix the styling of the component. I didn't want to do this in this PR because the component is used in a lot of places and the change has potential to break a few things. Better do it in another PR.

Because otherwise the height of the actual checkbox in the `<Fancycheckbox` component is too much resulting in a weired positioning of the checkbox. Setting the height here is a workaround until we fix the styling of the component. I didn't want to do this in this PR because the component is used in a lot of places and the change has potential to break a few things. Better do it in another PR.

Okay. Can you prefix it with a // FIXME: or // HACK: then?

Okay. Can you prefix it with a `// FIXME:` or `// HACK:` then?
Author
Owner

Done.

Done.
konrad marked this conversation as resolved
Author
Owner

I would love if we could fix the related task script setup and apply this to that pull request.

Ohh right we also have that open! I think we should merge the other one first.

> I would love if we could fix the related task script setup and apply this to that pull request. Ohh right we also have that open! I think we should merge the other one first.
konrad force-pushed feature/enable-related-task-done from 1ffcd5ff2f to f24ac01e36 2022-09-08 11:51:57 +00:00 Compare
dpschen requested changes 2022-09-08 17:31:35 +00:00
dpschen left a comment
Member
https://kolaente.dev/vikunja/frontend/pulls/2330#issuecomment-34972
konrad added 1 commit 2022-09-13 19:56:17 +00:00
continuous-integration/drone/pr Build is passing Details
3f16d17cef
chore: add FIXME
konrad requested review from dpschen 2022-09-14 16:42:04 +00:00
Member

I ported this over to #1939 in 08dc289260

I ported this over to https://kolaente.dev/vikunja/frontend/pulls/1939 in https://kolaente.dev/vikunja/frontend/commit/08dc28926008b5539223f8d2878ac5b40a2565d0
Author
Owner

So we'll close this one in favour of #1939?

So we'll close this one in favour of #1939?
dpschen closed this pull request 2022-09-20 16:58:38 +00:00
dpschen refused to review 2022-09-20 16:58:43 +00:00
dpschen removed their assignment 2022-09-20 16:58:48 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.