dashpresshq/dashpress

View on GitHub

Showing 165 of 459 total issues

Function ServerError has 338 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const ServerError: CustomNextPage = () => {
  return (
    <BaseErrorCmp
      code={500}
      message="Internal Server Error"
Severity: Major
Found in src/frontend/views/errors/ServerError.tsx - About 1 day to fix

    Function DemoForm has 305 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function DemoForm() {
      return (
        <Form
          onSubmit={(values: unknown) => action(values as string)}
          render={({ handleSubmit }) => (
    Severity: Major
    Found in src/frontend/components/app/form/input/Stories.tsx - About 1 day to fix

      Function NotFound has 295 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const NotFound: CustomNextPage = () => {
        return (
          <BaseErrorCmp
            code={404}
            message="Page Not Found"
      Severity: Major
      Found in src/frontend/views/errors/NotFound.tsx - About 1 day to fix

        Function UnAuthorized has 283 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export const UnAuthorized: CustomNextPage = () => {
          return (
            <BaseErrorCmp
              code={403}
              message="Unauthorized"
        Severity: Major
        Found in src/frontend/views/errors/UnAuthorized.tsx - About 1 day to fix

          Function FormScriptDocumentation has 195 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function FormScriptDocumentation() {
            return (
              <DocumentationRoot>
                <p>
                  Forms scripts enable you to implement the complex form logic your
          Severity: Major
          Found in src/frontend/docs/scripts/form-scripts.tsx - About 7 hrs to fix

            Function EntityRelationsSettings has 156 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            export function EntityRelationsSettings() {
              const entity = useEntitySlug();
              const tabFromUrl = useRouteParam("tab");
              const changeTabParam = useChangeRouterParam("tab");
              const entityFields = useEntityFields(entity);
            Severity: Major
            Found in src/frontend/views/entity/Relations/index.tsx - About 6 hrs to fix

              Function WidgetScriptDocumentation has 139 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export function WidgetScriptDocumentation() {
                return (
                  <DocumentationRoot>
                    <p>
                      The widget script is the script that allows you to provide the data that
              Severity: Major
              Found in src/frontend/docs/scripts/widget-scripts.tsx - About 5 hrs to fix

                Function EntityFieldsSettings has 136 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                export function EntityFieldsSettings() {
                  const tabFromUrl = useRouteParam("tab");
                  const changeTabParam = useChangeRouterParam("tab");
                  const domainMessages = useAppConfigurationDomainMessages(
                    "entity_columns_labels"
                Severity: Major
                Found in src/frontend/views/entity/Fields/index.tsx - About 5 hrs to fix

                  Function useEntityCrudView has 121 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function useEntityCrudView(entity: string) {
                    const entityCrudSettings = useEntityCrudSettings(entity);
                    const entityFields = useEntityFields(entity);
                  
                    const upsertCrudSettingsMutation = useUpsertConfigurationMutation(
                  Severity: Major
                  Found in src/frontend/views/entity/Crud/index.tsx - About 4 hrs to fix

                    File data.service.ts has 367 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    import { runFormAction } from "@/backend/form-actions/run-form-action";
                    import { NotFoundError, progammingError } from "@/backend/lib/errors";
                    import { compileTemplateString } from "@/shared/lib/strings/templates";
                    import type { PaginatedData, QueryFilterSchema } from "@/shared/types/data";
                    import { DataEventActions, FilterOperators } from "@/shared/types/data";
                    Severity: Minor
                    Found in src/backend/data/data.service.ts - About 4 hrs to fix

                      Function useTableColumns has 111 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export const useTableColumns = (
                        entity: string
                      ): Partial<DataStateKeys<ITableColumn[]>> => {
                        const portalTableColumns = usePortalTableColumns(entity);
                        const getEntityFieldLabels = useEntityFieldLabels(entity);
                      Severity: Major
                      Found in src/frontend/views/data/Table/useTableColumns.tsx - About 4 hrs to fix

                        Function FormIntegrationsDocumentation has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export function FormIntegrationsDocumentation() {
                          const { _ } = useLingui();
                          const domainMessages = useDomainMessages(
                            LANG_DOMAINS.INTEGRATIONS.FORM_ACTIONS
                          );
                        Severity: Major
                        Found in src/frontend/docs/form-integrations.tsx - About 4 hrs to fix

                          Function ListUsers has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export function ListUsers() {
                            const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.USERS);
                          
                            useSetPageDetails({
                              pageTitle: domainMessages.TEXT_LANG.TITLE,
                          Severity: Major
                          Found in src/frontend/views/users/List.tsx - About 4 hrs to fix

                            Function EntityRelationDetails has 106 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            export function EntityRelationDetails() {
                              const childEntity = useRouteParam("childEntity");
                              const childEntityCrudConfig = useEntityCrudConfig(childEntity);
                              const entityId = useEntityId();
                              const parentEntity = useEntitySlug();
                            Severity: Major
                            Found in src/frontend/views/data/Details/RelationsDetails.tsx - About 4 hrs to fix

                              File ServerError.tsx has 342 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              import type { CustomNextPage } from "@/frontend/_layouts/types";
                              
                              import { BaseErrorCmp } from "./_Base";
                              
                              // eslint-disable-next-line react/function-component-definition
                              Severity: Minor
                              Found in src/frontend/views/errors/ServerError.tsx - About 4 hrs to fix

                                File Stories.tsx has 340 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                /* eslint-disable react/function-component-definition */
                                import { action } from "@storybook/addon-actions";
                                import type { Story } from "@storybook/react";
                                import { Field, Form } from "react-final-form";
                                import { fakeMessageDescriptor } from "translations/fake";
                                Severity: Minor
                                Found in src/frontend/components/app/form/input/Stories.tsx - About 4 hrs to fix

                                  Function RenderFormInput has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export function RenderFormInput(props: IRenderFormInputProps) {
                                    const {
                                      formProps: formProps$1,
                                      label,
                                      type,
                                  Severity: Major
                                  Found in src/frontend/components/app/form/schema/_RenderFormInput.tsx - About 3 hrs to fix

                                    File Form.tsx has 319 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    import type { MessageDescriptor } from "@lingui/core";
                                    import { msg } from "@lingui/macro";
                                    import { useMutation } from "@tanstack/react-query";
                                    import { useEffect, useState } from "react";
                                    import { Field, Form } from "react-final-form";
                                    Severity: Minor
                                    Found in src/frontend/views/Dashboard/Widget/_manage/Form.tsx - About 3 hrs to fix

                                      Function generateMenuItems has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        async generateMenuItems(): Promise<INavigationMenuItem[]> {
                                          let navItems: INavigationMenuItem[] = [];
                                      
                                          navItems = navItems.concat([
                                            {
                                      Severity: Major
                                      Found in src/backend/menu/menu.service.ts - About 3 hrs to fix

                                        Function FieldsSettingsDocumentation has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        export function FieldsSettingsDocumentation() {
                                          return (
                                            <DocumentationRoot>
                                              <p>
                                                You will be able to make field-level customizations on the tables,
                                        Severity: Major
                                        Found in src/frontend/docs/fields.tsx - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language