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

Feature request: Display "No progress to track" when there are no tasks to track #34

Open
muhahaaa opened this issue Dec 6, 2023 · 0 comments

Comments

@muhahaaa
Copy link

muhahaaa commented Dec 6, 2023

Problem: I'm using the extension for all of my meetings, and it is crucial for me to quickly identify any open tasks. Currently, it's somewhat challenging to differentiate between having no tasks and having only open tasks, as both display "0%". The only distinction is a slight color variation in the progress bar.

Solution: Display "No progress to track" when there are no tasks to track (refer to screenshot)

image

I have implemented the illustrated solution in my fork:
https://github.com/muhahaaa/logseq-plugin-todo-master/blob/a725b2fa741256a09a988290562de692ec0544a8/src/progress-bar.tsx#L42

The only change necessary was in the declaration of the shortText variable:
const shortText = total === 0 ? `No progress to track.` : `${percentage}%`;

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

No branches or pull requests

1 participant