@@ -263,7 +303,8 @@ function RecentRow({
)}
-
+ {m.remote &&
}
+
{opening ? (
diff --git a/src/features/welcome/Welcome.module.css b/src/features/welcome/Welcome.module.css
index a321e4f21e..7fb2a23de5 100644
--- a/src/features/welcome/Welcome.module.css
+++ b/src/features/welcome/Welcome.module.css
@@ -215,6 +215,69 @@
height: 32px;
margin-top: var(--space-0-5);
font-size: var(--fs-ui);
+ --remote-badge-ring: var(--bg-island);
+}
+.tileRemote {
+ position: relative;
+ overflow: visible;
+}
+.remoteCorner {
+ position: absolute;
+ right: -3px;
+ bottom: -3px;
+ width: 12px;
+ height: 12px;
+ border-radius: 3.5px;
+ background: var(--accent);
+ color: var(--fg-on-accent);
+ --icon-color: currentColor;
+ border: 1.5px solid var(--remote-badge-ring, var(--bg-popup));
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ font-style: normal;
+ pointer-events: none;
+}
+.projectBadge .remoteCorner {
+ width: 14px;
+ height: 14px;
+ border-radius: 4px;
+}
+.remoteHostPill {
+ display: inline-flex;
+ align-items: center;
+ align-self: flex-start;
+ gap: var(--space-1);
+ max-width: 100%;
+ min-width: 0;
+ padding: 1px 6px;
+ border-radius: var(--radius-toolbar-button);
+ background: color-mix(in srgb, var(--accent) 14%, transparent);
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
+ color: var(--link);
+ --icon-color: currentColor;
+ font-size: var(--fs-tiny);
+ line-height: 15px;
+}
+:global(:root[data-theme="light"]) .remoteHostPill {
+ background: color-mix(in srgb, var(--accent) 11%, transparent);
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
+ color: var(--accent);
+}
+.remoteKind {
+ flex: none;
+ font-weight: 600;
+ letter-spacing: 0.02em;
+}
+.remoteDot {
+ flex: none;
+ opacity: 0.65;
+}
+.remoteHostText {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
/* A project group: one line, folds its projects. */
.group {
diff --git a/src/features/welcome/recent.ts b/src/features/welcome/recent.ts
index 1a488e3464..c1a5e7310a 100644
--- a/src/features/welcome/recent.ts
+++ b/src/features/welcome/recent.ts
@@ -92,12 +92,20 @@ function withRemotes(local: RecentProject[]): RecentProject[] {
return [...local, ...remote].sort((a, b) => (b.openedAtMs ?? 0) - (a.openedAtMs ?? 0));
}
-function remoteDetails(location: string): { host: string; path: string } | null {
+const REMOTE_KIND_LABEL: Record
= {
+ ssh: "SSH",
+ wsl: "WSL",
+ devContainer: "Dev Container",
+};
+
+function remoteDetails(
+ location: string,
+): { kind: RemoteTarget["kind"]; kindLabel: string; host: string; path: string } | null {
const r = parseRemoteLocation(location);
if (!r) return null;
const host =
recentRemotes().find((x) => sameTarget(x.target, r.target) && x.path === r.path)?.host || targetName(r.target);
- return { host, path: r.path };
+ return { kind: r.target.kind, kindLabel: REMOTE_KIND_LABEL[r.target.kind], host, path: r.path };
}
export async function removeRecent(path: string) {