Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
454 changes: 454 additions & 0 deletions apps/web/e2e/core-connection.spec.ts

Large diffs are not rendered by default.

210 changes: 210 additions & 0 deletions apps/web/src/components/ConnectionModal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
.connection-modal-modes {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin: 0;
padding: 0;
gap: 8px;
border: 0;
}

.connection-modal-modes legend {
margin-bottom: 6px;
padding: 0;
color: var(--fg-muted);
font-size: 12px;
line-height: 16px;
}

.connection-modal-modes label {
display: flex;
min-width: 0;
padding: 9px 10px;
align-items: flex-start;
gap: 8px;
cursor: pointer;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
}

.connection-modal-modes label.selected {
border-color: var(--accent);
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.connection-modal-modes input {
flex: 0 0 auto;
margin: 2px 0 0;
accent-color: var(--accent);
}

.connection-modal-modes label > span {
display: flex;
min-width: 0;
flex-direction: column;
}

.connection-modal-modes strong,
.connection-modal-modes small {
overflow-wrap: anywhere;
}

.connection-modal-modes strong {
color: var(--fg);
font-size: 12px;
font-weight: 500;
line-height: 16px;
}

.connection-modal-modes small {
color: var(--fg-muted);
font-size: 11px;
line-height: 15px;
}

.connection-modal-local {
margin-top: 12px;
padding: 12px;
color: var(--fg-muted);
font-size: 12px;
line-height: 17px;
background: var(--surface-subtle);
border: 1px solid var(--line);
border-radius: 6px;
}

.connection-modal-local .connection-guide-header > svg {
color: var(--success);
}

.connection-modal-local dl {
margin: 10px 0 0;
}

.connection-modal-local dl > div {
display: grid;
grid-template-columns: 96px minmax(0, 1fr);
padding: 5px 0;
gap: 8px;
border-top: 1px solid var(--line);
}

.connection-modal-local dt {
color: var(--fg-muted);
}

.connection-modal-local dd {
min-width: 0;
margin: 0;
color: var(--fg);
overflow-wrap: anywhere;
}

.connection-modal-local code {
padding: 1px 4px;
color: var(--fg);
font-family: var(--font-mono);
font-size: 11px;
background: var(--surface-muted);
border-radius: 4px;
}

.connection-modal-local-note {
margin: 8px 0 0;
}

.connection-modal-advanced {
margin-top: 12px;
}

.connection-modal-test {
display: flex;
margin-top: 12px;
padding: 10px 0;
align-items: center;
justify-content: space-between;
gap: 12px;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}

.connection-modal-test > div {
min-width: 0;
}

.connection-modal-test strong {
color: var(--fg);
font-size: 12px;
font-weight: 500;
}

.connection-modal-test p {
margin: 2px 0 0;
color: var(--fg-muted);
font-size: 11px;
line-height: 15px;
}

.connection-modal-test .button {
flex: 0 0 auto;
}

.connection-modal-probe-result {
margin-top: 10px;
padding: 9px 10px;
color: var(--fg-muted);
font-size: 12px;
line-height: 17px;
background: var(--surface-subtle);
border: 1px solid var(--line);
border-radius: 6px;
}

.connection-modal-probe-result.succeeded {
border-color: color-mix(in srgb, var(--success) 35%, var(--line));
}

.connection-modal-probe-result.failed {
border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
}

.connection-modal-probe-result strong {
color: var(--fg);
font-size: 12px;
font-weight: 500;
}

.connection-modal-probe-result.failed strong {
color: var(--danger);
}

.connection-modal-probe-result p {
margin: 2px 0 0;
}

.connection-modal-probe-result small {
display: block;
margin-top: 4px;
color: var(--fg-muted);
font-size: 11px;
}

@media (max-width: 520px) {
.connection-modal-modes {
grid-template-columns: 1fr;
}

.connection-modal-test {
align-items: stretch;
flex-direction: column;
}

.connection-modal-test .button {
width: 100%;
}

.connection-modal-local dl > div {
grid-template-columns: 1fr;
gap: 2px;
}
}
Loading
Loading