Skip to content

Commit 524e859

Browse files
Merge pull request #102 from terminusdb/add_payment
remove geo properties from model builder
2 parents 53370fe + 9c8d853 commit 524e859

File tree

9 files changed

+23
-12
lines changed

9 files changed

+23
-12
lines changed

packages/tdb-dashboard/src/App.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,3 +1172,10 @@ pre.CodeMirror-line > span > span.cm-string {
11721172
.graphiql-response {
11731173
overflow: auto !important;
11741174
}
1175+
1176+
#profile_menu >.dropdown-menu[data-bs-popper] {
1177+
top: 100%;
1178+
right: 0;
1179+
left: auto !important;
1180+
margin-top: var(--bs-dropdown-spacer);
1181+
}

packages/tdb-dashboard/src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ export function App (props){
3939

4040
if (clientUser.firstLogin === true) {
4141
clientUser.firstLogin = false
42+
4243
// navigate(`/${PLANS}`)
4344
window.location.replace(`/${PLANS}`)
45+
4446
}
4547

4648
// this happen after confirm you password linking in the email url

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const JSONModelBuilder = ({tab,saveGraph,accessControlEditMode}) => {
107107
<input id="schema_save_description" placeholder={"Enter a description to tag update"} type="text" className="form-control" onBlur={handleCommitMessage}/>
108108
</div>
109109
<button type="button" id="schema_save_button" className="col-md-1 btn btn-md bg-light text-dark mr-4" onClick={saveChange}>
110-
<BsSave className="small"/> <label className="mt-1">Save Schema</label>
110+
<BsSave className="small"/> <label className="mt-1">Save</label>
111111
</button>
112112
</div>
113113
}

packages/tdb-dashboard/src/init-woql-client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ export const WOQLClientProvider = ({children, params}) => {
377377
}
378378
//this is for change the base url api for the proxy
379379
if(opts.connection_type!== "LOCAL"){
380-
hubClient.connectionConfig.api_extension = `${orgName}/api/`
380+
// add a new terminusdb method
381+
hubClient.connectionConfig.api_extension = `${UTILS.encodeURISegment(orgName)}/api/`
381382
//load the list of system roles
382383
}
383384

packages/tdb-dashboard/src/pages/ModelBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const ModelBuilder = (props) =>{
3636
if(!dataProduct) return <div>error in loading graph</div>
3737

3838
return <React.Fragment>
39-
{reportMessage && <Alert className ="mt-3" variant="danger" dismissible onClose={() => setReport(false)}>
39+
{reportMessage && !callServerLoading && <Alert className ="mt-3" variant="danger" dismissible onClose={() => setReport(false)}>
4040
<Alert.Heading>{reportMessage.message.title}</Alert.Heading>
4141

4242
<p>{reportMessage.message.text}</p>

packages/tdb-dashboard/src/pages/PlansPage.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ export const PlansPage = (props) => {
8888
<Card.Text className="text-light text-left h6">
8989
{arr.text}
9090
</Card.Text>
91+
92+
<Stack direction="vertical">
9193
{getLabels(arr)}
94+
</Stack>
95+
9296
</Card.Body>
9397
<Card.Footer style={{background:arr.color}}>
9498
</Card.Footer >

packages/tdb-dashboard/src/payment/FormPayment.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,12 @@ const renderSuccess = () => {
204204
className="border-light-01" type="email" name="email" id="email" placeholder="Email"
205205
defaultValue={props.defaultEmail} />
206206
</FormGroup>
207+
207208
<FormGroup className="mb-4">
208209
<Form.Label for="name">Company Name</Form.Label>
209210
<FormControl ref={companyName} className="border-light-01" type="text" name="name" id="name" placeholder="Company Name" required={true} />
210211
</FormGroup>
212+
211213
<Row>
212214
<Col >
213215
<FormGroup className="mb-4">
@@ -226,7 +228,8 @@ const renderSuccess = () => {
226228
<FormGroup className="mb-4">
227229
<Form.Label for="address">Street Address</Form.Label>
228230
<FormControl ref={address} className="border-light-01" type="text" name="name" id="name" placeholder="Street Address" required={true} />
229-
</FormGroup>
231+
232+
</FormGroup>
230233
<Row>
231234
<Col >
232235
<FormGroup className="mb-4">

packages/tdb-react-components/src/constants/details-labels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const STRING_TYPE_DATAPROVIDER={label: 'String Type',
134134
export const CLASS_PROPERTIES_LIST=[{label:'Enum Property', id:'ChoiceProperty',range:''},
135135
{label:'Numeric Property', id:'NumericProperty',defaultRange:'xsd:decimal'},
136136
{label:'String Property', id:'StringProperty',defaultRange:'xsd:string'},
137-
{label:'Geo Property', id:'GeoProperty',defaultRange:'xdd:coordinate'},
137+
// {label:'Geo Property', id:'GeoProperty',defaultRange:'xdd:coordinate'},
138138
{label:'Temporal Property', id:'TemporalProperty',defaultRange:'xsd:dateTime'},
139139
{label:'Boolean Property', id:'BooleanProperty',defaultRange:'xsd:boolean'},
140140
{label:'JSON Property', id:'JSONProperty',defaultRange:'sys:JSON'},
@@ -146,7 +146,7 @@ export const GET_ICON_NAME={StringProperty:'custom-img-string',
146146
JSONProperty:'custom-img-string',
147147
NumericProperty:'custom-img-number_alt',
148148
ChoiceProperty:'custom-img-choice',
149-
GeoProperty:'custom-img_map',
149+
//GeoProperty:'custom-img_map',
150150
TemporalProperty:'custom-img-temporal',
151151
LinkProperty:'custom-img-classes'}
152152

packages/tdb-react-components/src/treeGraphComponent/hook/modelCallServerHook.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ export const modelCallServerHook = (woqlClient,branch,ref,dbId, pendoMsgAfterCre
102102
await woqlClient.addDocument(newSchema,params,null,commitM)
103103

104104
let msg = `Successfully updated schema graph`
105-
setReport({
106-
status: 'success',
107-
message: msg,
108-
time: Date.now() - ts,
109-
})
110-
111105
setReloadGraph(Date.now())
112106
}catch(err){
113107
//console.log("err", err.message)

0 commit comments

Comments
 (0)