-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Create template * Create basic layout for desktop * Add pill component * Add code for fetching data * Update Card component * Change to functional component * Change to bar graph * Change from dual card to single card layout * Add legend * Make page responsive * Add error handling * stats -> reports * Fix minor issues and improve loader * Improve error logging * Fix typo * Add tests for "Pill". * Add tests for "Card" * Add snapshot tests for "BarDualTone" * Add tests for "UserReports" * Add tests for "APIService" * Add snapshot tests for "UserListeningActivity" * Add tests for "userListeningActivity"
- Loading branch information
1 parent
7c744e3
commit 8331566
Showing
39 changed files
with
5,875 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
listenbrainz/webserver/static/js/src/__mocks__/userListeningActivityAllTime.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"payload": { | ||
"from_ts": 1009843200, | ||
"last_updated": 1593539726, | ||
"listening_activity": [ | ||
{ | ||
"from_ts": 1483228800, | ||
"listen_count": 96, | ||
"time_range": "2017", | ||
"to_ts": 1514764799 | ||
}, | ||
{ | ||
"from_ts": 1514764800, | ||
"listen_count": 169, | ||
"time_range": "2018", | ||
"to_ts": 1546300799 | ||
}, | ||
{ | ||
"from_ts": 1577836800, | ||
"listen_count": 3580, | ||
"time_range": "2020", | ||
"to_ts": 1609459199 | ||
} | ||
], | ||
"range": "all_time", | ||
"to_ts": 1592611115, | ||
"user_id": "ishaanshah" | ||
} | ||
} |
Oops, something went wrong.