Commit graph

3,448 commits

Author SHA1 Message Date
Lucas Oliveira
45673dcda8
Remove hard-coded colors and unnecessary dark classes (#636)
Change hard coded colors to langflow constants colors
2023-07-25 10:09:12 -03:00
Lucas Oliveira
c009602b57
Adding Retry Interceptor for Failed Requests and Endpoint Display (#679)
This pull request introduces a new feature that enhances the error
handling and user experience in our React application. It implements an
interceptor to automatically retry failed requests and provides a clear
display of the failing endpoint to the user.

Changes Made:

Added a new interceptor to the Axios HTTP client in our React
application.
The interceptor detects failed requests and automatically retries them
based on a predefined retry count.
When a request fails, the interceptor captures the failing endpoint and
stores it.
Modified the user interface to display a user-friendly error message
indicating the failing endpoint.
Enhanced error handling to provide detailed information and better user
feedback.
2023-07-25 10:08:50 -03:00
Lucas Oliveira
812f5d2961 Styling fixes 2023-07-25 10:08:11 -03:00
Lucas Oliveira
bfbe66a547 Merge branch 'dev' into interceptor-dev 2023-07-25 10:07:34 -03:00
Lucas Oliveira
5bf99d11b4
build(deps): bump word-wrap from 1.2.3 to 1.2.5 in /src/frontend (#682)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3
to 1.2.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jonschlinkert/word-wrap/releases">word-wrap's
releases</a>.</em></p>
<blockquote>
<h2>1.2.5</h2>
<p><strong>Changes</strong>:</p>
<p>Reverts default value for <code>options.indent</code> to two spaces
<code>' '</code>.</p>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.4...1.2.5">https://github.com/jonschlinkert/word-wrap/compare/1.2.4...1.2.5</a></p>
<h2>1.2.4</h2>
<h2>What's Changed</h2>
<ul>
<li>Remove default indent by <a
href="https://github.com/mohd-akram"><code>@​mohd-akram</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/24">jonschlinkert/word-wrap#24</a></li>
<li>🔒fix: CVE 2023 26115 (2) by <a
href="https://github.com/OlafConijn"><code>@​OlafConijn</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/41">jonschlinkert/word-wrap#41</a></li>
<li>🔒 fix: CVE-2023-26115 by <a
href="https://github.com/aashutoshrathi"><code>@​aashutoshrathi</code></a>
in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/33">jonschlinkert/word-wrap#33</a></li>
<li>chore: publish workflow by <a
href="https://github.com/OlafConijn"><code>@​OlafConijn</code></a> in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/42">jonschlinkert/word-wrap#42</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/mohd-akram"><code>@​mohd-akram</code></a> made
their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/24">jonschlinkert/word-wrap#24</a></li>
<li><a
href="https://github.com/OlafConijn"><code>@​OlafConijn</code></a> made
their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/41">jonschlinkert/word-wrap#41</a></li>
<li><a
href="https://github.com/aashutoshrathi"><code>@​aashutoshrathi</code></a>
made their first contribution in <a
href="https://redirect.github.com/jonschlinkert/word-wrap/pull/33">jonschlinkert/word-wrap#33</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4">https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="207044ebda"><code>207044e</code></a>
1.2.5</li>
<li><a
href="9894315485"><code>9894315</code></a>
revert default indent</li>
<li><a
href="f64b188c72"><code>f64b188</code></a>
run verb to generate README</li>
<li><a
href="03ea08256b"><code>03ea082</code></a>
Merge pull request <a
href="https://redirect.github.com/jonschlinkert/word-wrap/issues/42">#42</a>
from jonschlinkert/chore/publish-workflow</li>
<li><a
href="420dce9a24"><code>420dce9</code></a>
Merge pull request <a
href="https://redirect.github.com/jonschlinkert/word-wrap/issues/41">#41</a>
from jonschlinkert/fix/CVE-2023-26115-2</li>
<li><a
href="bfa694edf5"><code>bfa694e</code></a>
Update .github/workflows/publish.yml</li>
<li><a
href="ace0b3c78f"><code>ace0b3c</code></a>
chore: bump version to 1.2.4</li>
<li><a
href="6fd7275946"><code>6fd7275</code></a>
chore: add publish workflow</li>
<li><a
href="30d6daf60f"><code>30d6daf</code></a>
chore: fix test</li>
<li><a
href="655929cabe"><code>655929c</code></a>
chore: remove package-lock</li>
<li>Additional commits viewable in <a
href="https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=word-wrap&package-manager=npm_and_yarn&previous-version=1.2.3&new-version=1.2.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/logspace-ai/langflow/network/alerts).

</details>
2023-07-25 10:03:36 -03:00
Lucas Oliveira
9e341fcc31 Merge branch 'dev' into fix-hardCoded-colors 2023-07-25 08:46:03 -03:00
dependabot[bot]
f57ecadfc1
build(deps): bump word-wrap from 1.2.3 to 1.2.5 in /src/frontend
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 11:44:58 +00:00
Lucas Oliveira
2d9081403f
Modal refactor (#647)
This PR is about the transition from PopupContext to the Radix native
way of handling popups, as well as applying a BaseModal to all of the
modals to improve modularity.
2023-07-25 08:43:59 -03:00
Gabriel Luiz Freitas Almeida
83fa1502a4 🔧 chore(pre-release.yml): update POETRY_VERSION to 1.5.1 to use the latest version of Poetry
🔧 chore(release.yml): update POETRY_VERSION to 1.5.1 to use the latest version of Poetry
2023-07-24 17:20:18 -03:00
Gabriel Luiz Freitas Almeida
18c2674395 📦 chore(pre-release.yml): add pre-release workflow to automate the release process 2023-07-24 17:17:00 -03:00
Cristhian Zanforlin Lousa
9f3a7b9a75 📦 chore(frontend): add @types/axios package to improve type checking in the frontend
🐛 fix(typesContext.tsx): remove unnecessary retry logic and error logging in getTypes function
🚀 feat(API/api.tsx): add ApiInterceptor component to handle API response retries and error handling
🚀 feat(API/index.ts): replace axios calls with api instance from API/api.tsx for better code organization and reusability

 feat(index.tsx): add ApiInterceptor component to intercept API requests and responses for additional processing
2023-07-24 16:16:02 -03:00
Lucas Oliveira
ddfb534a03 Fixed message not appearing when code is displayed 2023-07-24 15:51:28 -03:00
Lucas Oliveira
edf570f314 Added indicator of chat thinking when message is empty. 2023-07-24 11:32:36 -03:00
Lucas Oliveira
ada32b6a48 Refactored state management from tweaks 2023-07-24 10:58:48 -03:00
Gabriel Luiz Freitas Almeida
1910a03d71 ⬆️ chore(pyproject.toml): update gunicorn and langchain dependencies
- Upgrade gunicorn from version 20.1.0 to 21.1.0
- Upgrade langchain from version 0.0.237 to 0.0.240
2023-07-24 10:27:48 -03:00
Lucas Oliveira
169a20ab97 Fixed all bugs with tweaks on API modal 2023-07-24 09:55:42 -03:00
Lucas Oliveira
66cec7d545 Formatting on merge 2023-07-23 19:49:13 -03:00
Lucas Oliveira
7239223481 Merge branch 'dev' into modalRefactor 2023-07-23 19:48:41 -03:00
Cristhian Zanforlin Lousa
c21cf4bb56 🐛 fix(inputListComponent): import useContext from react to fix missing import error
🐛 fix(inputListComponent): import set from lodash to fix missing import error
 feat(inputListComponent): add PopUpContext import to use closeEdit function
🐛 fix(inputListComponent): add useEffect to update inputList state when value prop changes
🐛 fix(EditNodeModal): import getRandomKeyByssmm from utils to fix missing import error
 feat(EditNodeModal): add PopUpContext import to use setCloseEdit function
🐛 fix(EditNodeModal): add useEffect to reset myData state when modalOpen prop changes
2023-07-22 09:43:17 -03:00
Cristhian Zanforlin Lousa
7d91c14481 🐛 fix(inputListComponent): remove redundant useEffect that sets inputList value from props
🐛 fix(inputListComponent): fix cloning of inputList array in onChange event handler to prevent mutation of state
2023-07-22 09:05:04 -03:00
Cristhian Zanforlin Lousa
247755c118 🐛 fix(nodeToolbarComponent): wrap EditNodeModal component in a div to fix layout issue 2023-07-21 11:56:34 -03:00
Cristhian Zanforlin Lousa
19b874b591 🔧 chore(genericModal/index.tsx): refactor useEffect hook to set input value when 'value' prop changes 2023-07-21 11:34:23 -03:00
Gabriel Luiz Freitas Almeida
dff5c87c72 🐛 fix(components): remove unnecessary empty line in ToggleComponent
🐛 fix(modals): fix typo in comment in CodeAreaModal
🐛 fix(pages): remove unnecessary empty line in MainPage
🐛 fix(utils): remove unnecessary semicolons in utils.ts
2023-07-21 11:17:13 -03:00
Gabriel Luiz Freitas Almeida
a21345ff44 Merge branch 'main' into dev 2023-07-21 11:16:27 -03:00
Cristhian Zanforlin Lousa
f67c0ff509 🐛 fix(EditFlowSettingsComponent): update flows array type to include description property to fix type error
🔧 chore(EditFlowSettingsComponent): refactor handleDescriptionChange to update description in flows array and setDesc state variable
🔧 chore(EditFlowSettingsComponent): update value prop of description textarea to use desc state variable instead of description prop
2023-07-21 11:09:35 -03:00
Cristhian Zanforlin Lousa
ff97f45a72 🔧 fix(codeTabsComponent): remove commented out console.log statement
🔧 fix(codeTabsComponent): add keyValue prop to AccordionComponent to fix missing key warning
2023-07-21 10:35:53 -03:00
Cristhian Zanforlin Lousa
7ff40f40a4 🔧 chore(index.css): adjust width of dropdown component options to improve layout consistency 2023-07-20 18:10:13 -03:00
Cristhian Zanforlin Lousa
c6157cf12a 🎨 style(index.css): update width of dropdown component options to be responsive on larger screens 2023-07-20 17:40:10 -03:00
Lucas Oliveira
01a473d73b Merge branch 'dev' into modalRefactor 2023-07-20 17:24:35 -03:00
Lucas Oliveira
ab185f57bd Fixed copy paste on all components 2023-07-20 17:17:48 -03:00
Lucas Oliveira
b2a7fe174c Disable copy paste removed in favor of class wrapping 2023-07-20 17:07:54 -03:00
Lucas Oliveira
4c834ab239 Fixed undoing nodes on modal 2023-07-20 17:01:34 -03:00
Lucas Oliveira
a63dcfa109 Fixed undo of nodes when on input 2023-07-20 17:00:37 -03:00
Lucas Oliveira
7b1b028364 Fixed node dragging and selecting text on input 2023-07-20 16:49:41 -03:00
Lucas Oliveira
fae76a4a5e Changed placeholder and text placement on prompt component 2023-07-20 14:04:03 -03:00
Gabriel Luiz Freitas Almeida
d5577c78a4
build(deps): bump aiohttp from 3.8.4 to 3.8.5 (#664) 2023-07-20 13:23:49 -03:00
dependabot[bot]
608445eb73
build(deps): bump aiohttp from 3.8.4 to 3.8.5
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.8.4 to 3.8.5.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/v3.8.5/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.8.4...v3.8.5)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-20 16:19:32 +00:00
Gabriel Luiz Freitas Almeida
1f4f38345c
Hotfix: 0.3.2 (#663)
Fixes #661
2023-07-20 11:32:25 -03:00
Lucas Oliveira
d0300a197c added generic icon onto custom tab code 2023-07-20 11:16:45 -03:00
Lucas Oliveira
fb22ec701f Merge branch 'dev' into modalRefactor 2023-07-20 11:16:03 -03:00
Lucas Oliveira
f1b8760a02 merge fixes 2023-07-20 10:16:58 -03:00
Lucas Oliveira
8f6e8f9e91 Fixed bug that has been fixed at CustomComponents 2023-07-20 10:12:29 -03:00
Gabriel Luiz Freitas Almeida
9fd026aa54
Merge branch 'main' into release 2023-07-20 10:11:04 -03:00
Carlos Coelho
fbb2b32cbb
Documentation Components - Reference (#655) 2023-07-20 09:37:52 -03:00
Gabriel Luiz Freitas Almeida
558e0d75ab
Merge branch 'main' into release 2023-07-20 07:21:20 -03:00
Gabriel Luiz Freitas Almeida
74eece1237 🔖 chore(pyproject.toml): update package version to 0.3.2
🔖 chore(pyproject.toml): update langchain dependency to version 0.0.237
2023-07-20 07:12:57 -03:00
Gabriel Luiz Freitas Almeida
1ab0dd6257 🐛 fix(main.py): add error handling for non-existent static files directory 2023-07-20 07:11:46 -03:00
Gabriel Luiz Freitas Almeida
55f468be3d 🐛 fix(chat.py): add exception logging to track errors in stream_build function 2023-07-20 06:59:04 -03:00
Gabriel Luiz Freitas Almeida
e648ac4f41 🐛 fix(types.py): convert avg_length to an integer to improve readability in DocumentLoaderVertex and TextSplitterVertex 2023-07-20 06:58:39 -03:00
Gabriel Luiz Freitas Almeida
0cf37f4f1f 🐛 fix(base.py): add check to initialize empty list for params[key] if it doesn't exist before extending it with built values
Fixes textsplitter error #661
2023-07-20 06:58:21 -03:00