Compare commits

..
Author SHA1 Message Date
Joren de Graaf bca523be8a Ignore ZIP archives 2026-10-23 14:45:47 +02:00
Joren de Graaf 54f69077c1 Ignore local database and uploaded media 2026-10-23 14:36:20 +02:00
Joren de Graaf 206f5f2466 latest changes 2026-10-23 14:32:24 +02:00
Joren de Graaf 712af2839d latest changes incl grocery list 2026-10-22 10:27:11 +02:00
Joren de Graaf aadadff69e latest changes 2026-10-15 20:36:40 +02:00
Joren de Graaf ad78913bd5 latest changes 2026-10-15 12:50:21 +02:00
Joren de Graaf 4aa13de925 fix now card width 2026-10-14 18:17:27 +02:00
Joren de Graaf 314eb6b4ec added scheduling 2026-10-10 16:03:14 +02:00
Joren de Graaf 7559b61399 added Arduino firmware concept files 2026-10-09 15:17:53 +02:00
Joren de Graaf c45810762a progressing with scss conversion 2026-10-07 13:03:22 +02:00
Joren de Graaf a1662384dc redesign clock card on manual submission 2026-10-07 09:46:19 +02:00
Joren de Graaf 686f536676 manual submission redesign phase H - finetuning mobile 2026-10-06 20:27:54 +02:00
Joren de Graaf 7d83caa27c manual submission redesign phase H - finetuning 2026-10-06 20:19:58 +02:00
Joren de Graaf c0c0bd7db8 manual submission redesign phase G 2026-10-06 20:04:21 +02:00
Joren de Graaf d112028eb1 manual submission redesign phase F 2026-10-06 19:57:14 +02:00
Joren de Graaf 5820ea850a manual submission redesign phase E 2026-10-06 19:54:08 +02:00
Joren de Graaf a54494c6a1 manual submission redesign phase D - compiled 2026-10-06 19:51:27 +02:00
Joren de Graaf acb3b1f042 manual submission redesign phase D 2026-10-06 19:50:52 +02:00
Joren de Graaf 3c8bf956bf manual submission redesign phase C 2026-10-06 19:47:10 +02:00
Joren de Graaf 23b94b2b24 manual submission redesign phase B 2026-10-06 19:44:24 +02:00
Joren de Graaf 661bf3beaf manual submission redesign phase A 2026-10-06 19:39:57 +02:00
Joren de Graaf c13a405d96 latest changes before manual submissions redesign 2026-10-06 19:31:30 +02:00
Joren de Graaf 46ad514a70 browser audio detection phase 4 2026-10-02 21:45:24 +02:00
Joren de Graaf 1de4b8a0b3 browser audio detection phase 3 2026-10-02 21:34:38 +02:00
Joren de Graaf c68e4b95ba browser audio detection phase 2 2026-10-02 16:57:12 +02:00
Joren de Graaf beeb2b5e0e browser audio processing phase 1 2026-10-02 16:44:15 +02:00
Joren de Graaf c93bead437 sensors added to settings 2026-10-02 15:38:18 +02:00
Joren de Graaf c047bd9843 mobile menu added 2026-10-02 13:13:38 +02:00
Joren de Graaf 13258e76c3 added translations 2026-10-01 22:43:45 +02:00
Joren de Graaf b676f35f0a add dashboard to home 2026-10-01 17:29:29 +02:00
Joren de Graaf 66db97b6f7 added light/dark mode toggle v1, unified menu 2026-10-01 17:14:19 +02:00
Joren de Graaf 884e2e8a11 added compass direction finding 2026-10-01 16:38:13 +02:00
Joren de Graaf a5dbbf3aed latest changes 2026-09-29 12:12:46 +02:00
Joren de Graaf e572257f67 initial commit 2026-09-26 20:59:01 +02:00
266 changed files with 28 additions and 4 deletions
+7
View File
@@ -1,3 +1,10 @@
vite_integration/static/vite/*
!vite_integration/static/vite/.gitkeep
node_modules/
# Local database and uploaded media
/db.sqlite3
/media/
# Local archives
*.zip
BIN
View File
Binary file not shown.
Binary file not shown.
@@ -53,6 +53,7 @@
<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,6 +16,7 @@
<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,6 +55,24 @@ 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,6 +577,7 @@ 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 "",
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +0,0 @@
RIFF0000WAVEdata
@@ -1 +0,0 @@
RIFF0000WAVEdata
@@ -1 +0,0 @@
RIFF0000WAVEdata
@@ -1 +0,0 @@
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