Commit graph

2,471 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
3e04ea2d38 Refactor code for improved readability and
efficiency.
2023-11-14 12:41:02 -03:00
Gabriel Luiz Freitas Almeida
3eec2e1a28 Update daisyui version to 4.0.4 and add culori
dependency
2023-11-14 11:32:24 -03:00
anovazzi1
3935292892 fix(extraSidebarComponent): reset filter when search input is empty or contains "search" to improve user experience
refactor(utils): remove unnecessary empty line
2023-11-13 21:27:39 -03:00
anovazzi1
756fd9c0b2 fix(market-card.tsx): change loading variable name to loadingLike for better clarity and semantics 2023-11-13 20:33:05 -03:00
anovazzi1
fec102b6e7 fix(storeContext.tsx): add console.log statement to log the response from checkHasApiKey() function
fix(StoreApiKeyModal/index.tsx): initialize apiKeyValue state with a fake API key if hasApiKey is true
2023-11-13 19:33:56 -03:00
cristhianzl
7a15fb7a0d Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-13 19:26:05 -03:00
cristhianzl
75e144dd26 refactor(flows): reverse the order of flows to display the latest ones first
refactor(MainPage): comment out code that adds "From Store" sidebar navigation item
feat(flow): add date_created property to FlowType to track the creation date of flows
2023-11-13 19:25:56 -03:00
anovazzi1
7b19cce2f7 fix(market-card.tsx): set loading state to true when handleLike function is called to provide visual feedback to the user
fix(market-card.tsx): set loading state to false after postLikeComponent promise is resolved or rejected to stop the loading state
fix(market-card.tsx): disable the like button when loading state is true or authorized state is false to prevent multiple requests and provide visual feedback to the user
2023-11-13 16:26:06 -03:00
anovazzi1
19a6ba79b3 fix(StorePage/index.tsx): fix indentation and formatting issues for better code readability
feat(StorePage/index.tsx): add disabled attribute to buttons and input when loading to prevent user interaction
2023-11-13 16:20:15 -03:00
anovazzi1
34c6ce86f0 refactor(StorePage): extract getAllStore function to improve code readability and reusability
feat(StorePage): call getAllStore function when search text is entered or search button is clicked to update store components
2023-11-13 15:44:07 -03:00
anovazzi1
3a87f7fa4c refactor(market-card.tsx): wrap market card title with ShadTooltip component to add tooltip functionality for long names
feat(market-card.tsx): add support for handling installation of components when already added and installable
2023-11-13 15:30:57 -03:00
anovazzi1
58e5c179a0 fix(StoreApiKeyModal/index.tsx): fix typo in import statement for StoreContext
feat(StoreApiKeyModal/index.tsx): add support for checking if an API key exists in the StoreContext
fix(market-card.tsx): remove unnecessary code for handling installable market cards
2023-11-13 15:18:30 -03:00
anovazzi1
f11d578efa fix(API/index.ts): encode comma in tags array to prevent issues with URL encoding 2023-11-13 14:07:19 -03:00
anovazzi1
83bb20d8f3 fix(StorePage): fix sorting order in API request to use "downloads" instead of "liked_by" for popular pages
The sorting order in the API request for popular pages was using the "liked_by" field instead of the correct "downloads" field. This commit fixes the sorting order to use the correct field, ensuring that popular pages are sorted based on the number of downloads.
2023-11-13 12:18:45 -03:00
anovazzi1
66972ad489 fix(StorePage): change initial value of tabActive state from "Flows" to "All" for better default behavior 2023-11-13 12:16:08 -03:00
cristhianzl
af29139af3 fix(StorePage): update totalRowsCount logic to consider filteredCategories length
The logic for setting the totalRowsCount in the StorePage component has been updated. Previously, it was only considering the count returned from the API response. Now, it takes into account the length of the filteredCategories array as well. If the filteredCategories array is empty, the totalRowsCount is set to the count returned from the API response. Otherwise, it is set to the length of the results array in the API response. This change ensures that the totalRowsCount accurately reflects the number of rows in the search results, taking into account any applied filters.

