diff --git a/CHANGELOG.md b/CHANGELOG.md index fb320dd..803a077 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # v0.1.0 ## Features -- You can now search and merge items by their ID! Just preface the id with `id:`. E.g. `id:123` (#26) ## Enhancements -- Track durations will now be updated using MusicBrainz data where possible, if the duration was not provided by the request. (#27) \ No newline at end of file +- Track durations will now be updated using MusicBrainz data where possible, if the duration was not provided by the request. (#27) +- You can now search and merge items by their ID! Just preface the id with `id:`. E.g. `id:123` (#26) +- Hovering over any "hours listened" statistic will now also show the minutes listened. + +## Fixes +- Navigating from one page directly to another and then changing the image via drag-and-drop now works as expected. (#25) +- Fixed a bug that caused updated usernames with uppercase letters to create login failures. \ No newline at end of file diff --git a/Makefile b/Makefile index 5167863..82fbd89 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ postgres.schemadump: postgres.run: docker run --name koito-db -p 5432:5432 -e POSTGRES_PASSWORD=secret -d postgres +postgres.run-scratch: + docker run --name koito-scratch -p 5433:5432 -e POSTGRES_PASSWORD=secret -d postgres + postgres.start: docker start koito-db @@ -21,9 +24,15 @@ postgres.stop: postgres.remove: docker stop koito-db && docker rm koito-db +postgres.remove-scratch: + docker stop koito-scratch && docker rm koito-scratch + api.debug: KOITO_ALLOWED_HOSTS=* KOITO_LOG_LEVEL=debug KOITO_CONFIG_DIR=test_config_dir KOITO_DATABASE_URL=postgres://postgres:secret@localhost:5432?sslmode=disable go run cmd/api/main.go +api.scratch: + KOITO_ALLOWED_HOSTS=* KOITO_LOG_LEVEL=debug KOITO_CONFIG_DIR=test_config_dir/scratch KOITO_DATABASE_URL=postgres://postgres:secret@localhost:5433?sslmode=disable go run cmd/api/main.go + api.test: go test ./... -timeout 60s diff --git a/client/api/api.ts b/client/api/api.ts index be2cda0..b744a05 100644 --- a/client/api/api.ts +++ b/client/api/api.ts @@ -288,7 +288,7 @@ type Stats = { track_count: number album_count: number artist_count: number - hours_listened: number + minutes_listened: number } type SearchResponse = { albums: Album[] diff --git a/client/app/components/AllTimeStats.tsx b/client/app/components/AllTimeStats.tsx index 0a54daa..cc45c65 100644 --- a/client/app/components/AllTimeStats.tsx +++ b/client/app/components/AllTimeStats.tsx @@ -26,7 +26,7 @@ export default function AllTimeStats() {
{album.listen_count} play{ album.listen_count > 1 ? 's' : ''}
} - {{timeListenedString(album.time_listened)}
} + {{timeListenedString(album.time_listened)}
}{artist.listen_count} play{ artist.listen_count > 1 ? 's' : ''}
} - {{timeListenedString(artist.time_listened)}
} + {{timeListenedString(artist.time_listened)}
}{track.listen_count} play{ track.listen_count > 1 ? 's' : ''}
} - {{timeListenedString(track.time_listened)}
} + {{timeListenedString(track.time_listened)}
}