From 4ffe99724923c9d3759e342ad26deb1be78cf3b6 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Thu, 30 Jan 2025 17:44:41 -0300 Subject: [PATCH] refactor: convert hook files from .tsx to .ts for better type clarity (#6003) change react custom hooks extensions to .ts file instead of .tsx --- .../hooks/{use-get-build-status.tsx => use-get-build-status.ts} | 0 .../{use-check-code-validity.tsx => use-check-code-validity.ts} | 0 .../{use-fetch-data-on-mount.tsx => use-fetch-data-on-mount.ts} | 0 .../hooks/{use-handle-new-value.tsx => use-handle-new-value.ts} | 0 .../hooks/{use-handle-node-class.tsx => use-handle-node-class.ts} | 0 .../CustomNodes/hooks/{use-merge-refs.tsx => use-merge-refs.ts} | 0 .../hooks/{use-update-all-nodes.tsx => use-update-all-nodes.ts} | 0 .../hooks/{use-update-node-code.tsx => use-update-node-code.ts} | 0 ...date-validation-status.tsx => use-update-validation-status.ts} | 0 ...lidation-status-string.tsx => use-validation-status-string.ts} | 0 .../hooks/{use-data-effect.tsx => use-data-effect.ts} | 0 .../hooks/{use-handle-install.tsx => use-handle-install.ts} | 0 .../hooks/{use-handle-install.tsx => use-handle-install.ts} | 0 .../hooks/{use-on-file-drop.tsx => use-on-file-drop.ts} | 0 .../hooks/{use-overlap-shortcuts.tsx => use-overlap-shortcuts.ts} | 0 ...use-auto-resize-text-area.tsx => use-auto-resize-text-area.ts} | 0 .../hooks/{use-drag-and-drop.tsx => use-drag-and-drop.ts} | 0 .../chatInput/hooks/{use-focus-unlock.tsx => use-focus-unlock.ts} | 0 .../{use-handle-file-change.tsx => use-handle-file-change.ts} | 0 .../chatView/chatInput/hooks/{use-upload.tsx => use-upload.ts} | 0 .../hooks/{use-column-defs.tsx => use-column-defs.ts} | 0 ...e-handle-change-advanced.tsx => use-handle-change-advanced.ts} | 0 .../editNodeModal/hooks/{use-row-data.tsx => use-row-data.ts} | 0 .../hooks/{use-shortcuts.tsx => use-shortcuts.ts} | 0 .../hooks/{use-description-modal.tsx => use-description-modal.ts} | 0 .../hooks/{use-dropdown-options.tsx => use-dropdown-options.ts} | 0 .../hooks/{use-filtered-flows.tsx => use-filtered-flows.ts} | 0 .../hooks/{use-handle-duplicate.tsx => use-handle-duplicate.ts} | 0 .../hooks/{use-handle-select-all.tsx => use-handle-select-all.ts} | 0 .../MainPage/hooks/{use-on-file-drop.tsx => use-on-file-drop.ts} | 0 ...use-select-options-change.tsx => use-select-options-change.ts} | 0 .../hooks/{use-selected-flows.tsx => use-selected-flows.ts} | 0 .../hooks/{use-preload-images.tsx => use-preload-images.ts} | 0 .../{use-file-size-validator.tsx => use-file-size-validator.ts} | 0 .../hooks/{use-tab-visibility.tsx => use-tab-visibility.ts} | 0 35 files changed, 0 insertions(+), 0 deletions(-) rename src/frontend/src/CustomNodes/GenericNode/hooks/{use-get-build-status.tsx => use-get-build-status.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-check-code-validity.tsx => use-check-code-validity.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-fetch-data-on-mount.tsx => use-fetch-data-on-mount.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-handle-new-value.tsx => use-handle-new-value.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-handle-node-class.tsx => use-handle-node-class.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-merge-refs.tsx => use-merge-refs.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-update-all-nodes.tsx => use-update-all-nodes.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-update-node-code.tsx => use-update-node-code.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-update-validation-status.tsx => use-update-validation-status.ts} (100%) rename src/frontend/src/CustomNodes/hooks/{use-validation-status-string.tsx => use-validation-status-string.ts} (100%) rename src/frontend/src/components/common/storeCardComponent/hooks/{use-data-effect.tsx => use-data-effect.ts} (100%) rename src/frontend/src/components/common/storeCardComponent/hooks/{use-handle-install.tsx => use-handle-install.ts} (100%) rename src/frontend/src/components/core/cardComponent/hooks/{use-handle-install.tsx => use-handle-install.ts} (100%) rename src/frontend/src/components/core/folderSidebarComponent/hooks/{use-on-file-drop.tsx => use-on-file-drop.ts} (100%) rename src/frontend/src/hooks/{use-overlap-shortcuts.tsx => use-overlap-shortcuts.ts} (100%) rename src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/{use-auto-resize-text-area.tsx => use-auto-resize-text-area.ts} (100%) rename src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/{use-drag-and-drop.tsx => use-drag-and-drop.ts} (100%) rename src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/{use-focus-unlock.tsx => use-focus-unlock.ts} (100%) rename src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/{use-handle-file-change.tsx => use-handle-file-change.ts} (100%) rename src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/{use-upload.tsx => use-upload.ts} (100%) rename src/frontend/src/modals/editNodeModal/hooks/{use-column-defs.tsx => use-column-defs.ts} (100%) rename src/frontend/src/modals/editNodeModal/hooks/{use-handle-change-advanced.tsx => use-handle-change-advanced.ts} (100%) rename src/frontend/src/modals/editNodeModal/hooks/{use-row-data.tsx => use-row-data.ts} (100%) rename src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/hooks/{use-shortcuts.tsx => use-shortcuts.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-description-modal.tsx => use-description-modal.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-dropdown-options.tsx => use-dropdown-options.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-filtered-flows.tsx => use-filtered-flows.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-handle-duplicate.tsx => use-handle-duplicate.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-handle-select-all.tsx => use-handle-select-all.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-on-file-drop.tsx => use-on-file-drop.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-select-options-change.tsx => use-select-options-change.ts} (100%) rename src/frontend/src/pages/MainPage/hooks/{use-selected-flows.tsx => use-selected-flows.ts} (100%) rename src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/hooks/{use-preload-images.tsx => use-preload-images.ts} (100%) rename src/frontend/src/shared/hooks/{use-file-size-validator.tsx => use-file-size-validator.ts} (100%) rename src/frontend/src/shared/hooks/{use-tab-visibility.tsx => use-tab-visibility.ts} (100%) diff --git a/src/frontend/src/CustomNodes/GenericNode/hooks/use-get-build-status.tsx b/src/frontend/src/CustomNodes/GenericNode/hooks/use-get-build-status.ts similarity index 100% rename from src/frontend/src/CustomNodes/GenericNode/hooks/use-get-build-status.tsx rename to src/frontend/src/CustomNodes/GenericNode/hooks/use-get-build-status.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx b/src/frontend/src/CustomNodes/hooks/use-check-code-validity.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx rename to src/frontend/src/CustomNodes/hooks/use-check-code-validity.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-fetch-data-on-mount.tsx b/src/frontend/src/CustomNodes/hooks/use-fetch-data-on-mount.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-fetch-data-on-mount.tsx rename to src/frontend/src/CustomNodes/hooks/use-fetch-data-on-mount.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-handle-new-value.tsx b/src/frontend/src/CustomNodes/hooks/use-handle-new-value.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-handle-new-value.tsx rename to src/frontend/src/CustomNodes/hooks/use-handle-new-value.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-handle-node-class.tsx b/src/frontend/src/CustomNodes/hooks/use-handle-node-class.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-handle-node-class.tsx rename to src/frontend/src/CustomNodes/hooks/use-handle-node-class.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-merge-refs.tsx b/src/frontend/src/CustomNodes/hooks/use-merge-refs.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-merge-refs.tsx rename to src/frontend/src/CustomNodes/hooks/use-merge-refs.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-update-all-nodes.tsx b/src/frontend/src/CustomNodes/hooks/use-update-all-nodes.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-update-all-nodes.tsx rename to src/frontend/src/CustomNodes/hooks/use-update-all-nodes.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-update-node-code.tsx b/src/frontend/src/CustomNodes/hooks/use-update-node-code.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-update-node-code.tsx rename to src/frontend/src/CustomNodes/hooks/use-update-node-code.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-update-validation-status.tsx b/src/frontend/src/CustomNodes/hooks/use-update-validation-status.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-update-validation-status.tsx rename to src/frontend/src/CustomNodes/hooks/use-update-validation-status.ts diff --git a/src/frontend/src/CustomNodes/hooks/use-validation-status-string.tsx b/src/frontend/src/CustomNodes/hooks/use-validation-status-string.ts similarity index 100% rename from src/frontend/src/CustomNodes/hooks/use-validation-status-string.tsx rename to src/frontend/src/CustomNodes/hooks/use-validation-status-string.ts diff --git a/src/frontend/src/components/common/storeCardComponent/hooks/use-data-effect.tsx b/src/frontend/src/components/common/storeCardComponent/hooks/use-data-effect.ts similarity index 100% rename from src/frontend/src/components/common/storeCardComponent/hooks/use-data-effect.tsx rename to src/frontend/src/components/common/storeCardComponent/hooks/use-data-effect.ts diff --git a/src/frontend/src/components/common/storeCardComponent/hooks/use-handle-install.tsx b/src/frontend/src/components/common/storeCardComponent/hooks/use-handle-install.ts similarity index 100% rename from src/frontend/src/components/common/storeCardComponent/hooks/use-handle-install.tsx rename to src/frontend/src/components/common/storeCardComponent/hooks/use-handle-install.ts diff --git a/src/frontend/src/components/core/cardComponent/hooks/use-handle-install.tsx b/src/frontend/src/components/core/cardComponent/hooks/use-handle-install.ts similarity index 100% rename from src/frontend/src/components/core/cardComponent/hooks/use-handle-install.tsx rename to src/frontend/src/components/core/cardComponent/hooks/use-handle-install.ts diff --git a/src/frontend/src/components/core/folderSidebarComponent/hooks/use-on-file-drop.tsx b/src/frontend/src/components/core/folderSidebarComponent/hooks/use-on-file-drop.ts similarity index 100% rename from src/frontend/src/components/core/folderSidebarComponent/hooks/use-on-file-drop.tsx rename to src/frontend/src/components/core/folderSidebarComponent/hooks/use-on-file-drop.ts diff --git a/src/frontend/src/hooks/use-overlap-shortcuts.tsx b/src/frontend/src/hooks/use-overlap-shortcuts.ts similarity index 100% rename from src/frontend/src/hooks/use-overlap-shortcuts.tsx rename to src/frontend/src/hooks/use-overlap-shortcuts.ts diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-auto-resize-text-area.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-auto-resize-text-area.ts similarity index 100% rename from src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-auto-resize-text-area.tsx rename to src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-auto-resize-text-area.ts diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-drag-and-drop.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-drag-and-drop.ts similarity index 100% rename from src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-drag-and-drop.tsx rename to src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-drag-and-drop.ts diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-focus-unlock.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-focus-unlock.ts similarity index 100% rename from src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-focus-unlock.tsx rename to src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-focus-unlock.ts diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-handle-file-change.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-handle-file-change.ts similarity index 100% rename from src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-handle-file-change.tsx rename to src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-handle-file-change.ts diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-upload.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-upload.ts similarity index 100% rename from src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-upload.tsx rename to src/frontend/src/modals/IOModal/components/chatView/chatInput/hooks/use-upload.ts diff --git a/src/frontend/src/modals/editNodeModal/hooks/use-column-defs.tsx b/src/frontend/src/modals/editNodeModal/hooks/use-column-defs.ts similarity index 100% rename from src/frontend/src/modals/editNodeModal/hooks/use-column-defs.tsx rename to src/frontend/src/modals/editNodeModal/hooks/use-column-defs.ts diff --git a/src/frontend/src/modals/editNodeModal/hooks/use-handle-change-advanced.tsx b/src/frontend/src/modals/editNodeModal/hooks/use-handle-change-advanced.ts similarity index 100% rename from src/frontend/src/modals/editNodeModal/hooks/use-handle-change-advanced.tsx rename to src/frontend/src/modals/editNodeModal/hooks/use-handle-change-advanced.ts diff --git a/src/frontend/src/modals/editNodeModal/hooks/use-row-data.tsx b/src/frontend/src/modals/editNodeModal/hooks/use-row-data.ts similarity index 100% rename from src/frontend/src/modals/editNodeModal/hooks/use-row-data.tsx rename to src/frontend/src/modals/editNodeModal/hooks/use-row-data.ts diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/hooks/use-shortcuts.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/hooks/use-shortcuts.ts similarity index 100% rename from src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/hooks/use-shortcuts.tsx rename to src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/hooks/use-shortcuts.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-description-modal.tsx b/src/frontend/src/pages/MainPage/hooks/use-description-modal.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-description-modal.tsx rename to src/frontend/src/pages/MainPage/hooks/use-description-modal.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-dropdown-options.tsx b/src/frontend/src/pages/MainPage/hooks/use-dropdown-options.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-dropdown-options.tsx rename to src/frontend/src/pages/MainPage/hooks/use-dropdown-options.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-filtered-flows.tsx b/src/frontend/src/pages/MainPage/hooks/use-filtered-flows.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-filtered-flows.tsx rename to src/frontend/src/pages/MainPage/hooks/use-filtered-flows.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-handle-duplicate.tsx b/src/frontend/src/pages/MainPage/hooks/use-handle-duplicate.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-handle-duplicate.tsx rename to src/frontend/src/pages/MainPage/hooks/use-handle-duplicate.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-handle-select-all.tsx b/src/frontend/src/pages/MainPage/hooks/use-handle-select-all.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-handle-select-all.tsx rename to src/frontend/src/pages/MainPage/hooks/use-handle-select-all.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-on-file-drop.tsx b/src/frontend/src/pages/MainPage/hooks/use-on-file-drop.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-on-file-drop.tsx rename to src/frontend/src/pages/MainPage/hooks/use-on-file-drop.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-select-options-change.tsx b/src/frontend/src/pages/MainPage/hooks/use-select-options-change.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-select-options-change.tsx rename to src/frontend/src/pages/MainPage/hooks/use-select-options-change.ts diff --git a/src/frontend/src/pages/MainPage/hooks/use-selected-flows.tsx b/src/frontend/src/pages/MainPage/hooks/use-selected-flows.ts similarity index 100% rename from src/frontend/src/pages/MainPage/hooks/use-selected-flows.tsx rename to src/frontend/src/pages/MainPage/hooks/use-selected-flows.ts diff --git a/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/hooks/use-preload-images.tsx b/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/hooks/use-preload-images.ts similarity index 100% rename from src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/hooks/use-preload-images.tsx rename to src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/ProfilePictureForm/components/profilePictureChooserComponent/hooks/use-preload-images.ts diff --git a/src/frontend/src/shared/hooks/use-file-size-validator.tsx b/src/frontend/src/shared/hooks/use-file-size-validator.ts similarity index 100% rename from src/frontend/src/shared/hooks/use-file-size-validator.tsx rename to src/frontend/src/shared/hooks/use-file-size-validator.ts diff --git a/src/frontend/src/shared/hooks/use-tab-visibility.tsx b/src/frontend/src/shared/hooks/use-tab-visibility.ts similarity index 100% rename from src/frontend/src/shared/hooks/use-tab-visibility.tsx rename to src/frontend/src/shared/hooks/use-tab-visibility.ts