Skip to content

Commit 3c5ff91

Browse files
committed
Merge branch 'main' into leafletFix
2 parents 3c5289d + 5554782 commit 3c5ff91

27 files changed

+199
-73
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tdb-access-control-component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terminusdb/terminusdb-access-control-component",
3-
"version": "6.2.4",
3+
"version": "6.0.10",
44
"description": "Table for terminusdb",
55
"main": "src/index",
66
"module": "es6/index",

packages/tdb-dashboard/cypress/e2e/dashboard/document_history.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe(`Test Document History Widget`, () => {
7474
cy.get(`button[data-cy=${CONST.CREATE_CHANGE_REQUEST_BUTTON}]`).should('exist').click();
7575
cy.get(2000)
7676
cy.wait('@getBranchName').then((interception) => {
77-
assert.isNotNull(interception.response.body, '1st API call has data')
77+
assert.isNotNull(interception.response.body, 'Intercepting create CR API ')
7878
//console.log("interception.response.body", interception.response.body)
7979
branchID = interception.response.body.branchName
8080
})

packages/tdb-dashboard/cypress/e2e/dashboard/local_dashboard.cy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
/// <reference types="cypress" />
22

3+
Cypress.on('uncaught:exception', (err, runnable) => {
4+
return false;
5+
});
6+
37
describe('visit dashboard local', () => {
48
const dashboard = "http://localhost:6364/dashboard"
59

packages/tdb-dashboard/cypress/e2e/dashboard/login.cy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
import { SiGmail } from "react-icons/si"
44

5-
///8MmY%*2q
5+
Cypress.on('uncaught:exception', (err, runnable) => {
6+
return false;
7+
});
8+
9+
///8MmY%*2q
610
//tester@terminusdb.com
711

812
//emf7V3RaiDXCsx$#@%yy

packages/tdb-dashboard/cypress/e2e/dashboard/workflow.cy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
/// <reference types="cypress" />
33

4+
Cypress.on('uncaught:exception', (err, runnable) => {
5+
return false;
6+
});
7+
48
///8MmY%*2q
59
//tester@terminusdb.com
610

packages/tdb-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terminusdb-live/tdb-dashboard",
3-
"version": "6.2.4",
3+
"version": "6.0.10",
44
"description": "react",
55
"homepage": "./",
66
"main": "src/index",

packages/tdb-dashboard/src/components/DisplayNoIndexingAction.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ const StepDetail = ({ stepNumber, stepComponent, icon}) => {
2626
}
2727

2828

29+
2930
function getStep(stepNumber,supMode) {
3031
let { organization,dataProduct } = useParams()
3132
const stepOptions= {
32-
"step1":<>
33-
Visit <NavLink href="https://platform.openai.com/account/api-keys" className={"mr-1"}>Open AI</NavLink>
34-
and create a your Secret API Key
35-
</>,
33+
"step1":<>Visit <a href="https://platform.openai.com/account/api-keys" target="_blank" className={"mr-1"}>Open AI</a>
34+
and create a your Secret API Key</>,
3635
"step2": {"LOCAL":<>
3736
Copy and paste your generated OpenAI API Key in your environment variables, restart the application
3837
</>,
@@ -42,12 +41,17 @@ function getStep(stepNumber,supMode) {
4241
},
4342
"step3":<>
4443
Go to <NavLink to={`/${organization}/${dataProduct}/openai_configuration`} className={"mr-1"}>Open AI configuration </NavLink> page
45-
to add a graphql query and an handlebar template for every Document
44+
to add a graphql query and an handlebar template for every Document you like to index
4645
</>,
47-
"step4": <>
46+
"step4": {"REMOTE":<>
4847
In your profile turn on the Indexing button next to the OpenAI Key field.
4948
All data products in your team will begin to index.
5049
</>,
50+
"LOCAL":<>
51+
Use VectorLink to Semantically search your data products and use the vector embeddings to talk to OpenAI.
52+
Click <NavLink href="https://terminusdb.com/docs/" className={"mr-1"}>here</NavLink>for more info on how to use VectorLink.
53+
</>},
54+
5155
"step5": <>
5256
Use VectorLink to Semantically search your data products and use the vector embeddings to talk to OpenAI.
5357
Click <NavLink href="https://terminusdb.com/docs/" className={"mr-1"}>here</NavLink>for more info on how to use VectorLink.
@@ -77,8 +81,8 @@ export const DisplayNoIndexingAction = ({ helpDescription }) => {
7781
<StepDetail stepNumber={1} stepComponent={getStep(1)} icon={<BsKey/>}/>
7882
<StepDetail stepNumber={2} stepComponent={getStep(2, connection_type)} icon={<RiUserFollowFill/>}/>
7983
<StepDetail stepNumber={3} stepComponent={getStep(3)} icon={<SiHandlebarsdotjs/>}/>
80-
<StepDetail stepNumber={4} stepComponent={getStep(4)} icon={<RxCheckbox/>}/>
81-
<StepDetail stepNumber={5} stepComponent={getStep(5)} icon={<BsSearch/>}/>
84+
<StepDetail stepNumber={4} stepComponent={getStep(4, connection_type)} icon={<RxCheckbox/>}/>
85+
{connection_type === "REMOTE" && <StepDetail stepNumber={5} stepComponent={getStep(5)} icon={<BsSearch/>}/>}
8286
</Col>
8387
<Col md={3}></Col>
8488
</Row>

packages/tdb-dashboard/src/components/DocumentSearchComponent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, {useEffect} from "react"
22
import {DocumentsGraphqlTable} from "@terminusdb/terminusdb-documents-ui-template"
3-
import {gql} from "@apollo/client"
43
import {useTDBDocuments} from "@terminusdb/terminusdb-documents-ui-template"
54
import {WOQLClientObj} from '../init-woql-client'
65
import { Loading } from "./Loading"
6+
import {getGqlQuery} from "../pages/utils"
77
/**
88
*
99
* @param {*} setSelected function to get selected document link by user
@@ -22,7 +22,7 @@ export const DocumentSearchComponent = ({setSelected, doctype}) => {
2222
}
2323
},[doctype]);
2424
const querystr = documentTablesConfig && documentTablesConfig.objQuery ? documentTablesConfig.objQuery[doctype].query : null
25-
const gqlQuery = querystr ? gql`${querystr}` : null
25+
const gqlQuery = querystr ? getGqlQuery(querystr) : null
2626
const tableConfig = documentTablesConfig && documentTablesConfig.tablesColumnsConfig ? documentTablesConfig.tablesColumnsConfig[doctype] : []
2727
const advancedSearchConfig = documentTablesConfig && documentTablesConfig.advancedSearchObj ? documentTablesConfig.advancedSearchObj[doctype] : null
2828

packages/tdb-dashboard/src/components/SubmitChangeRequestModal.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ export const SubmitChangeRequestModal = ({showModal, setShowModal , updateParent
99

1010
const closeModal = () => setShowModal(false)
1111

12+
const titleObj= {"Submitted":'Submit the Change Request for review',
13+
"Open" : "Reopen the change request",
14+
"Close" : <Alert variant="danger">You are Closing this change request. You can not undo this operation</Alert>}
15+
1216
const statusUpdate = operation || "Submitted"
13-
const title = statusUpdate === "Submitted" ? 'Submit the Change Request for review' : `Reopen the change request`
17+
const title = titleObj[statusUpdate]
1418

1519
const runCreate = async () => {
1620
const message = messageRef.current.value

0 commit comments

Comments
 (0)