Compare commits

..
32 Commits
Author SHA1 Message Date
Joren de Graaf b018034072 latest changes incl grocery list 2026-10-22 10:27:11 +02:00
Joren de Graaf c64ebbdf28 latest changes 2026-10-15 20:36:40 +02:00
Joren de Graaf 2733eb8b67 latest changes 2026-10-15 12:50:21 +02:00
Joren de Graaf 76b42b670e fix now card width 2026-10-14 18:17:27 +02:00
Joren de Graaf 7220dd564f added scheduling 2026-10-10 16:03:14 +02:00
Joren de Graaf e967fc391e added Arduino firmware concept files 2026-10-09 15:17:53 +02:00
Joren de Graaf 86c9e84faf latest changes 2026-10-09 15:04:26 +02:00
Joren de Graaf c15679150c progressing with scss conversion 2026-10-07 13:03:22 +02:00
Joren de Graaf 2a0603f463 redesign clock card on manual submission 2026-10-07 09:46:19 +02:00
Joren de Graaf f5da668179 manual submission redesign phase H - finetuning mobile 2026-10-06 20:27:54 +02:00
Joren de Graaf 31169e89d4 manual submission redesign phase H - finetuning 2026-10-06 20:19:58 +02:00
Joren de Graaf 10ddaada15 manual submission redesign phase G 2026-10-06 20:04:21 +02:00
Joren de Graaf faa466dd69 manual submission redesign phase F 2026-10-06 19:57:14 +02:00
Joren de Graaf 21bf9c72a7 manual submission redesign phase E 2026-10-06 19:54:08 +02:00
Joren de Graaf d11b9da8e7 manual submission redesign phase D - compiled 2026-10-06 19:51:27 +02:00
Joren de Graaf dda5cd9c84 manual submission redesign phase D 2026-10-06 19:50:52 +02:00
Joren de Graaf e555023587 manual submission redesign phase C 2026-10-06 19:47:10 +02:00
Joren de Graaf 165a156bbf manual submission redesign phase B 2026-10-06 19:44:24 +02:00
Joren de Graaf 3884073241 manual submission redesign phase A 2026-10-06 19:39:57 +02:00
Joren de Graaf d86c7c9250 latest changes before manual submissions redesign 2026-10-06 19:31:30 +02:00
Joren de Graaf d427d73b8d browser audio detection phase 4 2026-10-02 21:45:24 +02:00
Joren de Graaf 9ff8bf8c26 browser audio detection phase 3 2026-10-02 21:34:38 +02:00
Joren de Graaf ff0d78ccba browser audio detection phase 2 2026-10-02 16:57:12 +02:00
Joren de Graaf df837c240f browser audio processing phase 1 2026-10-02 16:44:15 +02:00
Joren de Graaf e85fb408d4 sensors added to settings 2026-10-02 15:38:18 +02:00
Joren de Graaf ddcce61868 mobile menu added 2026-10-02 13:13:38 +02:00
Joren de Graaf 3b864f001d added translations 2026-10-01 22:43:45 +02:00
Joren de Graaf 2e36f26089 add dashboard to home 2026-10-01 17:29:29 +02:00
Joren de Graaf 278c5cd58c added light/dark mode toggle v1, unified menu 2026-10-01 17:14:19 +02:00
Joren de Graaf ac1b9bff0c added compass direction finding 2026-10-01 16:38:13 +02:00
Joren de Graaf 7ab01d3a77 latest changes 2026-09-29 12:12:46 +02:00
Joren de Graaf a4f3542e67 initial commit 2026-09-26 20:59:01 +02:00
265 changed files with 4 additions and 25 deletions
-4
View File
@@ -1,7 +1,3 @@
vite_integration/static/vite/*
!vite_integration/static/vite/.gitkeep
node_modules/
# Local database and uploaded media
/db.sqlite3
/media/
BIN
View File
Binary file not shown.
Binary file not shown.
@@ -53,7 +53,6 @@
<small>{% trans "Optional. Without an accepted window, BoomCast reports the count without an intensity rating." %}</small>
</div>
{% include "fireworks_detect/includes/manual_direction_panel.html" %}
<label class="manual-report__check" for="manual-visually-confirmed"><input id="manual-visually-confirmed" name="visually_confirmed" type="checkbox"> {% trans "Visually confirmed" %}</label>
</div>
<section class="manual-report__supporting" data-state="off" aria-labelledby="manual-listening-title">
<div class="manual-report__supporting-header">
@@ -16,7 +16,6 @@
<p>{% if pending.is_burst %}{% trans "Burst Event" %}{% else %}{% trans "Ordinary report" %}{% endif %} · {% trans "Submitted" %} {{ pending.created_at|date:"j M Y, H:i" }}</p>
{% if pending.is_burst %}<p>{% trans "Duration" %}: {% if pending.observation_duration_minutes %}{{ pending.observation_duration_minutes }} {% trans "minutes (estimated)" %}{% else %}{% trans "Unknown" %}{% endif %}</p>
<p>{% trans "Intensity" %}: {% if pending.burst_intensity %}{{ pending.burst_intensity_display }} ({{ pending.bangs_per_15_minutes|floatformat:1 }} {% trans "bangs per 15 minutes" %}){% else %}{% trans "Not rated" %}{% endif %}</p>{% endif %}
<p>{% trans "Visually confirmed" %}: {% if pending.visually_confirmed %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}</p>
{% if request.user.is_authenticated %}<p><a href="{% url 'fireworks_detect:field_notes' %}?pending={{ pending.pk }}">{% trans "Add or review field notes for this report" %}</a></p>{% endif %}
{% if editable %}<form class="manual-submission__edit" method="post" action="{% url 'fireworks_detect:update_manual_pending' pending.pk %}" hx-post="{% url 'fireworks_detect:update_manual_pending' pending.pk %}" hx-target="#manual-submission" hx-swap="outerHTML">
{% csrf_token %}
-18
View File
@@ -55,24 +55,6 @@ class ManualPendingEventTests(TestCase):
def setUp(self):
self.client.cookies["django_language"] = "en"
def test_manual_visual_confirmation_is_optional_and_survives_review(self):
url = reverse("fireworks_detect:submit_manual_pending")
for posted, expected in (({}, False), ({"visually_confirmed": "on"}, True)):
with self.subTest(confirmed=expected):
response = self.client.post(url, {"occurrences": "1", **posted})
self.assertEqual(response.status_code, 200)
pending = PendingEvent.objects.latest("pk")
self.assertEqual(pending.visually_confirmed, expected)
self.assertContains(response, f"Visually confirmed: {'Yes' if expected else 'No'}")
update_url = reverse("fireworks_detect:update_manual_pending", args=[pending.pk])
self.client.post(update_url, {"occurrences": "2"})
pending.refresh_from_db()
self.assertEqual(pending.visually_confirmed, expected)
event = pending.approve()
self.assertEqual(event.visually_confirmed, expected)
self.assertContains(self.client.get(reverse("fireworks_detect:event_detail", args=[event.pk])),
f"Visually confirmed</strong><span>{'Yes' if expected else 'No'}")
def test_manual_report_creates_a_timestamped_pending_event(self):
response = self.client.post(reverse("fireworks_detect:submit_manual_pending"), {
"occurrences": "4",
-1
View File
@@ -577,7 +577,6 @@ def submit_manual_pending_event(request):
latitude=latitude,
longitude=longitude,
h3_cell=h3_cell or "",
visually_confirmed=request.POST.get("visually_confirmed") == "on",
direction_degrees=direction_degrees,
direction_accuracy_degrees=direction_accuracy_degrees,
direction_source="device_compass" if direction_degrees is not None else "",
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
RIFF0000WAVEdata
@@ -0,0 +1 @@
RIFF0000WAVEdata
@@ -0,0 +1 @@
RIFF0000WAVEdata
@@ -0,0 +1 @@
RIFF0000WAVEdata
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More