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

Targets #53

Open
JamesNZL opened this issue Jun 10, 2023 · 3 comments
Open

Targets #53

JamesNZL opened this issue Jun 10, 2023 · 3 comments
Assignees
Labels
feature New feature or request question Further information is requested

Comments

@JamesNZL
Copy link
Owner

JamesNZL commented Jun 10, 2023

  • Daily/weekly/monthly/yearly targets
  • Set on project/client/time entry

Project 1 tracked daily for a minimum of 2 hours
Client 1 tracked weekly for a maximum of 16 hours

@JamesNZL JamesNZL added the feature New feature or request label Jun 10, 2023
@JamesNZL JamesNZL self-assigned this Jun 10, 2023
@JamesNZL
Copy link
Owner Author

Set in settings for a global application?

What about past ones? Only apply the current setting? Or allow seeing whether historical spans met historical targets? Would need to persist...

Or have a command to set?

Way too finnicky??

@JamesNZL JamesNZL added the question Further information is requested label Jun 24, 2023
@JamesNZL
Copy link
Owner Author

JamesNZL commented Jun 24, 2023

How would this be displayed?

  1. tgl reports targets

    • Would have to fetch multiple different spans, if there is eg a target daily and a different target weekly
  2. tgl reports day and just add if that specific result has a target
    eg if Project 1 has a daily target, it would have an extra (64%) appended to the end of the title?

    • This would make it more difficult to see all the targets
    • Might be hard to spot?
    • Easier to implement?
    • tgl reports day projects is already pretty busy...
      image

@JamesNZL
Copy link
Owner Author

JamesNZL commented Jun 24, 2023

new Result
{
	Title = $"Display {((this._state.ReportsShowDetailed) ? "summary" : "detailed")} report",
	ProgressBar = 100,
	ProgressBarColor = "#ffffff",
	IcoPath = "reports.png",
	AutoCompleteText = $"{query.ActionKeyword} {query.Search} ",
	Score = int.MaxValue - 1000,
	Action = c =>
	{
		this._state.ReportsShowDetailed = !this._state.ReportsShowDetailed;
		this._context.API.ChangeQuery($"{query.ActionKeyword} {query.Search} ", true);
		return false;
	},
}

gives this 👀
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant