1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
Commit Graph

228 Commits

Author SHA1 Message Date
Daste
97fab3e109 Redirect to correct summary page if interval cookie is set
This adds an additional 302 redirect when the user doesn't specify an
`interval` as a query param, but has the `wakapi_summary_interval`
cookie set.
2022-12-03 12:47:05 +01:00
Daste
ebe1836ac6 Write a Set-Cookie header with the last used summary interval 2022-11-19 09:52:44 +01:00
Daste
e89ce076fd Read the persisted summary interval from a cookie
This cookie will be read only if the `interval` or `from` query params
are not set. If the cookie is also unset, it will still default to
the "today" interval.

TODO: The cookie still needs to be set on the client
with a `Set-Cookie` response header.
2022-11-05 19:30:42 +01:00
Ferdinand Mütsch
9586dbf781 fix: make intervals robust to daylight saving time shift 2022-10-31 23:24:54 +01:00
Ferdinand Mütsch
efd6ba36e3 fix: errors during leaderboard generation 2022-10-20 08:33:12 +02:00
Ferdinand Mütsch
b1d7f87095 chore: add maximum default leaderboard length 2022-10-19 18:28:30 +02:00
Ferdinand Mütsch
41f6db8f34 feat(wip): leaderboard pagination (resolve #417) [ci-skip] 2022-10-16 19:38:43 +02:00
Ferdinand Mütsch
31ca4a1e02 chore: logging 2022-10-16 17:42:32 +02:00
Ferdinand Mütsch
7cab2b0be7 chore: add clarification on relaying to other wakapi instance (resolve #420) [skip-ci] 2022-10-15 11:08:44 +02:00
Ferdinand Mütsch
bc99dc990a fix: case sensitivity with leaderboard languages (resolve #418) 2022-10-07 08:58:51 +02:00
Ferdinand Mütsch
23759d526a feat: settings option to opt in to leaderboards 2022-10-06 14:47:22 +02:00
Ferdinand Mütsch
1989a69926 feat: show users top languages
feat: language icons
2022-10-05 23:36:57 +02:00
Ferdinand Mütsch
7a07c9d4fc feat: top languages by user 2022-10-05 21:52:10 +02:00
Ferdinand Mütsch
a27fe04919 feat: leaderboard aggregation functionality
feat: leaderboard ui design
2022-10-03 23:53:47 +02:00
Ferdinand Mütsch
1d7ff4bc2a refactor: use query param for leaderboard controls 2022-10-03 20:38:19 +02:00
Ferdinand Mütsch
b3fa032bde feat(wip): leaderboard ui 2022-10-03 10:53:27 +02:00
Ferdinand Mütsch
4a22a19cb0 chore: generate leaderboard when enabled in user settings 2022-10-02 10:13:39 +02:00
Ferdinand Mütsch
a2ac049578 fix: heartbeat entity character length (resolve #415) 2022-09-30 15:28:11 +02:00
Marvin Scham
9505773165
Add last_6_months interval identifier 2022-08-19 17:14:00 +02:00
Ferdinand Mütsch
373d969734 feat: introduce newsbox for front page (resolve #393) 2022-08-13 10:28:36 +02:00
Steven Tang
4302cfcbd6
fix: 500 on POST /api/heartbeats 2022-08-12 17:25:43 +10:00
Steven Tang
20993a1182
feat: automatic version.txt updates
Resolves #387
2022-07-09 13:58:16 +10:00
Asen Mihaylov
2f0cb112dd test: user api retrieving user information 2022-06-30 10:36:13 +03:00
Asen Mihaylov
991e64b961 fix: returning current user instead of requested one 2022-06-29 10:46:46 +03:00
Asen Mihaylov
affff0c386 fix: admin users can't fetch other user data 2022-06-28 13:01:35 +03:00
Ferdinand Mütsch
4bd58789f4 fix: server error when passing empty heartbeats slice
fix: do not allow to set id for diagnostics inputs
chore: remove authentication for diagnostics endpoint from swagger docs
2022-05-13 16:12:18 +02:00
bdeshi
9048a8eb7a
Merge branch 'master' into fork 2022-04-24 03:56:18 +06:00
bdeshi
1f19c5e93c feat: make vibrantColors a localStorage setting 2022-04-24 03:39:08 +06:00
Ferdinand Mütsch
4b0a3cf0d6 fix: index error during summary generation (resolve #361)
chore(sentry): include stacktrace with panics
2022-04-20 21:36:39 +02:00
Ferdinand Mütsch
d778612242 fix: remove authentication requirement from diagnostics endpoint 2022-04-18 21:32:30 +02:00
Ferdinand Mütsch
5276f68918 fix: double counting when using precise missing intervals 2022-04-18 15:18:01 +02:00
Ferdinand Mütsch
40067d252e fix: non-ascii project badges (resolve #357)
chore: locally generated badges (resolve #348)
2022-04-18 11:39:26 +02:00
bdeshi
f6cc489425
feat: allow toggling vibrant color for all charts
- supports new config key `app.vibrant_color` or env `WAKAPI_VIBRANT_COLOR`
- updates and extends `data/colors.json` with editor and os colors
- fixes #343
2022-03-28 01:56:13 +06:00
Ferdinand Mütsch
5aae18e241 refactor: replace most custom date util functions by lancet ones
refactor: add precision mode to missing intervals function
2022-03-25 12:51:40 +01:00
Ferdinand Mütsch
8fc0d78f64 refactor: include generics based utility lib and refactor some parts accordingly [ci-skip] 2022-03-20 16:40:14 +01:00
Ferdinand Mütsch
bbc85de34b chore: metrics performance improvements 2022-03-19 10:30:32 +01:00
Ferdinand Mütsch
ec70d024fa fix: remove user property of diagnostics as sent without auth 2022-03-19 09:27:13 +01:00
Ferdinand Mütsch
e4814431e0 feat: add database size metric 2022-03-18 18:20:13 +01:00
Ferdinand Mütsch
e7e5254673 feat: ability to clear all user data (resolve #339) 2022-03-17 11:55:13 +01:00
Ferdinand Mütsch
8e558d8dee chore: introduce heartbeat max age 2022-03-17 11:35:20 +01:00
Steven Tang
6d762f5fd6
ref: remove unnecessary unicode characters 2022-02-18 19:52:55 +11:00
Ferdinand Mütsch
222024dabb chore: cache avatars in memory 2022-02-17 10:34:33 +01:00
Ferdinand Mütsch
660a09475e chore: include avatar rendering into wakapi itself 2022-02-17 09:53:37 +01:00
Roch D'Amour
ac9d96c563
Remove "Create Account" button when AllowSignup is set to false (#319)
Merge pull request #319
2022-02-16 08:56:27 +01:00
Ferdinand Mütsch
e21788b8b5 chore: minor fixes 2022-02-13 11:03:10 +01:00
Steven Tang
e7f3432113 feat: GET /heartbeat endpoint (resolves #241) 2022-02-13 11:03:10 +01:00
Ferdinand Mütsch
7159df30c2 feat: allow to configure custom api url for relay and import (resolve #105) 2022-01-21 12:35:05 +01:00
Ferdinand Mütsch
bd2a8c5a7f fix: make cookie path respect server.base_path (resolve #310) 2022-01-17 08:25:50 +01:00
Ferdinand Mütsch
67f0d19a65 fix: allow to create labels for aliased projects (resolve #231) 2022-01-13 17:10:24 +01:00
Ferdinand Mütsch
e967a74e36 fix: allow project names with dots for badges (resolve #301) 2022-01-06 14:45:26 +01:00