diff --git a/packages/app/src/features/auth/account-bar.tsx b/packages/app/src/features/auth/account-bar.tsx index 284a0d5f..b0106069 100644 --- a/packages/app/src/features/auth/account-bar.tsx +++ b/packages/app/src/features/auth/account-bar.tsx @@ -10,6 +10,7 @@ import { projectQuery, projectsQuery } from "../projects/queries"; import { jobQuery, jobsQuery } from "../jobs/queries"; import { runStatusQuery } from "../runs/queries"; import { ResourceSwitcher } from "../../shared/resource-switcher"; +import { NavIcon } from "../../shared/nav-icon"; import beeMark from "../../assets/bee-mark-monochrome.png"; export function AccountBar() { @@ -92,8 +93,8 @@ export function AccountBar() { {authenticated && (pathname === "/" || pathname === "/projects" || pathname === "/skills") && } {logout.isError &&

{logout.error.message}

} diff --git a/packages/app/src/features/jobs/editor.tsx b/packages/app/src/features/jobs/editor.tsx index e0a7a1ff..75a179da 100644 --- a/packages/app/src/features/jobs/editor.tsx +++ b/packages/app/src/features/jobs/editor.tsx @@ -13,6 +13,7 @@ import { canonicalizeVmImage, applySavedJob, editableJob, emptyJob, reconcile, v import { TemplateField } from "./template-field"; import { TriggerEditor } from "./trigger-editor"; import { InvocationPermissionEditor } from "./invocation-permission-editor"; +import { NavIcon } from "../../shared/nav-icon"; import { messageOf } from "../auth/session"; import { projectsQuery } from "../projects/queries"; import { AutosaveStatus, useDebouncedAutosave } from "../../shared/use-debounced-autosave"; @@ -90,7 +91,7 @@ function EditorForm({ initial, section }: { initial?: Job; section?: string }) { const [localConflictDraft, setLocalConflictDraft] = useState(draft); const selectedSection = initial && ["general", "execution", "context", "permissions", "triggers"].includes(section ?? "") ? section : initial ? "general" : "all"; const show = (name: string) => selectedSection === "all" || selectedSection === name; - const settingsSection = (name: "general" | "execution" | "context" | "permissions" | "triggers") => {name[0].toUpperCase() + name.slice(1)}; + const settingsSection = (name: "general" | "execution" | "context" | "permissions" | "triggers") => {name[0].toUpperCase() + name.slice(1)}; return {(remote || reconciling || refreshConflict.error) &&

This job changed while you were editing

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 &&