diff --git a/backend/endpoints/v1/documents/index.js b/backend/endpoints/v1/documents/index.js
index db4c56e..8ac7179 100644
--- a/backend/endpoints/v1/documents/index.js
+++ b/backend/endpoints/v1/documents/index.js
@@ -409,7 +409,6 @@ function documentEndpoints(app) {
method,
query
);
-
response.status(200).json({ fragments, error });
} catch (e) {
console.log(e.message, e);
diff --git a/backend/endpoints/v1/workspaces/index.js b/backend/endpoints/v1/workspaces/index.js
index 9b3d557..c665ca2 100644
--- a/backend/endpoints/v1/workspaces/index.js
+++ b/backend/endpoints/v1/workspaces/index.js
@@ -305,7 +305,7 @@ function workspaceEndpoints(app) {
documents: "countForEntity",
vectors: "calcVectors",
"cache-size": "calcVectorCache",
- "dimensions": "calcDimensions",
+ dimensions: "calcDimensions",
};
if (!Object.keys(methods).includes(statistic)) {
diff --git a/backend/models/organization.js b/backend/models/organization.js
index 5b1b651..4fb8075 100644
--- a/backend/models/organization.js
+++ b/backend/models/organization.js
@@ -16,17 +16,21 @@ const Organization = {
organization: null,
message: "No Organization name provided.",
};
- var slug = slugify(orgName, { lower: true });
+
+ // If the new name contains bad characters
+ // replace them with spaces and continue creation.
+ const newOrgName = orgName.replace(/[:\.,<>@]/g, " ");
+ var slug = slugify(newOrgName, { lower: true });
const existingBySlug = await this.get({ slug });
if (!!existingBySlug) {
const slugSeed = Math.floor(10000000 + Math.random() * 90000000);
- slug = slugify(`${orgName}-${slugSeed}`, { lower: true });
+ slug = slugify(`${newOrgName}-${slugSeed}`, { lower: true });
}
const organization = await prisma.organizations.create({
data: {
- name: orgName,
+ name: newOrgName,
slug,
uuid: this.makeKey(),
},
diff --git a/backend/models/workspaceDocument.js b/backend/models/workspaceDocument.js
index 39a6813..c253362 100644
--- a/backend/models/workspaceDocument.js
+++ b/backend/models/workspaceDocument.js
@@ -170,9 +170,8 @@ const WorkspaceDocument = {
include: { organization: true },
});
-
const connector = await OrganizationConnection.get({
- organization_id: workspace.organization.id
+ organization_id: workspace.organization.id,
});
const vectorDb = selectConnector(connector);
@@ -204,7 +203,6 @@ const WorkspaceDocument = {
return 0;
}
},
-
};
module.exports.WorkspaceDocument = WorkspaceDocument;
diff --git a/backend/storage/settings.json b/backend/storage/settings.json
index afc8999..98f127d 100644
--- a/backend/storage/settings.json
+++ b/backend/storage/settings.json
@@ -1,468 +1,4 @@
{
- "_prisma_migrations": {
- "slug": "_prisma_migrations",
- "table": {
- "name": "_prisma_migrations",
- "pk": "id",
- "verbose": "_prisma_migrations"
- },
- "columns": [
- {
- "name": "id",
- "verbose": "id",
- "control": {
- "text": true
- },
- "type": "varchar(36)",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "checksum",
- "verbose": "checksum",
- "control": {
- "text": true
- },
- "type": "varchar(64)",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "finished_at",
- "verbose": "finished_at",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": true,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "migration_name",
- "verbose": "migration_name",
- "control": {
- "text": true
- },
- "type": "varchar(255)",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "logs",
- "verbose": "logs",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": true,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "rolled_back_at",
- "verbose": "rolled_back_at",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": true,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "started_at",
- "verbose": "started_at",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "now()",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "applied_steps_count",
- "verbose": "applied_steps_count",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": "0",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- }
- ],
- "mainview": {
- "show": true
- },
- "listview": {
- "order": {},
- "page": 25
- },
- "editview": {
- "readonly": false
- }
- },
- "system_settings": {
- "slug": "system_settings",
- "table": {
- "name": "system_settings",
- "pk": "id",
- "verbose": "system_settings"
- },
- "columns": [
- {
- "name": "id",
- "verbose": "id",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "label",
- "verbose": "label",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "value",
- "verbose": "value",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "createdAt",
- "verbose": "createdAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "lastUpdatedAt",
- "verbose": "lastUpdatedAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- }
- ],
- "mainview": {
- "show": true
- },
- "listview": {
- "order": {},
- "page": 25
- },
- "editview": {
- "readonly": false
- }
- },
- "users": {
- "slug": "users",
- "table": {
- "name": "users",
- "pk": "id",
- "verbose": "users"
- },
- "columns": [
- {
- "name": "id",
- "verbose": "id",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "email",
- "verbose": "email",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "password",
- "verbose": "password",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "role",
- "verbose": "role",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": "'default'::text",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "createdAt",
- "verbose": "createdAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "lastUpdatedAt",
- "verbose": "lastUpdatedAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- }
- ],
- "mainview": {
- "show": true
- },
- "listview": {
- "order": {},
- "page": 25
- },
- "editview": {
- "readonly": false
- }
- },
- "organization_users": {
- "slug": "organization_users",
- "table": {
- "name": "organization_users",
- "pk": "id",
- "verbose": "organization_users"
- },
- "columns": [
- {
- "name": "id",
- "verbose": "id",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "user_id",
- "verbose": "user_id",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "organization_id",
- "verbose": "organization_id",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "createdAt",
- "verbose": "createdAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "lastUpdatedAt",
- "verbose": "lastUpdatedAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- }
- ],
- "mainview": {
- "show": true
- },
- "listview": {
- "order": {},
- "page": 25
- },
- "editview": {
- "readonly": false
- }
- },
"organizations": {
"slug": "organizations",
"table": {
@@ -795,6 +331,154 @@
"readonly": false
}
},
+ "organization_workspaces": {
+ "slug": "organization_workspaces",
+ "table": {
+ "name": "organization_workspaces",
+ "pk": "id",
+ "verbose": "organization_workspaces"
+ },
+ "columns": [
+ {
+ "name": "id",
+ "verbose": "id",
+ "control": {
+ "text": true
+ },
+ "type": "integer",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "name",
+ "verbose": "name",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "slug",
+ "verbose": "slug",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "uuid",
+ "verbose": "uuid",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "fname",
+ "verbose": "fname",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "organization_id",
+ "verbose": "organization_id",
+ "control": {
+ "text": true
+ },
+ "type": "integer",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "createdAt",
+ "verbose": "createdAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "lastUpdatedAt",
+ "verbose": "lastUpdatedAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ }
+ ],
+ "mainview": {
+ "show": true
+ },
+ "listview": {
+ "order": {},
+ "page": 25
+ },
+ "editview": {
+ "readonly": false
+ }
+ },
"workspace_documents": {
"slug": "workspace_documents",
"table": {
@@ -1075,6 +759,222 @@
"readonly": false
}
},
+ "users": {
+ "slug": "users",
+ "table": {
+ "name": "users",
+ "pk": "id",
+ "verbose": "users"
+ },
+ "columns": [
+ {
+ "name": "id",
+ "verbose": "id",
+ "control": {
+ "text": true
+ },
+ "type": "integer",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "email",
+ "verbose": "email",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "password",
+ "verbose": "password",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "role",
+ "verbose": "role",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": "'default'::text",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "createdAt",
+ "verbose": "createdAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "lastUpdatedAt",
+ "verbose": "lastUpdatedAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ }
+ ],
+ "mainview": {
+ "show": true
+ },
+ "listview": {
+ "order": {},
+ "page": 25
+ },
+ "editview": {
+ "readonly": false
+ }
+ },
+ "system_settings": {
+ "slug": "system_settings",
+ "table": {
+ "name": "system_settings",
+ "pk": "id",
+ "verbose": "system_settings"
+ },
+ "columns": [
+ {
+ "name": "id",
+ "verbose": "id",
+ "control": {
+ "text": true
+ },
+ "type": "integer",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "label",
+ "verbose": "label",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "value",
+ "verbose": "value",
+ "control": {
+ "text": true
+ },
+ "type": "text",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "createdAt",
+ "verbose": "createdAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "lastUpdatedAt",
+ "verbose": "lastUpdatedAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ }
+ ],
+ "mainview": {
+ "show": true
+ },
+ "listview": {
+ "order": {},
+ "page": 25
+ },
+ "editview": {
+ "readonly": false
+ }
+ },
"jobs": {
"slug": "jobs",
"table": {
@@ -1239,154 +1139,6 @@
"readonly": false
}
},
- "organization_workspaces": {
- "slug": "organization_workspaces",
- "table": {
- "name": "organization_workspaces",
- "pk": "id",
- "verbose": "organization_workspaces"
- },
- "columns": [
- {
- "name": "id",
- "verbose": "id",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "name",
- "verbose": "name",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "slug",
- "verbose": "slug",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "uuid",
- "verbose": "uuid",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "organization_id",
- "verbose": "organization_id",
- "control": {
- "text": true
- },
- "type": "integer",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "createdAt",
- "verbose": "createdAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "lastUpdatedAt",
- "verbose": "lastUpdatedAt",
- "control": {
- "text": true
- },
- "type": "timestamp",
- "allowNull": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- },
- {
- "name": "fname",
- "verbose": "fname",
- "control": {
- "text": true
- },
- "type": "text",
- "allowNull": false,
- "defaultValue": null,
- "listview": {
- "show": true
- },
- "editview": {
- "show": true
- }
- }
- ],
- "mainview": {
- "show": true
- },
- "listview": {
- "order": {},
- "page": 25
- },
- "editview": {
- "readonly": false
- }
- },
"organization_notifications": {
"slug": "organization_notifications",
"table": {
@@ -1551,6 +1303,106 @@
"readonly": false
}
},
+ "organization_users": {
+ "slug": "organization_users",
+ "table": {
+ "name": "organization_users",
+ "pk": "id",
+ "verbose": "organization_users"
+ },
+ "columns": [
+ {
+ "name": "id",
+ "verbose": "id",
+ "control": {
+ "text": true
+ },
+ "type": "integer",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "user_id",
+ "verbose": "user_id",
+ "control": {
+ "text": true
+ },
+ "type": "integer",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "organization_id",
+ "verbose": "organization_id",
+ "control": {
+ "text": true
+ },
+ "type": "integer",
+ "allowNull": false,
+ "defaultValue": null,
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "createdAt",
+ "verbose": "createdAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ },
+ {
+ "name": "lastUpdatedAt",
+ "verbose": "lastUpdatedAt",
+ "control": {
+ "text": true
+ },
+ "type": "timestamp",
+ "allowNull": false,
+ "defaultValue": "CURRENT_TIMESTAMP",
+ "listview": {
+ "show": true
+ },
+ "editview": {
+ "show": true
+ }
+ }
+ ],
+ "mainview": {
+ "show": true
+ },
+ "listview": {
+ "order": {},
+ "page": 25
+ },
+ "editview": {
+ "readonly": false
+ }
+ },
"organization_rag_tests": {
"slug": "organization_rag_tests",
"table": {
diff --git a/backend/utils/vectordatabases/providers/chroma/index.js b/backend/utils/vectordatabases/providers/chroma/index.js
index 76f8072..7dc84e1 100644
--- a/backend/utils/vectordatabases/providers/chroma/index.js
+++ b/backend/utils/vectordatabases/providers/chroma/index.js
@@ -72,6 +72,7 @@ class Chroma {
return { result: totalVectors, error: null };
}
+ // TODO: Solve this issue
async indexDimensions() {
// Chroma does not support this, defaulting to openai's 1536
return 1536;
diff --git a/backend/utils/vectordatabases/validateNewDatabaseConnector.js b/backend/utils/vectordatabases/validateNewDatabaseConnector.js
index 8155436..197f433 100644
--- a/backend/utils/vectordatabases/validateNewDatabaseConnector.js
+++ b/backend/utils/vectordatabases/validateNewDatabaseConnector.js
@@ -77,9 +77,6 @@ async function validatePinecone({ environment, index, apiKey }) {
indexName: index,
});
- // TODO: CHECK INDEX SIZE (client.indexDimensions()) and store in return so we can store it in the database
-
-
if (!status.ready) throw new Error("Pinecone::Index not ready or found.");
return { valid: true, message: null };
} catch (e) {
diff --git a/frontend/src/components/Header/index.tsx b/frontend/src/components/Header/index.tsx
index a99e794..44dc798 100644
--- a/frontend/src/components/Header/index.tsx
+++ b/frontend/src/components/Header/index.tsx
@@ -1,11 +1,4 @@
-import { Link } from 'react-router-dom';
-import Logo from '../../images/logo/logo-light.png';
-import { CheckCircle, Copy } from 'react-feather';
import { useEffect, useState } from 'react';
-import paths from '../../utils/paths';
-import { STORE_TOKEN, STORE_USER } from '../../utils/constants';
-import truncate from 'truncate';
-import Notifications from './Notifications';
export default function Header(props: {
entity?: any | null;
@@ -18,18 +11,7 @@ export default function Header(props: {
}) {
const [copied, setCopied] = useState(false);
if (!props.entity) return null;
- const {
- entity,
- property,
- nameProp,
- extendedItems = <>>,
- quickActions = false,
- } = props;
-
- const handleCopy = () => {
- window.navigator.clipboard.writeText(entity[property]);
- setCopied(true);
- };
+ const { extendedItems = <>> } = props;
useEffect(() => {
function manageCopy() {
@@ -42,100 +24,7 @@ export default function Header(props: {
}, [copied]);
return (
- //
- // {truncate(entity[nameProp ?? 'name'], 20)}
- //
+
{truncate(file.name, 30)}
@@ -70,7 +70,7 @@ function FileUploadProgressComponent({
)}
+
{truncate(file.name, 30)}
diff --git a/frontend/src/pages/Dashboard/DocumentsList/UploadModal/index.tsx b/frontend/src/pages/Dashboard/DocumentsList/UploadModal/index.tsx
index aa37d1d..f5fab58 100644
--- a/frontend/src/pages/Dashboard/DocumentsList/UploadModal/index.tsx
+++ b/frontend/src/pages/Dashboard/DocumentsList/UploadModal/index.tsx
@@ -180,7 +180,7 @@ export default function UploadDocumentModal({
supported file extensions are{' '}
-
- //
- //
+
{Object.values(fileTypes).flat().join(' ')}
+{data.metadata.text}diff --git a/frontend/src/pages/DocumentView/FragmentList/EditEmbeddingConfirmation/index.tsx b/frontend/src/pages/DocumentView/FragmentList/EditEmbeddingConfirmation/index.tsx index e5bbbff..86004fd 100644 --- a/frontend/src/pages/DocumentView/FragmentList/EditEmbeddingConfirmation/index.tsx +++ b/frontend/src/pages/DocumentView/FragmentList/EditEmbeddingConfirmation/index.tsx @@ -125,7 +125,7 @@ const EditEmbeddingConfirmation = memo(
+{data.metadata.text}@@ -165,7 +165,7 @@ const EditEmbeddingConfirmation = memo( name="embeddingText" defaultValue={data.metadata.text} spellCheck="true" - className="font-mono h-fit w-full overflow-y-scroll rounded-lg bg-slate-100 p-2" + className="h-fit w-full overflow-y-scroll rounded-lg bg-slate-100 p-2 font-mono" />