fix(beszel): review fixes for MCP and widget styling

- Throw TRPCError instead of returning null when no integration
- Sort beszelRouter import alphabetically in mcp.ts
- Replace ternary with lookup table for background color
- Mention integration_all in MCP server instructions
This commit is contained in:
Thomas Camlong committed 2026-06-16 15:18:13 +02:00
1 parent 420c0c30e4
commit 0a05bbed8d
4 files changed
+8 -4

No files matched your search

@@ -356,7 +356,8 @@ export default function BeszelSystemGridWidget({
const board = useRequiredBoard();
const colorScheme = useComputedColorScheme("light");
const opacity = board.opacity / 100;
const backgroundColor = colorScheme === "dark" ? `rgba(57, 57, 57, ${opacity})` : `rgba(246, 247, 248, ${opacity})`;
const bgBase: Record<string, string> = { dark: "57, 57, 57", light: "246, 247, 248" };
const backgroundColor = `rgba(${bgBase[colorScheme]}, ${opacity})`;
const { data: results = [] } = clientApi.widget.beszel.getSystems.useQuery(
{ integrationIds },