refactor: change downloadFolders requests to use useQuery hook (#2920)

* ✨ (sidebarComponent): Add support for downloading folders in the sidebar component to allow users to download folder data as JSON files
🔧 (sidebarComponent): Remove unused import and function related to downloading folders to clean up the codebase
📝 (use-get-download-folders): Add a new function to handle downloading folders from the API in a separate file for better code organization
♻️ (MainPage/services): Remove unused functions related to downloading and uploading flows from folders to simplify the services file and improve maintainability
🔧 (foldersStore): Remove unused import and function related to uploading flows from folders to clean up the codebase

* 📝 (sideBarFolderButtons/index.tsx): add error handling logic to display error message when downloading folder fails

* update error message

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
This commit is contained in:
Cristhian Zanforlin Lousa 2024-07-24 22:25:27 -03:00 • committed by GitHub
commit 44ffe8e6cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 59 additions and 58 deletions

View file

@ -77,7 +77,7 @@ class CustomComponent(Component):
await page.locator("textarea").press("Control+a");
await page.locator("textarea").fill(customCodeWithError);
await page.getByRole("button", { name: "Check & Save" }).click();
await page.getByText("Check & Save").last().click();
await page.waitForTimeout(1000);