Commit graph

480 commits

Author SHA1 Message Date
Mendon Kissling
2e5a006f4b for-more 2024-06-07 13:51:38 -04:00
Mendon Kissling
25307e7509 Merge branch 'dev' into docs-explain-io-playground 2024-06-07 13:48:43 -04:00
Mendon Kissling
45bc84a314 clearer-python-reqs 2024-06-06 17:21:21 -04:00
Mendon Kissling
73ccb5e5b4 cap 2024-06-06 17:15:43 -04:00
Mendon Kissling
f4b443b28e langflow-ui-clarity 2024-06-06 17:02:50 -04:00
Mendon Kissling
d2cecd7de1 io-components 2024-06-06 16:56:44 -04:00
Mendon Kissling
40d02ccceb content 2024-06-06 12:55:39 -04:00
Mendon Kissling
60023657d8 command-order 2024-06-06 12:39:16 -04:00
Mendon Kissling
964afd3de4 Merge branch 'dev' into docs-cli-commands 2024-06-06 12:37:35 -04:00
Mendon Kissling
4e7867fd66 numbers 2024-06-06 12:33:21 -04:00
Mendon Kissling
7ad91a9b94 copy-db-info 2024-06-06 11:44:11 -04:00
Mendon Kissling
c8240d73bd Merge branch 'dev' into docs-cli-commands 2024-06-06 09:56:22 -04:00
Lucas Oliveira
cfb1df93ee Merge remote-tracking branch 'origin/dev' into fix/api_settings 2024-06-06 08:29:28 -03:00
anovazzi1
4236d22098
Refactor SettingsPage component and add Messages page (#2084)
* Feat: Create the first version of the eraser tool

* feat: Add Messages page to SettingsPage

Refactor the SettingsPage component to include a new "Messages" page. This page will be accessible through the "/settings/messages" route and will display messages related to user settings. The necessary changes have been made to the index.tsx file of the SettingsPage component and the routes.tsx file.

* refactor(tableComponent): update column definitions to include checkbox selection logic for first column

feat(API): add support for excluding specific columns in getMessagesTable function

fix(flowLogsModal): pass excludedFields parameter to getMessagesTable function

refactor(GlobalVariablesPage): remove unnecessary checkbox selection properties from column definitions

fix(messagesPage): pass excludedFields parameter to getMessagesTable function

refactor(utils): add support for excluding specific columns in extractColumnsFromRows function

* feat: Add API endpoints for managing messages

This commit adds new API endpoints for managing messages. It includes the ability to delete messages by their IDs, update a specific message, and delete all messages associated with a session. These changes are implemented in the `monitor.py`, `schema.py`, and `service.py` files.

*  (monitor.py): add MessageIds schema for structured message deletion
♻️ (monitor.py): change delete_messages endpoint to POST for better semantics
♻️ (monitor.py): update delete_messages to use MessageIds schema
 (schemas.py): add MessageIds schema for structured message deletion
🐛 (service.py): fix SQL query in delete_messages to use correct column name
 (index.tsx): add toTitleCase utility to format column headers
 (API/index.ts): add deleteMessagesFn to handle message deletion via API
 (headerMessages): add HeaderMessagesComponent for message management UI
 (use-messages-table): add useMessagesTable hook to fetch and manage messages
 (use-remove-messages): add useRemoveMessages hook to handle message deletion

♻️ (messagesPage): refactor messages page to use new messages store
 (messagesStore): create zustand store for managing messages state
 (types): add types for messages and zustand messages store

* 💡 (schemas.py): add newline at end of file to follow PEP 8 guidelines

* refactor(headerMessages): update text content in HeaderMessagesComponent

* move editable attribute to table Component

* refactor: Move editable attribute to TableComponent
add update function, need to fix backend

* ♻️ (monitor.py): change POST to DELETE for delete_messages endpoint
♻️ (schemas.py): remove unused MessageIds schema
♻️ (api.tsx): add missing commas in ApiInterceptor function
🐛 (api.tsx): fix duplicate request check to include method "get"
♻️ (index.ts): change deleteMessagesFn to use DELETE method instead of POST
♻️ (use-remove-messages.tsx): clean up comments and improve error handling

* start history in playgroundModal

* ♻️ (monitor.py): refactor update_message to return MessageModelResponse
♻️ (service.py): update SQL query to use index instead of id
♻️ (api.tsx): refactor duplicate request check logic
 (check-duplicate-requests.ts): add helper to check and store duplicate requests
🐛 (messagesStore.ts): fix message update logic to use index instead of id

* ♻️ (monitor.py, service.py): remove trailing whitespace to improve code cleanliness

* refactor: Add getSessions function to fetch available sessions in IOModal

* 🐛 (service.py): add missing 'id' column in SQL query to fix data retrieval issue
💡 (service.py): add print statement for debugging SQL query
♻️ (index.tsx): reorder imports for better readability and maintainability

♻️ (flowStore.ts): remove trailing commas to improve code consistency and readability

💡 (index.ts, storeUtils.ts): format type definitions for better readability

* update editable fields

* Feat: Make the table last column non-resizable and add a restore columns button

* Remove unnused imports

* Refactor: Remove “Page size” from table pagination

* Refactor: remove page size directly in css file

* chore: Update description text in SettingsPage

* Refactor: Add ResetColumns component to improve table functionality

* Refactor: Make Reset Column button reset columns order

* Refactor: Remove select from delete session button

* Refactor: Remove commented code for chat history tab in IOModal

* update route

* fix selection bug on Messages Table

* fix libs

---------

Co-authored-by: igorrCarvalho <igorsilvabhz6@gmail.com>
Co-authored-by: ogabrielluiz <gabriel@langflow.org>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-06-05 20:37:38 -03:00
Mendon Kissling
1ba928a0c3 strip-broken-admonitions 2024-06-05 17:39:02 -04:00
Mendon Kissling
34e57b6a44 link 2024-06-05 17:18:00 -04:00
Mendon Kissling
1cf4779059 title-and-nav 2024-06-05 17:16:23 -04:00
Mendon Kissling
d8cfe679bf nav 2024-06-05 17:14:53 -04:00
Mendon Kissling
829c14e706 backend-only mode 2024-06-05 17:14:44 -04:00
Mendon Kissling
e605b69aac cli 2024-06-05 13:46:25 -04:00
Lucas Oliveira
6b41460bf2
Fix and Enhance Modal, Button, and Layout Functionality (#2064)
#### Description

This pull request introduces several fixes and enhancements related to
modals, buttons, and layout elements within the application. The changes
improve the user experience by addressing bugs, enhancing functionality,
and refining UI components.

#### Summary of Changes

- **Modals:**
  - Added Submit buttons to every modal, except confirmation modals.
  - Fixed submitting issues on `storeApiKeyModal`.
  - Added a close button when the submit button is present.
  - Fixed padding on `deleteConfirmationModal`.

- **Node and Component Enhancements:**
  - Removed the pencil icon from the node name.
- Made node description editable by clicking once and changed the cursor
type.
  - Changed empty component behavior to open the New Project modal.
  - Fixed the node toolbar to allow moving the nodes.
  - Fixed Endpoint Name labeling.
  - Passed duplicate flow function to the main page.
  - Made folders visually more pleasing.
  - Fixed the tooltip that no longer needs removal of the portal.

- **UI and Layout Adjustments:**
  - Fixed bottom padding on settings pages.
  - Fixed scrolling not working in the global variables dropdown.
  - Disabled accordion when it is empty.
  - Removed shadow from card elements.
  - Added a description column to the advanced tab.
  - Implemented unselect on escape.
- Fixed classes and layout for sidebar buttons, ensuring they don't look
strange and behave consistently.
- Fixed button classes to allow loading indicators and ensure proper
sizing and functionality.
  - Modularized loading on buttons.

- **General Fixes and Improvements:**
  - Changed message of the terminal to "Run Langflow".
- Fixed save functionality to use user-provided API keys instead of
default ones.
- Ensured button components can handle multiple children and look
correct.
  - Added icons to various UI elements.
  - Fixed ID scrolling issue when clicking from Store.
  - Removed extra space caused by an unnecessary div element.
- Returned the loader to default settings and ensured buttons work with
`asChild`.

#### Additional Changes
- Merged the remote-tracking branch `origin/dev` into `fix/minor_bugs`
on multiple occasions to keep the branch up-to-date with the latest
developments.

#### Notes

- Please review the changes related to button classes carefully, as they
impact multiple components.
- Further UI enhancements are planned for the next iteration.
2024-06-05 19:14:32 +02:00
Mendon Kissling
199459f645 better-twitter-svg 2024-06-05 11:15:43 -04:00
Mendon Kissling
8e9e2875cd replace-twitter-logo 2024-06-05 11:13:49 -04:00
Mendon Kissling
f4217c4134 typo 2024-06-05 11:02:39 -04:00
Mendon Kissling
f23ac7da1e more-deployments 2024-06-04 17:18:12 -04:00
Mendon Kissling
c6659606c6 more-cli-commands 2024-06-04 17:18:00 -04:00
Mendon Kissling
f83e29f22e spacing 2024-06-04 17:17:53 -04:00
Mendon Kissling
f1ef45e414 fix-links 2024-06-04 16:37:02 -04:00
Mendon Kissling
9fc7691723 remove-empty-files 2024-06-04 16:28:50 -04:00
Mendon Kissling
0b1a4b4232 cleanup 2024-06-04 16:28:44 -04:00
Mendon Kissling
f74e0f0b80 fix-links 2024-06-04 16:21:44 -04:00
Mendon Kissling
9a515e7f8e move-doc 2024-06-04 16:21:40 -04:00
Mendon Kissling
689de35d14 fix-link 2024-06-04 16:21:27 -04:00
Mendon Kissling
8ab21e8ced text-and-record 2024-06-04 16:21:07 -04:00
Mendon Kissling
4841cd9e66 combine-input-and-output-docs 2024-06-04 15:21:59 -04:00
Mendon Kissling
c371cbc22b combine-global-env-docs 2024-06-04 15:21:24 -04:00
Lucas Oliveira
9d49597dae Merge remote-tracking branch 'origin/dev' into fix/minor_bugs 2024-06-04 14:25:51 -03:00
Mendon Kissling
fedbf906d9 update-gif 2024-06-04 10:37:30 -04:00
Lucas Oliveira
81f61201be Merge remote-tracking branch 'origin/dev' into fix/minor_bugs 2024-05-31 20:55:38 -03:00
Gabriel Luiz Freitas Almeida
4c113d5ac0
Add Upstash Vector Store support (#2004)
* docs(migration): add UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN to the list of default environment variables
pyproject.toml: add upstash-vector package as a dependency with version 0.4.0
src/backend/base/langflow/components/vectorsearch/UpstashSearch.py: create UpstashSearchComponent for implementing a Vector Store using Upstash
src/backend/base/langflow/components/vectorstores/Upstash.py: create UpstashVectorStoreComponent for implementing a Vector Store using Upstash
src/backend/base/langflow/services/settings/constants.py: add UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN to the list of variables to get from the environment

*  (UpstashSearch.py): Add support for 'number_of_results' and 'text_key' parameters in UpstashSearchComponent to enhance search functionality
♻️ (Upstash.py): Refactor UpstashVectorStoreComponent to include 'text_key' parameter for consistency and improved functionality

* ♻️ (Upstash.py): refactor UpstashVectorStoreComponent to improve code readability and maintainability by restructuring the instantiation of UpstashVectorStore instances based on conditions and adding support for adding documents directly to the instance.

* feat: Update langchain-core, langchainhub, langsmith, and requests dependencies to latest versions
2024-05-30 12:02:40 -07:00
Mendon Kissling
572f26f5a3 strip-old-links 2024-05-30 12:05:38 -04:00
Mendon Kissling
b4152c8a5f update-notion-image 2024-05-30 11:38:55 -04:00
Mendon Kissling
d757f1a703 repopulate-examples 2024-05-30 11:35:42 -04:00
Mendon Kissling
b1505cf4f7 Merge branch 'dev' into docs-example-components 2024-05-30 10:38:49 -04:00
Mendon Kissling
2fe35ef4d0
Readme refactor (#1963)
A refactoring of the README for dev along with content updates, new
badges, and a new leading gif
2024-05-30 10:10:10 -04:00
Mendon Kissling
2eef3bc8f6 bump python version 2024-05-30 09:43:21 -04:00
Gabriel Luiz Freitas Almeida
8f6b9d6443
Added API key access to AUTO_LOGIN=True and fixed SecretKeyModal (#1994)
* chore: Add type attribute to button in SecretKeyModal

* chore: Refactor Header component to fix autoLogin button visibility

* docs(api.mdx): update admonition message to remove reference to LANGFLOW_AUTO_LOGIN environment variable
docs(cli.mdx): update CLI command example to use 'run' subcommand instead of no arguments
feat(cli.mdx): add 'api-key' command to create API key for default superuser when LANGFLOW_AUTO_LOGIN is True

* docs(api.mdx): update admonition message to remove reference to LANGFLOW_AUTO_LOGIN environment variable

* chore: Fix typo in get-curl-code.tsx

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-05-28 12:02:40 -07:00
Mendon Kissling
897a18405f strip-old-content 2024-05-28 13:58:06 -04:00
Mendon Kissling
43bea36155 remove-install-from-starter-projects 2024-05-28 11:48:31 -04:00
Mendon Kissling
8a6dfae8d7 title-case 2024-05-28 11:26:43 -04:00