@agimon-ai/po-git 0.0.0-alpha.3 → 0.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions/server.cjs +13 -13
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts +1 -1
- package/dist/extensions/server.mjs +14 -14
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/extensions/web.mjs +112 -112
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{worktreeOperations-2PaaLPTF.mjs → worktreeOperations-BSeyxUai.mjs} +39 -39
- package/dist/worktreeOperations-BSeyxUai.mjs.map +1 -0
- package/dist/{worktreeOperations-C6_xikos.cjs → worktreeOperations-DGUbUnYU.cjs} +50 -50
- package/dist/worktreeOperations-DGUbUnYU.cjs.map +1 -0
- package/package.json +14 -14
- package/dist/worktreeOperations-2PaaLPTF.mjs.map +0 -1
- package/dist/worktreeOperations-C6_xikos.cjs.map +0 -1
package/dist/extensions/web.mjs
CHANGED
|
@@ -218,7 +218,7 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
218
218
|
"aria-describedby": void 0,
|
|
219
219
|
children: [/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "new session" }) }), /* @__PURE__ */ jsxs(DialogBody, { children: [
|
|
220
220
|
/* @__PURE__ */ jsx("p", {
|
|
221
|
-
className: "truncate text-sm text-
|
|
221
|
+
className: "truncate text-sm text-po-dim",
|
|
222
222
|
title: newSession.workspaceRoot,
|
|
223
223
|
children: newSession.workspaceRoot
|
|
224
224
|
}),
|
|
@@ -233,16 +233,16 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
233
233
|
size: "sm",
|
|
234
234
|
"data-testid": `git-new-session-mode-${entry.mode}`,
|
|
235
235
|
disabled: busy,
|
|
236
|
-
className: mode === entry.mode ? "border-
|
|
236
|
+
className: mode === entry.mode ? "border-po-blue/60 text-po-hi" : void 0,
|
|
237
237
|
onClick: () => update({ mode: entry.mode }),
|
|
238
238
|
children: entry.label
|
|
239
239
|
}, entry.mode))
|
|
240
240
|
}) : branches === null && loadError === "" ? /* @__PURE__ */ jsx("p", {
|
|
241
|
-
className: "text-sm text-
|
|
241
|
+
className: "text-sm text-po-dim",
|
|
242
242
|
children: "reading branches…"
|
|
243
243
|
}) : /* @__PURE__ */ jsx("p", {
|
|
244
244
|
"data-testid": "git-new-session-plain-note",
|
|
245
|
-
className: "text-sm text-
|
|
245
|
+
className: "text-sm text-po-dim",
|
|
246
246
|
children: loadError || "This workspace is not a git checkout, so the session starts in its folder."
|
|
247
247
|
}),
|
|
248
248
|
mode === "existing" && gitReady ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -258,9 +258,9 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
258
258
|
}), /* @__PURE__ */ jsxs("div", {
|
|
259
259
|
role: "listbox",
|
|
260
260
|
"aria-label": "branches",
|
|
261
|
-
className: "max-h-48 overflow-y-auto rounded border border-
|
|
261
|
+
className: "max-h-48 overflow-y-auto rounded border border-po-border bg-po-deep p-1",
|
|
262
262
|
children: [options.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
263
|
-
className: "px-2 py-1 text-sm text-
|
|
263
|
+
className: "px-2 py-1 text-sm text-po-dim",
|
|
264
264
|
children: "no matching branches"
|
|
265
265
|
}) : null, options.map((option) => /* @__PURE__ */ jsxs(OptionRow, {
|
|
266
266
|
density: "compact",
|
|
@@ -275,7 +275,7 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
275
275
|
className: "min-w-0 flex-1 truncate",
|
|
276
276
|
children: option.remote === void 0 ? option.name : `${option.remote}/${option.name}`
|
|
277
277
|
}), /* @__PURE__ */ jsx("span", {
|
|
278
|
-
className: "shrink-0 text-sm text-
|
|
278
|
+
className: "shrink-0 text-sm text-po-dim",
|
|
279
279
|
children: option.current && option.busyAt !== void 0 ? "current · checked out" : option.current ? "current" : option.busyAt !== void 0 ? "checked out" : option.remote !== void 0 ? "remote" : ""
|
|
280
280
|
})]
|
|
281
281
|
}, option.key))]
|
|
@@ -287,7 +287,7 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
287
287
|
htmlFor: "git-new-session-new-branch",
|
|
288
288
|
className: "flex flex-col gap-1",
|
|
289
289
|
children: [/* @__PURE__ */ jsx("span", {
|
|
290
|
-
className: "text-sm text-
|
|
290
|
+
className: "text-sm text-po-dim",
|
|
291
291
|
children: "new branch"
|
|
292
292
|
}), /* @__PURE__ */ jsx(Input, {
|
|
293
293
|
id: "git-new-session-new-branch",
|
|
@@ -301,7 +301,7 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
301
301
|
}), /* @__PURE__ */ jsxs("span", {
|
|
302
302
|
className: "flex flex-col gap-1",
|
|
303
303
|
children: [/* @__PURE__ */ jsx("span", {
|
|
304
|
-
className: "text-sm text-
|
|
304
|
+
className: "text-sm text-po-dim",
|
|
305
305
|
children: "from"
|
|
306
306
|
}), /* @__PURE__ */ jsxs(Select, {
|
|
307
307
|
value: form.baseRef,
|
|
@@ -322,9 +322,9 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
322
322
|
htmlFor: "new-session-name",
|
|
323
323
|
className: "flex flex-col gap-1",
|
|
324
324
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
325
|
-
className: "text-sm text-
|
|
325
|
+
className: "text-sm text-po-dim",
|
|
326
326
|
children: ["name ", /* @__PURE__ */ jsxs("span", {
|
|
327
|
-
className: "text-
|
|
327
|
+
className: "text-po-dim",
|
|
328
328
|
children: [
|
|
329
329
|
"(optional",
|
|
330
330
|
mode === "plain" ? "" : "; defaults to the branch",
|
|
@@ -346,7 +346,7 @@ function GitNewSessionDialog({ newSession }) {
|
|
|
346
346
|
}),
|
|
347
347
|
error ? /* @__PURE__ */ jsx("pre", {
|
|
348
348
|
"data-testid": "new-session-error",
|
|
349
|
-
className: "max-h-28 overflow-y-auto rounded border border-
|
|
349
|
+
className: "max-h-28 overflow-y-auto rounded border border-po-edge-red bg-po-tint-red/40 px-2.5 py-2 text-sm whitespace-pre-wrap text-po-red",
|
|
350
350
|
children: error
|
|
351
351
|
}) : null,
|
|
352
352
|
/* @__PURE__ */ jsxs(DialogFooter, { children: [/* @__PURE__ */ jsx(Button, {
|
|
@@ -488,13 +488,13 @@ function GitAuthForm({ saved, saving, saveError, savedNotice = false, onSave })
|
|
|
488
488
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
489
489
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
490
490
|
children: [/* @__PURE__ */ jsx("span", {
|
|
491
|
-
className: "text-base font-medium text-
|
|
491
|
+
className: "text-base font-medium text-po-hi",
|
|
492
492
|
children: choice.title
|
|
493
493
|
}), /* @__PURE__ */ jsx("span", {
|
|
494
|
-
className: "text-sm leading-relaxed text-
|
|
494
|
+
className: "text-sm leading-relaxed text-po-dim",
|
|
495
495
|
children: choice.detail
|
|
496
496
|
})]
|
|
497
|
-
}), form.method === choice.method ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-4 shrink-0 text-
|
|
497
|
+
}), form.method === choice.method ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-4 shrink-0 text-po-green" }) : null]
|
|
498
498
|
}, choice.method))
|
|
499
499
|
}),
|
|
500
500
|
form.method === "ssh" ? /* @__PURE__ */ jsx(SettingsCard, { children: /* @__PURE__ */ jsx(SettingsField, {
|
|
@@ -551,7 +551,7 @@ function GitAuthForm({ saved, saving, saveError, savedNotice = false, onSave })
|
|
|
551
551
|
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
552
552
|
tokenSaved ? /* @__PURE__ */ jsxs("span", {
|
|
553
553
|
"data-testid": "git-auth-token-saved",
|
|
554
|
-
className: "text-
|
|
554
|
+
className: "text-po-green",
|
|
555
555
|
children: ["A token is saved.", " "]
|
|
556
556
|
}) : null,
|
|
557
557
|
"Sent only to ",
|
|
@@ -583,16 +583,16 @@ function GitAuthForm({ saved, saving, saveError, savedNotice = false, onSave })
|
|
|
583
583
|
children: "Save connection"
|
|
584
584
|
}), problem !== void 0 ? /* @__PURE__ */ jsx(SettingsNote, {
|
|
585
585
|
"data-testid": "git-auth-problem",
|
|
586
|
-
className: "text-
|
|
586
|
+
className: "text-po-dim",
|
|
587
587
|
children: problem
|
|
588
588
|
}) : saveError !== void 0 ? /* @__PURE__ */ jsx(SettingsNote, {
|
|
589
589
|
role: "alert",
|
|
590
590
|
"data-testid": "git-auth-error",
|
|
591
|
-
className: "text-
|
|
591
|
+
className: "text-po-red",
|
|
592
592
|
children: saveError
|
|
593
593
|
}) : savedNotice ? /* @__PURE__ */ jsx(SettingsNote, {
|
|
594
594
|
"data-testid": "git-auth-saved",
|
|
595
|
-
className: "text-
|
|
595
|
+
className: "text-po-green",
|
|
596
596
|
children: "Saved."
|
|
597
597
|
}) : null]
|
|
598
598
|
}),
|
|
@@ -730,7 +730,7 @@ function GitAuthPanel({ repository, request, requestWithStepUp }) {
|
|
|
730
730
|
children: /* @__PURE__ */ jsxs("span", {
|
|
731
731
|
className: "inline-flex items-center gap-2",
|
|
732
732
|
children: [/* @__PURE__ */ jsx(Spinner, {
|
|
733
|
-
className: "size-3 text-
|
|
733
|
+
className: "size-3 text-po-faint",
|
|
734
734
|
label: "Loading git settings"
|
|
735
735
|
}), "This takes a moment."]
|
|
736
736
|
})
|
|
@@ -914,8 +914,8 @@ function requestWorktreeClose(sessionId, id) {
|
|
|
914
914
|
*
|
|
915
915
|
* AVOID:
|
|
916
916
|
* - Deriving form state from refreshed store data instead of the user's input.
|
|
917
|
-
* - Colour classes outside the token set. `
|
|
918
|
-
* `
|
|
917
|
+
* - Colour classes outside the token set. `po-error`, `po-line` and
|
|
918
|
+
* `po-bright` are not tokens: they compile to nothing and the row silently
|
|
919
919
|
* loses its border.
|
|
920
920
|
*/
|
|
921
921
|
const WORKTREES_TAB_ID = "git-worktrees";
|
|
@@ -948,15 +948,15 @@ function WorktreesPanel({ sessionId, sessionReservationId }) {
|
|
|
948
948
|
className: "flex min-h-0 flex-1 flex-col overflow-auto",
|
|
949
949
|
children: [
|
|
950
950
|
/* @__PURE__ */ jsxs("div", {
|
|
951
|
-
className: "flex min-h-11 shrink-0 items-center gap-2.5 border-b border-
|
|
951
|
+
className: "flex min-h-11 shrink-0 items-center gap-2.5 border-b border-po-border-soft px-3 sm:px-[26px]",
|
|
952
952
|
children: [
|
|
953
953
|
/* @__PURE__ */ jsx("span", {
|
|
954
|
-
className: "text-lg font-semibold text-
|
|
954
|
+
className: "text-lg font-semibold text-po-hi",
|
|
955
955
|
children: "worktrees"
|
|
956
956
|
}),
|
|
957
957
|
/* @__PURE__ */ jsx("span", {
|
|
958
958
|
"data-testid": "git-worktrees-count",
|
|
959
|
-
className: "text-sm text-
|
|
959
|
+
className: "text-sm text-po-dim",
|
|
960
960
|
children: session.worktrees.length === 0 ? "none yet" : `${String(session.worktrees.length)} open`
|
|
961
961
|
}),
|
|
962
962
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1" }),
|
|
@@ -964,17 +964,17 @@ function WorktreesPanel({ sessionId, sessionReservationId }) {
|
|
|
964
964
|
"data-testid": "git-worktree-pending",
|
|
965
965
|
className: "flex min-w-0 items-center gap-1.5",
|
|
966
966
|
children: [/* @__PURE__ */ jsx(Spinner, {
|
|
967
|
-
className: "h-3 w-3 shrink-0 text-
|
|
967
|
+
className: "h-3 w-3 shrink-0 text-po-faint",
|
|
968
968
|
label: session.pending
|
|
969
969
|
}), /* @__PURE__ */ jsx("span", {
|
|
970
|
-
className: "min-w-0 truncate text-sm text-
|
|
970
|
+
className: "min-w-0 truncate text-sm text-po-dim",
|
|
971
971
|
children: session.pending
|
|
972
972
|
})]
|
|
973
973
|
})
|
|
974
974
|
]
|
|
975
975
|
}),
|
|
976
976
|
/* @__PURE__ */ jsxs("div", {
|
|
977
|
-
className: "flex shrink-0 flex-col gap-1.5 border-b border-
|
|
977
|
+
className: "flex shrink-0 flex-col gap-1.5 border-b border-po-border-soft px-3 py-2.5 sm:px-[26px]",
|
|
978
978
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
979
979
|
className: "flex items-center gap-2",
|
|
980
980
|
children: [
|
|
@@ -1008,19 +1008,19 @@ function WorktreesPanel({ sessionId, sessionReservationId }) {
|
|
|
1008
1008
|
})
|
|
1009
1009
|
]
|
|
1010
1010
|
}), createError === void 0 ? /* @__PURE__ */ jsx("p", {
|
|
1011
|
-
className: "text-sm text-
|
|
1011
|
+
className: "text-sm text-po-dim",
|
|
1012
1012
|
children: "Creates the worktree outside the repository and starts a session nested under this one."
|
|
1013
1013
|
}) : /* @__PURE__ */ jsx("p", {
|
|
1014
1014
|
role: "alert",
|
|
1015
1015
|
"data-testid": "git-worktree-error",
|
|
1016
|
-
className: "text-sm text-
|
|
1016
|
+
className: "text-sm text-po-red",
|
|
1017
1017
|
children: createError
|
|
1018
1018
|
})]
|
|
1019
1019
|
}),
|
|
1020
1020
|
panelError ? /* @__PURE__ */ jsx("p", {
|
|
1021
1021
|
role: "alert",
|
|
1022
1022
|
"data-testid": "git-worktree-error",
|
|
1023
|
-
className: "px-3 pt-2 text-sm text-
|
|
1023
|
+
className: "px-3 pt-2 text-sm text-po-red sm:px-[26px]",
|
|
1024
1024
|
children: session.error
|
|
1025
1025
|
}) : null,
|
|
1026
1026
|
session.worktrees.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
@@ -1045,14 +1045,14 @@ function WorktreesPanel({ sessionId, sessionReservationId }) {
|
|
|
1045
1045
|
function WorktreeCard({ worktree, sessionId, busy, error }) {
|
|
1046
1046
|
return /* @__PURE__ */ jsxs("li", {
|
|
1047
1047
|
"data-testid": `git-worktree-${worktree.id}`,
|
|
1048
|
-
className: "flex min-w-0 flex-col gap-1.5 rounded-md border border-
|
|
1048
|
+
className: "flex min-w-0 flex-col gap-1.5 rounded-md border border-po-border-soft bg-po-panel p-2.5",
|
|
1049
1049
|
children: [
|
|
1050
1050
|
/* @__PURE__ */ jsxs("div", {
|
|
1051
1051
|
className: "flex min-w-0 items-center gap-1.5",
|
|
1052
1052
|
children: [
|
|
1053
1053
|
/* @__PURE__ */ jsx(Dot, { tone: worktree.orphaned ? "red" : worktree.sessionId === null ? "muted" : "blue" }),
|
|
1054
1054
|
/* @__PURE__ */ jsx("span", {
|
|
1055
|
-
className: "min-w-0 flex-1 truncate text-base font-semibold text-
|
|
1055
|
+
className: "min-w-0 flex-1 truncate text-base font-semibold text-po-hi",
|
|
1056
1056
|
children: worktree.branch
|
|
1057
1057
|
}),
|
|
1058
1058
|
worktree.orphaned ? /* @__PURE__ */ jsx(StatusBadge, {
|
|
@@ -1068,7 +1068,7 @@ function WorktreeCard({ worktree, sessionId, busy, error }) {
|
|
|
1068
1068
|
]
|
|
1069
1069
|
}),
|
|
1070
1070
|
/* @__PURE__ */ jsx("span", {
|
|
1071
|
-
className: "min-w-0 truncate text-sm text-
|
|
1071
|
+
className: "min-w-0 truncate text-sm text-po-dim",
|
|
1072
1072
|
children: worktree.path
|
|
1073
1073
|
}),
|
|
1074
1074
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -1086,7 +1086,7 @@ function WorktreeCard({ worktree, sessionId, busy, error }) {
|
|
|
1086
1086
|
error === void 0 ? null : /* @__PURE__ */ jsx("p", {
|
|
1087
1087
|
role: "alert",
|
|
1088
1088
|
"data-testid": "git-worktree-error",
|
|
1089
|
-
className: "text-sm text-
|
|
1089
|
+
className: "text-sm text-po-red",
|
|
1090
1090
|
children: error
|
|
1091
1091
|
})
|
|
1092
1092
|
]
|
|
@@ -1507,27 +1507,27 @@ function flattenTree(files, isOpen) {
|
|
|
1507
1507
|
const STATUS_MARK = {
|
|
1508
1508
|
added: {
|
|
1509
1509
|
letter: "A",
|
|
1510
|
-
tone: "text-
|
|
1510
|
+
tone: "text-po-green",
|
|
1511
1511
|
label: "added"
|
|
1512
1512
|
},
|
|
1513
1513
|
modified: {
|
|
1514
1514
|
letter: "M",
|
|
1515
|
-
tone: "text-
|
|
1515
|
+
tone: "text-po-yellow",
|
|
1516
1516
|
label: "modified"
|
|
1517
1517
|
},
|
|
1518
1518
|
deleted: {
|
|
1519
1519
|
letter: "D",
|
|
1520
|
-
tone: "text-
|
|
1520
|
+
tone: "text-po-red",
|
|
1521
1521
|
label: "deleted"
|
|
1522
1522
|
},
|
|
1523
1523
|
untracked: {
|
|
1524
1524
|
letter: "U",
|
|
1525
|
-
tone: "text-
|
|
1525
|
+
tone: "text-po-blue",
|
|
1526
1526
|
label: "untracked"
|
|
1527
1527
|
},
|
|
1528
1528
|
conflicted: {
|
|
1529
1529
|
letter: "C",
|
|
1530
|
-
tone: "text-
|
|
1530
|
+
tone: "text-po-red",
|
|
1531
1531
|
label: "conflicted"
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
@@ -1570,7 +1570,7 @@ function GitReviewBrowser({ files, activePath, commentCounts, onPick }) {
|
|
|
1570
1570
|
return /* @__PURE__ */ jsxs("nav", {
|
|
1571
1571
|
"data-testid": "git-review-browser",
|
|
1572
1572
|
"aria-label": "changed files",
|
|
1573
|
-
className: "flex min-h-0 w-64 shrink-0 flex-col border-r border-
|
|
1573
|
+
className: "flex min-h-0 w-64 shrink-0 flex-col border-r border-po-border-soft",
|
|
1574
1574
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
1575
1575
|
className: "flex shrink-0 flex-col gap-1 px-3 pt-2.5 pb-1.5",
|
|
1576
1576
|
children: [/* @__PURE__ */ jsx(Input, {
|
|
@@ -1583,7 +1583,7 @@ function GitReviewBrowser({ files, activePath, commentCounts, onPick }) {
|
|
|
1583
1583
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1584
1584
|
className: "flex items-center justify-between gap-2",
|
|
1585
1585
|
children: [/* @__PURE__ */ jsx("span", {
|
|
1586
|
-
className: "text-sm text-
|
|
1586
|
+
className: "text-sm text-po-dim",
|
|
1587
1587
|
children: needle === "" ? `${String(files.length)} changed` : `${String(shown.length)} of ${String(files.length)} match`
|
|
1588
1588
|
}), needle === "" ? /* @__PURE__ */ jsx(Button, {
|
|
1589
1589
|
variant: "link",
|
|
@@ -1609,12 +1609,12 @@ function GitReviewBrowser({ files, activePath, commentCounts, onPick }) {
|
|
|
1609
1609
|
title: row.path,
|
|
1610
1610
|
onClick: () => toggle(row.path),
|
|
1611
1611
|
style: indent(row.depth),
|
|
1612
|
-
className: "min-w-0 flex-row items-center gap-1 rounded-none border-l-2 border-transparent py-1 pr-3 hover:bg-
|
|
1612
|
+
className: "min-w-0 flex-row items-center gap-1 rounded-none border-l-2 border-transparent py-1 pr-3 hover:bg-po-panel/60",
|
|
1613
1613
|
children: [/* @__PURE__ */ jsx(Chevron, {
|
|
1614
1614
|
"aria-hidden": true,
|
|
1615
|
-
className: "h-3 w-3 shrink-0 text-
|
|
1615
|
+
className: "h-3 w-3 shrink-0 text-po-faint"
|
|
1616
1616
|
}), /* @__PURE__ */ jsx("span", {
|
|
1617
|
-
className: "min-w-0 flex-1 truncate text-base text-
|
|
1617
|
+
className: "min-w-0 flex-1 truncate text-base text-po-dim",
|
|
1618
1618
|
children: row.name
|
|
1619
1619
|
})]
|
|
1620
1620
|
}, `dir:${row.path}`);
|
|
@@ -1634,7 +1634,7 @@ function GitReviewBrowser({ files, activePath, commentCounts, onPick }) {
|
|
|
1634
1634
|
onClick: () => onPick(file.path),
|
|
1635
1635
|
onKeyDown,
|
|
1636
1636
|
style: indent(row.depth),
|
|
1637
|
-
className: `min-w-0 flex-row items-center gap-1.5 rounded-none border-l-2 py-1 pr-3 ${active ? "border-
|
|
1637
|
+
className: `min-w-0 flex-row items-center gap-1.5 rounded-none border-l-2 py-1 pr-3 ${active ? "border-po-blue bg-po-panel" : "border-transparent hover:bg-po-panel/60"}`,
|
|
1638
1638
|
children: [
|
|
1639
1639
|
/* @__PURE__ */ jsx("span", {
|
|
1640
1640
|
"aria-label": mark.label,
|
|
@@ -1642,11 +1642,11 @@ function GitReviewBrowser({ files, activePath, commentCounts, onPick }) {
|
|
|
1642
1642
|
children: mark.letter
|
|
1643
1643
|
}),
|
|
1644
1644
|
/* @__PURE__ */ jsx("span", {
|
|
1645
|
-
className: `min-w-0 flex-1 truncate text-base text-
|
|
1645
|
+
className: `min-w-0 flex-1 truncate text-base text-po-hi ${active ? "font-semibold" : ""} ${file.status === "deleted" ? "line-through opacity-70" : ""}`,
|
|
1646
1646
|
children: baseName(file.path)
|
|
1647
1647
|
}),
|
|
1648
1648
|
comments === 0 ? null : /* @__PURE__ */ jsxs("span", {
|
|
1649
|
-
className: "flex shrink-0 items-center gap-0.5 text-sm text-
|
|
1649
|
+
className: "flex shrink-0 items-center gap-0.5 text-sm text-po-blue",
|
|
1650
1650
|
title: `${String(comments)} comments`,
|
|
1651
1651
|
children: [/* @__PURE__ */ jsx(MessageIcon, {
|
|
1652
1652
|
"aria-hidden": true,
|
|
@@ -1654,18 +1654,18 @@ function GitReviewBrowser({ files, activePath, commentCounts, onPick }) {
|
|
|
1654
1654
|
}), comments]
|
|
1655
1655
|
}),
|
|
1656
1656
|
file.binary ? /* @__PURE__ */ jsx("span", {
|
|
1657
|
-
className: "shrink-0 text-sm text-
|
|
1657
|
+
className: "shrink-0 text-sm text-po-dim",
|
|
1658
1658
|
children: "binary"
|
|
1659
1659
|
}) : /* @__PURE__ */ jsxs("span", {
|
|
1660
1660
|
className: "shrink-0 text-2xs",
|
|
1661
1661
|
children: [
|
|
1662
1662
|
/* @__PURE__ */ jsxs("span", {
|
|
1663
|
-
className: "text-
|
|
1663
|
+
className: "text-po-green",
|
|
1664
1664
|
children: ["+", file.added]
|
|
1665
1665
|
}),
|
|
1666
1666
|
" ",
|
|
1667
1667
|
/* @__PURE__ */ jsxs("span", {
|
|
1668
|
-
className: "text-
|
|
1668
|
+
className: "text-po-red",
|
|
1669
1669
|
children: ["-", file.removed]
|
|
1670
1670
|
})
|
|
1671
1671
|
]
|
|
@@ -1673,7 +1673,7 @@ function GitReviewBrowser({ files, activePath, commentCounts, onPick }) {
|
|
|
1673
1673
|
]
|
|
1674
1674
|
}, file.path);
|
|
1675
1675
|
}), ordered.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
1676
|
-
className: "px-3 py-2 text-sm text-
|
|
1676
|
+
className: "px-3 py-2 text-sm text-po-dim",
|
|
1677
1677
|
children: "no path matches"
|
|
1678
1678
|
}) : null]
|
|
1679
1679
|
})]
|
|
@@ -1706,7 +1706,7 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1706
1706
|
const upstream = changes?.upstream;
|
|
1707
1707
|
return /* @__PURE__ */ jsxs("div", {
|
|
1708
1708
|
"data-testid": "git-sync-bar",
|
|
1709
|
-
className: "flex shrink-0 flex-col gap-2 border-b border-
|
|
1709
|
+
className: "flex shrink-0 flex-col gap-2 border-b border-po-border-soft px-3 py-2.5 sm:px-[26px]",
|
|
1710
1710
|
children: [
|
|
1711
1711
|
/* @__PURE__ */ jsxs("div", {
|
|
1712
1712
|
className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1.5",
|
|
@@ -1716,19 +1716,19 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1716
1716
|
children: [
|
|
1717
1717
|
/* @__PURE__ */ jsx(BranchIcon, {
|
|
1718
1718
|
"aria-hidden": true,
|
|
1719
|
-
className: "h-3.5 w-3.5 shrink-0 text-
|
|
1719
|
+
className: "h-3.5 w-3.5 shrink-0 text-po-faint"
|
|
1720
1720
|
}),
|
|
1721
1721
|
/* @__PURE__ */ jsx("span", {
|
|
1722
1722
|
"data-testid": "git-review-branch",
|
|
1723
|
-
className: "truncate text-base font-semibold text-
|
|
1723
|
+
className: "truncate text-base font-semibold text-po-hi",
|
|
1724
1724
|
children: changes?.branch ?? "detached HEAD"
|
|
1725
1725
|
}),
|
|
1726
1726
|
/* @__PURE__ */ jsx("span", {
|
|
1727
|
-
className: "shrink-0 text-sm text-
|
|
1727
|
+
className: "shrink-0 text-sm text-po-dim",
|
|
1728
1728
|
children: changes?.base === void 0 ? "uncommitted changes" : `vs ${changes.base}`
|
|
1729
1729
|
}),
|
|
1730
1730
|
mergeBase === void 0 ? null : /* @__PURE__ */ jsxs("span", {
|
|
1731
|
-
className: "shrink-0 text-sm text-
|
|
1731
|
+
className: "shrink-0 text-sm text-po-dim",
|
|
1732
1732
|
children: ["from ", mergeBase]
|
|
1733
1733
|
})
|
|
1734
1734
|
]
|
|
@@ -1738,15 +1738,15 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1738
1738
|
className: "flex shrink-0 items-center gap-1.5 text-sm",
|
|
1739
1739
|
children: [
|
|
1740
1740
|
/* @__PURE__ */ jsxs("span", {
|
|
1741
|
-
className: "font-semibold text-
|
|
1741
|
+
className: "font-semibold text-po-green",
|
|
1742
1742
|
children: ["+", changes.added]
|
|
1743
1743
|
}),
|
|
1744
1744
|
/* @__PURE__ */ jsxs("span", {
|
|
1745
|
-
className: "font-semibold text-
|
|
1745
|
+
className: "font-semibold text-po-red",
|
|
1746
1746
|
children: ["-", changes.removed]
|
|
1747
1747
|
}),
|
|
1748
1748
|
/* @__PURE__ */ jsxs("span", {
|
|
1749
|
-
className: "text-
|
|
1749
|
+
className: "text-po-dim",
|
|
1750
1750
|
children: [
|
|
1751
1751
|
changes.files,
|
|
1752
1752
|
changes.truncated ? "+" : "",
|
|
@@ -1758,10 +1758,10 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1758
1758
|
}),
|
|
1759
1759
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1" }),
|
|
1760
1760
|
upstream === void 0 ? /* @__PURE__ */ jsx("span", {
|
|
1761
|
-
className: "shrink-0 text-sm text-
|
|
1761
|
+
className: "shrink-0 text-sm text-po-dim",
|
|
1762
1762
|
children: "no upstream yet"
|
|
1763
1763
|
}) : /* @__PURE__ */ jsxs("span", {
|
|
1764
|
-
className: "shrink-0 text-sm text-
|
|
1764
|
+
className: "shrink-0 text-sm text-po-dim",
|
|
1765
1765
|
title: upstream.ref,
|
|
1766
1766
|
children: [
|
|
1767
1767
|
"↑",
|
|
@@ -1807,17 +1807,17 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1807
1807
|
"data-testid": "git-sync-pending",
|
|
1808
1808
|
className: "flex min-w-0 items-center gap-1.5",
|
|
1809
1809
|
children: [/* @__PURE__ */ jsx(Spinner, {
|
|
1810
|
-
className: "h-3 w-3 shrink-0 text-
|
|
1810
|
+
className: "h-3 w-3 shrink-0 text-po-faint",
|
|
1811
1811
|
label: pending
|
|
1812
1812
|
}), /* @__PURE__ */ jsx("span", {
|
|
1813
|
-
className: "min-w-0 truncate text-sm text-
|
|
1813
|
+
className: "min-w-0 truncate text-sm text-po-dim",
|
|
1814
1814
|
children: pending
|
|
1815
1815
|
})]
|
|
1816
1816
|
}),
|
|
1817
1817
|
syncError === void 0 ? null : /* @__PURE__ */ jsxs("div", {
|
|
1818
1818
|
role: "alert",
|
|
1819
1819
|
"data-testid": "git-sync-error",
|
|
1820
|
-
className: "flex min-w-0 items-start gap-1.5 text-sm text-
|
|
1820
|
+
className: "flex min-w-0 items-start gap-1.5 text-sm text-po-red",
|
|
1821
1821
|
children: [
|
|
1822
1822
|
/* @__PURE__ */ jsx(AlertIcon, {
|
|
1823
1823
|
"aria-hidden": true,
|
|
@@ -1838,10 +1838,10 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1838
1838
|
}),
|
|
1839
1839
|
forceRequired ? /* @__PURE__ */ jsxs("div", {
|
|
1840
1840
|
"data-testid": "git-push-force-confirm",
|
|
1841
|
-
className: "flex min-w-0 flex-wrap items-center gap-2 rounded-md border border-
|
|
1841
|
+
className: "flex min-w-0 flex-wrap items-center gap-2 rounded-md border border-po-edge-yellow bg-po-tint-yellow px-2.5 py-2",
|
|
1842
1842
|
children: [
|
|
1843
1843
|
/* @__PURE__ */ jsx("span", {
|
|
1844
|
-
className: "min-w-0 flex-1 text-base text-
|
|
1844
|
+
className: "min-w-0 flex-1 text-base text-po-hi",
|
|
1845
1845
|
children: "The remote branch has commits yours replaced, usually after a rebase. Force push with lease? It is refused if the remote holds commits you never fetched and integrated."
|
|
1846
1846
|
}),
|
|
1847
1847
|
/* @__PURE__ */ jsx(Button, {
|
|
@@ -1863,7 +1863,7 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1863
1863
|
}) : null,
|
|
1864
1864
|
changes?.rebase === void 0 ? null : /* @__PURE__ */ jsxs("div", {
|
|
1865
1865
|
"data-testid": "git-rebase-banner",
|
|
1866
|
-
className: "flex min-w-0 flex-col gap-1.5 rounded-md border border-
|
|
1866
|
+
className: "flex min-w-0 flex-col gap-1.5 rounded-md border border-po-edge-red bg-po-tint-red px-2.5 py-2",
|
|
1867
1867
|
children: [
|
|
1868
1868
|
/* @__PURE__ */ jsxs("span", {
|
|
1869
1869
|
className: "flex min-w-0 items-center gap-1.5",
|
|
@@ -1872,14 +1872,14 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1872
1872
|
size: "xs",
|
|
1873
1873
|
children: "rebase paused"
|
|
1874
1874
|
}), /* @__PURE__ */ jsx("span", {
|
|
1875
|
-
className: "text-base text-
|
|
1875
|
+
className: "text-base text-po-hi",
|
|
1876
1876
|
children: changes.rebase.conflicts.length === 0 ? "git stopped the rebase" : `conflicts in ${String(changes.rebase.conflicts.length)} ${changes.rebase.conflicts.length === 1 ? "file" : "files"}`
|
|
1877
1877
|
})]
|
|
1878
1878
|
}),
|
|
1879
1879
|
changes.rebase.conflicts.length === 0 ? null : /* @__PURE__ */ jsx("ul", {
|
|
1880
1880
|
className: "flex flex-col gap-0.5 pl-1",
|
|
1881
1881
|
children: changes.rebase.conflicts.map((file) => /* @__PURE__ */ jsx("li", {
|
|
1882
|
-
className: "truncate font-mono text-sm text-
|
|
1882
|
+
className: "truncate font-mono text-sm text-po-dim",
|
|
1883
1883
|
children: file
|
|
1884
1884
|
}, file))
|
|
1885
1885
|
}),
|
|
@@ -1903,7 +1903,7 @@ function GitSyncBar({ changes, mergeBase, pending, error, errorTarget, onSync, o
|
|
|
1903
1903
|
children: "abort rebase"
|
|
1904
1904
|
}),
|
|
1905
1905
|
/* @__PURE__ */ jsx("span", {
|
|
1906
|
-
className: "text-sm text-
|
|
1906
|
+
className: "text-sm text-po-dim",
|
|
1907
1907
|
children: "abort discards any conflict resolution in progress"
|
|
1908
1908
|
})
|
|
1909
1909
|
]
|
|
@@ -2088,16 +2088,16 @@ function GitReviewView({ sync, summary, files, comments, onLoadFile, onAddCommen
|
|
|
2088
2088
|
"data-testid": "git-review-loading",
|
|
2089
2089
|
className: "flex flex-1 items-start gap-2 px-4 py-6",
|
|
2090
2090
|
children: [/* @__PURE__ */ jsx(Spinner, {
|
|
2091
|
-
className: "h-3 w-3 text-
|
|
2091
|
+
className: "h-3 w-3 text-po-faint",
|
|
2092
2092
|
label: "reading changes"
|
|
2093
2093
|
}), /* @__PURE__ */ jsx("span", {
|
|
2094
|
-
className: "text-sm text-
|
|
2094
|
+
className: "text-sm text-po-dim",
|
|
2095
2095
|
children: "reading changes…"
|
|
2096
2096
|
})]
|
|
2097
2097
|
}) : summary.state === "error" ? /* @__PURE__ */ jsx("p", {
|
|
2098
2098
|
role: "alert",
|
|
2099
2099
|
"data-testid": "git-review-error",
|
|
2100
|
-
className: "flex-1 px-4 py-6 text-sm text-
|
|
2100
|
+
className: "flex-1 px-4 py-6 text-sm text-po-red",
|
|
2101
2101
|
children: summary.error
|
|
2102
2102
|
}) : !summary.summary.repository ? /* @__PURE__ */ jsx(EmptyState, {
|
|
2103
2103
|
"data-testid": "git-review-no-repository",
|
|
@@ -2121,7 +2121,7 @@ function GitReviewView({ sync, summary, files, comments, onLoadFile, onAddCommen
|
|
|
2121
2121
|
"data-testid": "git-review-diffs",
|
|
2122
2122
|
className: "min-h-0 min-w-0 flex-1 overflow-y-auto",
|
|
2123
2123
|
children: [summary.summary.truncated ? /* @__PURE__ */ jsx("p", {
|
|
2124
|
-
className: "px-4 pt-2 text-sm text-
|
|
2124
|
+
className: "px-4 pt-2 text-sm text-po-dim",
|
|
2125
2125
|
children: "more files changed than the review lists; the rest are left out."
|
|
2126
2126
|
}) : null, entries.map((file, index) => /* @__PURE__ */ jsx(FileSection, {
|
|
2127
2127
|
id: sectionId(index),
|
|
@@ -2153,22 +2153,22 @@ function GitReviewView({ sync, summary, files, comments, onLoadFile, onAddCommen
|
|
|
2153
2153
|
}),
|
|
2154
2154
|
/* @__PURE__ */ jsxs("div", {
|
|
2155
2155
|
"data-testid": "git-review-footer",
|
|
2156
|
-
className: "flex shrink-0 flex-wrap items-center gap-2 border-t border-
|
|
2156
|
+
className: "flex shrink-0 flex-wrap items-center gap-2 border-t border-po-border-soft bg-po-panel px-3 py-2 sm:px-[26px]",
|
|
2157
2157
|
children: [
|
|
2158
2158
|
/* @__PURE__ */ jsx(MessageIcon, {
|
|
2159
2159
|
"aria-hidden": true,
|
|
2160
|
-
className: "h-3 w-3 text-
|
|
2160
|
+
className: "h-3 w-3 text-po-faint"
|
|
2161
2161
|
}),
|
|
2162
2162
|
/* @__PURE__ */ jsx("span", {
|
|
2163
2163
|
"data-testid": "git-review-comment-count",
|
|
2164
|
-
className: "text-sm text-
|
|
2164
|
+
className: "text-sm text-po-dim",
|
|
2165
2165
|
children: comments.length === 0 ? "no comments yet: select lines or click a line number" : `${String(comments.length)} ${comments.length === 1 ? "comment" : "comments"}`
|
|
2166
2166
|
}),
|
|
2167
2167
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1" }),
|
|
2168
2168
|
sendError === void 0 ? null : /* @__PURE__ */ jsx("span", {
|
|
2169
2169
|
role: "alert",
|
|
2170
2170
|
"data-testid": "git-review-send-error",
|
|
2171
|
-
className: "min-w-0 truncate text-sm text-
|
|
2171
|
+
className: "min-w-0 truncate text-sm text-po-red",
|
|
2172
2172
|
children: sendError
|
|
2173
2173
|
}),
|
|
2174
2174
|
/* @__PURE__ */ jsx(Button, {
|
|
@@ -2207,22 +2207,22 @@ function FileSection({ id, entry, state, collapsed, mounted, placeholderHeight,
|
|
|
2207
2207
|
const drafting = draft !== void 0 && draft.side === side && draft.endLine === row.line;
|
|
2208
2208
|
if (here.length === 0 && !drafting) return null;
|
|
2209
2209
|
return /* @__PURE__ */ jsxs("div", {
|
|
2210
|
-
className: "flex flex-col gap-1.5 border-y border-
|
|
2210
|
+
className: "flex flex-col gap-1.5 border-y border-po-border-soft bg-po-bg px-2 py-1.5 font-sans whitespace-normal",
|
|
2211
2211
|
children: [here.map((comment) => /* @__PURE__ */ jsxs("div", {
|
|
2212
2212
|
"data-testid": `git-review-comment-${comment.id}`,
|
|
2213
|
-
className: "flex min-w-0 items-start gap-2 rounded-md border border-
|
|
2213
|
+
className: "flex min-w-0 items-start gap-2 rounded-md border border-po-border-soft bg-po-panel px-2 py-1.5",
|
|
2214
2214
|
children: [
|
|
2215
2215
|
/* @__PURE__ */ jsx(MessageIcon, {
|
|
2216
2216
|
"aria-hidden": true,
|
|
2217
|
-
className: "mt-0.5 h-3 w-3 shrink-0 text-
|
|
2217
|
+
className: "mt-0.5 h-3 w-3 shrink-0 text-po-blue"
|
|
2218
2218
|
}),
|
|
2219
2219
|
/* @__PURE__ */ jsxs("span", {
|
|
2220
2220
|
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
2221
2221
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2222
|
-
className: "font-mono text-sm text-
|
|
2222
|
+
className: "font-mono text-sm text-po-dim",
|
|
2223
2223
|
children: reviewCommentAnchor(comment)
|
|
2224
2224
|
}), /* @__PURE__ */ jsx("span", {
|
|
2225
|
-
className: "text-base whitespace-pre-wrap text-
|
|
2225
|
+
className: "text-base whitespace-pre-wrap text-po-text",
|
|
2226
2226
|
children: comment.body
|
|
2227
2227
|
})]
|
|
2228
2228
|
}),
|
|
@@ -2236,7 +2236,7 @@ function FileSection({ id, entry, state, collapsed, mounted, placeholderHeight,
|
|
|
2236
2236
|
})
|
|
2237
2237
|
]
|
|
2238
2238
|
}, comment.id)), drafting ? /* @__PURE__ */ jsx("div", {
|
|
2239
|
-
className: "rounded-md border border-
|
|
2239
|
+
className: "rounded-md border border-po-border bg-po-panel",
|
|
2240
2240
|
children: /* @__PURE__ */ jsx(ReviewCommentDraft, {
|
|
2241
2241
|
snippet: draft.snippet,
|
|
2242
2242
|
startLine: draft.startLine,
|
|
@@ -2253,31 +2253,31 @@ function FileSection({ id, entry, state, collapsed, mounted, placeholderHeight,
|
|
|
2253
2253
|
id,
|
|
2254
2254
|
"data-review-path": entry.path,
|
|
2255
2255
|
"data-testid": `git-review-file-${entry.path}`,
|
|
2256
|
-
className: "border-b border-
|
|
2256
|
+
className: "border-b border-po-border-soft",
|
|
2257
2257
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
2258
2258
|
variant: "ghost",
|
|
2259
2259
|
size: "card",
|
|
2260
2260
|
"aria-expanded": !collapsed,
|
|
2261
2261
|
onClick: onToggle,
|
|
2262
|
-
className: "sticky top-0 z-10 flex-row items-center gap-1.5 rounded-none border-b border-
|
|
2262
|
+
className: "sticky top-0 z-10 flex-row items-center gap-1.5 rounded-none border-b border-po-border-soft bg-po-rail px-3 py-1.5 hover:bg-po-panel sm:px-4",
|
|
2263
2263
|
children: [
|
|
2264
2264
|
collapsed ? /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
2265
2265
|
"aria-hidden": true,
|
|
2266
|
-
className: "h-3 w-3 shrink-0 text-
|
|
2266
|
+
className: "h-3 w-3 shrink-0 text-po-faint"
|
|
2267
2267
|
}) : /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
2268
2268
|
"aria-hidden": true,
|
|
2269
|
-
className: "h-3 w-3 shrink-0 text-
|
|
2269
|
+
className: "h-3 w-3 shrink-0 text-po-faint"
|
|
2270
2270
|
}),
|
|
2271
2271
|
/* @__PURE__ */ jsx("span", {
|
|
2272
|
-
className: "min-w-0 flex-1 truncate font-mono text-base font-semibold text-
|
|
2272
|
+
className: "min-w-0 flex-1 truncate font-mono text-base font-semibold text-po-hi",
|
|
2273
2273
|
children: entry.path
|
|
2274
2274
|
}),
|
|
2275
2275
|
/* @__PURE__ */ jsx("span", {
|
|
2276
|
-
className: "shrink-0 text-sm font-semibold text-
|
|
2276
|
+
className: "shrink-0 text-sm font-semibold text-po-dim",
|
|
2277
2277
|
children: STATUS_WORD[entry.status]
|
|
2278
2278
|
}),
|
|
2279
2279
|
comments.length === 0 ? null : /* @__PURE__ */ jsxs("span", {
|
|
2280
|
-
className: "flex shrink-0 items-center gap-0.5 text-sm text-
|
|
2280
|
+
className: "flex shrink-0 items-center gap-0.5 text-sm text-po-blue",
|
|
2281
2281
|
children: [/* @__PURE__ */ jsx(MessageIcon, {
|
|
2282
2282
|
"aria-hidden": true,
|
|
2283
2283
|
className: "h-2.5 w-2.5"
|
|
@@ -2287,12 +2287,12 @@ function FileSection({ id, entry, state, collapsed, mounted, placeholderHeight,
|
|
|
2287
2287
|
className: "shrink-0 text-2xs",
|
|
2288
2288
|
children: [
|
|
2289
2289
|
/* @__PURE__ */ jsxs("span", {
|
|
2290
|
-
className: "text-
|
|
2290
|
+
className: "text-po-green",
|
|
2291
2291
|
children: ["+", entry.added]
|
|
2292
2292
|
}),
|
|
2293
2293
|
" ",
|
|
2294
2294
|
/* @__PURE__ */ jsxs("span", {
|
|
2295
|
-
className: "text-
|
|
2295
|
+
className: "text-po-red",
|
|
2296
2296
|
children: ["-", entry.removed]
|
|
2297
2297
|
})
|
|
2298
2298
|
]
|
|
@@ -2307,17 +2307,17 @@ function FileSection({ id, entry, state, collapsed, mounted, placeholderHeight,
|
|
|
2307
2307
|
children: state === void 0 || state.state === "loading" ? /* @__PURE__ */ jsxs("div", {
|
|
2308
2308
|
className: "flex items-center gap-2 px-4 py-3",
|
|
2309
2309
|
children: [/* @__PURE__ */ jsx(Spinner, {
|
|
2310
|
-
className: "h-3 w-3 text-
|
|
2310
|
+
className: "h-3 w-3 text-po-faint",
|
|
2311
2311
|
label: `loading ${entry.path}`
|
|
2312
2312
|
}), /* @__PURE__ */ jsx("span", {
|
|
2313
|
-
className: "text-sm text-
|
|
2313
|
+
className: "text-sm text-po-dim",
|
|
2314
2314
|
children: "loading diff…"
|
|
2315
2315
|
})]
|
|
2316
2316
|
}) : state.state === "error" ? /* @__PURE__ */ jsxs("div", {
|
|
2317
2317
|
className: "flex items-center gap-2 px-4 py-3",
|
|
2318
2318
|
children: [/* @__PURE__ */ jsx("span", {
|
|
2319
2319
|
role: "alert",
|
|
2320
|
-
className: "text-sm text-
|
|
2320
|
+
className: "text-sm text-po-red",
|
|
2321
2321
|
children: state.error
|
|
2322
2322
|
}), /* @__PURE__ */ jsx(Button, {
|
|
2323
2323
|
variant: "ghost",
|
|
@@ -2326,10 +2326,10 @@ function FileSection({ id, entry, state, collapsed, mounted, placeholderHeight,
|
|
|
2326
2326
|
children: "retry"
|
|
2327
2327
|
})]
|
|
2328
2328
|
}) : state.diff.binary ? /* @__PURE__ */ jsx("p", {
|
|
2329
|
-
className: "px-4 py-3 text-sm text-
|
|
2329
|
+
className: "px-4 py-3 text-sm text-po-dim",
|
|
2330
2330
|
children: "binary file, not drawn"
|
|
2331
2331
|
}) : state.diff.tooLarge ? /* @__PURE__ */ jsx("p", {
|
|
2332
|
-
className: "px-4 py-3 text-sm text-
|
|
2332
|
+
className: "px-4 py-3 text-sm text-po-dim",
|
|
2333
2333
|
children: "this diff is too large to draw here"
|
|
2334
2334
|
}) : /* @__PURE__ */ jsx(DiffView, {
|
|
2335
2335
|
hunks: state.diff.hunks,
|
|
@@ -2519,29 +2519,29 @@ function DiffActivitySection({ sessionId, openTransientTab }) {
|
|
|
2519
2519
|
"data-testid": "activity-diff-changes",
|
|
2520
2520
|
"aria-label": `review ${changes.branch ?? "detached HEAD"} changes: ${String(changes.added)} added, ${String(changes.removed)} removed ${against}`,
|
|
2521
2521
|
title: `${String(changes.files)} ${changes.files === 1 ? "file" : "files"} ${against}`,
|
|
2522
|
-
className: `h-auto min-w-0 flex-1 shrink gap-2 px-0 py-0.5 hover:bg-transparent ${zero ? "text-
|
|
2522
|
+
className: `h-auto min-w-0 flex-1 shrink gap-2 px-0 py-0.5 hover:bg-transparent ${zero ? "text-po-faint" : ""}`,
|
|
2523
2523
|
onClick: () => openTransientTab(reviewTab()),
|
|
2524
2524
|
children: [
|
|
2525
2525
|
/* @__PURE__ */ jsx("span", {
|
|
2526
|
-
className: "min-w-0 flex-1 truncate text-left font-mono font-semibold text-
|
|
2526
|
+
className: "min-w-0 flex-1 truncate text-left font-mono font-semibold text-po-hi",
|
|
2527
2527
|
children: changes.branch ?? "detached HEAD"
|
|
2528
2528
|
}),
|
|
2529
2529
|
/* @__PURE__ */ jsxs("span", {
|
|
2530
|
-
className: zero ? "" : "text-
|
|
2530
|
+
className: zero ? "" : "text-po-green",
|
|
2531
2531
|
children: ["+", changes.added]
|
|
2532
2532
|
}),
|
|
2533
2533
|
/* @__PURE__ */ jsxs("span", {
|
|
2534
|
-
className: zero ? "" : "text-
|
|
2534
|
+
className: zero ? "" : "text-po-red",
|
|
2535
2535
|
children: ["-", changes.removed]
|
|
2536
2536
|
})
|
|
2537
2537
|
]
|
|
2538
2538
|
}), session.pending === void 0 ? null : /* @__PURE__ */ jsxs("span", {
|
|
2539
2539
|
className: "flex min-w-0 items-center gap-1.5",
|
|
2540
2540
|
children: [/* @__PURE__ */ jsx(Spinner, {
|
|
2541
|
-
className: "h-3 w-3 shrink-0 text-
|
|
2541
|
+
className: "h-3 w-3 shrink-0 text-po-faint",
|
|
2542
2542
|
label: session.pending
|
|
2543
2543
|
}), /* @__PURE__ */ jsx("span", {
|
|
2544
|
-
className: "min-w-0 truncate text-sm text-
|
|
2544
|
+
className: "min-w-0 truncate text-sm text-po-dim",
|
|
2545
2545
|
children: session.pending
|
|
2546
2546
|
})]
|
|
2547
2547
|
})]
|
|
@@ -2577,13 +2577,13 @@ function WorktreesSummary({ sessionId, openTransientTab }) {
|
|
|
2577
2577
|
className: "flex flex-wrap items-center gap-x-4 gap-y-1",
|
|
2578
2578
|
children: [/* @__PURE__ */ jsx("p", {
|
|
2579
2579
|
"data-testid": "activity-summary-git",
|
|
2580
|
-
className: "text-sm text-
|
|
2580
|
+
className: "text-sm text-po-dim",
|
|
2581
2581
|
children: "Idle"
|
|
2582
2582
|
}), sessionId === null ? null : /* @__PURE__ */ jsxs(Button, {
|
|
2583
2583
|
variant: "link",
|
|
2584
2584
|
size: "sm",
|
|
2585
2585
|
"data-testid": "activity-git-create",
|
|
2586
|
-
className: "h-auto gap-1 px-0 text-
|
|
2586
|
+
className: "h-auto gap-1 px-0 text-po-green",
|
|
2587
2587
|
onClick: () => openTransientTab(worktreesTab()),
|
|
2588
2588
|
children: ["Create a worktree", /* @__PURE__ */ jsx(ArrowRightIcon, {
|
|
2589
2589
|
"aria-hidden": true,
|
|
@@ -2597,10 +2597,10 @@ function WorktreesSummary({ sessionId, openTransientTab }) {
|
|
|
2597
2597
|
children: [session.pending === void 0 ? null : /* @__PURE__ */ jsxs("span", {
|
|
2598
2598
|
className: "flex min-w-0 items-center gap-1.5 px-1",
|
|
2599
2599
|
children: [/* @__PURE__ */ jsx(Spinner, {
|
|
2600
|
-
className: "h-3 w-3 shrink-0 text-
|
|
2600
|
+
className: "h-3 w-3 shrink-0 text-po-faint",
|
|
2601
2601
|
label: session.pending
|
|
2602
2602
|
}), /* @__PURE__ */ jsx("span", {
|
|
2603
|
-
className: "min-w-0 truncate text-sm text-
|
|
2603
|
+
className: "min-w-0 truncate text-sm text-po-dim",
|
|
2604
2604
|
children: session.pending
|
|
2605
2605
|
})]
|
|
2606
2606
|
}), worktrees.map((worktree) => /* @__PURE__ */ jsx(Button, {
|
|
@@ -2614,7 +2614,7 @@ function WorktreesSummary({ sessionId, openTransientTab }) {
|
|
|
2614
2614
|
children: [
|
|
2615
2615
|
/* @__PURE__ */ jsx(Dot, { tone: worktree.orphaned ? "red" : worktree.sessionId === null ? "muted" : "blue" }),
|
|
2616
2616
|
/* @__PURE__ */ jsx("span", {
|
|
2617
|
-
className: "min-w-0 flex-1 truncate text-left text-base font-semibold text-
|
|
2617
|
+
className: "min-w-0 flex-1 truncate text-left text-base font-semibold text-po-hi",
|
|
2618
2618
|
children: worktree.branch
|
|
2619
2619
|
}),
|
|
2620
2620
|
worktree.orphaned ? /* @__PURE__ */ jsx(StatusBadge, {
|
|
@@ -2700,11 +2700,11 @@ function RunWorktreeToolMessage({ args, output, running, isError }) {
|
|
|
2700
2700
|
children: [/* @__PURE__ */ jsx(MessageItemHeader, {
|
|
2701
2701
|
title: ACTION_LABEL[action] ?? "Worktree",
|
|
2702
2702
|
children: subject === "" ? null : /* @__PURE__ */ jsx("span", {
|
|
2703
|
-
className: "min-w-0 truncate font-mono text-
|
|
2703
|
+
className: "min-w-0 truncate font-mono text-po-dim",
|
|
2704
2704
|
children: subject
|
|
2705
2705
|
})
|
|
2706
2706
|
}), output === "" ? null : /* @__PURE__ */ jsx(MessageItemBody, { children: /* @__PURE__ */ jsx("pre", {
|
|
2707
|
-
className: `whitespace-pre-wrap font-mono text-sm ${isError ? "text-
|
|
2707
|
+
className: `whitespace-pre-wrap font-mono text-sm ${isError ? "text-po-red" : "text-po-dim"}`,
|
|
2708
2708
|
children: output
|
|
2709
2709
|
}) })]
|
|
2710
2710
|
});
|