Releases: vhoyer/timedReport
well, Added a new thingy
folks at work wanted estimated time of completion on the report
Timed Report! With deep customization, if you are smart enough
Well our engineers have been busy lately! (jk, it's just me ...)
I got so many things implemented I don't know where to start... hmm, I suppose cronologically is good enough. No no, let's do it cronologically, but I'll start with the bugs and see where that leads me.:
Bugs smashed to the wall
- Now time doen't freezes when you paste a new time to the card
- Percentages now are not on steroids (are not graphically rendered as 100 times its value)
- Now when you try to close the context menu, it actually closes properly, now thats something
- Now you can successfully load your files!
Ok, I just found out that telling in the release about the bugs in beta doens't make any sense, since you don't know where the bugs come from. Note to self, don't announce bugs in release. Right. Now the feature list!
Awesome Features added
- Now we have a custom context menu when you right click a card. It has awesome features such as...., oh, the things it do, I haven't told they exist yet, I'll tell along the list what the context menu has to offer then;
- Now we have a nice button that takes you to github to report bugs and request features! the down side is, you have to have a gh account to use it... hmm... I'll eventually fix this;
- Now cards have states AND percentage! (and you can change them with the context menu!)
- States tell you what the state of your task is, are they done? are you doing it? are you lazy and didn't start them yet? you can see it now with States!
- Do you want to see a nice progress bar with your progress? Now you can!!!
- Now the big star of this release, I've even separated a h2 to display it, here it comes!
Build and they will customize it!
Now you have the incredable option to customize the behaviour of your card. Not only you can change the color of your taskbar accordingly to the card's state but you can auto bind specific percentages to determined task state, like, when you are done with a task, generally it is 100% complete, right? why not display the progress bar as green of success then?
And If you think that's not enought (I think it's not), You Also have the possibility to add your own custom actions to the context menu, with whatever thing you want to happen when you click it!
The great downfall of this feature is: you have to do it with javascript, AND you have to be familiar with the code of the project, which is not ideial, but I will get there, just you wait!
Don't know JavaScript, don't want to dive deep into the source code of Timed Report? I've prepared two awesome custom actions just for you!
vm.customActions=[{
name: 'Increment It!',
action: '( function(){\
let card=vm.getCardFromId(vm.context.cardId);\
if( card.percentage == 0 ) { card.taskState = 1; }\
if( card.percentage == 100 ) { return; }\
let n = vm.incrementWithRandom(card);\
if( n == 100 ) { card.taskState = 3; }\
card.percentage=n;\
})'
},
{
name: 'Reset it!',
action: '( function(){\
let card=vm.getCardFromId(vm.context.cardId);\
card.time=0;\
card.percentage=0;\
card.taskState=0;\
})'
}];
There is this this nice panel I've prepared for you in the button "Load configs", there you can paste this code or load the file I've added at this release as MyTimedReport.config.js
. then you hit "Run code", that's it. Done.
Want to add your own custom actions? Don't want to read and undertand my code? Write a new issue here on GitHub. If there is a single soul that want's it, I'll prepare a proper documentation for this feature if there isn't one aready.
Timed Report! Now without bugs!
Web App (link) Now without bugs! probably.
Well, I thought it hasn't bugs in the last version, but there was this huge flaw (because JavaScript).
The way setTimeout()
works when:
- the tab is not focused; and
- it's delay is less then 1000ms,
is soooooo buggy and inconsistent, I had to use Date.Now() - startTime
to fix the timing between executions of the setTimeout function.
It should have been like this from the start? Yes, it had to be. But it wasn't. Now it is. Be happy about it.
Timed Report! With Cookies!
Timed Report
Navbar more squished 🦑 👍