Chore/refractor (#4454)

* markdown files and env examples cleanup

* components update

* update jsonlines description

* server refractor

* update telemetry

* add execute custom node

* add ui refractor

* add username and password authenticate

* correctly retrieve past images in agentflowv2

* disable e2e temporarily

* add existing username and password authenticate

* update migration to default workspace

* update todo

* blob storage migrating

* throw error on agent tool call error

* add missing execution import

* add referral

* chore: add error message when importData is undefined

* migrate api keys to db

* fix: data too long for column executionData

* migrate api keys from json to db at init

* add info on account setup

* update docstore missing fields

---------

Co-authored-by: chungyau97 <chungyau97@gmail.com>
This commit is contained in:
Henry Heng
2025-05-27 14:29:42 +08:00
committed by GitHub
parent e35a126b46
commit 5a37227d14
560 changed files with 62127 additions and 4100 deletions
@@ -20,6 +20,7 @@ import ConfirmDialog from '@/ui-component/dialog/ConfirmDialog'
import ExpandedChunkDialog from './ExpandedChunkDialog'
import ViewHeader from '@/layout/MainLayout/ViewHeader'
import DocStoreInputHandler from '@/views/docstore/DocStoreInputHandler'
import { PermissionButton } from '@/ui-component/button/RBACButtons'
// API
import documentsApi from '@/api/documentstore'
@@ -27,6 +28,7 @@ import nodesApi from '@/api/nodes'
// Hooks
import useApi from '@/hooks/useApi'
import { useAuth } from '@/hooks/useAuth'
import useNotifier from '@/utils/useNotifier'
import { baseURL } from '@/store/constant'
import { initNode } from '@/utils/genericHelper'
@@ -57,6 +59,7 @@ const VectorStoreQuery = () => {
const theme = useTheme()
const dispatch = useDispatch()
const inputRef = useRef(null)
const { hasAssignedWorkspace } = useAuth()
useNotifier()
@@ -227,6 +230,10 @@ const VectorStoreQuery = () => {
useEffect(() => {
if (getSpecificDocumentStoreApi.data) {
if (!hasAssignedWorkspace(getSpecificDocumentStoreApi.data.workspaceId)) {
navigate('/unauthorized')
return
}
setDocumentStore(getSpecificDocumentStoreApi.data)
const vectorStoreConfig = getSpecificDocumentStoreApi.data.vectorStoreConfig
if (vectorStoreConfig) {
@@ -249,7 +256,8 @@ const VectorStoreQuery = () => {
description='Retrieval Playground - Test your vector store retrieval settings'
onBack={() => navigate(-1)}
>
<Button
<PermissionButton
permissionId={'documentStores:upsert-config'}
variant='outlined'
color='secondary'
sx={{ borderRadius: 2, height: '100%' }}
@@ -257,7 +265,7 @@ const VectorStoreQuery = () => {
onClick={saveConfig}
>
Save Config
</Button>
</PermissionButton>
</ViewHeader>
<div style={{ width: '100%' }}></div>
<div>