Also, the condition for rendering the PaginatorComponent has been updated. Previously, it was checking if the loading state is false or the searchData array is not empty. Now, it only checks if the loading state is false and the searchData array is not empty. This change ensures that the PaginatorComponent is only rendered when the loading state is false and there are search results available.
2023-11-13 10:24:07 -03:00
anovazzi1
d4017af18f fix(tabsContext.tsx): remove unnecessary code that deletes component data from state
refactor(tabsContext.tsx): update processFlows function to handle removing flows from state
fix(extraSidebarComponent/index.tsx): remove unused code that caused bugs
fix(extraSidebarComponent/sideBarDraggableComponent/index.tsx): update deleteComponent function to remove count from item name
2023-11-10 21:26:58 -03:00
anovazzi1
0edf105607 fix(buildTrigger/index.tsx): add saveFlow function to TabsContext to save flow data before making a POST request
fix(buildTrigger/index.tsx): pass saved flow data to postBuildInit function instead of reactFlowInstance data
2023-11-10 20:32:56 -03:00
anovazzi1
aa833ee6d0 fix(from-store): remove unnecessary console.log statement
fix(from-store): fix incorrect argument in getStoreComponents function call
2023-11-10 20:18:53 -03:00
anovazzi1
e9d9891d75 fix(StorePage/index.tsx): fix key prop in MarketCardComponent to use unique identifier from item instead of index to avoid rendering issues
feat(StorePage/index.tsx): add conditional check to getSavedComponents() if hasApiKey is true to only fetch saved components when API key is available
2023-11-10 20:02:51 -03:00
anovazzi1
630fabc328 style(StorePage): refactor button element to improve readability and maintainability
fix(StorePage): fix className prop on Button component to correctly apply error styling
fix(StorePage): fix className prop on IconComponent to correctly apply loading animation
fix(StorePage): fix onClick event on IconComponent to correctly update searchText state
2023-11-10 19:38:19 -03:00
anovazzi1
e123b753e7 fix(StoreApiKeyModal): remove unnecessary description about signing up for an API key
fix(StoreApiKeyModal): remove the "Sign up" button and replace it with a text link to langflow.store
fix(StoreApiKeyModal): change the position and styling of the text link to langflow.store
fix(StoreApiKeyModal): change the "Cancel" button to be aligned with the "Save" button
fix(StoreApiKeyModal): wrap the "Save" button in a Form.Submit component for better form handling
2023-11-10 18:32:54 -03:00
Lucas Oliveira
0e9cf8e797 Refactored card component on components and flows 2023-11-09 20:52:45 -03:00
Lucas Oliveira
b3327f5ed5 Installing flows and components done 2023-11-09 20:16:27 -03:00
Lucas Oliveira
49cfbab715 Changed icons based on wether we are at the main or at the store page 2023-11-09 20:08:01 -03:00
Lucas Oliveira
8f0348a147 Removed unused API callouts and get saved components transplanted into context 2023-11-08 18:16:01 -03:00
Lucas Oliveira
00c7ff8cd3 Removed ability to clone component and flow from store 2023-11-08 17:02:38 -03:00
Lucas Oliveira
03106a3dad Added key to badge list 2023-11-08 16:25:02 -03:00
Lucas Oliveira
1e5a6d84b4 Fixed requests refreshing when updating API key 2023-11-08 16:21:47 -03:00
Lucas Oliveira
5875196594 Changed opacity of loading components 2023-11-08 16:17:54 -03:00
Lucas Oliveira
f1e197ea97 Changed tooltip when component added 2023-11-08 16:12:18 -03:00
Lucas Oliveira
e6289478f2 Fixed authorization on Add and Heart buttons 2023-11-08 16:12:18 -03:00
Lucas Oliveira
c8dc529ac3 Fixed display of paginator and results 2023-11-08 15:52:56 -03:00
Lucas Oliveira
abc708b933 Refactored Store Page (search, tags working) 2023-11-08 15:41:05 -03:00
Lucas Oliveira
066a1a263b Fixed padding on store page 2023-11-08 15:41:05 -03:00
Gabriel Luiz Freitas Almeida
5affcdf987 🔧 fix(storeContext.tsx): add missing import for checkHasApiKey function in API controller
🔧 fix(API/index.ts): add checkHasApiKey function to check if store has an API key
2023-11-07 21:10:13 -03:00
Gabriel Luiz Freitas Almeida
761a2f04e3 Update storeContext and API controller 2023-11-07 21:02:30 -03:00
Gabriel Luiz Freitas Almeida
0c882cec44 🔀 refactor(routes.tsx): use useEffect hook to redirect from root to /flows for better code organization and readability 2023-11-07 21:00:48 -03:00
Gabriel Luiz Freitas Almeida
225d6da419 🐛 fix(API/index.ts): add missing type annotations and handle null values in getStoreComponents and searchComponent functions
 feat(API/index.ts): add support for additional query parameters in getStoreComponents and searchComponent functions to enable filtering and sorting of results
