Skip to content

Commit fe1c5af

Browse files
Sameer Kolharbeerose
authored andcommitted
console/pro-console: add read replicas support
Co-authored-by: Aleksandra Sikora <9019397+beerose@users.noreply.github.com> GitOrigin-RevId: 5e49ad6
1 parent 130e27e commit fe1c5af

16 files changed

Lines changed: 929 additions & 354 deletions

File tree

‎console/cypress/integration/data/manage-database/spec.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const expandConnectionSettingsform = () => {
2525
};
2626

2727
export const failsOnEmptyFormSubmission = () => {
28-
cy.getBySel('save-database').click();
28+
cy.getBySel('connect-database-btn').click();
2929
cy.get('.notification-error').should('be.visible');
3030
};
3131

@@ -36,7 +36,7 @@ export const addsNewPostgresDatabaseWithUrl = () => {
3636
cy.getBySel('max-connections').type('50');
3737
cy.getBySel('idle-timeout').type('180');
3838
cy.getBySel('retries').type('1');
39-
cy.getBySel('save-database').click();
39+
cy.getBySel('connect-database-btn').click();
4040
cy.get('.notification-success', { timeout: 10000 })
4141
.should('be.visible')
4242
.and('contain', 'Database added successfully!');
@@ -56,7 +56,7 @@ export const addsNewPgDBWithConParams = () => {
5656
cy.getBySel('password').type(config.password);
5757
}
5858
cy.getBySel('database-name').type(config.dbName);
59-
cy.getBySel('save-database').click();
59+
cy.getBySel('connect-database-btn').click();
6060
cy.get('.notification-success', { timeout: 10000 })
6161
.should('be.visible')
6262
.and('contain', 'Database added successfully!');
@@ -70,7 +70,7 @@ export const addsNewPgDBWithEnvVar = () => {
7070
cy.getBySel('database-display-name').type('testDB3');
7171
cy.getBySel('database-type').select('postgres');
7272
cy.getBySel('database-url-env').type('HASURA_GRAPHQL_DATABASE_URL');
73-
cy.getBySel('save-database').click();
73+
cy.getBySel('connect-database-btn').click();
7474
cy.get('.notification-success', { timeout: 10000 })
7575
.should('be.visible')
7676
.and('contain', 'Database added successfully!');
@@ -82,7 +82,7 @@ export const failDuplicateNameDb = () => {
8282
cy.get('button').contains('Connect Database').click();
8383
cy.getBySel('database-display-name').type('testDB1');
8484
cy.getBySel('database-url').type(dbUrl);
85-
cy.getBySel('save-database').click();
85+
cy.getBySel('connect-database-btn').click();
8686
cy.get('.notification-error')
8787
.should('be.visible')
8888
.and('contain', 'Add data source failed')

‎console/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Console for Hasura GraphQL Engine",
55
"author": "Hasura (https://github.com/hasura/graphql-engine)",
66
"license": "Apache 2.0",
7-
"version": "2.0.1-5",
7+
"version": "2.0.1-7",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/hasura/graphql-engine"
@@ -224,4 +224,4 @@
224224
"engines": {
225225
"node": ">=8.9.1"
226226
}
227-
}
227+
}

‎console/src/components/Common/Common.scss‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,6 @@ code {
14901490

14911491
.connect_db_radios {
14921492
display: flex;
1493-
width: 70%;
14941493
align-items: center;
14951494
height: auto;
14961495
justify-content: flex-start;
@@ -1507,7 +1506,7 @@ code {
15071506
}
15081507

15091508
.connect_form_layout {
1510-
width: 50%;
1509+
width: 100%;
15111510
padding: 8px 0;
15121511
display: flex;
15131512
flex-direction: column;
@@ -1552,7 +1551,7 @@ code {
15521551
justify-content: space-between;
15531552
}
15541553

1555-
.connnection_settings_form_input_layout {
1554+
.connection_settings_form_input_layout {
15561555
display: flex;
15571556
flex-direction: column;
15581557
align-items: center;
@@ -1566,6 +1565,10 @@ code {
15661565
width: 65%;
15671566
}
15681567

1568+
.connect_form_width {
1569+
width: 50%;
1570+
}
1571+
15691572
/* container height subtracting top header and bottom scroll bar */
15701573
$mainContainerHeight: calc(100vh - 50px - 20px);
15711574

‎console/src/components/Common/LabeledInput/index.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import styles from '../../Common/Common.scss';
33

44
interface LabeledInputProps extends InputHTMLAttributes<HTMLInputElement> {
55
label: string;
6-
labelInBold?: boolean;
6+
boldlabel?: boolean;
77
}
88

99
export const LabeledInput: React.FC<LabeledInputProps> = props => (
1010
<>
11-
<label className={props.labelInBold ? '' : styles.connect_db_input_label}>
12-
{props?.labelInBold ? <b>{props.label}</b> : props.label}
11+
<label className={props.boldlabel ? '' : styles.connect_db_input_label}>
12+
{props?.boldlabel ? <b>{props.label}</b> : props.label}
1313
</label>
1414
<input
1515
type="text"

0 commit comments

Comments
 (0)