Commit graph

5,957 commits

Author SHA1 Message Date
anovazzi1
43c80da141 format code 2023-10-26 16:37:50 -03:00
anovazzi1
95af78ef08 refactor(market-card.tsx): remove unused handleFork function to improve code readability and maintainability
feat(market-card.tsx): add setErrorData function to alertContext to handle error messages when adding a component
feat(market-card.tsx): add setSuccessData function to alertContext to display success message when adding a component
2023-10-26 16:36:45 -03:00
anovazzi1
4775cd1d95 fix(market-card.tsx): fix import statement for storeComponent type
feat(market-card.tsx): add ShadTooltip component for displaying tooltips on market card
fix(index.tsx): fix import statement for storeComponent type
feat(index.tsx): change data and dataSelect state types to storeComponent[]
fix(index.tsx): add missing properties to storeComponent type
fix(styleUtils.ts): add missing import statement for Heart and ToyBrick icons
2023-10-26 16:26:25 -03:00
Gabriel Luiz Freitas Almeida
44b90b36d7 🐛 fix(service.py): remove unnecessary fields from params to improve performance and reduce payload size
 feat(service.py): remove page and limit params to retrieve all results instead of a limited number of results
2023-10-26 15:53:24 -03:00
Gabriel Luiz Freitas Almeida
5a54fa74fe 🔧 fix(schema.py): add 'downloads_count' field to ComponentResponse, ListComponentResponse, and DownloadComponentResponse models to track the number of downloads for each component 2023-10-26 15:50:15 -03:00
Gabriel Luiz Freitas Almeida
654a1de6c6 🔧 fix(store.py): flatten the tags in the list_components response to match the schema
🔧 fix(store.py): add user_created.id field to the list_components response to match the schema
🔧 fix(store.py): add count(downloads) field to the list_components response to match the schema
🔧 fix(store.py): add tags_id field to the TagsIdResponse schema to match the response structure
🔧 fix(service.py): add user_created.first_name and user_created.id fields to the list_components query to match the schema
🔧 fix(service.py): add count(downloads) field to the list_components query to match the schema
2023-10-26 15:48:42 -03:00
Gabriel Luiz Freitas Almeida
d0f121e662 🔧 fix(store.py): add "metadata" field to the list of requested fields in the list_components function to include metadata in the response
🔧 fix(schema.py): add "metadata" field to the ComponentResponse, ListComponentResponse, DownloadComponentResponse, and StoreComponentCreate models to support metadata in the store component data
🔧 fix(service.py): add "metadata" field to the list of requested fields in the StoreService class to include metadata in the query parameters
2023-10-26 15:25:54 -03:00
anovazzi1
b3a8be547f fix(StorePage/index.tsx): handle error when fetching saved components and display error message
feat(StorePage/index.tsx): add error handling for API key fetch and display error message
2023-10-26 15:19:32 -03:00
Gabriel Luiz Freitas Almeida
2427bda690 🔄 refactor(schema.py): change liked_by_count type from List[UUID] to int for better consistency and readability 2023-10-26 15:19:11 -03:00
Gabriel Luiz Freitas Almeida
4e62f02226 🐛 fix(service.py): fix typo in params["filter"] assignment
 feat(service.py): add support for filtering by user_created field and limit the results to 100
 feat(service.py): add support for fetching additional fields in the response for better data retrieval
2023-10-26 15:13:22 -03:00
Gabriel Luiz Freitas Almeida
5a8ba5f0db 🐛 fix(service.py): remove unnecessary try-except block and return statement to improve code readability and maintainability 2023-10-26 14:45:49 -03:00
Gabriel Luiz Freitas Almeida
6615bf3b03 🔧 fix(store.py): import UsersLikesResponse in store.py to resolve import error
 feat(store.py): add new endpoint to get list of components liked by a user