🐛 fix(StorePage/index.tsx): handle null values and update searchData and totalRowsCount in StorePage component to prevent errors and ensure accurate data display
 feat(StorePage/index.tsx): add support for sorting by popularity and alphabetical order in handleOrderPage function in StorePage component
2023-11-07 15:43:52 -03:00
Gabriel Luiz Freitas Almeida
c9d22071cd 🐛 fix(API/index.ts): add return type to getStoreComponents function to improve code readability and maintainability
🐛 fix(StorePage/index.tsx): fix comment syntax error to prevent code from being commented out
🐛 fix(StorePage/index.tsx): handle undefined response in getStoreComponents promise chain to prevent errors
2023-11-07 14:39:49 -03:00
Lucas Oliveira
7811999c24 Changed response structure(savedFlows not working) 2023-11-07 14:33:49 -03:00
Gabriel Luiz Freitas Almeida
e81e1c808d 🔧 fix(API/index.ts): import missing StoreComponentResponse type to fix compilation error
🔧 fix(API/index.ts): add return type annotation to getStoreSavedComponents function for better type safety and clarity
2023-11-07 13:42:52 -03:00
anovazzi1
5a5b95afa5 refactor(StorePage/index.tsx): rename variable 'result' to 'data' for clarity and consistency
refactor(StorePage/index.tsx): handle null or undefined value for 'data.results' by assigning an empty array to 'results' variable
2023-11-07 11:34:09 -03:00
anovazzi1
71b3fd4245 fix(StorePage): update setSearchData to use res.results instead of res to fix search data not being set correctly
fix(StorePage): update setErrorApiKey to true to handle error with API key
2023-11-07 11:31:06 -03:00
cristhianzl
4b8349d131 fix(baseModal): add "smaller-h-full" size option to improve modal size flexibility
fix(exportModal): update size prop of BaseModal to "smaller-h-full" to match the new size option
2023-11-03 10:21:08 -03:00
cristhianzl
dd63dadd51 fix(extraSidebarComponent): remove unnecessary export functionality and update tooltip content to "Import" for clarity
The export functionality was removed from the ExtraSidebar component as it was not being used. The tooltip content for the button was also updated to "Import" to accurately reflect its purpose.
2023-11-02 17:28:47 -03:00
cristhianzl
805ee58254 fix(tagsSelectorComponent): reduce the gap between tags in the TagsSelector component for better visual alignment
fix(ConfirmationModal): add top margin to the confirmation button in the ConfirmationModal component to improve spacing

fix(extraSidebarComponent): change the size prop value of the ShareFlowButton component to "small-h-full" for better visual alignment

fix(extraSidebarComponent): add cursor pointer and click event to the text indicating the sharing status in the ShareFlowButton component to toggle the sharePublic state

fix(extraSidebarComponent): reduce the gap between elements in the ConfirmationModal content for better visual alignment

fix(extraSidebarComponent): change the className of the ExportModal button to "extra-side-bar-buttons" and add an onClick event to trigger the uploadFlow function

fix(extraSidebarComponent): change the className of the ExportModal button to "extra-side-bar-buttons" and add an onClick event to trigger the uploadFlow function

fix(extraSidebarComponent): change the className of the Save button in the ExtraSidebar component to "extra-side-bar-buttons" and add an onClick event to trigger the saveFlow function

fix(StorePage): remove console.log statement in the StorePage component

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class

fix(applies.css): remove unnecessary padding-bottom from the .main-page-flows-display class
2023-11-02 17:24:35 -03:00
cristhianzl
b3bb568526 feat(storeContext.tsx): add hasApiKey state and setHasApiKey function to storeContext to track if API key is present
fix(StorePage/index.tsx): fix useEffect dependencies and add missing handleChangeTab function
fix(API/index.ts): rename getNumberOfComponents function to getCountComponents to improve semantics
2023-11-02 09:57:03 -03:00
Lucas Oliveira
fad72c6e2c Added new folder on My Collection 2023-11-02 00:58:46 -03:00
Lucas Oliveira
8f2ca05055 Fixed spacing 2023-11-02 00:50:01 -03:00