Skip to content
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 ability to automatically complete any passed deadlines #72

Open
nylanderdev opened this issue Sep 21, 2022 · 1 comment
Open

Add ability to automatically complete any passed deadlines #72

nylanderdev opened this issue Sep 21, 2022 · 1 comment
Labels
good first issue Good frist issue

Comments

@nylanderdev
Copy link

Sometimes there are a bunch of old deadlines that passed long ago, and I have to manually hit "Complete" on each of them. It would be nice if there was a button which would remove all passed deadlines in one click, or at least all sufficiently old ones.

@hampfh hampfh added the good first issue Good frist issue label Sep 21, 2022
@hampfh
Copy link
Owner

hampfh commented Sep 21, 2022

That's a good suggestion, I've realized that this is very frustrating too. I'm very short on time at the moment and therefore not sure when I would be able to fix this, I'll leave the general steps to fix this here if you'd like to take a look at this

This is a client-side fix since completed deadlines aren't stored on the backend as of now, I think it would be sufficient to add a button that would mark all (or all passed) deadlines as completed either in the workspace view, deadline view, or both.

The files related to this are:

  • src/components/screens/Subjects/components/DeadlineColumn.tsx (workspace page, right side column), I would suggest taking a look at the function removeDeadline (which is badly named, it should be "completeDeadline") in the same file to understand how this works. Then either extend the function or create a new one that simply marks all deadlines in the state as completed with a specific criteria.
  • There's also client/src/components/screens/Deadlines/Deadlines.tsx (deadline page)

For documentation on how to set up the environment etc, I would suggest taking a look at the docs page which you can find here. Sadly I don't have the page for the documentation running atm but that should be as easy as running, npm install followed by npm start OR if you don't want to bother about setting up the documentation locally you can just visit the raw .md files here.

The docs might be a bit spare on the setup (one thing that I don't think is mentioned is that you have to have both redisDB and mongoDB installed on your system to start the backend), if you actually do plan on implementing the feature and gets stuck on the environment setup don't hesitate to ask for more directions or help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good frist issue
Projects
None yet
Development

No branches or pull requests

2 participants