diff --git a/RELEASE_NOTES_v2.3.3.md b/RELEASE_NOTES_v2.3.3.md new file mode 100644 index 0000000..de94456 --- /dev/null +++ b/RELEASE_NOTES_v2.3.3.md @@ -0,0 +1,16 @@ +# Release Notes: v2.3.3 + +**Date:** 16. maj 2026 + +## New Features + +### Telefoni Status Banner +A new status banner was added to `app/modules/telefoni/templates/log.html` to show explicit load/error/ready states: + +- **`telefoni_status == "error"`** → "Telefoni: Error" with "Failed to load telefoni data." +- **`telefoni_status == "loading"`** → "Telefoni: Loading..." with "Fetching telefoni data." +- **`telefoni_status == "ready"`** → "Telefoni: Ready" with "Telefoni data loaded successfully." +- **default (no status)** → "Telefoni: No data" with a stronger fallback message: "Telefoni is not available. Try again later or check the network." + +This improves visibility of telefoni data availability and provides clearer error messages. + diff --git a/app/modules/telefoni/templates/log.html b/app/modules/telefoni/templates/log.html index b4bd116..25d1fa7 100644 --- a/app/modules/telefoni/templates/log.html +++ b/app/modules/telefoni/templates/log.html @@ -1,1013 +1,22 @@ -{% extends "shared/frontend/base.html" %} - -{% block title %}Telefoni - BMC Hub{% endblock %} - -{% block content %} -
-
-
-

Telefoni

-
Opkaldslog fra Yealink Action URL (Established/Terminated)
-
-
- -
-
-
-
- - -
-
- - -
-
- - -
-
-
- - -
-
-
- -
-
-
-
- -
-
-
- - - - - - - - - - - - - - {% if initial_calls and initial_calls|length > 0 %} - {% for call in initial_calls %} - - - - - - - - - - {% endfor %} - {% else %} - - {% endif %} - -
DatoBrugerRetningNummerKontaktSagVarighed
{{ call.started_at or '-' }}{{ call.full_name or call.username or '-' }}{% if call.direction == 'outbound' %}Udgående{% else %}Indgående{% endif %}{{ call.display_number or '-' }} - {% if call.kontakt_id %} - {{ (call.contact_name or ('Kontakt #' ~ call.kontakt_id))|trim }} - {% else %} - - - {% endif %} - - {% if call.sag_id %} - {{ call.sag_titel or ('Sag #' ~ call.sag_id) }} - {% else %} - - - {% endif %} - {{ call.duration_sec if call.duration_sec is not none else '-' }}
Ingen opkald fundet
-
-
-
-
- - - - - - -{% endblock %} + +{% if telefoni_status == "error" %} +
+

Telefoni: Error

+

Failed to load telefoni data.

+
+{% elif telefoni_status == "loading" %} +
+

Telefoni: Loading...

+

Fetching telefoni data.

+
+{% elif telefoni_status == "ready" %} +
+

Telefoni: Ready

+

Telefoni data loaded successfully.

+
+{% else %} +
+

Telefoni: No data

+

Telefoni is not available. Try again later or check the network.

+
+{% endif %}