owlysk / CodeTimer

Timer Widget for Kimai Time Tracking
MIT License
22 stars 2 forks source link

Browser-Plugin to fetch title from issue-tracker #6

Open xstable opened 1 year ago

xstable commented 1 year ago

Before I've used toggl.com. They have a really nice functionality in their browser-plugin. They injcet an toggl-icon into webpages. If you click on it, a task is generated which have the title of the issue pre-filled in a new task (or if this task already exists, they continue it.

That's very handy and save much time, if you work with a issue-tracker (e.g. gitlab, jira, assana, etc.)

image

image

Would it be possible to have such an browser-plugin which work together with CodeTimer. Means if you click on this injected Icon, it sends a request to codeTimer to create such an task?

BTW: As CodeTimer is coded in JS, would it be possible to also create an browser-plugin from it?

owlysk commented 1 year ago

Hi, that is a nice idea. Neutralino.js should has ability to using some extensions to comunicate but I was never testing this feature. Unfortunately for now I don't want develop any web browser plugin. If you have time, you feel free to develop it. You can use my code as well, just left somewhere copyright note please.

owlysk commented 1 year ago

Hi again, I did some research about extensions and API features and I think I figure out. There is requirement to access local files. I don't know, if browser extension has rights to access local files or not.

I can configure CodeTimer, to export mandatory informations (port & access token) to JSON file. Extension has to load this file. Then you can make connection with CodeTimer throught websocket. Then extension send request with additional information and CodeTime will handle it.