From 4f4d5d2e12a2af4e35f7f5434d3987737b4681d0 Mon Sep 17 00:00:00 2001 From: polubis Date: Mon, 20 Oct 2025 15:55:44 +0200 Subject: [PATCH 1/9] wip --- CHANGE_LOG.md | 53 --- .../contracts/index.ts | 3 + src/components/cookies-modal.tsx | 198 ++++----- src/components/error-modal.tsx | 16 +- src/components/search-popover-content.tsx | 81 ++-- src/components/user-popover-content.tsx | 385 +++++++++--------- src/containers/bug-report.container.tsx | 154 +++---- .../create-document-modal.container.tsx | 119 +++--- src/design-system/{error.tsx => err.tsx} | 47 ++- .../containers/groups-list.container.tsx | 32 +- .../members-management.container.tsx | 56 ++- .../acts/update-document-visibility.act.ts} | 21 +- .../containers/document-details.container.tsx | 14 +- .../image-uploader-auth.container.tsx | 40 +- .../permament-doc-form.container.tsx | 18 +- .../private-confirmation.container.tsx | 8 +- .../public-confirmation.container.tsx | 10 +- .../access-group-assign.module.tsx | 16 +- 18 files changed, 641 insertions(+), 630 deletions(-) delete mode 100644 CHANGE_LOG.md rename src/design-system/{error.tsx => err.tsx} (52%) rename src/{actions/update-document-visibility.action.ts => features/creator/acts/update-document-visibility.act.ts} (74%) diff --git a/CHANGE_LOG.md b/CHANGE_LOG.md deleted file mode 100644 index 724a8d56f..000000000 --- a/CHANGE_LOG.md +++ /dev/null @@ -1,53 +0,0 @@ -# Changelog - -## Mindmaps - -preview -url - -``` -const fitViewOptions = { - duration: 700, -}; - -export const onPreBootstrap: GatsbyNode['onPreBootstrap'] = () => { - const buildId = randomUUID(); - - process.env.GATSBY_BUILD_ID = buildId; -}; - -import React from 'react'; -import { Button } from 'design-system/button'; -import { Modal } from 'design-system/modal'; -import { useSimpleFeature } from '@greenonsoftware/react-kit'; - -const ExamplesContainer = () => { - const examplesModal = useSimpleFeature(); - - return ( - <> - - {examplesModal.isOn && ( - - - - )} - - ); -}; - -export { ExamplesContainer }; - -``` diff --git a/src/api-4markdown-contracts/contracts/index.ts b/src/api-4markdown-contracts/contracts/index.ts index 2286caa02..12677df90 100644 --- a/src/api-4markdown-contracts/contracts/index.ts +++ b/src/api-4markdown-contracts/contracts/index.ts @@ -28,6 +28,7 @@ import type { YourAccountDto, CommentDto, ResourceCompletionDto, + ManualDocumentDto, } from "../dtos"; import { AccessGroupDto } from "../dtos/access-group.dto"; // @TODO[PRIO=1]: [Add better error handling and throwing custom errors]. @@ -173,12 +174,14 @@ type UpdateDocumentVisibilityContract = Contract< | PrivateDocumentDto | Omit | Omit, + | Omit | Pick | Pick | Pick< PermanentDocumentDto, "id" | "mdate" | "visibility" | "description" | "tags" | "name" > + | Pick >; type UploadImageContract = Contract< diff --git a/src/components/cookies-modal.tsx b/src/components/cookies-modal.tsx index 67473b30c..d8f9873da 100644 --- a/src/components/cookies-modal.tsx +++ b/src/components/cookies-modal.tsx @@ -1,5 +1,5 @@ import { Button } from "design-system/button"; -import { Modal } from "design-system/modal"; +import { Modal2 } from "design-system/modal2"; import React from "react"; import c from "classnames"; import { getCookie, setCookie } from "development-kit/cookies"; @@ -67,98 +67,105 @@ const CookiesModal = () => { if (accepted) return null; return ( - + {view === ViewType.Intro && ( <> - -

- By clicking Accept, you consent to the use of - cookies and agree to the {meta.appName} privacy - policy. These cookies are used to enhance site navigation, analyze - usage patterns, and support our marketing efforts -

- -
- - -
+ Read Our Privacy Policy + + + +
+ + +
+
)} {view === ViewType.Manage && ( <> - -
- {Object.entries(preferences).map(([key, value], index, arr) => ( -
-
-

{key} Cookies

-