xyzshantaram / etu

MIT License
1 stars 1 forks source link

added timesheet display #5

Closed Krishna-Sivakumar closed 1 month ago

Krishna-Sivakumar commented 1 month ago

Sessions can be visualized as timesheets now.

In Action


image

Updated Help Section


image

Would be better to display the timesheet for the current and previous month only as the database gets bigger, but that's work for the future

xyzshantaram commented 1 month ago

Re: this

Would be better to display the timesheet for the current and previous month only as the database gets bigger, but that's work for the future

We could split off timesheet into its own subcommand and give it a --since option that accepts a date delta similar to etu session edit's time-editing functionality.

Also, do you think it makes sense to change etu log --timesheet to something like etu log --months? I'm thinking of making the default log view output a table as well.

Krishna-Sivakumar commented 1 month ago

We could split off timesheet into its own subcommand and give it a --since option that accepts a date delta similar to etu session edit's time-editing functionality.

I was thinking of adding a subcommand with more controls as well, if this goes in the direction of providing more control over what part of the timesheet to display.

Also, do you think it makes sense to change etu log --timesheet to something like etu log --months? I'm thinking of making the default log view output a table as well.

If it's gonna be separated later on, I think we can remove the option altogether. But I do think filtering the existing logs with a year,month,week format might be nice! How exactly to do this, Isn't something I have an idea about.