Commit graph

130 commits

Author SHA1 Message Date
cristhianzl
d250bf868b fix(headerComponent): handle case where stars is null by displaying 0 instead to prevent rendering issues 2024-01-11 09:52:02 -03:00
cristhianzl
2899eacdc9 lock 2024-01-10 22:49:04 -03:00
cristhianzl
3babfedc05 lock 2024-01-10 11:04:09 -03:00
Lucas Oliveira
6a6d11447b Get types done at App.tsx and fixed handle position 2024-01-05 18:13:51 -03:00
cristhianzl
beb0223605 chore(package.json): add zustand package as a dependency to the frontend package.json file
fix(codeTabsComponent): remove unused imports and update import for FlowsContext

fix(headerComponent): remove unused imports and update import for FlowsContext, useDarkStore, and remove darkContext

fix(tagsSelectorComponent): remove unused import and update import for useDarkStore

refactor(darkStore): move darkContext functionality to a separate zustand store called darkStore

refactor(index.tsx): remove import for darkContext and DarkProvider

fix(codeAreaModal): remove unused imports and update import for useDarkStore

feat(darkStore): add zustand store for managing dark mode state, stars count, and gradient index

feat(darkStore): fetch and set stars count from API in darkStore

feat(darkStore): generate and set random gradient index in darkStore

feat(darkStore): add updateDark, updateStars, and updateGradientIndex actions to darkStore

feat(darkStore): initialize dark mode state, stars count, and gradient index in darkStore

feat(darkStore): fetch and set stars count from API in darkStore

feat(darkStore): generate and set random gradient index in darkStore

feat(darkStore): add updateDark, updateStars, and updateGradientIndex actions to darkStore

