From d9906a4a4751cff8bcdb2c847667b95503d7524a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 15 Oct 2025 18:39:57 +0300 Subject: [PATCH] feat(collection/presentation): add new view type --- apps/client/src/translations/en/translation.json | 1 + apps/client/src/widgets/collections/interface.ts | 2 +- apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx | 3 ++- apps/client/src/widgets/ribbon/collection-properties-config.ts | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json index 4a59d0a61..092f30221 100644 --- a/apps/client/src/translations/en/translation.json +++ b/apps/client/src/translations/en/translation.json @@ -767,6 +767,7 @@ "table": "Table", "geo-map": "Geo Map", "board": "Board", + "presentation": "Presentation", "include_archived_notes": "Show archived notes" }, "edited_notes": { diff --git a/apps/client/src/widgets/collections/interface.ts b/apps/client/src/widgets/collections/interface.ts index 0b2fdb22d..91b9f301b 100644 --- a/apps/client/src/widgets/collections/interface.ts +++ b/apps/client/src/widgets/collections/interface.ts @@ -1,6 +1,6 @@ import FNote from "../../entities/fnote"; -export const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board"] as const; +export const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board", "presentation"] as const; export type ViewTypeOptions = typeof allViewTypes[number]; export interface ViewModeProps { diff --git a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx index 8960fe46d..3ff283589 100644 --- a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx @@ -19,7 +19,8 @@ const VIEW_TYPE_MAPPINGS: Record = { calendar: t("book_properties.calendar"), table: t("book_properties.table"), geoMap: t("book_properties.geo-map"), - board: t("book_properties.board") + board: t("book_properties.board"), + presentation: t("book_properties.presentation") }; export default function CollectionPropertiesTab({ note }: TabContext) { diff --git a/apps/client/src/widgets/ribbon/collection-properties-config.ts b/apps/client/src/widgets/ribbon/collection-properties-config.ts index 93dbc1076..bb4dd405b 100644 --- a/apps/client/src/widgets/ribbon/collection-properties-config.ts +++ b/apps/client/src/widgets/ribbon/collection-properties-config.ts @@ -159,6 +159,9 @@ export const bookPropertiesConfig: Record = { }, board: { properties: [] + }, + presentation: { + properties: [] } };