diff --git a/apps/fabro-web/app/components/run-summary-panel.tsx b/apps/fabro-web/app/components/run-summary-panel.tsx
index 953920c20..643a16bc3 100644
--- a/apps/fabro-web/app/components/run-summary-panel.tsx
+++ b/apps/fabro-web/app/components/run-summary-panel.tsx
@@ -1,5 +1,6 @@
import type { ReactNode } from "react";
import type {
+ Principal,
Run,
SandboxResources,
SandboxState,
@@ -50,6 +51,16 @@ function Cell({ label, children }: { label: string; children: ReactNode }) {
);
}
+function PrincipalValue({ principal }: { principal: Principal }) {
+ const display = principalDisplay(principal);
+ return (
+
+ {display.glyph}
+ {display.label}
+
+ );
+}
+
export interface RunSummaryPanelViewProps {
run: Run | null;
runLoading: boolean;
@@ -126,15 +137,9 @@ export function RunSummaryPanelView({
{runLoading || !run ? (
- ) : (() => {
- const created = principalDisplay(run.created_by);
- return (
-
- {created.glyph}
- {created.label}
-
- );
- })()}
+ ) : (
+
+ )}
|
diff --git a/apps/fabro-web/app/components/runs-list/run-table-row.tsx b/apps/fabro-web/app/components/runs-list/run-table-row.tsx
index 7810043e3..7fb2a4299 100644
--- a/apps/fabro-web/app/components/runs-list/run-table-row.tsx
+++ b/apps/fabro-web/app/components/runs-list/run-table-row.tsx
@@ -12,6 +12,17 @@ import { RowActionsMenu } from "./row-actions-menu";
import { SelectionCheckbox } from "./selection-checkbox";
import type { ToggleableColumn } from "./toggleable-column";
+function CreatedByCell({ run }: { run: Pick }) {
+ const creatorDisplay = principalDisplay(run.createdBy);
+ return (
+ |
+
+ {creatorDisplay.glyph}
+
+ |
+ );
+}
+
function listLifecycleStatusLabel(
run: Pick,
): string | null {
@@ -52,16 +63,7 @@ export function RunTableRow({
{run.statusLabel}
- {show("created_by") && (() => {
- const creatorDisplay = principalDisplay(run.createdBy);
- return (
-
-
- {creatorDisplay.glyph}
-
- |
- );
- })()}
+ {show("created_by") && }
{show("repo") && (
{run.repo}
| |