Page MenuHomePhabricator

Improve usability of Phrequent "Stop Time" dialog
ClosedPublic

Authored by epriestley on Aug 11 2014, 4:21 PM.
Tags
None
Referenced Files
F13223680: D10218.id24581.diff
Sun, May 19, 4:47 AM
Unknown Object (File)
Apr 11 2024, 6:38 PM
Unknown Object (File)
Apr 8 2024, 10:34 PM
Unknown Object (File)
Mar 28 2024, 5:54 PM
Unknown Object (File)
Mar 23 2024, 12:43 PM
Unknown Object (File)
Feb 5 2024, 8:16 PM
Unknown Object (File)
Jan 25 2024, 11:21 AM
Unknown Object (File)
Jan 16 2024, 6:54 PM
Subscribers

Details

Summary

Fixes T5848.

  • Disallow tracking negative time.
  • Preserve note if there's an error with the time selection.
  • Show start time and duration.
  • Slightly better error messages.
Test Plan

Started and stopped time. Tried to select future/negative ranges.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Improve usability of Phrequent "Stop Time" dialog.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: hach-que, btrahan.
btrahan edited edge metadata.

The "future" time thing strikes me as something people might have used - "I am going to work on this for the next two hours", etc - but I think this is better as is and will yield more accurate tracking overall.

This revision is now accepted and ready to land.Aug 11 2014, 6:36 PM
src/applications/phrequent/controller/PhrequentTrackController.php
59–60

Yeah, I think I agree with you -- and almost added at least a fuzz factor here (e.g., you can set a stop time up to 15 minutes in the future). However, it did previously stop you from future-stop-times (just not negative-stop-times) so I figured I'd leave that as-is until we get complaints.

If users run into this, I think fuzz-factor ("you can stop work at 5:00 PM if it's 4:53 right now") would be 100% reasonable and "any future time you want" would be like 90% reasonable.

epriestley updated this revision to Diff 24599.

Closed by commit rPfc814647e60a (authored by @epriestley).