59 Commits
Author SHA1 Message Date
rickyandClaude Opus 5.5 24d3523078 2026.11.2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026.11.2
2026-11-03 20:06:31 -05:00
rickyandClaude Opus 5.5 56081f8a01 Skip the stopwatch menu link update for users without one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 20:06:31 -05:00
rickyandClaude Opus 5.5 c5d3b2d959 2026.11.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026.11.1
2026-11-02 18:07:44 -05:00
rickyandClaude Opus 5.5 9c937c6d6b Closing time in local time for users without a time zone
Users without a time zone in their preferences fell back to UTC, so a 17:00 closing time stopped their
timers hours early (e.g. at noon on a US Eastern server). Like Redmine (User#today), they now get the
server's local time: for closing time, the Running timers page's "stopped at" field, and the "Timer
stopped by" note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 18:07:44 -05:00
ricky 82ffe7ed49 2026.11.0 2026.11.0 2026-10-31 08:51:21 -04:00
Claude 7349d9cf5a Add a closing time that stops timers
A new Closing time setting (e.g. 17:00, in each user's time zone): a timer started before closing stops
at closing time and its entry's comment notes it, so no time is logged after closing, even when nobody
stops it until the next day. A timer started after closing is overtime and keeps running, up to the
maximum timer length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-31 08:41:57 -04:00
ricky 7266f7842a 2026.10.1 2026.10.1 2026-10-29 07:35:54 -04:00
Claude 78f53d5d5a Running timers page with view/stop permissions
- New top-menu page listing running timers: owner, issue, project,
  activity, start time, time on this run and entry total, oldest first;
  refreshes every minute
- Role permissions "View running timers" and "Stop other users' timers",
  checked against each timer's project; users can always stop their own
- A timer can be stopped at an earlier time (when the person left):
  hours logged after it are taken off the entry, and the comment notes
  who stopped it and when
- Timers now record when they were started (session_started_at); timers
  running from before show "unknown" until restarted
- Integration tests for permissions, project scoping and stopping; unit
  tests for Timer#stop_for

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-29 07:06:08 -04:00
Claude 626db60658 Timer safety: length limit, server-side saving, stop on close
- Maximum timer length setting (default 10h): a timer that runs past it
  is stopped at the limit and its entry's comment is flagged, so a
  forgotten timer can't add a night or weekend of hours
- StopwatchTimerTickJob saves a running timer's time every minute on the
  server (no browser needed) and stops it at the limit on time; open
  tabs keep saving too
- Timer updates lock the user's preference row and re-read the timer, so
  simultaneous saves (several tabs, the job) never add time twice
- Closing an issue stops timers running on it before anything else (e.g.
  billing) uses its time; deleting a time entry only stops the timer
  running on that entry
- Issue timers require a visible issue; starting again moves the timer
  instead of raising "timer is already running"
- Tests updated and extended (limit, locking, tick job, close, delete,
  visibility, issue context menu); CI runs on Redmine 7.0
- Upstream's German notes translated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-29 00:13:21 -04:00
ricky c3d6948735 2026.10.0 2026.10.0 2026-10-28 23:59:45 -04:00
Claude fe0933c132 Readable Start/Stop colours, exact selectors, fork notes
- Colour-coded Start/Stop links use #2e7d32 / #c62828, which meet the
  4.5:1 text contrast ratio on white and on the mobile backgrounds
  (limegreen was ~2:1, red ~4:1)
- Selectors match the end of the link address (/timer/start,
  /timer/stop), exactly what stopwatch.js rewrites, instead of any
  address containing "start"/"stop"
- highlighted_links setting uses a string key like default_activity,
  has a default, and the form sends 0 when unticked
- Context-menu hook uses the calling view (hook_caller) instead of
  building a new view context
- README: "Changes in this fork" section (GPLv3 modification notice)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
2026-10-28 23:54:19 -04:00
ricky ec38414f06 Version Bump 2026.7.0 2026-07-29 12:21:42 -04:00
ricky 06b7050d07 Fixed Issues Context Menu 2026-07-29 11:53:41 -04:00
ricky 1425758a53 removed log 2026-07-29 11:37:12 -04:00
ricky a2fff4a5cf Disabled contex menu patch & bumped required version 2026-07-29 11:29:07 -04:00
ricky e4846bf4ac Updated for redmine 7 2026-07-28 19:17:12 -04:00
ricky 60dfa7ae4a Added a setting to apply green/red colors to Start/Stop 2026-03-21 07:53:56 -04:00
ricky 490fbd476d Change link to be green to start and red to stop 2026-03-19 22:33:53 -04:00
Jens Kraemer 527f72f93b modern redmine + ruby versions 2025-12-04 10:20:10 +08:00
Jens Kraemer 8e34eb627c fixes various UI issues v1.1 2025-06-24 15:48:03 +08:00
Jens Kraemer 3c709b1329 v1.1 for Redmine 6 2025-06-24 15:26:21 +08:00
Jens Kraemer 776c0cd823 switch to svg icons 2025-06-07 11:41:49 +08:00
Jens Krämer e40840b974 Update README.md v1.0 2023-11-03 15:19:40 +08:00
Jens Kraemer efc8c6c620 require_relative confuses the CI action 2023-11-03 15:17:22 +08:00
Jens Kraemer 33e8d85f8f remove travis leftovers 2023-11-03 15:04:49 +08:00
Jens Kraemer 7f0581aff2 travis -> GH actions 2023-11-03 14:41:58 +08:00
Jens Kraemer c496fac5e2 Redmine 5 2023-11-03 14:41:58 +08:00
Jens Kraemer 45d15917b3 update travis badge and link 2021-10-06 13:11:19 +08:00
Jens Kraemer fd7a5375e2 travis: do not attempt to run 4.1 with ruby 2.7 2021-10-06 13:02:42 +08:00
Jens Kraemer 8db0686e3a travis 2021-10-06 12:24:39 +08:00
Jens Kraemer e435d5f350 travis 2021-10-06 12:11:06 +08:00
Jens Kraemer 8e572e79b5 Merge branch 'feature/start-stop-ticket' 2021-10-06 10:58:37 +08:00
Jens Kraemer 88c1748703 travis 2021-10-05 12:10:13 +08:00
Jens Kraemer 84a49f1d1c test feature branch, update ruby versions 2021-10-05 11:40:20 +08:00
Jens Kraemer 78e47f5b75 start/stop tracking: issue context menu entry 2021-10-05 11:26:51 +08:00
Jens Kraemer 033e1739d2 'Start/Stop tracking' on issues#show 2021-10-05 11:26:51 +08:00
Jens Kraemer bd6711a59f plugin config - default activity setting
- this can be set to make the new 'Start tracking for issue' function a
  one click operation
2021-10-05 11:26:51 +08:00
Jens Kraemer d32845cc6e extract controller base class 2021-10-05 11:26:51 +08:00
Jens Kraemer 317aa08365 time entry form fixes
- issue selection selects the project accordingly
- issue / project selection updates available activities
- move project / issue selector to top. more logical this way, since
making a selection there may change the available activities
2021-10-05 11:26:51 +08:00
Jens Kraemer b4af7e0eb3 adds project_id arg to 'log time' link to preselect the current project, if any. 2021-10-05 11:26:34 +08:00
Jens Kraemer a2096e3208 remove running timer info when the time entry is removed 2021-10-05 10:44:37 +08:00
Jens Kraemer 53d5fbafd2 cleanup test helper 2021-08-31 14:27:50 +08:00
Jens Kraemer 6c51ef795a always show the running timer in the timers list #5 2021-08-31 14:24:24 +08:00
jan-imrich 9802307e5e fix rounding problem
Fixes the rounding problem. Since entry.hours is an getter with integrated round(2), its result should not be used for spent time calculation. Given the update function is called quite often (every 1-2 minutes), especially when the redmine issue is open in browser, it can disrupt the resulting overall logged time by up to 50%.
2020-12-19 08:44:15 +08:00
Jens Krämer 742157a1f1 Merge pull request #2 from vividtone/custom_fields_helper-is-missing
thanks!
2020-08-19 07:45:26 +08:00
MAEDA Go 4c9539c59a Clicking "Log time" causes NoMethodError 2020-08-04 23:14:37 +09:00
Jens Kraemer c53f1d006c travis 2020-07-24 11:32:42 +08:00
Jens Kraemer 37d47f58cf fix travis(?) 2020-07-24 08:16:13 +08:00
Jens Kraemer 049cbd6c8f travis 2020-07-24 07:59:14 +08:00
Jens Kraemer 1ed6942f0c fix test 2020-07-24 07:59:12 +08:00