Commit graph

777 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
b9231aad8f 🔥 refactor(buildTrigger): remove unused imports and ProgressBarComponent
🐛 fix(buildTrigger): handle error response from server when starting a build
The ProgressBarComponent import was removed as it was not being used. The error handling was improved to handle the case where the server returns an error response when starting a build. The error message is now displayed to the user and the build state is reset.
2023-06-21 14:53:55 -03:00
Cristhian Zanforlin Lousa
22e24226a3 Refactor buildTrigger component to use progress state instead of myValue
The buildTrigger component was updated to use progress state instead of myValue to better represent the progress of the building process. This change allowed us to make improvements in the way progress is tracked, which will improve the user experience.
2023-06-21 14:50:38 -03:00
Cristhian Zanforlin Lousa
0caab2e9ea Refactor buildTrigger event handling to handle end-of-stream event properly
This commit refactors buildTrigger event handling to ensure that end-of-stream events are handled by closing the connection without logging them.
2023-06-21 14:05:22 -03:00
Cristhian Zanforlin Lousa
7a46794f1d Update radial progress & fix build trigger log handling
- The radial progress now displays the percentage value correctly.
- In the build trigger, we now properly handle the end of a stream event and fixed an issue with the RadialProgressComponent when isBuilding is true.
2023-06-21 14:04:35 -03:00
Cristhian Zanforlin Lousa
f2abb531d4 Add RadialProgress value state, remove progressContext
This commit adds a value state to the RadialProgress component, replacing the progressContext previously used. It also removes the progressContext, as it is no longer needed.
2023-06-21 13:50:27 -03:00
Cristhian Zanforlin Lousa
da28c2e670 Merge branch 'dev' into feat/progressbar 2023-06-20 21:04:28 -03:00
Cristhian Zanforlin Lousa
c06fdb1f13 Adding daisyUI radialProgress to project 2023-06-20 20:47:05 -03:00
anovazzi1
46a30cf92e zoom out 10x bigger 2023-06-20 15:45:48 -03:00
Cristhian Zanforlin Lousa
625f22c024 Adding progress bar on build 2023-06-19 22:45:55 -03:00
Lucas Oliveira
c969bcca78 Fixed spearator 2023-06-19 19:33:07 -03:00
Gabriel Luiz Freitas Almeida
f511ddc20f Merge remote-tracking branch 'origin/main' into dev 2023-06-19 17:17:07 -03:00
Lucas Oliveira
b616e0dd42 fixed twitter link 2023-06-19 16:16:58 -03:00
Lucas Oliveira
9be559397b removed api key 2023-06-19 16:14:25 -03:00
Gabriel Luiz Freitas Almeida
825f2798c3 🐛 fix(chat.py): fix node to vertex variable name in stream_build function
 feat(chat.py): add progress logging to stream_build function
The variable node was renamed to vertex to improve semantics and consistency with the naming conventions. Progress logging was added to the stream_build function to provide feedback to the user on the progress of the build process.

🐛 fix(index.tsx): fix typo in setSuccessData function call
 feat(index.tsx): add success logging to handleBuild function
