diff --git a/apps/docs/src/components/widgets/interactions.tsx b/apps/docs/src/components/widgets/interactions.tsx index 86aeb5451..c75102f92 100644 --- a/apps/docs/src/components/widgets/interactions.tsx +++ b/apps/docs/src/components/widgets/interactions.tsx @@ -53,8 +53,8 @@ export const WidgetInteractionGuide = ({ advancedView = true }: { advancedView?: {advancedView && (
- Advanced view reuses the widget's live data and cache. The rest of the board stays visible but dimmed. - On touch devices, use the widget menu; compact-only widgets adapt in place instead. + Advanced view reuses the widget's live data and cache. The rest of the board stays visible but dimmed. On + touch devices, use the widget menu; compact-only widgets adapt in place instead.
)} diff --git a/apps/nextjs/src/components/board/items/widget-query-scope.spec.ts b/apps/nextjs/src/components/board/items/widget-query-scope.spec.ts index de667b350..e11e21086 100644 --- a/apps/nextjs/src/components/board/items/widget-query-scope.spec.ts +++ b/apps/nextjs/src/components/board/items/widget-query-scope.spec.ts @@ -33,9 +33,7 @@ describe("matchesWidgetItemQuery", () => { expect( matches("customApi", ["widget", "customApi", "getData"], { ...input, definitionId: "definition-2" }, scope), ).toBe(false); - expect(matches("customApi", ["widget", "customApi", "getData"], { ...input, itemId: "item-2" }, scope)).toBe( - false, - ); + expect(matches("customApi", ["widget", "customApi", "getData"], { ...input, itemId: "item-2" }, scope)).toBe(false); expect(matches("customApi", ["widget", "customApi", "getData"], { ...input, boardId: "board-2" }, scope)).toBe( false, ); diff --git a/packages/widgets/src/common/locale.ts b/packages/widgets/src/common/locale.ts index c0f478f47..3d1c6bf3f 100644 --- a/packages/widgets/src/common/locale.ts +++ b/packages/widgets/src/common/locale.ts @@ -9,7 +9,10 @@ interface LocalizedTimeOptions { } const toValidDate = (value: LocalizedDateValue): Date | undefined => { - const date = value instanceof Date ? value : new Date(typeof value === "string" && dateOnlyPattern.test(value) ? `${value}T00:00:00Z` : value); + const date = + value instanceof Date + ? value + : new Date(typeof value === "string" && dateOnlyPattern.test(value) ? `${value}T00:00:00Z` : value); return Number.isNaN(date.getTime()) ? undefined : date; };