fix: address final widget review findings

This commit is contained in:
Thomas Camlong authored and ajnart committed 2026-08-14 11:07:08 +02:00
1 parent 44b55a401c
commit c09ed96978
8 files changed
+149 -37

No files matched your search

+8 -1
View File
@@ -1,4 +1,4 @@
import { IconBusStop } from "@tabler/icons-react";
import { IconBusStop, IconWorldOff } from "@tabler/icons-react";
import { z } from "zod/v4";
import { clientApi } from "@homarr/api/client";
@@ -9,6 +9,13 @@ import { optionsBuilder } from "../options";
export const { componentLoader, definition } = createWidgetDefinition("timetable", {
icon: IconBusStop,
errors: {
BAD_REQUEST: {
icon: IconWorldOff,
message: (t) => t("widget.timetable.error.customSourceUnavailable"),
hideLogsLink: true,
},
},
createOptions() {
return optionsBuilder.from((factory) => ({
baseUrl: factory.text({