A typo in the setSuccessData function call was fixed. Success logging was added to the handleBuild function to provide feedback to the user on the success of the build process.
2023-06-19 16:03:25 -03:00
Lucas Oliveira
0dcd93ef92 added discord and twitter icons, added github stars 2023-06-19 15:45:26 -03:00
Gabriel Luiz Freitas Almeida
8a5525f465 🚀 feat(constants.tsx): add tweaks parameter to getPythonCode function to allow for customization of flow behavior
The `getPythonCode` function now accepts a `tweaks` parameter which is used to customize the behavior of the flow. The `buildTweaks` function is called to generate the `tweaks` object which is then passed to the `load_flow_from_json` function. This allows for more flexibility in the usage of the flow.
2023-06-19 14:24:48 -03:00
Gabriel Luiz Freitas Almeida
5ea20aa2f0 🔨 refactor(constants.tsx): remove unnecessary indentation in getPythonCode function
The indentation of the commented line in the getPythonCode function was unnecessary and has been removed to improve code readability.
2023-06-19 10:55:18 -03:00
dependabot[bot]
7111bee8db
build(deps-dev): bump vite from 4.3.5 to 4.3.9 in /src/frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.3.5 to 4.3.9.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.3.9/packages/vite)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-18 12:05:35 +00:00
Gabriel Luiz Freitas Almeida
7d7986c5bd 🔥 chore(frontend): remove prepare-commit-msg git hook
The prepare-commit-msg git hook was removed from the frontend directory. This hook was not being used and was not necessary for the project's development workflow.
2023-06-16 19:57:33 -03:00
Gabriel Luiz Freitas Almeida
f71e7d1f7a 🔥 chore(frontend): remove prepare-commit-msg git hook
The prepare-commit-msg git hook was removed from the frontend directory. This hook was not being used and was not necessary for the project's development workflow.
2023-06-16 19:56:09 -03:00
Gabriel Luiz Freitas Almeida
c7cbb40c36 format: run make format 2023-06-16 18:54:18 -03:00
Gabriel Luiz Freitas Almeida
28a902ec15 🚀 chore(MainPage): use constant for header text in user projects section
The changes in headerComponent remove unused imports and update the header text to use a constant instead of a hardcoded string. The constant is added in constants.tsx. The MainPage component is updated to use the constant for the header text in the user projects section. This improves code readability and maintainability.
🎨 style(headerComponent): remove unused imports and update header text to use constant
 feat(constants.tsx): add constant for header text in user projects section
2023-06-16 18:39:06 -03:00
anovazzi1
e1e5fb14c9 refactor(typesContext.tsx): reverse the order of keys in the types object to avoid overlap with tool world
The keys in the types object were reversed to avoid overlap with the tool world. This was done by modifying the reduce function in the TypesProvider component.
2023-06-16 18:20:06 -03:00
anovazzi1
20b19967da Merge branch 'db' of personal:logspace-ai/langflow into db 2023-06-16 17:52:43 -03:00
anovazzi1
ad6756c06c refactor(chatModal): replace react-icons with lucide-react icons for better performance and smaller bundle size 2023-06-16 17:52:21 -03:00
Gabriel Luiz Freitas Almeida
0686626303 Merge branch 'db' of https://github.com/logspace-ai/langflow into db 2023-06-16 17:25:20 -03:00
Rodrigo Nader
c9c226f464 Refactor the search placeholder and update the collections description
Update the search placeholder to be more general, from 'Search Nodes' to 'Search', in the extra sidebar component, and update the collection description from 'Download or upload your complete project collection' to 'Download or upload your collection' in the main page.
2023-06-16 17:23:29 -03:00
Gabriel Luiz Freitas Almeida
4d209ca21f 🐛 fix(constants.tsx): correct typo in API URL path
The API URL path was incorrectly spelled as "/ap1/v1/predict" instead of "/api/v1/predict". This commit fixes the typo to ensure that the correct API endpoint is used.
2023-06-16 17:23:01 -03:00
Rodrigo Nader
39707f9f80 Refactor error message for build trigger component
Changed the error message in the build trigger component to clarify which components need to be checked before retrying. Updated the list to include instructions on how to inspect the component status.
2023-06-16 17:19:49 -03:00
anovazzi1
cad24f1f88 fix(chatComponent): add isBuilt dependency to useEffect hook to avoid stale closure and improve performance 2023-06-16 17:16:36 -03:00
anovazzi1
eed33f490c feat(App.tsx, FlowPage/index.tsx): add version number to the footer of the app to show the current version of LangFlow
refactor(App.tsx): remove redundant code that initializes the version state variable and fetches the version number from the API in FlowPage component instead
2023-06-16 16:27:13 -03:00
anovazzi1
036118011b comment projects on dropdown component 2023-06-16 16:23:35 -03:00
Gabriel Luiz Freitas Almeida
46c998be33 🎨 style(menuBar): refactor menu bar to improve readability and add new option
The menu bar has been refactored to improve readability and make it easier to add new options in the future. A new option has been added to create a new flow. The "Edit" label has been changed to "Options" to better reflect the purpose of the dropdown menu.
2023-06-16 16:10:54 -03:00
anovazzi1
31ee0c7609 fix(exportModal): set initial state of checked to false instead of true
refactor(utils.ts): remove console.log statement and simplify if statement in removeApiKeys function
2023-06-16 16:05:19 -03:00
anovazzi1
cb5b58b7e4 update remove api key function 2023-06-16 15:54:25 -03:00
Gabriel Luiz Freitas Almeida
93d1c10888 🎨 style(index.css): reformat CSS file to improve readability and consistency
The CSS file has been reformatted to improve readability and consistency. The changes include indentation, whitespace, and line breaks. No functional changes have been made to the code.
2023-06-16 14:01:31 -03:00
Lucas Oliveira
2093a23547 Git button redirecting to new tab 2023-06-16 13:37:17 -03:00
anovazzi1
6abe1e6ba9 fix(alertContext.tsx): prevent empty titles from being added to notification center in setErrorData, setNoticeData and setSuccessData functions 2023-06-16 13:11:55 -03:00
anovazzi1
b47f6aa326 refactor(frontend): add isBuilding state to SSEContext and use it in GenericNode and BuildTrigger components
The isBuilding state was added to the SSEContext to keep track of whether a build is currently in progress. This state was then used in the GenericNode and BuildTrigger components to conditionally render certain elements based on whether a build is in progress or not.
2023-06-16 13:03:38 -03:00
Gabriel Luiz Freitas Almeida
568813f9da feat(tabsContext.tsx): add functions to generate random names and descriptions for new flows
🐛 fix(utils.ts): fix import statement for ADJECTIVES, DESCRIPTIONS, and NOUNS constants
The constants.tsx file now contains arrays of adjectives, nouns, and descriptions that can be used to generate random names and descriptions for new flows. The tabsContext.tsx file now has functions that use these arrays to generate random names and descriptions for new flows. The utils.ts file has been updated to fix the import statement for the ADJECTIVES, DESCRIPTIONS, and NOUNS constants.
 feat(constants.tsx): add arrays of adjectives, nouns, and descriptions for generating random names and descriptions
