hadmean/hadmean

View on GitHub

Showing 150 of 427 total issues

Function SiteSettings has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function SiteSettings() {
  const siteSettings = useAppConfiguration("site_settings");

  const domainMessages = useAppConfigurationDomainMessages("site_settings");

Severity: Major
Found in src/frontend/views/settings/Site/index.tsx - About 2 hrs to fix

    Function UserPreferences has 74 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function UserPreferences() {
      const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.PREFERENCES);
      const userPreferences = useUserPreference("theme");
      const upsertUserPreferenceMutation = useUpsertUserPreferenceMutation("theme");
      const router = useRouter();
    Severity: Major
    Found in src/frontend/views/account/Preferences/index.tsx - About 2 hrs to fix

      Function StorageCredentialsSettings has 74 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export function StorageCredentialsSettings() {
        const storageList = useStorageIntegrationsList();
        const activeStorageIntegration = useActiveStorageIntegration();
        const fileStorageDomainMessages = useDomainMessages(
          LANG_DOMAINS.INTEGRATIONS.FILE_STORAGE
      Severity: Major
      Found in src/frontend/views/integrations/storage/Credentials.tsx - About 2 hrs to fix

        Function VariablesDocumentation has 73 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function VariablesDocumentation() {
          return (
            <DocumentationRoot>
              <p>
                Variables are what you use to store values for later use. We have two
        Severity: Major
        Found in src/frontend/docs/variables.tsx - About 2 hrs to fix

          Function AsyncFormSelect has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function AsyncFormSelect(props: IProps) {
            const {
              input,
              url,
              referenceUrl,
          Severity: Major
          Found in src/frontend/design-system/components/Form/FormSelect/Async/index.tsx - About 2 hrs to fix

            File RenderNavigation.tsx has 278 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            import styled, { css } from "styled-components";
            import Link from "next/link";
            import {
              HeaderMenuItemType,
              INavigationMenuItem,
            Severity: Minor
            Found in src/frontend/_layouts/app/NavigationSideBar/RenderNavigation.tsx - About 2 hrs to fix

              Function EntityPresentationScriptSettings has 65 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export function EntityPresentationScriptSettings() {
                const entity = useEntitySlug();
                const entityPresentationScript = useEntityConfiguration(
                  "entity_presentation_script",
                  entity
              Severity: Major
              Found in src/frontend/views/entity/Presentation/index.tsx - About 2 hrs to fix

                Function filterOperatorToQuery has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  filterOperatorToQuery(
                    query: T,
                    column: string,
                    { operator, value, value2 }: IColumnFilterBag<unknown>,
                    groupOperator: "and" | "or"
                Severity: Major
                Found in src/backend/data/data-access/_Base.ts - About 2 hrs to fix

                  Function ThemeSettings has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  export function ThemeSettings() {
                    const themeColor = useAppConfiguration("theme_color");
                    const domainMessages = useAppConfigurationDomainMessages("theme_color");
                    const userPreference = useUserPreference("theme");
                  
                  
                  Severity: Major
                  Found in src/frontend/views/settings/Theme/index.tsx - About 2 hrs to fix

                    Function RelationsSettingsDocumentation has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    export function RelationsSettingsDocumentation() {
                      return (
                        <DocumentationRoot>
                          <p>
                            This setting helps you manage how this entity will be presented on other
                    Severity: Major
                    Found in src/frontend/docs/relations.tsx - About 2 hrs to fix

                      Function useFEPagination has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export function useFEPagination<T>(
                        endPoint: string,
                        dataState: IPaginatedDataState<T>
                      ): UseQueryResult<PaginatedData<T>> {
                        return useQuery<PaginatedData<T>>({
                      Severity: Major
                      Found in src/frontend/components/FEPaginationTable/useFEPagination.ts - About 2 hrs to fix

                        Function GeneralStorageSettings has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        export function GeneralStorageSettings() {
                          const fileUploadSettings = useAppConfiguration("file_upload_settings");
                        
                          const upsertFileUploadSettingsMutation = useUpsertConfigurationMutation(
                            "file_upload_settings"
                        Severity: Major
                        Found in src/frontend/views/integrations/storage/General.tsx - About 2 hrs to fix

                          Function CRUDDocumentation has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export function CRUDDocumentation() {
                            return (
                              <DocumentationRoot>
                                <p>
                                  This setting generally allows you to disable CRUD functionalities and
                          Severity: Major
                          Found in src/frontend/docs/crud.tsx - About 2 hrs to fix

                            Function MenuSettings has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            export function MenuSettings() {
                              const domainMessages = useAppConfigurationDomainMessages(
                                "disabled_menu_entities"
                              );
                            
                            
                            Severity: Major
                            Found in src/frontend/views/settings/Menu/index.tsx - About 2 hrs to fix

                              Function UsersLinkToDatabaseDocumentation has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              export function UsersLinkToDatabaseDocumentation() {
                                return (
                                  <DocumentationRoot>
                                    <p>
                                      Linking your DashPress users to your database allows you to write
                              Severity: Major
                              Found in src/frontend/docs/users-link-to-database.tsx - About 2 hrs to fix

                                Function ConfirmAlert has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                export function ConfirmAlert() {
                                  const rootRef = useRef<HTMLDivElement>(null);
                                
                                  const { _ } = useLingui();
                                  const [title, action, onClose] = useConfirmAlertStore((store) => [
                                Severity: Major
                                Found in src/frontend/design-system/components/ConfirmAlert/index.tsx - About 2 hrs to fix

                                  Function useEntityFieldValidations has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  export function useEntityFieldValidations(entity: string) {
                                    const entityValidationsMap = useEntityConfiguration(
                                      "entity_validations",
                                      entity
                                    );
                                  Severity: Major
                                  Found in src/frontend/hooks/entity/entity.config.ts - About 2 hrs to fix

                                    Function EntityRelationTable has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    export function EntityRelationTable() {
                                      const parentEntity = useEntitySlug();
                                      const entityId = useEntityId();
                                      const { _ } = useLingui();
                                      const childEntity = useRouteParam("childEntity");
                                    Severity: Major
                                    Found in src/frontend/views/data/Details/RelationsTable.tsx - About 2 hrs to fix

                                      Function ViewsDocumentation has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      export function ViewsDocumentation() {
                                        return (
                                          <DocumentationRoot>
                                            <p>
                                              Views enable you to implement query tabs. Say you have an{" "}
                                      Severity: Major
                                      Found in src/frontend/docs/views.tsx - About 2 hrs to fix

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

                                        import { QueryFilterSchema } from "shared/types/data";
                                        import { Form, Field, useField } from "react-final-form";
                                        import arrayMutators from "final-form-arrays";
                                        import { FieldArray } from "react-final-form-arrays";
                                        import { ACTIONS_ACCESSOR } from "frontend/views/data/Table/useTableColumns";
                                        Severity: Minor
                                        Found in src/frontend/views/entity/PersistentQuery/Form.tsx - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language