🔧 fix(schema.py): add UsersLikesResponse schema to define the response structure for the new endpoint
🔧 fix(service.py): add get_user_likes method to retrieve the list of components liked by a user from the store API
2023-10-26 11:46:42 -03:00
Gabriel Luiz Freitas Almeida
acc6cd6e4e 🐛 fix(service.py): handle JSONDecodeError when response does not contain data field to prevent server error
 feat(service.py): return ComponentResponse with component_dict when response does not contain data field to provide consistent response format
2023-10-26 11:31:35 -03:00
Gabriel Luiz Freitas Almeida
d11b199ca4 🔧 fix(store.py): update attribute name from "user_created.name" to "user_created.first_name" to reflect correct data structure
🔧 fix(store.py): remove unnecessary code and comments
2023-10-26 10:15:35 -03:00
Gabriel Luiz Freitas Almeida
d664131e6c 🔧 fix(__main__.py): add 'store' parameter to update_settings function to enable/disable store feature
 feat(__main__.py): add 'store' option to the run command to enable/disable store feature
🔧 fix(store.py): add check_if_store_is_enabled endpoint to check if store feature is enabled
 feat(store.py): add get_tags endpoint to retrieve tags from the store
🔧 fix(base.py): add STORE setting to enable/disable store feature
🔧 fix(schema.py): rename 'likes_count' field to 'liked_by_count' in ComponentResponse and ListComponentResponse
🔧 fix(service.py): change default sorting in query_components function to sort by 'count(liked_by)'
 test(test_store.py): update sort parameter in test_search_components to 'count(liked_by)'
2023-10-25 23:12:23 -03:00
Gabriel Luiz Freitas Almeida
785e8a6436 🔧 fix(store.py): add count_components endpoint to retrieve the count of components in the store
🔧 fix(service.py): modify count_components method to make api_key optional and add filter_by_user parameter to filter components by user
2023-10-25 22:23:13 -03:00
Gabriel Luiz Freitas Almeida
3934096e06 🔥 refactor(store.py): remove count_components endpoint
The count_components endpoint was removed as it was no longer being used and served no purpose in the API.
2023-10-25 22:03:22 -03:00
Gabriel Luiz Freitas Almeida
31fb76c992 🐛 fix(store.py): change function name from query_components to count_components to improve semantics and accurately count components
 feat(service.py): add count_components method to StoreService class to count components based on filter criteria
2023-10-25 21:50:06 -03:00
Gabriel Luiz Freitas Almeida
c9b77ec9db 🔧 fix(store.py): change list_components function name to query_components for better semantics and consistency
 feat(store.py): add `count_components` endpoint to get the count of components based on filter criteria
