dashpresshq/dashpress

View on GitHub

Showing 165 of 459 total issues

Function useEntityFormView has 85 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function useEntityFormView(entity: string): Record<
  string,
  {
    label: MessageDescriptor;
    Cmp: ReactElement;
Severity: Major
Found in src/frontend/views/entity/Form/index.tsx - About 3 hrs to fix

    Function ListRoles has 82 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function ListRoles() {
      const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.ROLES);
      useSetPageDetails({
        pageTitle: domainMessages.TEXT_LANG.TITLE,
        viewKey: `list-roles`,
    Severity: Major
    Found in src/frontend/views/roles/List.tsx - About 3 hrs to fix

      File NotFound.tsx has 299 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/NotFound.tsx - About 3 hrs to fix

        Function UsersLinkToDatabase has 79 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        export function UsersLinkToDatabase() {
          const domainMessages = useDomainMessages({
            plural: msg`Users Link To Database`,
            singular: msg`Users Link To Database`,
          });
        Severity: Major
        Found in src/frontend/views/users/DatabaseLink/index.tsx - About 3 hrs to fix

          Function RolesDocumentation has 79 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          export function RolesDocumentation() {
            return (
              <DocumentationRoot>
                <p>
                  DashPress has two default roles which are not editable or deletable and
          Severity: Major
          Found in src/frontend/docs/roles.tsx - About 3 hrs to fix

            Function requestHandler has 76 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              async (req: NextApiRequest, res: NextApiResponse) => {
                const before = μs.now();
            
                return await requestHook(req, async () => {
                  const validationsToRun = (validations || []).filter((validation) => {
            Severity: Major
            Found in src/backend/lib/request/index.ts - About 3 hrs to fix

              Function EntityDictionSettings has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              export function EntityDictionSettings() {
                const entity = useEntitySlug();
                const domainMessages = useAppConfigurationDomainMessages("entity_diction");
                const entityDiction = useEntityDiction(entity);
                const upsertConfigurationMutation = useUpsertConfigurationMutation(
              Severity: Major
              Found in src/frontend/views/entity/Diction/index.tsx - About 3 hrs to fix

                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

                  File UnAuthorized.tsx has 287 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/UnAuthorized.tsx - About 2 hrs to fix

                    Function VariablesDocumentation has 72 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 PresentationScriptDocumentation has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      export function PresentationScriptDocumentation() {
                        return (
                          <DocumentationRoot>
                            <p>
                              For a quick showoff, copy and paste the script below, save the form, and
                      Severity: Major
                      Found in src/frontend/docs/scripts/presentations-scripts.tsx - About 2 hrs to fix

                        Function StorageCredentialsSettings has 70 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 UserPreferences has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          export function UserPreferences() {
                            const { theme, setTheme } = useTheme();
                            const themes = usePortalThemesSelection();
                          
                            const domainMessages = useDomainMessages(LANG_DOMAINS.ACCOUNT.PREFERENCES);
                          Severity: Major
                          Found in src/frontend/views/account/Preferences/index.tsx - About 2 hrs to fix

                            Function EntityPresentationScriptSettings has 70 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 AsyncFormSelect has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              export function AsyncFormSelect(props: IProps) {
                                const { _ } = useLingui();
                              
                                const { input, url, referenceUrl } = props;
                              
                              
                              Severity: Major
                              Found in src/frontend/components/app/form/input/select-async.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 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/app/pagination-table/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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language