Skip to content
Closed
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
Binary file added .github/screenshots/sidebar-executor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions apps/cloud/src/web/shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function SourceList(props: { pathname: string; onNavigate?: () => void }) {
const detailPath = `/sources/${s.id}`;
const active =
props.pathname === detailPath || props.pathname.startsWith(`${detailPath}/`);
const isBuiltIn = s.kind === "built-in";
return (
<Link
key={s.id}
Expand All @@ -106,8 +107,17 @@ function SourceList(props: { pathname: string; onNavigate?: () => void }) {
: "text-sidebar-foreground hover:bg-sidebar-active/60 hover:text-foreground",
].join(" ")}
>
<SourceFavicon url={s.url} />
<span className="flex-1 truncate">{s.name}</span>
{isBuiltIn ? (
<span
aria-hidden
className="flex size-4 shrink-0 items-center justify-center text-muted-foreground"
>
Ξ
</span>
) : (
<SourceFavicon url={s.url} />
)}
<span className="flex-1 truncate">{isBuiltIn ? "Executor" : s.name}</span>
<span className="rounded bg-secondary/50 px-1 py-px text-xs font-medium text-muted-foreground">
{s.kind}
</span>
Expand Down
14 changes: 12 additions & 2 deletions apps/local/src/web/shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ function SourceList(props: { pathname: string; onNavigate?: () => void }) {
const detailPath = `/sources/${s.id}`;
const active =
props.pathname === detailPath || props.pathname.startsWith(`${detailPath}/`);
const isBuiltIn = s.kind === "built-in";
return (
<Link
key={s.id}
Expand All @@ -258,8 +259,17 @@ function SourceList(props: { pathname: string; onNavigate?: () => void }) {
: "text-sidebar-foreground hover:bg-sidebar-active/60 hover:text-foreground",
].join(" ")}
>
<SourceFavicon url={s.url} />
<span className="flex-1 truncate">{s.name}</span>
{isBuiltIn ? (
<span
aria-hidden
className="flex size-4 shrink-0 items-center justify-center text-muted-foreground"
>
Ξ
</span>
) : (
<SourceFavicon url={s.url} />
)}
<span className="flex-1 truncate">{isBuiltIn ? "Executor" : s.name}</span>
<span className="rounded bg-secondary/50 px-1 py-px text-xs font-medium text-muted-foreground">
{s.kind}
</span>
Expand Down
Loading