Giter VIP home page Giter VIP logo

obsidian-toggl-integration's People

Contributors

aventuraviper avatar dependabot[bot] avatar fischgeek avatar mcndt avatar mihaibirsan avatar rscircus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

obsidian-toggl-integration's Issues

Project is unknown while running

I am om latest plugin versiona and obsidian 0.13.23 (macoS 12.2)
While running I am getting Unknown project, which is later displayed correctly (Currently is running "Fens poster abstract project)
image

Description of item in list reports overflows obsidian page width when longer than 2 lines

I have some very long Toggl entries due to tracking Todoist Tasks that are themselves generated using the Todoist Outlook add-on.

When these are pulled into a list style report by this obsidian plugin, they overflow the space given and produce a horizontal scroll bar (see attached image).

The task duration is also pushed off.

I think there should be some sort of max length before an item is trimmed to prevent this if possible.

image

Daily summary for the daily note

I am so sorry for asking this, because I have the feeling that this was asked thousand times before me. I couldn't find anything.

I do want in my daily obsidian note the summary of that day.

I thought I could just

summary 2022-04-04

and do that day with templater plugin. But it doesnt work that easily

image
I need to give an interval expression. I cant just say day: 2022-04-04

I can ofc say

summary From 2022-04-04 To 2022-04-04

But is there a smoother way so it is not that ugly at the daily page?
image
I think the heading with telling the name twice looks a bit trashy

Feature: Keep longer backlog of timers?

Right now it seems like the plugin only shows the most recent 4 timers (might partially be based on a time cutoff so maybe it sometimes shows more). It would be great if it was possible to show more and/or search them. I'm not sure if that's an API limitation but if not this would be great to have.

With the short list I find that I accidentally recreate tasks with slightly different phrasing/spelling.

Decrease the amount of request to the `/api/v8/time_entries/current` endpoint

Greetings from Toggl Track👋

Thanks for creating this integration for the Obsidian users and for adding a custom User-Agent.

We have detected that his integration is doing a lot of request GET to the /api/v8/time_entries/current endpoint. Looks like the frequency is ~1 request per second.

A good rate in terms of UX for this request(refreshing what's the current time entry) is 1 request between 5-15s.

Help us(and the users) lowering this rate. Thanks :)

View Tags as part of reports

It would be great if reports could have the option to display tags.

Understand reports are new and you are busy!

Filtering by tag

I'd like to be able to filter by tags, not just projects or clients. That would help me view unbilled time as

```toggl
summary past 3 months include projects "Project" exclude tags "Billed"
```

Would it be possible to extend the filtering to include this?

TypeError: groups is not iterable

On query:

list 
past 2 weeks
include projects "Reading"
group by date
sort desc

The group by expression causes the following console error and an infinite loading spinner:

image

Note that the query only includes a single project.

Solution:

  1. Resolve bug
  2. Make future exceptions bubble up to the Svelte component such that it can display an error message instead of infinite loading.

Ability to group entries by client

Would be really nice to be able to use GROUP BY CLIENT, since Toggl provides this functionality.

It's really handy when creating weekly/monthly reports. So, instead of a project list you could see the time spent on each client. or even include both projects and clients given the "include" option.

For example, in the screenshot below it would be something like:

  • Taverna (client)
  • Fresha (client)
  • FE Sputnik8 (project)
  • BE Sputnik8 (project)
    image

Feature Request: Sort Entries under date in LIST mode

At present, it would appear that the entries under each date in LIST mode are in descending order. I'm not sure of the Toggl API sends the necessary information to change the sort order for these, but it would be nice to have them in ascending order to the first entry is displayed first:

image

You can see from the image, the dates are ascending, but the order in which the entries are displayed is reversed. Project Creation was first, followed by Author Photo Touchup, Main Titles, and then Blasted Crown.

Ability to hide pie chart

I find myself creating many summary reports that are scoped to a single client or project, so that I can track my time spent over the query interval. This makes the pie chart redundant as there isn't a list of projects to break down:

image

Suggestion: add a keyword to hide the pie chart.

bug: some reports no longer render bar charts

Example:

```toggl
summary from 2021-09-21 to 2021-12-23
include clients "Master’s Thesis", "Computer Graphics", "Queueing Analysis", "AI Research Seminar", "Internship"
sort desc
title "Fall Semester 2021-2022"
```

image

Console errors:

image

Feature Request: Queue API Calls

Definitely enjoying being able to reduce one more application I need to have running through my various workflows, so many thanks for the plugin. I had almost given up on using Toggl, to be honest, but this certainly helped me keep the tool. :)

