diff --git a/web/renderer/components/pageComponents/ConnectionsPage/ExistingConnections/Item.tsx b/web/renderer/components/pageComponents/ConnectionsPage/ExistingConnections/Item.tsx
index da41a4c6..f7b826c1 100644
--- a/web/renderer/components/pageComponents/ConnectionsPage/ExistingConnections/Item.tsx
+++ b/web/renderer/components/pageComponents/ConnectionsPage/ExistingConnections/Item.tsx
@@ -12,19 +12,25 @@ type Props = {
conn: DatabaseConnectionFragment;
onDeleteClicked: (n: string) => void;
borderClassName: string;
+ shorterLine: boolean;
};
export default function Item({
conn,
onDeleteClicked,
borderClassName,
+ shorterLine,
}: Props) {
const { onAdd, err, loading } = useAddConnection(conn);
const type = getDatabaseType(conn.type ?? undefined, !!conn.isDolt);
return (
<>
-
+
-
Connections
+
Connections
Connect the workbench to any MySQL or PostgreSQL compatible database.
Use or to unlock version control
features.
-
-
-
![Dolt Logo](/images/d-large-logo.png)
-
+
+
+
+
![Dolt Logo](/images/d-large-logo.png)
+
+
+
+
+
+ {props.connections.map((conn, i) => (
+
+ ))}
+
-
-
-
-
- {props.connections.map((conn, i) => (
-
- ))}
-
{
setActiveTabIndex(activeTabIndex + 1);
};
- const onCancel = () => {
- const { href, as } = connections;
- router.push(href, as).catch(console.error);
- };
return (
);
}
diff --git a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Advanced.tsx b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Advanced.tsx
index edf8a1c0..d8d609bd 100644
--- a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Advanced.tsx
+++ b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Advanced.tsx
@@ -1,11 +1,10 @@
import {
Button,
- ButtonsWithError,
Checkbox,
+ ErrorMsg,
+ SmallLoader,
Tooltip,
} from "@dolthub/react-components";
-import { connections } from "@lib/urls";
-import { useRouter } from "next/router";
import css from "./index.module.css";
import { useConfigContext } from "./context/config";
import { getCanSubmit } from "./context/utils";
@@ -13,12 +12,6 @@ import { getCanSubmit } from "./context/utils";
export default function Advanced() {
const { state, setState, error, onSubmit } = useConfigContext();
const { canSubmit, message } = getCanSubmit(state);
- const router = useRouter();
-
- const onCancel = () => {
- const { href, as } = connections;
- router.push(href, as).catch(console.error);
- };
return (
);
}
diff --git a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Connection.tsx b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Connection.tsx
index 02e3613a..da34066b 100644
--- a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Connection.tsx
+++ b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/Connection.tsx
@@ -1,29 +1,18 @@
-import {
- Button,
- ButtonsWithError,
- FormInput,
- useTabsContext,
-} from "@dolthub/react-components";
+import { Button, FormInput, useTabsContext } from "@dolthub/react-components";
import { DatabaseType } from "@gen/graphql-types";
import { SyntheticEvent } from "react";
-import { useRouter } from "next/router";
-import { connections } from "@lib/urls";
import css from "./index.module.css";
import { useConfigContext } from "./context/config";
export default function Connection() {
const { state, setState } = useConfigContext();
const { activeTabIndex, setActiveTabIndex } = useTabsContext();
- const router = useRouter();
const onNext = (e: SyntheticEvent) => {
e.preventDefault();
setActiveTabIndex(activeTabIndex + 1);
};
- const onCancel = () => {
- const { href, as } = connections;
- router.push(href, as).catch(console.error);
- };
+
return (
);
}
diff --git a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/context/config.tsx b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/context/config.tsx
index a2b14785..e0bb7d65 100644
--- a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/context/config.tsx
+++ b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/context/config.tsx
@@ -23,7 +23,6 @@ export function ConfigProvider({ children }: Props) {
const router = useRouter();
const [state, setState] = useSetState(defaultState);
- console.log(state);
const { mutateFn, ...res } = useMutation({
hook: useAddDatabaseConnectionMutation,
});
diff --git a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.module.css b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.module.css
index 44959eb6..ae5eda83 100644
--- a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.module.css
+++ b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.module.css
@@ -1,11 +1,5 @@
.container {
@apply py-20 bg-stone-50 mb-16;
- a {
- @apply text-[#FF8964];
- }
- a:hover {
- @apply text-coral-400;
- }
}
.panel {
@@ -17,7 +11,7 @@
}
.tab {
- @apply w-32 text-[#9AA5AD];
+ @apply w-32 h-10 text-[#9AA5AD];
button {
@apply flex items-center w-full;
}
@@ -39,8 +33,13 @@
}
.databaseForm {
- @apply w-full max-w-2xl mx-auto;
-
+ @apply w-full max-w-2xl mx-auto mt-8;
+ a {
+ @apply text-[#FF8964];
+ }
+ a:hover {
+ @apply text-coral-400;
+ }
h3 {
@apply mb-4;
}
@@ -110,6 +109,15 @@
@apply mb-3 text-sm w-full;
}
+.form .checkbox {
+ svg {
+ @apply text-[#FF8964];
+ &:hover {
+ @apply bg-coral-400;
+ }
+ }
+}
+
.instructions {
@apply mb-8;
}
@@ -120,10 +128,3 @@
@apply bg-coral-400;
}
}
-
-.buttons button:last-child {
- @apply text-[#FF8964];
- &:hover {
- @apply text-coral-400;
- }
-}
diff --git a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.tsx b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.tsx
index 502eaa50..8c2c50a7 100644
--- a/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.tsx
+++ b/web/renderer/components/pageComponents/ConnectionsPage/NewConnection/index.tsx
@@ -10,24 +10,31 @@ type Props = {
showWelcomeMsg?: boolean;
};
-export default function NewConnection({ showWelcomeMsg }: Props) {
+function Inner({ showWelcomeMsg }: Props) {
return (
-
-
- {showWelcomeMsg &&
}
-
-
-
Set up new connection
-
- View instructions for connecting to local and Docker installed
- databases here.
-
-
-
-
-
+
+ {showWelcomeMsg &&
}
+
+
+
Set up a new connection
+
+ View instructions for connecting to local and Docker installed
+ databases here.
+
+
+
+
+
+ );
+}
+export default function NewConnection({ showWelcomeMsg }: Props) {
+ return showWelcomeMsg ? (
+
+ ) : (
+
+
);
}
diff --git a/web/renderer/components/pageComponents/DatabasesPage/index.module.css b/web/renderer/components/pageComponents/DatabasesPage/index.module.css
index baaf097b..662940e7 100644
--- a/web/renderer/components/pageComponents/DatabasesPage/index.module.css
+++ b/web/renderer/components/pageComponents/DatabasesPage/index.module.css
@@ -11,7 +11,7 @@
}
.database {
- @apply bg-white w-full h-14 border my-2 px-8 py-2 rounded flex justify-start items-center text-sky-400;
+ @apply bg-white w-full h-14 border my-2 px-8 py-2 rounded flex justify-start items-center text-sky-400 min-w-56;
&:hover {
@apply border-stone-300 text-link-1;