From 00645a4adc7014ba33a8a83069220c7137e09a35 Mon Sep 17 00:00:00 2001 From: KavyanshKhaitan2 Date: Wed, 23 Sep 2026 07:13:35 +0530 Subject: [PATCH 1/4] Make audio player autostart on first page click --- twisted/twisted_site/templates/client/dashboard.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twisted/twisted_site/templates/client/dashboard.html b/twisted/twisted_site/templates/client/dashboard.html index 626ff8c..6201761 100644 --- a/twisted/twisted_site/templates/client/dashboard.html +++ b/twisted/twisted_site/templates/client/dashboard.html @@ -325,7 +325,9 @@

Twistedly

if (savedAudioPausedPreference === '1') { playPauseAudio(0) } else if (savedAudioPausedPreference === '0') { - playPauseAudio(1) + document.addEventListener("click", () => { + playPauseAudio(1) + }, { once: true }); } } autoStartAudio() From a553b16dcb2720cc5027d88cf5b13d2db7ee2ebb Mon Sep 17 00:00:00 2001 From: KavyanshKhaitan2 Date: Wed, 23 Sep 2026 21:43:49 +0530 Subject: [PATCH 2/4] Bump django-cotton-ui to 3.3.0 --- pyproject.toml | 2 +- uv.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 950ddf7..8030237 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,13 +20,13 @@ dependencies = [ "urllib3>=2.7.0", "whitenoise>=6.12.0", "boto3>=1.43.66", - "django-cotton-ui>=0.3.2", "django-google-charts>=0.1.1", "django-qsstats-magic>=1.1.0", "django-htmx>=1.29.0", "django-extensions>=4.1", "django-mathfilters>=1.0.0", "django-humanize>=0.1.2", + "django-cotton-ui>=0.3.3", ] [tool.ruff] diff --git a/uv.lock b/uv.lock index 1fe8fc5..e0c42b5 100644 --- a/uv.lock +++ b/uv.lock @@ -446,15 +446,15 @@ wheels = [ [[package]] name = "django-cotton-ui" -version = "0.3.2" +version = "0.3.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "django" }, { name = "django-cotton" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/94/d8/0ca995941a12df896c83a58aefc6614a040e4a8fe87d533227236a5c6558/django_cotton_ui-0.3.2.tar.gz", hash = "sha256:71a82c7940b9581299fbe741420c24f2a7ac91f84f2c28ad42de361cd89c6516", size = 173126, upload-time = "2026-07-07T12:57:22.715Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a9/1f/b6d7a98ab5d5aa02a9359fce73926b9deecd7ef68111e12da11a7dcbdb9a/django_cotton_ui-0.3.3.tar.gz", hash = "sha256:8c856758be574abfaad266b6157626d2b9c003d9961b2b33d49dd54b021a64bc", size = 173130, upload-time = "2026-09-14T10:59:20.124Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d2/61/1de040c48796f16afdaae9ab4fd5c6683b819c02a06f77563dcfb0e9fdb6/django_cotton_ui-0.3.2-py3-none-any.whl", hash = "sha256:0a05d6f733553929389071786a9524335782c7f9d3e1ca8fe4234cdf80488bf2", size = 214320, upload-time = "2026-07-07T12:57:23.837Z" }, + { url = "https://files.pythonhosted.org/packages/f3/f8/7c74d6096be4dd993fbd0a5b07ef15a87e92deaa2c1db83f17aa128f2a15/django_cotton_ui-0.3.3-py3-none-any.whl", hash = "sha256:c8854b8c0d6b8dbed1acc83f4729bb7573243de79d21ab0e3f1c16f93ca90636", size = 214367, upload-time = "2026-09-14T10:59:21.534Z" }, ] [[package]] @@ -1203,7 +1203,7 @@ requires-dist = [ { name = "boto3", specifier = ">=1.43.66" }, { name = "django", specifier = ">=6.0.7" }, { name = "django-cotton", specifier = ">=2.7.2" }, - { name = "django-cotton-ui", specifier = ">=0.3.2" }, + { name = "django-cotton-ui", specifier = ">=0.3.3" }, { name = "django-extensions", specifier = ">=4.1" }, { name = "django-google-charts", specifier = ">=0.1.1" }, { name = "django-htmx", specifier = ">=1.29.0" }, From 17e35caf34a2ddd44cc3b7e485f34b35bea901a8 Mon Sep 17 00:00:00 2001 From: Kavyansh Khaitan <73186427+KavyanshKhaitan2@users.noreply.github.com> Date: Wed, 23 Sep 2026 21:47:53 +0530 Subject: [PATCH 3/4] Create dependabot.yml --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5990d9c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" From 063146197c280cfd65e1f1cc9ba51e6e819f0b90 Mon Sep 17 00:00:00 2001 From: Lewin Kelly Date: Wed, 23 Sep 2026 12:32:34 -0400 Subject: [PATCH 4/4] Order dashboard hour chart points by creation time for correct statistics --- twisted/twisted_site/views/admin/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twisted/twisted_site/views/admin/dashboard.py b/twisted/twisted_site/views/admin/dashboard.py index 93ad6f4..15085a7 100644 --- a/twisted/twisted_site/views/admin/dashboard.py +++ b/twisted/twisted_site/views/admin/dashboard.py @@ -24,7 +24,7 @@ def get(self, request: HttpRequest) -> HttpResponse: hours_shipped = 0 hours_shipped_chart: dict[str, float] = {} - for journal in Journal.objects.all().prefetch_related("project"): + for journal in Journal.objects.order_by("created_at").prefetch_related("project"): hours = journal.reduced_minutes / 60 hours_logged += hours