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

862 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
Daste
ba81c07345 Display persistent summary interval into the front-end time picker 2022-11-05 19:23:39 +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
c8ea1a503f
Merge pull request #424 from f0x52/postgres-dsn
Add postgres DSN config option
2022-10-31 19:22:03 +01:00
f0x
ebbc21f0b1 add postgres DSN config option 2022-10-31 18:07:16 +01:00
Ferdinand Mütsch
6e5bc38e5e fix: index migration for sqlite 2022-10-28 10:32:47 +02:00
Ferdinand Mütsch
9424c49760 fix: composite index on heartbeats table 2022-10-28 09:54:11 +02: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
ffbcfc7467 fix: cache key 2022-10-19 17:23:40 +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
8a21be4306 fix: ignore rank column in migrations 2022-10-16 18:59:00 +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
777997c883 fix: swagger ui (resolve #421) 2022-10-14 12:00:56 +02:00
Ferdinand Mütsch
060a33263a chore: update dependencies 2022-10-09 10:16:27 +02:00
Ferdinand Mütsch
33d259592c chore: improve summary id fixing migration (see #416) 2022-10-09 10:16:18 +02:00
Steven Tang
fbae5f8757
Tailwind 3 & Footer alignment (#419)
* ui: footer alignment
* chore: upgrade tailwind to v3
* fix: tailwind 3 class renames
* ui(fix): alias green to emerald for tailwind 3
2022-10-09 10:53:52 +11:00
Ferdinand Mütsch
bc99dc990a fix: case sensitivity with leaderboard languages (resolve #418) 2022-10-07 08:58:51 +02:00
Ferdinand Mütsch
1e9d3f9e80 Merge branch '182-leaderboards' 2022-10-06 20:43:55 +02:00
Ferdinand Mütsch
2ce720c20f fix: leaderboard responsiveness 2022-10-06 20:42:05 +02:00
Ferdinand Mütsch
ef87445e43 chore: display leaderboard update time 2022-10-06 15:30:32 +02:00
Ferdinand Mütsch
dec5849661 fix: replace mysql backticks 2022-10-06 15:23:59 +02:00
Ferdinand Mütsch
5609c0ada3 chore: empty leaderboard placeholder 2022-10-06 15:17:37 +02:00
Ferdinand Mütsch
1632cea949 fix: clear leaderboard after user opted out 2022-10-06 14:52:06 +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
82a565738f test: adapt mocks 2022-10-06 14:34:46 +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
94377a8dea fix: summary items id type (see #416) 2022-10-02 11:31:32 +02:00
Ferdinand Mütsch
dba4da8641 chore: caching for leaderboard 2022-10-02 10:31:01 +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
13a3d9f03a feat: leaderboard generation and querying 2022-10-02 00:01:39 +02:00
Ferdinand Mütsch
beffe71ea6 feat: add leaderboard data model 2022-09-30 17:19:32 +02:00
Ferdinand Mütsch
0ab7faf7b6 Merge remote-tracking branch 'origin/master' 2022-09-30 15:28:15 +02:00
Ferdinand Mütsch
a2ac049578 fix: heartbeat entity character length (resolve #415) 2022-09-30 15:28:11 +02:00
Ferdinand Mütsch
b287c4ca36
Merge pull request #414 from muety/cgo
Remove gcc dependency in release
2022-09-30 14:49:58 +02:00
Steven Tang
018cc50fb8
chore(release): reinclude ci conditions 2022-09-30 22:44:25 +10:00
Steven Tang
1d4156bdfe
chore(build): remove gcc dependency 2022-09-30 22:35:03 +10:00
Ferdinand Mütsch
147c79db60 fix: label on settings page 2022-09-30 14:12:07 +02:00
Ferdinand Mütsch
f204ca888d fix: swagger docs path [skip ci] 2022-09-30 11:02:32 +02:00
Ferdinand Mütsch
e28070b288 fix(ci): build env vars on windows 2022-09-30 00:02:30 +02:00
Ferdinand Mütsch
4d217a83c1 chore: update readme and dockerfile 2022-09-30 00:02:04 +02:00
Ferdinand Mütsch
9e0581b311 chore: update dependencies after sqlite pure go migration 2022-09-29 23:41:57 +02:00
Ferdinand Mütsch
ffb529f4cf Merge branch 'sqlite-go-replacement'
# Conflicts:
#	go.mod
#	go.sum
2022-09-29 23:37:40 +02:00