Skip to content

Feature: Validation #13

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

Merged
merged 1 commit into from
Apr 6, 2025
Merged

Feature: Validation #13

merged 1 commit into from
Apr 6, 2025

Conversation

monofox
Copy link
Contributor

@monofox monofox commented Apr 6, 2025

This commit brings a validation handling on task creation. This implies additional changes integrated:

  • DaisyUI was upgraded
  • Hooks were implemented as using Taskchampion is not calling the original taskwarrior hooks anymore.
  • Undo report is getting the data now from taskchampion for better usability

Error indication:
image

Interestingly i figured out, that depending how you create the tags in the task command line interface, you will be able to assign invalid tags. Even with a sign in front of a tag. So it seems that taskchampion is better validating the data than task itself.

Undo report example:
image

I would not had to change the undo report yet. But my inner Monk forced me to do it. If I should split and send as separate request, let me know.

Closes #10

Dear @tmahmood ,
maybe you can try it out on your side whether this is working fine for you as well or if there are further improvements in this case necessary.

I've many further ideas in this, but do not want to bloat this MR too much. It contains already much more things i initial planned.

Best regards,
monofox

This commit brings a validation handling on task creation.
This implies additional changes integrated:

 - DaisyUI was upgraded
 - Hooks were implemented as using Taskchampion is not calling the
   original taskwarrior hooks anymore.
 - Undo report is getting the data now from taskchampion for better
   usability
@tmahmood
Copy link
Owner

tmahmood commented Apr 6, 2025

Those are some nice improvements, (Sorry about the messy code btw), thank you

Not able to give enough time right now, so anything you add would be great!

I reviewed the changes quickly, it looks good.

@tmahmood tmahmood merged commit e85060b into tmahmood:main Apr 6, 2025
1 of 2 checks passed
monofox added a commit to monofox/taskwarrior-web-rs that referenced this pull request Apr 6, 2025
This commit fixes a bug introduced with ticket tmahmood#10 and MR tmahmood#13.
The `mask_task_as_done` did what it was named for. It completed tasks.
Due to this, it was not possible anymore, to re-activate a ticket back to pending.
monofox added a commit to monofox/taskwarrior-web-rs that referenced this pull request Apr 6, 2025
This commit fixes a bug introduced with ticket tmahmood#10 and MR tmahmood#13.
The `mask_task_as_done` did what it was named for. It completed tasks.
Due to this, it was not possible anymore, to re-activate a ticket back to pending.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Tags on new task creation is moved to description or wrong created
2 participants