🔧 fix(service.py): modify `query_components` function to return a list of dictionaries when `count` parameter is True
2023-10-25 21:47:39 -03:00
anovazzi1
fd4aa3648a fix(tabsContext.tsx): remove console.log statements for debugging
feat(market-card.tsx): add success alert when flow is installed
2023-10-25 19:58:27 -03:00
anovazzi1
6d5c803c17 fix(tabsContext.tsx): fix typo in createRandomKey function parameter name from uid to uid()
feat(tabsContext.tsx): add createRandomKey function to generate random keys for custom components
refactor(tabsContext.tsx): refactor logic to update storeComponents object with new custom component data
refactor(tabsContext.tsx): refactor logic to update newData object with updated custom_components object
refactor(tabsContext.tsx): refactor logic to correctly concatenate newFlows array in addFlowToLocalState function
refactor(tabsContext.tsx): refactor logic to generate random key for component type in updateComponentType function
feat(utils.ts): add createRandomKey function to generate random keys for components
2023-10-25 19:49:39 -03:00
Lucas Oliveira
cbbfa3517f fixed input on mobile 2023-10-25 19:48:24 -03:00
Lucas Oliveira
3d6227d881 Fixed header 2023-10-25 19:45:04 -03:00
Lucas Oliveira
0d55ce9f06 Added skeleton on store loading 2023-10-25 19:19:45 -03:00
anovazzi1
02e1f8a82e fix(tabsContext.tsx): fix component key generation to include unique identifier to avoid conflicts
fix(extraSidebarComponent/index.tsx): fix sorting of sidebar items to be case-sensitive
fix(utils.ts): update regex pattern to remove count from string and sort function to handle alphanumeric identifiers
2023-10-25 19:08:35 -03:00
anovazzi1
a718ac2f4b fix(tabsContext.tsx): change return type of saveComponent function to Promise<String | undefined> for better error handling and consistency
fix(nodeToolbarComponent/index.tsx): fix saveComponent function call to return a Promise and handle success and error cases properly
fix(types/tabs/index.ts): change return type of saveComponent function to void for consistency with implementation
feat(reactflowUtils.ts): add updateComponentNameAndType function to update component name and type
2023-10-25 18:31:45 -03:00
Gabriel Luiz Freitas Almeida
b006f11a3d 🐛 fix(service.py): simplify the filter condition for retrieving public components 2023-10-25 18:07:49 -03:00
Gabriel Luiz Freitas Almeida
bb05c6cd46 🐛 fix(service.py): increase default limit value from 10 to 15 to retrieve more components per page
🐛 fix(service.py): fix duplicate assignment in filter parameter to correctly filter public and Public components
2023-10-25 18:05:42 -03:00
Gabriel Luiz Freitas Almeida
7d4e3e2614 🐛 fix(service.py): update filter logic to include components with status "Public" in addition to "public" 2023-10-25 18:04:22 -03:00
anovazzi1
1ba97aedcb fix(market-card.tsx): fix useEffect dependency array to depend on savedFlows instead of added to ensure correct behavior
feat(index.tsx): increase the number of components fetched from the store from 10 to 1000 to improve user experience
2023-10-25 17:31:53 -03:00
anovazzi1
373551ab57 update package lock 2023-10-25 14:13:10 -03:00
anovazzi1
9ae903150a Merge branch 'bugFixes' into feature/store 2023-10-25 14:06:06 -03:00
anovazzi1
a9a1316183 chore(tabsContext.tsx): import cloneDeep function from lodash to improve code readability and maintainability
fix(tabsContext.tsx): fix comment typo
fix(tabsContext.tsx): add missing semicolon to improve code consistency
fix(tabsContext.tsx): clone edge data object to prevent mutation of original object
refactor(PageComponent/index.tsx): remove unnecessary comment
2023-10-25 13:50:43 -03:00
anovazzi1
af996b171b fix(reactflowUtils.ts): comment out the line that deselects nodes after ungrouping to keep them selected 2023-10-25 13:37:59 -03:00
anovazzi1
64bdab071d fix(tabsContext.tsx): temporarily comment out the processFlowNodes function call to prevent node update 2023-10-25 12:05:36 -03:00
Gabriel Luiz Freitas Almeida
3a21f6092a 🔧 chore(service.py): add support for filtering components by user_created field
🔧 chore(service.py): add support for filtering components by user_created field when filter_by_user flag is set to True, otherwise filter by status field
2023-10-25 11:51:40 -03:00
Gabriel Luiz Freitas Almeida
e15d38e8d2 🐛 fix(store.py): decrypt store API key before using it to improve security
 feat(store.py): add support for optional store API key to handle cases where user does not have a store API key set
🔧 chore(store.py): remove unnecessary dependency injection for settings_service in create_component, list_components, read_component, and search_endpoint functions
2023-10-25 11:51:02 -03:00
Gabriel Luiz Freitas Almeida
732fd4767f 🐛 fix(service.py): remove unused parameter 'filter_by_user' from download method to improve code readability and maintainability 2023-10-25 11:06:15 -03:00
Gabriel Luiz Freitas Almeida
d1c4af8c7d 🐛 fix(store.py): add filter_by_user parameter to list_components and read_component functions to filter components by user
 feat(store.py): add support for filtering components by user in the list_components and read_component functions