However, I like to have a landing page with a number of different summary queries that shows me kind of a bird's eye view of my productivity, which inevitably leads to:

image

I suspect this is because there are 6 blocks of toggle queries on the one page and I am assuming they are all being sent at the same time. If they were instead entered into a queue and only one or two queries sent at once with their blocks being updated once data is returned, that would probably eliminate this problem. It would delay the appearance of the queries, but at least they could appear in the appropriate order. Right now they randomly fail. 😂

I wouldn't consider this vital. I can probably cull one or two of the queries, but it would be a nice safeguard to enter into the system at some point.

As a user, I want to customize the status bar text using templates.

It would be nice to show the Project name in the status bar instead of the description.

If we could use a template in the status bar, we could change it to fit each user of the plugin.

Some ideas about what to customize

  • Show Project name
  • Show description
  • Show time in hours and minutes
  • Change the prefix from "Timer" to ⏱ or ⏳

Originally posted by @davidolrik in #2

I'd love to be able to add timers that already happened

Discussed in #57

Originally posted by kenjibailly January 30, 2022
Sometimes I have something that I forgot to track, or a custom input that I couldn't track at that moment.
Would be nice to be able to add custom length timers that already happened.
Right now I only see the option to add a timer and track its time.

Add release script

Releasing is kind of a chore. Need to write a script to:

  • bump release version in manifest.json
  • add release version in versions.json
  • bump package version in package.json
  • create tag on commit
  • push commit tag to GitHub

Real time or Refresh sidebar view (report)

The timer is in real time, but the sidebar summary view itself doesn't seem to update. Is there a time-interval with with it updates? And is there a way to manually refresh the report?

Adding a gif to make it clear.
CleanShot 2021-09-05 at 16 34 42

Start timer before adding name and project

It would be great if I could start the timer and then add the name and the project. This way there would be much less friction in terms of starting a timer. This is basically how both mobile and web versions work.

Support for Mobile Devices

Hi i really love this Plugin!
Are there any plan to support mobile devices? I‘m a heavy iPad User and would love to use this Plugin there.

Decimal time

Discussed in #70

Originally posted by abonhote February 28, 2022
I'd love to see the time in decimal notation, so instead of 2:30 rather 2.5. It's possible with Toggl's native reports already.

As a user, I want to edit my current timer.

Loving the plugin so far, super convenient!

If there was an "Edit Active Timer" option exactly like the "Start Toggl Timer" option when a timer is active, or you could click the name of the current entry and have the same timer selection popup appear, that would be super useful.

Thanks!

bug: Error Rendering daily reports

I generate logs in my daily notes by using this in the template:

LIST
FROM {{date}} to {{date}} 

It works for the current day, but previous days display this error:

Error while rendering report ☹️
Please report this exception on GitHub.

