Your unsaved draft is retained. Review the latest configuration before retrying.
{refreshConflict.isPending &&
Loading latest configuration…
}{refreshConflict.error && <>
{refreshConflict.error.message}
>}
diff --git a/packages/app/src/features/jobs/job-nav.tsx b/packages/app/src/features/jobs/job-nav.tsx
index eb1ed0ae..91e1370c 100644
--- a/packages/app/src/features/jobs/job-nav.tsx
+++ b/packages/app/src/features/jobs/job-nav.tsx
@@ -1,15 +1,16 @@
import { Link } from "@tanstack/react-router";
+import { NavIcon } from "../../shared/nav-icon";
type JobTab = "runs" | "settings";
export function JobNav({ jobId, tab }: { jobId: string; tab: JobTab }) {
const tabs = [
- { id: "runs" as const, label: "Runs", to: "/jobs/$jobId" as const },
- { id: "settings" as const, label: "Settings", to: "/jobs/$jobId/settings" as const },
+ { id: "runs" as const, label: "Runs", to: "/jobs/$jobId" as const, icon: },
+ { id: "settings" as const, label: "Settings", to: "/jobs/$jobId/settings" as const, icon: },
];
return ;
}
diff --git a/packages/app/src/features/jobs/tabs.tsx b/packages/app/src/features/jobs/tabs.tsx
index d0c1543a..f3c15e95 100644
--- a/packages/app/src/features/jobs/tabs.tsx
+++ b/packages/app/src/features/jobs/tabs.tsx
@@ -1,10 +1,11 @@
import { Link } from "@tanstack/react-router";
+import { NavIcon } from "../../shared/nav-icon";
export function JobTabs({ jobId }: { jobId: string }) {
const classes = "inline-flex min-h-11 items-center border-b-2 px-4 py-2 text-sm font-semibold hover:bg-stone-100 dark:hover:bg-slate-800";
const activeProps = { className: "border-factorize-500 text-factorize-700 dark:text-factorize-500", "aria-current": "page" as const };
return ;
}
diff --git a/packages/app/src/features/projects/project-nav.tsx b/packages/app/src/features/projects/project-nav.tsx
index 8a3f332d..0ac99360 100644
--- a/packages/app/src/features/projects/project-nav.tsx
+++ b/packages/app/src/features/projects/project-nav.tsx
@@ -1,14 +1,15 @@
import { Link, useParams } from "@tanstack/react-router";
import { useQuery } from "@tanstack/react-query";
import { Page } from "../../shared/ui";
+import { NavIcon } from "../../shared/nav-icon";
import { projectQuery } from "./queries";
type ProjectTab = "jobs" | "runs" | "settings";
const tabs: Array<{ id: ProjectTab; label: string; to: "/projects/$projectId" | "/projects/$projectId/runs" | "/projects/$projectId/settings"; icon: React.ReactNode }> = [
- { id: "jobs", label: "Jobs", to: "/projects/$projectId", icon: },
- { id: "runs", label: "Runs", to: "/projects/$projectId/runs", icon: },
- { id: "settings", label: "Settings", to: "/projects/$projectId/settings", icon: },
+ { id: "jobs", label: "Jobs", to: "/projects/$projectId", icon: },
+ { id: "runs", label: "Runs", to: "/projects/$projectId/runs", icon: },
+ { id: "settings", label: "Settings", to: "/projects/$projectId/settings", icon: },
];
export function ProjectNav({ tab, projectId: projectIdProp, children }: { tab: ProjectTab; projectId?: string; children?: React.ReactNode }) {
diff --git a/packages/app/src/features/runs/detail.tsx b/packages/app/src/features/runs/detail.tsx
index 061f9c57..836abefa 100644
--- a/packages/app/src/features/runs/detail.tsx
+++ b/packages/app/src/features/runs/detail.tsx
@@ -11,6 +11,7 @@ import { jobQuery } from "../jobs/queries";
import { JobNav } from "../jobs/job-nav";
import { ResourceSwitcher } from "../../shared/resource-switcher";
import { messageOf } from "../auth/session";
+import { NavIcon } from "../../shared/nav-icon";
function RuntimeInfo({ startedAt, updatedAt, active }: { startedAt: string | null; updatedAt: string; active: boolean }) {
const [now, setNow] = useState(() => Date.now());
useEffect(() => {
@@ -73,12 +74,12 @@ export function RunDetail() {
{stop.error &&
{stop.error.message}
}
{!fullTrace && }
{!fullTrace &&
{status.data &&
diff --git a/packages/app/src/features/settings/navigation.tsx b/packages/app/src/features/settings/navigation.tsx
index 38d9de1d..e9fe4f30 100644
--- a/packages/app/src/features/settings/navigation.tsx
+++ b/packages/app/src/features/settings/navigation.tsx
@@ -1,5 +1,15 @@
import type { ReactNode } from "react";
import { Page } from "../../shared/ui";
import { Link } from "@tanstack/react-router";
-export function SettingsNavigation() { const cls = "rounded-lg px-3 py-2 hover:bg-stone-100 dark:hover:bg-slate-800"; const active = { className: "bg-factorize-50 text-factorize-700 dark:bg-factorize-500/10 dark:text-factorize-500" }; return ; }
+import { NavIcon } from "../../shared/nav-icon";
+export function SettingsNavigation() {
+ const cls = "inline-flex items-center gap-2 rounded-lg px-3 py-2 hover:bg-stone-100 dark:hover:bg-slate-800";
+ const active = { className: "bg-factorize-50 text-factorize-700 dark:bg-factorize-500/10 dark:text-factorize-500" };
+ return ;
+}
export function SettingsLayout({ title, children }: { title: string; children: ReactNode }) { return
{title}
{title === "Integrations" ? "Connect every provider used by your jobs. Stored credentials are write-only." : "Manage access to your software factory."}