2023-06-16 09:38:11 -03:00
Lucas Oliveira
1ecc1247e7 Fixed bug where we cannot move the nodes, removed unused console.logs 2023-06-16 08:37:16 -03:00
Rodrigo Nader
e34587703b Improve chat and build trigger buttons color and shadows
- The code changes consist of modifying the CSS classes of the chat and build trigger buttons, adjusting the hover effects, shadows and icon colors to make them more visually appealing.
2023-06-16 01:43:40 -03:00
Cristhian Zanforlin Lousa
7a6472f103 Merge branch 'db' of https://github.com/logspace-ai/langflow into db 2023-06-15 21:37:27 -03:00
Cristhian Zanforlin Lousa
f61d76cfac rollback position of icons 2023-06-15 21:37:24 -03:00
Gabriel Luiz Freitas Almeida
eede3ac0e6 ♻️ refactor(index.ts): remove unused imports from index.ts
The imports for ForwardRefExoticComponent, ReactElement, ReactFragment, ReactNode, and SVGProps were not being used in the file, so they were removed to improve code readability and maintainability.
2023-06-15 20:48:45 -03:00
Cristhian Zanforlin Lousa
1b0c173f39 Merge branch 'db' of https://github.com/logspace-ai/langflow into db 2023-06-15 19:38:16 -03:00
Cristhian Zanforlin Lousa
1af91d7ac0 Changing icons position and layout 2023-06-15 19:38:12 -03:00
Gabriel Luiz Freitas Almeida
dc8d2362fc Merge branch 'db' of https://github.com/logspace-ai/langflow into db 2023-06-15 18:17:18 -03:00
Gabriel Luiz Freitas Almeida
9909416694 📝 docs(constants.tsx): add documentation for TWEAKS constant
The TWEAKS constant is a dictionary that can be used to tweak the flow. It is an optional parameter that can be passed to the run_flow function. The dictionary should be in the format {"OpenAI-XXXXX": {"model_name": "gpt-4"}}. This commit adds documentation to the code to make it easier for developers to understand how to use the TWEAKS constant.
2023-06-15 18:14:23 -03:00
anovazzi1
3d2632aa5f refactor(PageComponent): refactor setTabsState calls to use tabId instead of flow.id to improve semantics and avoid bugs 2023-06-15 18:12:55 -03:00