itflow-org / itflow

Free and open-source web application for MSPs. Unifies IT documentation, ticketing, invoicing.
https://itflow.org
GNU General Public License v3.0
568 stars 147 forks source link

Add timers modal to see all timers #803

Closed o-psi closed 11 months ago

o-psi commented 11 months ago

Added a modal to the topnav to see your total timers as suggested here: https://forum.itflow.org/d/506-new-time-tracking-ui-timer-edits-are-overwrittenreset/5

wrongecho commented 11 months ago

Test these changes at: https://SeeAllTimers803.pr-review.itflow.org
(automatic message)

o-psi commented 11 months ago

@johnnyq this is ready to pull

johnnyq commented 11 months ago

@o-psi There are a few links that callback to your dev platform, please clean these up before merge

 ticketDiv.innerHTML = `
                    <div class="card-header">
                        <h3 class="card-title">Ticket ID: ${ticketID}</h3>
                        <a href="https://develop.twe.tech/ticket.php?ticket_id=${ticketID}" class="btn btn-primary float-right">View Ticket</a>
o-psi commented 11 months ago

@johnnyq this has been done. Nice catch.

wrongecho commented 11 months ago
sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

o-psi commented 11 months ago

@johnnyq @wrongecho This should be ready

johnnyq commented 11 months ago

Hi @o-psi Im looking over the code changes and may have missed it but some of the issues @wrongecho pointed out don't seem to be resolved just yet

o-psi commented 11 months ago

@johnnyq all but the first is resolved. I am still trying to think of a good way to get the ticket number out of the ID via JavaScript.

The timer in the header is wrapped in an if, and it's working on my dev environment, so not sure what you know that I don't.

Ticket time does get cleared after close. There is an event listener on the ticket_timer.js file that clears any storage. There is also now a clear all button in the modal to clear stuck or old timers.

o-psi commented 11 months ago

Regardless, this exponentially increases the usability of the timers... This is a beta app, correct?

If we are waiting for the feature to be complete, why is there a remember me checkbox on the login screen?

johnnyq commented 11 months ago

good point, ill get this finished sometime today and yes it is a beta app, but were trying to hit stable come New Years, just as long as it gets fixed before then. We have so much that needs to get fixed before then. I want to eventually put a feature freeze on ITFlow by the end of November and then just muscle out all the bugs in December.

johnnyq commented 11 months ago

and beside that I cant make the DB changes I need for remember me because you made DB changes that need merged before I can make DB Changes, but still need reviewed.

johnnyq commented 11 months ago

Okay im gonna reel this one in

o-psi commented 11 months ago

and beside that I cant make the DB changes I need for remember me because you made DB changes that need merged before I can make DB Changes, but still need reviewed.

@johnnyq I can always redo my DB Update in a PR. Dont let a PR with a DB update get in the way of making this program the best it can be!