feat(darkStore): initialize dark mode state, stars count, and gradient index in darkStore
2024-01-04 11:17:09 -03:00
Gabriel Luiz Freitas Almeida
df443d7986 Add pretty-quick package for code formatting 2023-12-20 08:17:46 -03:00
Gabriel Luiz Freitas Almeida
a0cf3c3a02
Update frontend dependencies (#1198) 2023-12-11 15:10:34 -03:00
Gabriel Luiz Freitas Almeida
c59f87c420 🔒 chore(frontend): update @adobe/css-tools to version 4.3.2 for security and bug fixes
🔒 chore(frontend): update @babel/code-frame to version 7.23.5 for bug fixes
🔒 chore(frontend): update @babel/generator to version 7.23.6 for bug fixes
🔒 chore(frontend): update @babel/helper-string-parser to version 7.23.4 for bug fixes
🔒 chore(frontend): update @babel/highlight to version 7.23.4 for bug fixes
🔒 chore(frontend): update @babel/parser to version 7.23.6 for bug fixes
🔒 chore(frontend): update @babel/traverse to version 7.23.6 for bug fixes
🔒 chore(frontend): update @babel/types to version 7.23.6 for bug fixes
🔒 chore(frontend): update vite to version 4.5.1 for bug fixes

⬆️ chore(frontend): update dependencies

- Update `@babel/code-frame` from version 7.22.13 to 7.23.5
- Update `@babel/generator` from version 7.23.3 to 7.23.6
- Update `@babel/helper-string-parser` from version 7.22.5 to 7.23.4
- Update `@babel/highlight` from version 7.22.20 to 7.23.4
- Update `@babel/parser` from version 7.23.3 to 7.23.6
- Update `@babel/traverse` from version 7.23.3 to 7.23.6
- Update `@babel/types` from version 7.23.3 to 7.23.6
- Update `vite` from version 4.5.0 to 4.5.1

These updates include bug fixes, performance improvements, and new features.
2023-12-11 15:09:07 -03:00
dependabot[bot]
1cbe3b49e4
chore(deps-dev): bump vite from 4.5.0 to 4.5.1 in /src/frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.1/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-07 18:29:16 +00:00
anovazzi1
15c4532e5b feat(exportModal): add version field to exported flow data
The version field is added to the exported flow data in order to keep track of the version of the flow. This allows for better management and identification of different versions of the flow.

fix(exportModal): fetch and set version from API

The version is fetched from the API using the `getVersion` function and then set in the state variable `version` using the `setVersion` function. This ensures that the correct version is used when exporting the flow.

feat(flow): add version field to FlowType

The `FlowType` interface is updated to include a `version` field. This allows for storing and retrieving the version of the flow when needed.
2023-11-16 17:19:44 -03:00
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
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
066a1a263b Fixed padding on store page 2023-11-08 15:41:05 -03:00
anovazzi1
125d5c5152 chore(stackedComponents): update transform value in ElementStack component to improve visual positioning
refactor(market-card): remove unused code and console.log statements

fix(market-card): update saveFlowStore function to pass an array of tag ids instead of tag names

refactor(market-card): sort tags in ascending order of name length in the MarketCardComponent

refactor(market-card): update tag rendering in MarketCardComponent to use tag names instead of tag objects

refactor(market-card): remove commented out code and unused imports

refactor(market-card): update tag rendering in ShadTooltip component to use tag names instead of tag objects

refactor(market-card): update tag rendering in Button component to use tag names instead of tag objects

refactor(market-card): remove commented out code and unused imports

refactor(store/index): update tags property in storeComponent type to be an array of objects with id and name properties
2023-10-30 14:53:10 -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
anovazzi1
373551ab57 update package lock 2023-10-25 14:13:10 -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
anovazzi1
79cdcaf19a fix(typesContext.tsx): update component type key to match newKey value for consistency and clarity 2023-10-19 20:09:14 -03:00
anovazzi1
b78f17f9b0 update package lock 2023-10-19 15:22:34 -03:00
anovazzi1
92a109b65c Merge remote-tracking branch 'origin/dev' into saveComponent 2023-10-18 18:23:34 -03:00
anovazzi1
68e76dce41 chore(run-tests.sh): add installation of playwright if not already installed 2023-10-18 14:46:53 -03:00
anovazzi1
cba92c10b4 fix(typesContext.tsx): prevent wrong overwriting of component template by a group of the same type
refactor(reactflowUtils.ts): remove unused code that was causing a syntax error
2023-10-16 17:02:37 -03:00
anovazzi1
4b04aadd1d fix(nodeToolbarComponent): add missing useContext import for TabsContext
fix(reactflowUtils): add missing return statement in updateIds function
feat(nodeToolbarComponent): update expandGroupNode function to update ids of proxy nodes and edges before expanding group node
2023-10-16 14:50:40 -03:00
anovazzi1
f0c64112ea Merge branch 'dev' into saveComponent 2023-10-11 16:13:11 -03:00
anovazzi1
06c7328012 update makeFiles 2023-10-10 19:47:09 -03:00
anovazzi1
f7534516ef create shell scripts to run frontend test 2023-10-09 17:04:07 -03:00
anovazzi1
98afa2192b update poetry lock and package-lock 2023-10-06 15:46:00 -03:00
anovazzi1
88d91c48d8 Merge remote-tracking branch 'origin/dev' into NGNMergeDev 2023-10-06 15:41:42 -03:00
anovazzi1
56fce07318 refactor(reactflowUtils.ts): simplify logic for adding edges to selection in validateSelection function
fix(reactflowUtils.ts): filter edges in validateSelection function based on nodes in the selection to ensure only connected edges are added
2023-10-05 19:51:16 -03:00
anovazzi1
c67d7da5e2 fix(typesContext.tsx): import Edge from reactflow to fix missing type declaration
feat(typesContext.tsx): add deleteEdge function to typesContext to delete edges from reactFlowInstance
fix(PageComponent/index.tsx): add deleteEdge function to delete selected edges from typesContext
2023-10-03 19:46:22 -03:00
anovazzi1
3abbd5c5e4 refactor(sideBarDraggableComponent): remove unused useRef and useState hooks to simplify code
feat(sideBarDraggableComponent): add right-click functionality to open the select menu for additional options
2023-10-03 17:19:20 -03:00
anovazzi1
6e60a4b859 update node packages 2023-10-02 16:11:14 -03:00
anovazzi1
b19565385b fix paste function 2023-10-02 15:18:58 -03:00
Cristhian Zanforlin Lousa
4e613117d6 🚀 chore(package.json): update reactflow package version to 11.9.2 for bug fixes and improvements
🐛 fix(dictAreaModal/index.tsx): prevent delete Node and close modal when user presses backspace key to improve user experience
2023-09-27 19:19:04 -03:00
anovazzi1
41d18edc97 update package lock json 2023-09-26 10:46:55 -03:00
Gabriel Luiz Freitas Almeida
05b1f3658e 🔧 chore(frontend): add newline at the end of package-lock.json file to adhere to coding conventions 2023-09-22 14:05:46 -03:00
Gabriel Luiz Freitas Almeida
78ecb4c341 Merge remote-tracking branch 'origin/dev' into celery 2023-09-22 12:53:05 -03:00
anovazzi1
f63a19578b update lock file 2023-09-21 21:28:19 -03:00
anovazzi1
b2f14793e3 migrate progress and install playwrite 2023-09-20 19:53:25 -03:00
anovazzi1
3305983cc4 refactor(reactflowUtils.ts): extract duplicated code into a helper function to improve readability and maintainability
fix(reactflowUtils.ts): fix typo in function name scapedJSONStringfy to escapedJSONStringify
fix(reactflowUtils.ts): fix typo in function name customStringify to escapedJSONStringify
feat(reactflowUtils.ts): add inputTypes property to targetHandleType to improve functionality and accuracy of handle connection check
2023-09-18 18:21:09 -03:00
Cristhian Zanforlin Lousa
0838baa50a merge dev 2023-09-17 10:32:45 -03:00
anovazzi1
9647fe0b69 fix bug on infinity icon 2023-09-14 21:17:23 -03:00
Cristhian Zanforlin Lousa
887bfb8ee7 🐛 fix(genericModal/index.tsx): close modal when template has no variables to prevent user confusion 2023-09-13 21:42:26 -03:00
anovazzi1
249cf833fa fix(AdminPage/index.tsx): fix asynchronous handling of updateUser function to properly reset filter and set success data after user update
fix(styleUtils.ts): fix import statement for GradientSparkles component to use curly braces for named import
2023-09-11 18:46:50 -03:00
anovazzi1
7bdaa1bca6 copy package-lock from dev to avoid dependencie erro 2023-09-10 21:23:18 -03:00
anovazzi1
db4bb0c822 Merge remote-tracking branch 'origin/dev' into newGroupNode 2023-09-10 19:54:28 -03:00
anovazzi1
e22f3acf8c fix(DisclosureComponent): remove commented out code and fix missing icon bug
feat(PageComponent): add selection menu component and onClick event handler for debugging purposes
2023-09-08 17:48:44 -03:00
Cristhian Zanforlin Lousa
afc1888d73 🎨 style(dictAreaModal): update BaseModal size prop value to "medium-h-full" for better UI layout 2023-09-08 10:00:59 -03:00
Cristhian Zanforlin Lousa
1beca4ed12 📦 chore(frontend): add react18-json-view package to package.json dependencies
🎨 style(App.css): reformat CSS code for better readability and consistency
🚀 feat(App.css): add styles for json-view component
🔨 refactor(parameterComponent): extract DictComponent to a separate file for reusability
🔧 chore(constants): add constant for CODE_DICT_DIALOG_SUBTITLE
🔨 refactor(EditNodeModal): extract DictComponent to a separate file for reusability
🔧 chore(constants): add constant for CODE_DICT_DIALOG_SUBTITLE
🔨 refactor(codeAreaModal): remove unused isTweakPage variable

🚀 feat(dictAreaModal): add DictAreaModal component to allow editing of dictionaries
🔧 chore(styleUtils.ts): import and add BookMarked icon to nodeIconsLucide for future use
2023-09-04 20:15:23 -03:00