Skip to content

Commit a749507

Browse files
Merge pull request #1522 from rocket-admin/update-db-naming-and-links
databases list: add compatible databases to the list and ScyllaDB docs link
2 parents af50d73 + d513b21 commit a749507

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

frontend/src/app/components/connect-db/connect-db.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ export class ConnectDBComponent implements OnInit {
408408
if (this.db.host.endsWith('.azure.com')) provider = 'azure';
409409
if (this.db.host.endsWith('.mongodb.net')) provider = 'mongoatlas';
410410
if (this.db.host.endsWith('.ondigitalocean.com')) provider = 'digitalocean';
411+
if (this.db.host.endsWith('.scylla.cloud')) provider = 'scylladbcloud';
411412
if(isIP(this.db.host)) {
412413
const hostIP = ipaddr.parse(this.db.host);
413414
for (const addr of googlIPsList) {

frontend/src/app/components/connect-db/db-connection-confirm-dialog/db-connection-confirm-dialog.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class DbConnectionConfirmDialogComponent implements OnInit {
2727
google: 'Google Cloud Platform',
2828
mongoatlas: 'MongoDB Atlas',
2929
digitalocean: 'DigitalOcean',
30-
30+
scylladbcloud: 'ScyllaDB Cloud',
3131
amazonDynamoDB: 'Amazon DynamoDB',
3232
};
3333
public providerDocsLink = {
@@ -36,7 +36,7 @@ export class DbConnectionConfirmDialogComponent implements OnInit {
3636
google: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_google_cloud',
3737
mongoatlas: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_mongo_atlas',
3838
digitalocean: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_digitalocean_postgresql',
39-
39+
scylladbcloud: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_scylladb',
4040
amazonDynamoDB: 'https://docs.rocketadmin.com/Create%20connections/Direct%20connection/create_aws_dynamodb',
4141
}
4242

frontend/src/app/components/connections-list/own-connections/own-connections.component.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
list-style: none;
4141
display: grid;
4242
grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
43+
align-items: stretch;
4344
grid-gap: 20px;
4445
margin-top: 24px;
4546
width: 77%;
@@ -65,6 +66,7 @@
6566
font-weight: 600;
6667
padding: 12px;
6768
text-decoration: none;
69+
height: 100%;
6870
transition: box-shadow 200ms, background 200ms, border 200ms;
6971
}
7072

@@ -108,6 +110,10 @@
108110
width: 30px;
109111
}
110112

113+
.addConnectionLink__label {
114+
text-align: center;
115+
}
116+
111117
.showAllButton {
112118
margin-top: 20px;
113119
margin-bottom: -56px;

frontend/src/app/components/connections-list/own-connections/own-connections.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1 *ngIf="(currentUser?.role === 'ADMIN' || currentUser?.role === 'DB_ADMIN') &
1313
<div class="addConnectionLink__iconBox">
1414
<mat-icon [svgIcon]="supportedDatabase" class="addConnectionLink__icon"></mat-icon>
1515
</div>
16-
{{ supportedDatabasesTitles[supportedDatabase] }}
16+
<span class="addConnectionLink__label">{{ supportedDatabasesTitles[supportedDatabase] }}</span>
1717
</a>
1818
</li>
1919
</ul>

frontend/src/app/consts/databases.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ export const supportedOrderedDatabases = [
1313
]
1414

1515
export const supportedDatabasesTitles = {
16-
mysql: "MySQL",
16+
mysql: "MySQL (MariaDB)",
1717
postgres: "PostgreSQL",
1818
mongodb: "MongoDB",
1919
dynamodb: "DynamoDB",
20-
cassandra: "Cassandra",
20+
cassandra: "Cassandra (ScyllaDB)",
2121
oracledb: "OracleDB",
2222
mssql: "SQL Server",
2323
redis: "Redis",
24-
elasticsearch: "Elasticsearch",
24+
elasticsearch: "Elasticsearch (OpenSearch)",
2525
clickhouse: "ClickHouse",
2626
ibmdb2: "IBM DB2"
2727
}

0 commit comments

Comments
 (0)