🐛 fix(service.py): add filter_by_user parameter to list_components function in StoreService class to filter components by user
2023-10-24 22:50:42 -03:00
anovazzi1
8c4b88a49a fix(market-card.tsx): remove duplicate setLoading(true) call in handleAdd function to prevent unnecessary loading state changes 2023-10-24 21:03:13 -03:00
anovazzi1
6ccb166417 fix(market-card.tsx): change import statement to include useEffect from react to fix missing dependency warning
feat(market-card.tsx): add useEffect hook to set the initial value of 'added' state based on whether the flow is already saved or not
feat(market-card.tsx): add logic to handleInstall function to check if flowData.current exists before adding flow
feat(market-card.tsx): add logic to handleInstall function to fetch component data and create a new flow if flowData.current is null
2023-10-24 21:00:11 -03:00
anovazzi1
d468f40fb6 fix(contexts/index.tsx): move import statement for StoreProvider to the correct position for better organization
fix(contexts/storeContext.tsx): change the type of savedFlows state from an object to a Set to improve data structure
fix(controllers/API/index.ts): add a new function getStoreSavedComponents to fetch saved components from the store
fix(pages/StorePage/components/market-card.tsx): use the savedFlows state from StoreContext to determine if a component is added to the store
fix(pages/StorePage/index.tsx): add a new function getSavedComponents to fetch saved components from the store and update the savedFlows state in StoreContext
fix(types/contexts/store.ts): change the type of savedFlows state in storeContextType from an object to a Set for better data structure
2023-10-24 20:47:56 -03:00
anovazzi1
768a7cd754 feat(contexts): add StoreProvider to ContextWrapper to provide store context to components
fix(storeContext.tsx): fix typo in function name, change storeProvider to StoreProvider for consistency and clarity
2023-10-24 20:10:29 -03:00
anovazzi1
5222775c56 feat(storeContext): add storeContext to manage and share user components and their updates
feat(storeContext): create storeProvider component to provide the store context to child components
feat(storeContext): define storeContextType to specify the shape of the store context data
2023-10-24 20:07:42 -03:00
anovazzi1
7c177a9930 feat(market-card.tsx): add loading state to MarketCardComponent to show loading spinner when adding flow
fix(market-card.tsx): fix typo in cloneFlowWithParent function call
fix(market-card.tsx): set loading state to false after flow is successfully saved
fix(market-card.tsx): set loading state to true when Add to Account button is clicked
fix(market-card.tsx): add animate-spin class to IconComponent when loading state is true
fix(market-card.tsx): change button text to "Install Locally" when flow is already added
feat(styleUtils.ts): add Loader2 icon from lucide-react library
2023-10-24 19:38:47 -03:00
Gabriel Luiz Freitas Almeida
ed8acfb8af 🔥 refactor(flows.py): remove unused session dependency in read_flows function 2023-10-24 18:52:44 -03:00
Gabriel Luiz Freitas Almeida
dde22bd35f 🔧 fix(store.py): add filter_by_user query parameter to read_component endpoint to allow filtering components by user
🔧 fix(service.py): modify download method in StoreService to include filter_by_user parameter in API request to filter components by user
2023-10-24 18:51:30 -03:00
anovazzi1
ba8399a0de feat(market-card.tsx): add useContext, useRef, and useState imports to improve code readability and maintainability
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
feat(market-card.tsx): add support
2023-10-24 18:27:14 -03:00
anovazzi1
7411435924 fix(modals): change single quotes to double quotes for consistency in StoreApiKeyModal component
feat(modals): add support for storing API key in StoreApiKeyModal component
fix(pages): add missing imports and state hook in MarketCardComponent
feat(pages): update button text and functionality in MarketCardComponent
fix(pages): update label text in StorePage component
fix(utils): add missing imports for GitBranchPlus and BookmarkPlus icons in styleUtils
2023-10-24 18:11:09 -03:00
cristhianzl
af54fa3cca refactor(StorePage): replace console.log with setSearchData to update search data in the component state
The console.log statement was replaced with setSearchData to update the search data in the component state. This change improves the functionality of the StorePage component by correctly updating the search data when a search is performed.
2023-10-24 17:57:47 -03:00