TypeError: Cannot read properties of undefined (reading 'data') at groupByDate (eval at (app://obsidian.md/app.js:1:1433729), :31926:10) at getListGroups (eval at (app://obsidian.md/app.js:1:1433729), :31841:17) at Object.$$self.$$.update (eval at (app://obsidian.md/app.js:1:1433729), :31972:36) at init$1 (eval at (app://obsidian.md/app.js:1:1433729), :894:8) at new TogglListReport (eval at (app://obsidian.md/app.js:1:1433729), :31987:3) at create_if_block_1 (eval at (app://obsidian.md/app.js:1:1433729), :32178:21) at Object.p (eval at (app://obsidian.md/app.js:1:1433729), :32375:18) at update (eval at (app://obsidian.md/app.js:1:1433729), :577:36) at flush (eval at (app://obsidian.md/app.js:1:1433729), :544:13)

Bug: Momentarily unable to type in Obsidian workspace after starting previously used timer with keyboard shortcut

The Issue

Whenever I start a previously used timer with a keyboard shortcut (in my case, CMD + T), I am frequently unable to enter text in my primary workspace afterwards. For some reason, it usually takes a few seconds for this bug to show up--I am typically able to type for a few seconds, and only later am I unable to enter text. It is still possible to enter text in areas like the search bar, command palette, and quick switcher. As soon as I move my cursor out of my workspace and back in, the issue resolves itself. While this may not be directly related to the Toggl integration plugin, I have not had this issue until using the plugin, and it only comes up after triggering a timer.

Steps to Reproduce

  1. Start a previously used timer by using a keyboard shortcut
  2. Attempt to enter text into workspace (bug may not show up immediately)

Summary not updated unless file is reloaded

First: thank you so much for developing this plugin! It’s really cool ; it’s a nice incitative to have my weekly report in Obsidian (so like, all the time in sight).

The only problem for now is that since I’ve pinned a md file with my report in it, it’s not showing the latest timers. The report only seems to reload when I navigate away from the file and open it back again—and since I’ve pinned the file with my report in it, it won’t update anymore (unless I e.g., close then reopen Obsidian).

Maybe an auto-refresh at set interval (e.g., every minute) would be the appropriate solution?

API unreachable error with success notification, not sure how

I am new to toggl so not sure if this is a toggl issue or something to do with the plugin. Sidebar says toggl API is unreachable but in the plugin settings the connection is a success. (Attached video)

Screen.Recording.2021-08-20.at.9.09.02.PM.mov

Please allow setting API token in a dedicated file

I was happy to see your plugin on the latest obsidian roundup! While testing it, I noticed that you store the API key in the data.js under your plugins' directory.

Can you please change where on disk the API token is stored? Basically, I am asking for an implementation similar to the todoist sync plugin; .obsidian/toggl-token or similar. The exact location does not matter, only that the token is kept separate; putting` it in the plugins' data dir would be fine.

I don't use obsidian sync for my vaults, i use a different solution. Since the plugin basically needs the token in plain text, i try to prevent my cloud sync clients from syncing certain files to the server.

sorting feature?

I am new so there is probably already that feature.
image
I currently have the problem that my daily data is not ordered by time. I would greatly appreciate it, if the datasets are ordered by their amount. So the highest percentage points at the top and the lowest at the bottom.

IF THIS IS ALREADY POSSIBLE:
please tell me how to do that. I would greatly appreciate any help
a simple sort desc doesn't work

IF THIS IS NOT A FEATURE YET:
please add it as a feature it would immensely improve it.
Seeing what I did today the most amount of time is the reason I use toggl Tracker so if that would be easier with a sorting feature, i think the programming effort would be worth it for everybody.

New added projects not listed

When creating new timer / existing, it could not fetch the latest projects. Workaround is to restart the app.
It should check for latest projects when the command is triggered

Bug: stop timer command opens modal

When presented with the 'Select a project' prompt, all I get is (No Project). image.

Selecting Donw Arrow or Up Arrow does nothing.

I am able to start timer, but it is not associated with any project. I have a number of clients and projects in my workspace.

[Bug] 'Error reaching Toggl API'

Not noticed this before, but am seeing a constant stream of the following errors in dev mode;

plugin:obsidian-toggl-integration:16433 Error reaching Toggl API
eval @ plugin:obsidian-toggl-integration:16433
rejected @ plugin:obsidian-toggl-integration:65
processTicksAndRejections @ node:internal/process/task_queues:96
Promise.then (async)
step @ plugin:obsidian-toggl-integration:66
eval @ plugin:obsidian-toggl-integration:67
__awaiter @ plugin:obsidian-toggl-integration:63
updateCurrentTimer @ plugin:obsidian-toggl-integration:16423
eval @ plugin:obsidian-toggl-integration:16418
plugin:obsidian-toggl-integration:16434 

RequestError: getaddrinfo ENOTFOUND api.track.toggl.com
    at ClientRequest.eval (plugin:obsidian-toggl-integration:12833:111)
    at Object.onceWrapper (node:events:510:26)
    at ClientRequest.emit (node:events:402:35)
    at ClientRequest.origin.emit (plugin:obsidian-toggl-integration:7331:20)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
    at __node_internal_ (node:internal/errors:686:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)

I am still seeing Toggle data in Obsidian and, the errors show whether the Toggle pane is in view, or not.
Also, whether the setting for real time daily total is enable, or not.
However, the settings page fails on Test API Connection... 🤷🏻‍♂️

Summary Report in Daily Note Format

I would like to have the toggl summary as part of my daily, not template. However, I can't figure out how to have that day's date pulled into the query. For example, if I use "TODAY" it will only show the current day's summary, not the day for that note. Is there a variable or some special syntax that I can add to match the date of the daily note into the toggl summary?
Thanks in advance for the help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.