maziggy
b51598ea69
fix(printers): refuse to add a printer when the MQTT probe fails (#empty-card-reports)
...
Several support reports traced back to one root cause: a mistyped access
code in Add Printer left an empty card on the dashboard. POST /printers/
was persisting the row first, then firing connect_printer() fire-and-forget.
Now we test_connection() BEFORE the insert; failure returns HTTP 400 and
the row is never written.
Structured error response -- detail={"code", "message"} -- so the toast
shows the localized message instead of the English fallback. New
ApiError.code field on the frontend; printers.toast.connectionFailedNotAdded
2026-05-17 15:42:19 +02:00
..
2026-04-13 13:24:28 +02:00
2026-03-05 08:46:39 +01:00
2026-05-02 08:10:47 +02:00
2026-05-17 10:54:28 +02:00
2026-05-17 14:38:31 +02:00
2026-05-13 13:23:21 +02:00
2026-05-08 11:52:42 +02:00
2026-03-06 08:35:06 +01:00
2026-04-21 14:10:04 +02:00
2026-05-15 14:32:18 +02:00
2026-04-13 13:24:28 +02:00
2026-04-18 12:39:07 +02:00
2026-04-29 09:13:33 +02:00
2026-04-11 12:10:45 +02:00
2026-05-15 15:43:37 +02:00
2026-05-17 13:09:58 +02:00
2026-05-06 14:23:39 +02:00
2026-05-17 15:30:05 +02:00
2026-04-22 19:10:18 +02:00
2026-05-15 10:33:38 +02:00
2026-05-05 12:29:57 +02:00
2026-05-12 16:12:58 +02:00
2026-05-15 12:15:39 +02:00
2026-05-17 13:09:58 +02:00
2026-05-14 15:28:41 +02:00
2026-05-11 13:30:27 +02:00
2026-04-25 10:44:37 +02:00
2026-05-13 13:23:21 +02:00
2026-03-24 11:31:32 +01:00
2026-04-18 08:50:46 +02:00
2026-05-15 08:57:03 +02:00
2026-05-15 08:50:37 +02:00
2026-05-15 08:50:37 +02:00
2026-05-13 13:23:21 +02:00
2026-04-13 13:24:28 +02:00
2026-05-11 13:30:27 +02:00
2026-05-01 08:13:52 +02:00
2026-05-16 12:58:21 +02:00
2026-05-17 15:42:19 +02:00
2026-05-01 13:23:59 +02:00
2026-05-15 08:50:37 +02:00
2026-05-16 08:00:39 +02:00
2026-05-08 14:28:41 +02:00
2026-04-01 10:30:05 +02:00
2026-05-15 13:12:41 +02:00
2026-05-12 16:30:28 +02:00
2026-04-19 09:48:10 +02:00
2026-04-01 10:06:01 +02:00
2026-05-17 15:04:31 +02:00
2026-05-08 11:52:42 +02:00
2026-05-08 11:52:42 +02:00
2026-05-08 11:52:42 +02:00
2026-05-08 11:52:42 +02:00
2026-05-08 11:52:42 +02:00
2026-05-17 15:04:31 +02:00
2026-05-08 11:52:42 +02:00
2026-05-14 19:20:58 +02:00
2026-05-12 08:48:30 +02:00
2026-05-08 11:52:42 +02:00
2026-05-05 14:35:08 +02:00
2026-04-24 09:59:09 +02:00
2026-04-26 10:01:17 +02:00
2026-05-01 08:01:19 +02:00
2026-03-17 12:24:36 +01:00
2026-05-13 13:23:21 +02:00
2026-05-03 14:58:29 +02:00