Compare commits

..
33 Commits
Author SHA1 Message Date
Joren de Graaf 48be12c87c Ignore local database and uploaded media 2026-10-23 14:36:20 +02:00
Joren de Graaf cfc044a6b9 latest changes 2026-10-23 14:32:24 +02:00
Joren de Graaf 552b55eb2d latest changes incl grocery list 2026-10-22 10:27:11 +02:00
Joren de Graaf 30188dcb72 latest changes 2026-10-15 20:36:40 +02:00
Joren de Graaf 06c88eb98a latest changes 2026-10-15 12:50:21 +02:00
Joren de Graaf 7e22abe5d4 fix now card width 2026-10-14 18:17:27 +02:00
Joren de Graaf f68fb9e048 added scheduling 2026-10-10 16:03:14 +02:00
Joren de Graaf 51da498c0b added Arduino firmware concept files 2026-10-09 15:17:53 +02:00
Joren de Graaf aab64971a4 progressing with scss conversion 2026-10-07 13:03:22 +02:00
Joren de Graaf a27da78267 redesign clock card on manual submission 2026-10-07 09:46:19 +02:00
Joren de Graaf ac78e41328 manual submission redesign phase H - finetuning mobile 2026-10-06 20:27:54 +02:00
Joren de Graaf 2eb45139c1 manual submission redesign phase H - finetuning 2026-10-06 20:19:58 +02:00
Joren de Graaf fed8b0d20b manual submission redesign phase G 2026-10-06 20:04:21 +02:00
Joren de Graaf 5951f6aed8 manual submission redesign phase F 2026-10-06 19:57:14 +02:00
Joren de Graaf e2f1ddfd92 manual submission redesign phase E 2026-10-06 19:54:08 +02:00
Joren de Graaf 664f28ca31 manual submission redesign phase D - compiled 2026-10-06 19:51:27 +02:00
Joren de Graaf a4897d1733 manual submission redesign phase D 2026-10-06 19:50:52 +02:00
Joren de Graaf b8ba6a7d97 manual submission redesign phase C 2026-10-06 19:47:10 +02:00
Joren de Graaf 56733c93b9 manual submission redesign phase B 2026-10-06 19:44:24 +02:00
Joren de Graaf a2844e0dc1 manual submission redesign phase A 2026-10-06 19:39:57 +02:00
Joren de Graaf c8df34982b latest changes before manual submissions redesign 2026-10-06 19:31:30 +02:00
Joren de Graaf 037797aa89 browser audio detection phase 4 2026-10-02 21:45:24 +02:00
Joren de Graaf 20bdabdd8f browser audio detection phase 3 2026-10-02 21:34:38 +02:00
Joren de Graaf 5c0ca7bc47 browser audio detection phase 2 2026-10-02 16:57:12 +02:00
Joren de Graaf 9c466f8f55 browser audio processing phase 1 2026-10-02 16:44:15 +02:00
Joren de Graaf ab6cfc0bae sensors added to settings 2026-10-02 15:38:18 +02:00
Joren de Graaf 428caef29d mobile menu added 2026-10-02 13:13:38 +02:00
Joren de Graaf 5410fec8f2 added translations 2026-10-01 22:43:45 +02:00
Joren de Graaf 2c4cd61a63 add dashboard to home 2026-10-01 17:29:29 +02:00
Joren de Graaf 7d538b774d added light/dark mode toggle v1, unified menu 2026-10-01 17:14:19 +02:00
Joren de Graaf 8f838715dd added compass direction finding 2026-10-01 16:38:13 +02:00
Joren de Graaf 9ebf24e028 latest changes 2026-09-29 12:12:46 +02:00
Joren de Graaf 966d6602c2 initial commit 2026-09-26 20:59:01 +02:00
265 changed files with 25 additions and 4 deletions
+4
View File
@@ -1,3 +1,7 @@
vite_integration/static/vite/* vite_integration/static/vite/*
!vite_integration/static/vite/.gitkeep !vite_integration/static/vite/.gitkeep
node_modules/ node_modules/
# Local database and uploaded media
/db.sqlite3
/media/
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> <small>{% trans "Optional. Without an accepted window, BoomCast reports the count without an intensity rating." %}</small>
</div> </div>
{% include "fireworks_detect/includes/manual_direction_panel.html" %} {% 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> </div>
<section class="manual-report__supporting" data-state="off" aria-labelledby="manual-listening-title"> <section class="manual-report__supporting" data-state="off" aria-labelledby="manual-listening-title">
<div class="manual-report__supporting-header"> <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> <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> {% 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 "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 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"> {% 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 %} {% csrf_token %}
+18
View File
@@ -55,6 +55,24 @@ class ManualPendingEventTests(TestCase):
def setUp(self): def setUp(self):
self.client.cookies["django_language"] = "en" 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): def test_manual_report_creates_a_timestamped_pending_event(self):
response = self.client.post(reverse("fireworks_detect:submit_manual_pending"), { response = self.client.post(reverse("fireworks_detect:submit_manual_pending"), {
"occurrences": "4", "occurrences": "4",
+1
View File
@@ -577,6 +577,7 @@ def submit_manual_pending_event(request):
latitude=latitude, latitude=latitude,
longitude=longitude, longitude=longitude,
h3_cell=h3_cell or "", h3_cell=h3_cell or "",
visually_confirmed=request.POST.get("visually_confirmed") == "on",
direction_degrees=direction_degrees, direction_degrees=direction_degrees,
direction_accuracy_degrees=direction_accuracy_degrees, direction_accuracy_degrees=direction_accuracy_degrees,
direction_source="device_compass" if direction_degrees is not None else "", 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.
@@ -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