gitea/modules/util
K Kovacs 34692a20b1
Worktime tracking for the organization level ()
Dear Gitea team,

first of all, thanks for the great work you're doing with this project.

I'm planning to introduce Gitea at a client site, and noticed that while
there is time recording, there are no project-manager-friendly reports
to actually make use of that data, as were also mentioned by others in
  and .

Since I had a little time last weekend, I had put together something
that I hope to be a useful contribution to this great project (while of
course useful for me too).

This PR adds a new "Worktime" tab to the Organisation level. There is a
date range selector (by default set to the current month), and there are
three possible views:

- by repository,
- by milestone, and
- by team member.

Happy to receive any feedback!

There are several possible future improvements of course (predefined
date ranges, charts, a member time sheet, matrix of repos/members, etc)
but I hope that even in this relatively simple state this would be
useful to lots of people.

<img width="1161" alt="Screen Shot 2022-05-25 at 22 12 58"
src="https://user-images.githubusercontent.com/118010/170366976-af00c7af-c4f3-4117-86d7-00356d6797a5.png">

Keep up the good work!

Kristof

---------

Co-authored-by: user <user@kk-git1>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-03 01:51:12 +08:00
..
filebuffer Add `io.Closer` guidelines () 2024-02-25 13:05:23 +00:00
rotatingfilewriter Replace `interface{}` with `any` () 2023-07-04 18:36:08 +00:00
color.go Fix project column title overflow () 2024-05-20 05:21:01 +00:00
color_test.go Enable tenv and testifylint rules () 2024-12-15 10:41:29 +00:00
error.go Replace `interface{}` with `any` () 2023-07-04 18:36:08 +00:00
file_unix.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
file_unix_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
file_windows.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
io.go Refactor markup package () 2024-11-04 10:59:50 +00:00
io_test.go Fix profile render when the README.md size is larger than 1024 bytes () 2023-06-13 09:02:25 +00:00
keypair.go Enable `unparam` linter () 2024-06-11 18:47:45 +00:00
keypair_test.go Enable tenv and testifylint rules () 2024-12-15 10:41:29 +00:00
legacy.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
legacy_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
pack.go Replace `interface{}` with `any` () 2023-07-04 18:36:08 +00:00
pack_test.go Add support for incoming emails () 2023-01-14 23:57:10 +08:00
paginate.go Replace `interface{}` with `any` () 2023-07-04 18:36:08 +00:00
paginate_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
path.go Fix unittest and repo create bug () 2024-12-31 18:45:05 +08:00
path_test.go Fix unittest and repo create bug () 2024-12-31 18:45:05 +08:00
remove.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
runtime.go Refactor pprof labels and process desc () 2024-12-20 12:17:14 +08:00
runtime_test.go Refactor pprof labels and process desc () 2024-12-20 12:17:14 +08:00
sanitize.go Refactor to use UnsafeStringToBytes () 2024-06-14 01:26:33 +00:00
sanitize_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
sec_to_time.go Worktime tracking for the organization level () 2025-02-03 01:51:12 +08:00
sec_to_time_test.go Worktime tracking for the organization level () 2025-02-03 01:51:12 +08:00
shellquote.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
shellquote_test.go Refactor older tests to use testify () 2025-01-09 09:21:47 +08:00
slice.go Performance improvements for pull request list page () 2024-03-21 14:13:08 +01:00
slice_test.go Replace `util.SliceXxx` with `slices.Xxx` () 2023-09-07 09:37:47 +00:00
string.go Do not render truncated links in markdown () 2024-12-26 00:33:55 +08:00
string_test.go Do not render truncated links in markdown () 2024-12-26 00:33:55 +08:00
time_str.go Update go tool dependencies () 2024-12-19 19:17:55 +01:00
time_str_test.go Enable tenv and testifylint rules () 2024-12-15 10:41:29 +00:00
timer.go Rewrite queue () 2023-05-08 19:49:59 +08:00
timer_test.go Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
truncate.go Improve "ellipsis string" () 2024-12-26 14:19:35 +08:00
truncate_test.go Improve "ellipsis string" () 2024-12-26 14:19:35 +08:00
url.go Add `RemoteAddress` to mirrors () 2023-09-16 16:03:02 +00:00
util.go Refactor tests to prevent from unnecessary preparations () 2024-11-01 23:18:29 +08:00
util_test.go Update go tool dependencies () 2024-12-19 19:17:55 +01:00