diff --git a/src/__tests__/api/_test-utils/_all.ts b/src/__tests__/api/_test-utils/_all.ts index 2f1e9bd27..87d688bad 100644 --- a/src/__tests__/api/_test-utils/_all.ts +++ b/src/__tests__/api/_test-utils/_all.ts @@ -45,4 +45,4 @@ export const setupAllTestData = async (domains: DomainTypes[]) => { ); }; -// TODO test all custom script logic +// TODO: test all custom script logic diff --git a/src/__tests__/api/menu/index.spec.ts b/src/__tests__/api/menu/index.spec.ts index 1210ab833..9db5112ff 100644 --- a/src/__tests__/api/menu/index.spec.ts +++ b/src/__tests__/api/menu/index.spec.ts @@ -155,4 +155,4 @@ describe("/api/menu", () => { }); }); -// TODO test isMenuItemAllowed +// TODO: test isMenuItemAllowed diff --git a/src/backend/users/users.controller.ts b/src/backend/users/users.controller.ts index 3e708e754..adc3cda51 100644 --- a/src/backend/users/users.controller.ts +++ b/src/backend/users/users.controller.ts @@ -64,7 +64,7 @@ export class UsersApiController { } } - // TODO if mail is activated then send reset form + // TODO: if mail is activated then send reset form async resetPassword(username: string, input: IResetPasswordForm) { await this._usersService.resetPassword(username, input.password); } diff --git a/src/frontend/components/SchemaForm/_RenderFormInput.tsx b/src/frontend/components/SchemaForm/_RenderFormInput.tsx index 7a5135d70..6786f54f0 100644 --- a/src/frontend/components/SchemaForm/_RenderFormInput.tsx +++ b/src/frontend/components/SchemaForm/_RenderFormInput.tsx @@ -13,6 +13,7 @@ import { FormCodeEditor } from "frontend/design-system/components/Form/FormCodeE import { FormTextArea } from "frontend/design-system/components/Form/FormTextArea"; import { FormFileInput } from "frontend/design-system/components/Form/FormFileInput"; import { FormSelectButton } from "frontend/design-system/components/Form/FormSelectButton"; +import { FormRichTextArea } from "frontend/design-system/components/Form/FormRichTextArea"; interface IProps { type: keyof typeof FIELD_TYPES_CONFIG_MAP; @@ -101,7 +102,7 @@ export function RenderFormInput({ return ; case "richtext": - return ; + return ; case "image": case "file": @@ -111,4 +112,4 @@ export function RenderFormInput({ return ; } } -// TODO Rating Input (for contributors) +// TODO: Rating Input (for contributors) diff --git a/src/frontend/design-system/components/Form/FormRichTextArea/index.tsx b/src/frontend/design-system/components/Form/FormRichTextArea/index.tsx index abf36d144..10973bbbd 100644 --- a/src/frontend/design-system/components/Form/FormRichTextArea/index.tsx +++ b/src/frontend/design-system/components/Form/FormRichTextArea/index.tsx @@ -1,13 +1,20 @@ import React from "react"; -import ReactQuill from "react-quill"; import "react-quill/dist/quill.snow.css"; import styled from "styled-components"; import { USE_ROOT_COLOR } from "frontend/design-system/theme/root"; +import dynamic from "next/dynamic"; import { SYSTEM_COLORS } from "frontend/design-system/theme/system"; import { noop } from "shared/lib/noop"; import { ISharedFormInput } from "../_types"; import { generateClassNames, wrapLabelAndError } from "../_wrapForm"; +const ReactQuill = dynamic( + () => { + return import("react-quill"); + }, + { ssr: false } +); + const Root = styled.div` .ql-editor { min-height: 18em; @@ -90,7 +97,7 @@ const modules = { { indent: "-1" }, { indent: "+1" }, ], - ["link"], // 'image', 'video' + ["link"], ["clean"], ], clipboard: { diff --git a/src/frontend/design-system/components/Form/FormSelect/Async/index.tsx b/src/frontend/design-system/components/Form/FormSelect/Async/index.tsx index 33ade7e1b..6be5266c4 100644 --- a/src/frontend/design-system/components/Form/FormSelect/Async/index.tsx +++ b/src/frontend/design-system/components/Form/FormSelect/Async/index.tsx @@ -26,7 +26,6 @@ export const Select = styled(AsyncSelect)` ${SelectStyles} `; -// TODO move to useDebounce const debouncedSearch = debounce( async ( inputValue: string, diff --git a/src/frontend/design-system/components/Table/filters/_FilterOperator.tsx b/src/frontend/design-system/components/Table/filters/_FilterOperator.tsx index 5c6bc9b13..56f004a3f 100644 --- a/src/frontend/design-system/components/Table/filters/_FilterOperator.tsx +++ b/src/frontend/design-system/components/Table/filters/_FilterOperator.tsx @@ -13,7 +13,7 @@ const FILTER_OPERATOR_LABELS: Record = { [FilterOperators.BETWEEN]: "Between", [FilterOperators.CONTAINS]: "Contains", [FilterOperators.NOT_EQUAL]: "Not Equal To", - [FilterOperators.IS_NULL]: "Is Null", // TODO + [FilterOperators.IS_NULL]: "Is Null", // TODO: }; interface IProps { diff --git a/src/frontend/design-system/components/Table/filters/__tests__/index.spec.tsx b/src/frontend/design-system/components/Table/filters/__tests__/index.spec.tsx index 1b1d996f8..fc7b07c38 100644 --- a/src/frontend/design-system/components/Table/filters/__tests__/index.spec.tsx +++ b/src/frontend/design-system/components/Table/filters/__tests__/index.spec.tsx @@ -26,7 +26,7 @@ function TestComponent({ getFilterValue: () => state, }} view="Test Column" - debounce={100} + debounceWait={100} /> ); } diff --git a/src/frontend/design-system/components/Table/filters/index.tsx b/src/frontend/design-system/components/Table/filters/index.tsx index 7591f0da1..aaaf11d27 100644 --- a/src/frontend/design-system/components/Table/filters/index.tsx +++ b/src/frontend/design-system/components/Table/filters/index.tsx @@ -16,14 +16,14 @@ interface IProps { "setFilterValue" | "getFilterValue" >; view?: React.ReactNode | string; - debounce?: number; + debounceWait?: number; } export function TableFilter({ type, column, view, - debounce = FILTER_DEBOUNCE_WAIT, + debounceWait = FILTER_DEBOUNCE_WAIT, }: IProps) { const filterValue = column.getFilterValue() as IColumnFilterBag; @@ -58,7 +58,7 @@ export function TableFilter({ () => { setFilter(localValue); }, - debounce, + debounceWait, [localValue] ); diff --git a/src/frontend/views/Dashboard/Widget/_render/Summary/index.tsx b/src/frontend/views/Dashboard/Widget/_render/Summary/index.tsx index 7d2de2b7c..301ab9573 100644 --- a/src/frontend/views/Dashboard/Widget/_render/Summary/index.tsx +++ b/src/frontend/views/Dashboard/Widget/_render/Summary/index.tsx @@ -13,7 +13,7 @@ interface IProps { data: unknown; } -// TODO Card Widgets: targets (for contributors) +// TODO: Card Widgets: targets (for contributors) // card percentage inverse export function SummaryWidget({ config, data }: IProps) { diff --git a/src/frontend/views/data/Table/DataTable/index.tsx b/src/frontend/views/data/Table/DataTable/index.tsx index 35068d7e9..f1f268d82 100644 --- a/src/frontend/views/data/Table/DataTable/index.tsx +++ b/src/frontend/views/data/Table/DataTable/index.tsx @@ -43,7 +43,7 @@ export function BaseDataTable({ border={border} emptyMessage={ currentState.filters.length > 0 - ? // TODO for contributors: transform this to user readable message + ? // TODO: for contributors: transform this to user readable message `No result for the current ${pluralize({ singular: "filter", count: currentState.filters.length, diff --git a/src/frontend/views/entity/Actions/Form.tsx b/src/frontend/views/entity/Actions/Form.tsx index dddc75103..a74b9990e 100644 --- a/src/frontend/views/entity/Actions/Form.tsx +++ b/src/frontend/views/entity/Actions/Form.tsx @@ -121,7 +121,7 @@ export function ActionForm({ })), }, ...selectedImplementation, - // TODO Actions script i.e return false or return a loop to do many users + // TODO: Actions script i.e return false or return a loop to do many users // triggerLogic: { // type: "json", // validations: [], diff --git a/src/frontend/views/entity/Fields/FieldsValidation.tsx b/src/frontend/views/entity/Fields/FieldsValidation.tsx index 8c382115f..5dbea72a6 100644 --- a/src/frontend/views/entity/Fields/FieldsValidation.tsx +++ b/src/frontend/views/entity/Fields/FieldsValidation.tsx @@ -35,7 +35,7 @@ const CRUD_CONFIG = MAKE_APP_CONFIGURATION_CRUD_CONFIG("entity_validations"); const ERROR_MESSAGE_LENGTH = 128; -// TODO for contributors: Show the actuall error message not the template message +// TODO: for contributors: Show the actuall error message not the template message export function FieldValidationCanvas({ field, diff --git a/src/pages/api/upload/index.ts b/src/pages/api/upload/index.ts index 9ed92a269..82c02407c 100644 --- a/src/pages/api/upload/index.ts +++ b/src/pages/api/upload/index.ts @@ -52,7 +52,7 @@ export const config: PageConfig = { }, }; -// TODO +// TODO: // disable file upload in DEMO // Max Size // file type