Add vite react #45

Closed
lukas wants to merge 42 commits from add-frontend into main
Owner
No description provided.
lukas added 1 commit 2023-01-25 10:44:21 +00:00
continuous-integration/drone/push Build is failing Details
ec16d40361
Add vite react
lukas added 2 commits 2023-01-25 10:49:25 +00:00
continuous-integration/drone/push Build is passing Details
ae95015f55
CI: autotag
lukas added 12 commits 2023-01-25 16:50:25 +00:00
lukas added 161 commits 2023-11-18 08:23:56 +00:00
caa2ae06e1 Improve game overview
- add counts for each section
- add average hours per session
b81989a352 Model changes
* More fields are now optional. This is to make it easier to add new items in bulk.
  * Game: Wikidata ID
  * Edition: Platform, Year
  * Purchase: Platform
  * Platform: Group
  * Session: Device
* New fields:
  * Game: Year Released
    * To record original year of release
    * Upon migration, this will be set to a year of any of the game's edition that has it set
  * Purchase: Date Finished
* Editions are now unique combination of name and platform
7781efd849 Add more stats
* All finished games
* All finished 2023 games
* All finished games that were purchased this year
* Total sessions
* Days played
b8df870cca Add more stats
* Finished (count)
* Unfinished (count)
* Refunded (count)
68d1bfc2b9 UX improvements
* ignore English articles when sorting names
  * added a new sort_name field that gets automatically created
* automatically fill certain values in forms:
  * new game: name and sort name after typing
  * new edition: name and sort name when selecting game
  * new purchase: platform when selecting edition
09faa8e6fd Fix edge case in format_duration
Fixes #65

```python
def test_specific_precise_if_unncessary(self):
        delta = timedelta(hours=2, minutes=40)
        result = format_duration(delta, "%02.0H:%02.0m")
        self.assertEqual(result, "02:40")
```
This test fails by returning "03:40" instead. The problem is in the way `format_duration` handles fractional hours.
To fix it, we need to switch between using hours and fractional hours
depending on if minutes are present in the formatted string.
51ba5cfa20 Improve time-related stuff
Add created_at to all models
Add modified_at to Session
Get rid of custom now() function
Make sure aware datetime is used everywhere
978714125b Improve time-related stuff
Add created_at to all models
Add modified_at to Session
Get rid of custom now() function
Make sure aware datetime is used everywhere
Django CI/CD / build-and-push (pull_request) Has been cancelled Details
d6f77c0c19
Add django-cors-headers
lukas force-pushed add-frontend from d6f77c0c19 to fb1f6d2a33 2023-11-18 09:24:12 +00:00 Compare
Author
Owner

Replaced by #67

Replaced by #67
lukas closed this pull request 2023-11-18 09:26:55 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lukas/timetracker#45
No description provided.