@agimon-ai/po-template-advanced 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/web.mjs +82 -82
- package/dist/extensions/web.mjs.map +1 -1
- package/dist/webClient.cjs +82 -82
- package/dist/webClient.cjs.map +1 -1
- package/dist/webClient.mjs +82 -82
- package/dist/webClient.mjs.map +1 -1
- package/package.json +12 -12
package/dist/extensions/web.mjs
CHANGED
|
@@ -31,7 +31,7 @@ function AdvancedFolderBrowser({ start, listDirectory, onSelect }) {
|
|
|
31
31
|
}, [target, listDirectory]);
|
|
32
32
|
return /* @__PURE__ */ jsxs("div", {
|
|
33
33
|
"data-testid": "folder-browser",
|
|
34
|
-
className: "flex flex-col gap-1 rounded border border-
|
|
34
|
+
className: "flex flex-col gap-1 rounded border border-po-border bg-po-deep p-1",
|
|
35
35
|
children: [
|
|
36
36
|
/* @__PURE__ */ jsxs("div", {
|
|
37
37
|
className: "flex items-center gap-1 px-1",
|
|
@@ -47,7 +47,7 @@ function AdvancedFolderBrowser({ start, listDirectory, onSelect }) {
|
|
|
47
47
|
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "h-3 w-3" })
|
|
48
48
|
}),
|
|
49
49
|
/* @__PURE__ */ jsx("span", {
|
|
50
|
-
className: "min-w-0 flex-1 truncate text-sm text-
|
|
50
|
+
className: "min-w-0 flex-1 truncate text-sm text-po-dim",
|
|
51
51
|
title: listing?.path,
|
|
52
52
|
children: listing?.path ?? "loading…"
|
|
53
53
|
}),
|
|
@@ -62,7 +62,7 @@ function AdvancedFolderBrowser({ start, listDirectory, onSelect }) {
|
|
|
62
62
|
]
|
|
63
63
|
}),
|
|
64
64
|
error ? /* @__PURE__ */ jsx("p", {
|
|
65
|
-
className: "px-2 py-1 text-sm text-
|
|
65
|
+
className: "px-2 py-1 text-sm text-po-red",
|
|
66
66
|
children: error
|
|
67
67
|
}) : null,
|
|
68
68
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -70,7 +70,7 @@ function AdvancedFolderBrowser({ start, listDirectory, onSelect }) {
|
|
|
70
70
|
"aria-label": "folders",
|
|
71
71
|
className: "max-h-40 overflow-y-auto",
|
|
72
72
|
children: [listing !== null && listing.directories.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
73
|
-
className: "px-2 py-1 text-sm text-
|
|
73
|
+
className: "px-2 py-1 text-sm text-po-dim",
|
|
74
74
|
children: "no folders here"
|
|
75
75
|
}) : null, listing?.directories.map((directory) => /* @__PURE__ */ jsx(OptionRow, {
|
|
76
76
|
density: "compact",
|
|
@@ -149,7 +149,7 @@ function AdvancedAddWorkspaceDialog({ suggestedPaths, actions }) {
|
|
|
149
149
|
htmlFor: "add-workspace-name",
|
|
150
150
|
className: "flex flex-col gap-1",
|
|
151
151
|
children: [/* @__PURE__ */ jsx("span", {
|
|
152
|
-
className: "text-base font-medium text-
|
|
152
|
+
className: "text-base font-medium text-po-dim",
|
|
153
153
|
children: "name"
|
|
154
154
|
}), /* @__PURE__ */ jsx(Input, {
|
|
155
155
|
id: "add-workspace-name",
|
|
@@ -170,9 +170,9 @@ function AdvancedAddWorkspaceDialog({ suggestedPaths, actions }) {
|
|
|
170
170
|
htmlFor: "add-workspace-root",
|
|
171
171
|
className: "flex flex-col gap-1",
|
|
172
172
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
173
|
-
className: "text-base font-medium text-
|
|
173
|
+
className: "text-base font-medium text-po-dim",
|
|
174
174
|
children: ["folder ", /* @__PURE__ */ jsx("span", {
|
|
175
|
-
className: "text-
|
|
175
|
+
className: "text-po-dim",
|
|
176
176
|
children: "(optional; type a path or browse)"
|
|
177
177
|
})]
|
|
178
178
|
}), /* @__PURE__ */ jsxs("span", {
|
|
@@ -219,7 +219,7 @@ function AdvancedAddWorkspaceDialog({ suggestedPaths, actions }) {
|
|
|
219
219
|
role: "listbox",
|
|
220
220
|
"aria-label": "matching directories",
|
|
221
221
|
"data-testid": "add-workspace-suggestions",
|
|
222
|
-
className: "max-h-40 overflow-y-auto rounded border border-
|
|
222
|
+
className: "max-h-40 overflow-y-auto rounded border border-po-border bg-po-deep p-1",
|
|
223
223
|
children: suggestions.map((directory, index) => /* @__PURE__ */ jsx(OptionRow, {
|
|
224
224
|
density: "compact",
|
|
225
225
|
active: index === highlight,
|
|
@@ -242,11 +242,11 @@ function AdvancedAddWorkspaceDialog({ suggestedPaths, actions }) {
|
|
|
242
242
|
}) : null,
|
|
243
243
|
trimmedPath === "" && shownName.trim() !== "" ? /* @__PURE__ */ jsxs("p", {
|
|
244
244
|
"data-testid": "add-workspace-default-hint",
|
|
245
|
-
className: "text-sm text-
|
|
245
|
+
className: "text-sm text-po-dim",
|
|
246
246
|
children: ["creates ~/.po/workspace/", shownName.trim()]
|
|
247
247
|
}) : null,
|
|
248
248
|
error ? /* @__PURE__ */ jsx("pre", {
|
|
249
|
-
className: "max-h-28 overflow-y-auto rounded border border-
|
|
249
|
+
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",
|
|
250
250
|
children: error
|
|
251
251
|
}) : null,
|
|
252
252
|
/* @__PURE__ */ jsxs(DialogFooter, { children: [/* @__PURE__ */ jsx(Button, {
|
|
@@ -286,12 +286,12 @@ function AdvancedPendingSetup({ sessionId, setup, actions }) {
|
|
|
286
286
|
};
|
|
287
287
|
return /* @__PURE__ */ jsxs("div", {
|
|
288
288
|
"data-testid": `pending-session-${setup.id}`,
|
|
289
|
-
className: "ml-4 rounded-md border border-
|
|
289
|
+
className: "ml-4 rounded-md border border-po-border-soft bg-po-panel p-3",
|
|
290
290
|
children: [
|
|
291
291
|
/* @__PURE__ */ jsxs("div", {
|
|
292
292
|
className: "flex items-center justify-between gap-2",
|
|
293
293
|
children: [/* @__PURE__ */ jsx("span", {
|
|
294
|
-
className: "truncate text-base font-semibold text-
|
|
294
|
+
className: "truncate text-base font-semibold text-po-hi",
|
|
295
295
|
children: setup.name
|
|
296
296
|
}), /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
297
297
|
asChild: true,
|
|
@@ -310,17 +310,17 @@ function AdvancedPendingSetup({ sessionId, setup, actions }) {
|
|
|
310
310
|
}) })] })]
|
|
311
311
|
}),
|
|
312
312
|
/* @__PURE__ */ jsx("p", {
|
|
313
|
-
className: setup.failed ? "text-sm text-
|
|
313
|
+
className: setup.failed ? "text-sm text-po-red" : "text-sm text-po-dim",
|
|
314
314
|
children: setup.status
|
|
315
315
|
}),
|
|
316
316
|
setup.recovery ? /* @__PURE__ */ jsx("p", {
|
|
317
317
|
role: setup.failed ? "alert" : void 0,
|
|
318
|
-
className: "text-sm text-
|
|
318
|
+
className: "text-sm text-po-dim",
|
|
319
319
|
children: setup.recovery
|
|
320
320
|
}) : null,
|
|
321
321
|
error ? /* @__PURE__ */ jsx("p", {
|
|
322
322
|
role: "alert",
|
|
323
|
-
className: "text-sm text-
|
|
323
|
+
className: "text-sm text-po-red",
|
|
324
324
|
children: error
|
|
325
325
|
}) : null
|
|
326
326
|
]
|
|
@@ -343,7 +343,7 @@ function AdvancedSessionGroupChips({ groups, indent }) {
|
|
|
343
343
|
return /* @__PURE__ */ jsxs("span", {
|
|
344
344
|
"data-testid": "session-groups",
|
|
345
345
|
"aria-label": "groups",
|
|
346
|
-
className: `flex min-w-0 items-start gap-1.5 text-sm text-
|
|
346
|
+
className: `flex min-w-0 items-start gap-1.5 text-sm text-po-dim ${indent ? "pl-10.5" : ""}`,
|
|
347
347
|
children: [/* @__PURE__ */ jsx(UsersIcon, {
|
|
348
348
|
"aria-hidden": true,
|
|
349
349
|
className: "mt-0.5 size-3.5 shrink-0"
|
|
@@ -383,9 +383,9 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
383
383
|
children: [
|
|
384
384
|
/* @__PURE__ */ jsx(DialogDescription, { children: "sessions that share a group can message each other." }),
|
|
385
385
|
/* @__PURE__ */ jsxs("div", {
|
|
386
|
-
className: "flex flex-col overflow-hidden rounded-md border border-
|
|
386
|
+
className: "flex flex-col overflow-hidden rounded-md border border-po-border focus-within:border-po-edge-green",
|
|
387
387
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
388
|
-
className: "flex flex-wrap items-center gap-1 bg-
|
|
388
|
+
className: "flex flex-wrap items-center gap-1 bg-po-deep px-2 py-1.5",
|
|
389
389
|
children: [value.map((name) => /* @__PURE__ */ jsxs(Badge, {
|
|
390
390
|
tone: "magenta",
|
|
391
391
|
size: "xs",
|
|
@@ -393,7 +393,7 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
393
393
|
children: [name, /* @__PURE__ */ jsx("button", {
|
|
394
394
|
type: "button",
|
|
395
395
|
"aria-label": `remove ${name}`,
|
|
396
|
-
className: "text-
|
|
396
|
+
className: "text-po-magenta",
|
|
397
397
|
onClick: () => onToggle(name),
|
|
398
398
|
children: /* @__PURE__ */ jsx(CloseIcon, {
|
|
399
399
|
"aria-hidden": true,
|
|
@@ -421,7 +421,7 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
421
421
|
className: "h-6 min-w-24 flex-1"
|
|
422
422
|
})]
|
|
423
423
|
}), /* @__PURE__ */ jsxs("div", {
|
|
424
|
-
className: "flex flex-col border-t border-
|
|
424
|
+
className: "flex flex-col border-t border-po-border-soft p-1",
|
|
425
425
|
onMouseLeave: () => onActive(void 0),
|
|
426
426
|
children: [shown.map((group, index) => {
|
|
427
427
|
const on = value.includes(group.name);
|
|
@@ -429,7 +429,7 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
429
429
|
const total = group.members.length + (on ? 1 : 0);
|
|
430
430
|
const sessions = total === 1 ? "its one session" : `all ${String(total)} sessions`;
|
|
431
431
|
if (renaming?.group === group.name) return /* @__PURE__ */ jsxs("div", {
|
|
432
|
-
className: "flex flex-col gap-1 rounded-sm bg-
|
|
432
|
+
className: "flex flex-col gap-1 rounded-sm bg-po-deep px-2 py-1.5",
|
|
433
433
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
434
434
|
className: "flex items-center gap-2",
|
|
435
435
|
children: [
|
|
@@ -462,7 +462,7 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
462
462
|
})
|
|
463
463
|
]
|
|
464
464
|
}), /* @__PURE__ */ jsxs("span", {
|
|
465
|
-
className: "text-sm text-
|
|
465
|
+
className: "text-sm text-po-dim",
|
|
466
466
|
children: [
|
|
467
467
|
"renames it on ",
|
|
468
468
|
sessions,
|
|
@@ -471,14 +471,14 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
471
471
|
})]
|
|
472
472
|
}, group.name);
|
|
473
473
|
if (deleting === group.name) return /* @__PURE__ */ jsxs("div", {
|
|
474
|
-
className: "flex items-center gap-2 rounded-sm border border-
|
|
474
|
+
className: "flex items-center gap-2 rounded-sm border border-po-red/40 px-2 py-1.5",
|
|
475
475
|
children: [
|
|
476
476
|
/* @__PURE__ */ jsxs("span", {
|
|
477
|
-
className: "flex-1 text-sm text-
|
|
477
|
+
className: "flex-1 text-sm text-po-text",
|
|
478
478
|
children: [
|
|
479
479
|
"remove ",
|
|
480
480
|
/* @__PURE__ */ jsx("span", {
|
|
481
|
-
className: "font-semibold text-
|
|
481
|
+
className: "font-semibold text-po-hi",
|
|
482
482
|
children: group.name
|
|
483
483
|
}),
|
|
484
484
|
" from ",
|
|
@@ -506,7 +506,7 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
506
506
|
return /* @__PURE__ */ jsxs("div", {
|
|
507
507
|
"data-testid": `session-group-${group.name}`,
|
|
508
508
|
onMouseEnter: () => onActive(group.name),
|
|
509
|
-
className: `group flex items-start gap-2.5 rounded-sm px-2 py-1.5 ${on ? "bg-
|
|
509
|
+
className: `group flex items-start gap-2.5 rounded-sm px-2 py-1.5 ${on ? "bg-po-tint-green" : active === group.name ? "bg-po-deep" : ""}`,
|
|
510
510
|
children: [/* @__PURE__ */ jsxs("label", {
|
|
511
511
|
htmlFor: checkboxId,
|
|
512
512
|
className: "flex min-w-0 flex-1 cursor-pointer items-start gap-2.5",
|
|
@@ -518,10 +518,10 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
518
518
|
}), /* @__PURE__ */ jsxs("span", {
|
|
519
519
|
className: "flex min-w-0 flex-1 flex-col",
|
|
520
520
|
children: [/* @__PURE__ */ jsx("span", {
|
|
521
|
-
className: `text-base ${on ? "font-semibold text-
|
|
521
|
+
className: `text-base ${on ? "font-semibold text-po-hi" : "text-po-text"}`,
|
|
522
522
|
children: group.name
|
|
523
523
|
}), /* @__PURE__ */ jsx("span", {
|
|
524
|
-
className: "truncate text-sm text-
|
|
524
|
+
className: "truncate text-sm text-po-dim",
|
|
525
525
|
title: group.members.join(", "),
|
|
526
526
|
children: group.members.length === 0 ? "no other sessions yet" : group.members.join(", ")
|
|
527
527
|
})]
|
|
@@ -556,9 +556,9 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
556
556
|
"data-testid": "session-groups-create",
|
|
557
557
|
disabled: problem !== void 0,
|
|
558
558
|
onClick: onCreate,
|
|
559
|
-
className: `flex flex-col gap-0.5 rounded-sm px-2 py-1.5 text-left ${problem === void 0 ? "bg-
|
|
559
|
+
className: `flex flex-col gap-0.5 rounded-sm px-2 py-1.5 text-left ${problem === void 0 ? "bg-po-deep" : ""}`,
|
|
560
560
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
561
|
-
className: `flex items-center gap-2.5 text-base ${problem === void 0 ? "text-
|
|
561
|
+
className: `flex items-center gap-2.5 text-base ${problem === void 0 ? "text-po-magenta" : "text-po-faint"}`,
|
|
562
562
|
children: [/* @__PURE__ */ jsx(PlusIcon, {
|
|
563
563
|
"aria-hidden": true,
|
|
564
564
|
className: "size-3.5"
|
|
@@ -571,14 +571,14 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
571
571
|
]
|
|
572
572
|
})]
|
|
573
573
|
}), problem === void 0 ? null : /* @__PURE__ */ jsx("span", {
|
|
574
|
-
className: "pl-6 text-sm text-
|
|
574
|
+
className: "pl-6 text-sm text-po-red",
|
|
575
575
|
children: problem
|
|
576
576
|
})]
|
|
577
577
|
}) : null]
|
|
578
578
|
})]
|
|
579
579
|
}),
|
|
580
580
|
/* @__PURE__ */ jsxs("span", {
|
|
581
|
-
className: "text-sm text-
|
|
581
|
+
className: "text-sm text-po-dim",
|
|
582
582
|
children: [
|
|
583
583
|
value.length,
|
|
584
584
|
" of ",
|
|
@@ -588,7 +588,7 @@ function AdvancedSessionGroupsView({ options, value, query, active, renaming, de
|
|
|
588
588
|
}),
|
|
589
589
|
error === void 0 ? null : /* @__PURE__ */ jsx("span", {
|
|
590
590
|
"data-testid": "session-groups-error",
|
|
591
|
-
className: "text-sm text-
|
|
591
|
+
className: "text-sm text-po-red",
|
|
592
592
|
children: error
|
|
593
593
|
}),
|
|
594
594
|
/* @__PURE__ */ jsxs(DialogFooter, { children: [/* @__PURE__ */ jsx(Button, {
|
|
@@ -714,7 +714,7 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
714
714
|
};
|
|
715
715
|
const { active } = session;
|
|
716
716
|
const error = removeError || session.error;
|
|
717
|
-
const cardClass = active ? "rounded-lg border border-
|
|
717
|
+
const cardClass = active ? "rounded-lg border border-po-edge-green bg-po-tint-green px-3 py-3 hover:bg-po-tint-green" : "rounded-lg border border-transparent px-3 py-3 hover:bg-po-panel";
|
|
718
718
|
const commitRename = () => {
|
|
719
719
|
actions.renameSession(session.id, draft);
|
|
720
720
|
enterMode("view");
|
|
@@ -731,11 +731,11 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
731
731
|
const failed = session.status.startsWith("failed") || session.status.includes(" failed");
|
|
732
732
|
const running = session.status.startsWith("running");
|
|
733
733
|
const status = /* @__PURE__ */ jsxs("span", {
|
|
734
|
-
className: `flex min-w-0 items-start gap-1.5 text-sm leading-snug ${failed ? "text-
|
|
734
|
+
className: `flex min-w-0 items-start gap-1.5 text-sm leading-snug ${failed ? "text-po-red" : running ? "text-po-yellow" : active ? "text-po-text" : "text-po-dim"}`,
|
|
735
735
|
children: [session.awaitingInput ? /* @__PURE__ */ jsx(AlertIcon, {
|
|
736
736
|
"data-testid": "session-awaiting-input",
|
|
737
737
|
"aria-label": "Waiting for your input",
|
|
738
|
-
className: "mt-0.5 size-3 shrink-0 text-
|
|
738
|
+
className: "mt-0.5 size-3 shrink-0 text-po-magenta"
|
|
739
739
|
}) : running ? /* @__PURE__ */ jsx(LoaderIcon, {
|
|
740
740
|
"aria-hidden": true,
|
|
741
741
|
className: "mt-0.5 size-3 shrink-0 animate-spin"
|
|
@@ -753,18 +753,18 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
753
753
|
children: [
|
|
754
754
|
session.nested && session.provenance === "workflow-session" ? /* @__PURE__ */ jsx(ActivityIcon, {
|
|
755
755
|
"aria-label": "workflow session",
|
|
756
|
-
className: `mt-1 size-3 shrink-0 ${active ? "text-
|
|
756
|
+
className: `mt-1 size-3 shrink-0 ${active ? "text-po-green" : "text-po-faint"}`
|
|
757
757
|
}) : session.nested && session.provenance ? /* @__PURE__ */ jsx(ForkIcon, {
|
|
758
758
|
"aria-label": session.provenance === "worktree" ? "automatic per-conversation worktree" : session.provenance,
|
|
759
|
-
className: `mt-1 size-3 shrink-0 ${active ? "text-
|
|
759
|
+
className: `mt-1 size-3 shrink-0 ${active ? "text-po-green" : "text-po-faint"}`
|
|
760
760
|
}) : null,
|
|
761
761
|
/* @__PURE__ */ jsx("span", {
|
|
762
|
-
className: "min-w-0 flex-1 text-base font-semibold break-words text-
|
|
762
|
+
className: "min-w-0 flex-1 text-base font-semibold break-words text-po-hi",
|
|
763
763
|
children: session.name || "Untitled"
|
|
764
764
|
}),
|
|
765
765
|
session.ordinal <= 9 ? /* @__PURE__ */ jsx("span", {
|
|
766
766
|
title: `press ${String(session.ordinal)} to focus`,
|
|
767
|
-
className: "grid size-5 shrink-0 place-items-center rounded-full bg-
|
|
767
|
+
className: "grid size-5 shrink-0 place-items-center rounded-full bg-po-panel text-2xs text-po-dim transition-opacity group-focus-within:opacity-0 group-hover:opacity-0",
|
|
768
768
|
children: session.ordinal
|
|
769
769
|
}) : null
|
|
770
770
|
]
|
|
@@ -781,7 +781,7 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
781
781
|
src: session.profile.avatarUrl,
|
|
782
782
|
alt: ""
|
|
783
783
|
}) : null, /* @__PURE__ */ jsx(AvatarFallback, {
|
|
784
|
-
className: "bg-
|
|
784
|
+
className: "bg-po-tint-green text-xs font-semibold text-po-green",
|
|
785
785
|
children: session.profile.initials
|
|
786
786
|
})]
|
|
787
787
|
}) : null, /* @__PURE__ */ jsxs("span", {
|
|
@@ -791,15 +791,15 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
791
791
|
}),
|
|
792
792
|
session.git ? /* @__PURE__ */ jsxs("span", {
|
|
793
793
|
"data-testid": "session-branch",
|
|
794
|
-
className: `flex min-w-0 items-center gap-1.5 text-sm text-
|
|
794
|
+
className: `flex min-w-0 items-center gap-1.5 text-sm text-po-dim ${session.profile ? "pl-10.5" : ""}`,
|
|
795
795
|
children: [
|
|
796
|
-
/* @__PURE__ */ jsx(BranchIcon, { className: `size-3.5 shrink-0 ${active ? "text-
|
|
796
|
+
/* @__PURE__ */ jsx(BranchIcon, { className: `size-3.5 shrink-0 ${active ? "text-po-green" : ""}` }),
|
|
797
797
|
/* @__PURE__ */ jsx("span", {
|
|
798
798
|
className: "truncate font-mono",
|
|
799
799
|
children: session.git.branch
|
|
800
800
|
}),
|
|
801
801
|
session.git.dirty ? /* @__PURE__ */ jsx("span", {
|
|
802
|
-
className: "shrink-0 text-
|
|
802
|
+
className: "shrink-0 text-po-yellow",
|
|
803
803
|
children: "modified"
|
|
804
804
|
}) : null
|
|
805
805
|
]
|
|
@@ -810,7 +810,7 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
810
810
|
}) : null,
|
|
811
811
|
error ? /* @__PURE__ */ jsx("span", {
|
|
812
812
|
"data-testid": "session-error",
|
|
813
|
-
className: "line-clamp-3 text-sm break-words text-
|
|
813
|
+
className: "line-clamp-3 text-sm break-words text-po-red",
|
|
814
814
|
children: error
|
|
815
815
|
}) : null
|
|
816
816
|
] });
|
|
@@ -844,7 +844,7 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
844
844
|
size: "icon",
|
|
845
845
|
"data-testid": `session-menu-${session.id}`,
|
|
846
846
|
title: "session actions",
|
|
847
|
-
className: active ? "text-
|
|
847
|
+
className: active ? "text-po-dim hover:bg-po-tint-green hover:text-po-hi data-[state=open]:bg-po-tint-green data-[state=open]:text-po-hi" : "text-po-faint hover:bg-po-deep hover:text-po-hi data-[state=open]:bg-po-deep data-[state=open]:text-po-hi",
|
|
848
848
|
children: /* @__PURE__ */ jsx(KebabIcon, { className: "h-3 w-3" })
|
|
849
849
|
})
|
|
850
850
|
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
@@ -941,7 +941,7 @@ function AdvancedSessionCard({ session, sessions, actions }) {
|
|
|
941
941
|
children: [/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: "remove session" }) }), /* @__PURE__ */ jsxs(DialogBody, { children: [/* @__PURE__ */ jsxs(DialogDescription, { children: [
|
|
942
942
|
"this stops ",
|
|
943
943
|
/* @__PURE__ */ jsx("span", {
|
|
944
|
-
className: "font-semibold text-
|
|
944
|
+
className: "font-semibold text-po-hi",
|
|
945
945
|
children: session.name || "untitled"
|
|
946
946
|
}),
|
|
947
947
|
" and removes it from the rail. anything it is running ends now, but its saved history remains available to resume."
|
|
@@ -992,19 +992,19 @@ function AdvancedWorkspaceGroup({ workspace, sessions, actions }) {
|
|
|
992
992
|
className: "flex flex-col gap-1.5",
|
|
993
993
|
children: [
|
|
994
994
|
/* @__PURE__ */ jsxs("div", {
|
|
995
|
-
className: "flex min-w-0 items-start gap-2.5 rounded-md px-2 py-1 transition-colors hover:bg-
|
|
995
|
+
className: "flex min-w-0 items-start gap-2.5 rounded-md px-2 py-1 transition-colors hover:bg-po-panel/60",
|
|
996
996
|
children: [
|
|
997
997
|
/* @__PURE__ */ jsx(FolderIcon, {
|
|
998
998
|
"aria-hidden": true,
|
|
999
|
-
className: "mt-0.5 size-4 shrink-0 text-
|
|
999
|
+
className: "mt-0.5 size-4 shrink-0 text-po-dim"
|
|
1000
1000
|
}),
|
|
1001
1001
|
/* @__PURE__ */ jsxs("div", {
|
|
1002
1002
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1003
1003
|
children: [/* @__PURE__ */ jsx("p", {
|
|
1004
|
-
className: "truncate text-base font-semibold text-
|
|
1004
|
+
className: "truncate text-base font-semibold text-po-hi",
|
|
1005
1005
|
children: name
|
|
1006
1006
|
}), /* @__PURE__ */ jsx("p", {
|
|
1007
|
-
className: "truncate font-mono text-sm text-
|
|
1007
|
+
className: "truncate font-mono text-sm text-po-dim",
|
|
1008
1008
|
title: root,
|
|
1009
1009
|
children: root
|
|
1010
1010
|
})]
|
|
@@ -1017,7 +1017,7 @@ function AdvancedWorkspaceGroup({ workspace, sessions, actions }) {
|
|
|
1017
1017
|
"aria-label": `New session in ${name}`,
|
|
1018
1018
|
disabled: !available,
|
|
1019
1019
|
onClick: () => actions.createSession(id),
|
|
1020
|
-
className: "text-
|
|
1020
|
+
className: "text-po-faint hover:text-po-hi",
|
|
1021
1021
|
children: /* @__PURE__ */ jsx(PlusIcon, { className: "size-3.5" })
|
|
1022
1022
|
}), /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
1023
1023
|
asChild: true,
|
|
@@ -1027,7 +1027,7 @@ function AdvancedWorkspaceGroup({ workspace, sessions, actions }) {
|
|
|
1027
1027
|
"data-testid": `workspace-menu-${id}`,
|
|
1028
1028
|
title: "Workspace actions",
|
|
1029
1029
|
"aria-label": `${name} actions`,
|
|
1030
|
-
className: "text-
|
|
1030
|
+
className: "text-po-faint hover:text-po-hi",
|
|
1031
1031
|
children: /* @__PURE__ */ jsx(KebabIcon, { className: "size-3.5" })
|
|
1032
1032
|
})
|
|
1033
1033
|
}), /* @__PURE__ */ jsxs(DropdownMenuContent, { children: [
|
|
@@ -1054,7 +1054,7 @@ function AdvancedWorkspaceGroup({ workspace, sessions, actions }) {
|
|
|
1054
1054
|
]
|
|
1055
1055
|
}),
|
|
1056
1056
|
!available ? /* @__PURE__ */ jsx("p", {
|
|
1057
|
-
className: "px-9 text-sm text-
|
|
1057
|
+
className: "px-9 text-sm text-po-red",
|
|
1058
1058
|
children: "Workspace unavailable"
|
|
1059
1059
|
}) : null,
|
|
1060
1060
|
workspace.sessions.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
@@ -1065,7 +1065,7 @@ function AdvancedWorkspaceGroup({ workspace, sessions, actions }) {
|
|
|
1065
1065
|
actions
|
|
1066
1066
|
}, session.id))
|
|
1067
1067
|
}) : available ? /* @__PURE__ */ jsx("p", {
|
|
1068
|
-
className: "px-9 pb-1 text-sm text-
|
|
1068
|
+
className: "px-9 pb-1 text-sm text-po-dim",
|
|
1069
1069
|
children: "No sessions yet. Start or resume one."
|
|
1070
1070
|
}) : null,
|
|
1071
1071
|
/* @__PURE__ */ jsx(Dialog, {
|
|
@@ -1079,7 +1079,7 @@ function AdvancedWorkspaceGroup({ workspace, sessions, actions }) {
|
|
|
1079
1079
|
/* @__PURE__ */ jsxs(DialogDescription, { children: [
|
|
1080
1080
|
"this unregisters ",
|
|
1081
1081
|
/* @__PURE__ */ jsx("span", {
|
|
1082
|
-
className: "font-semibold text-
|
|
1082
|
+
className: "font-semibold text-po-hi",
|
|
1083
1083
|
children: name
|
|
1084
1084
|
}),
|
|
1085
1085
|
" from Po only. files at",
|
|
@@ -1089,7 +1089,7 @@ function AdvancedWorkspaceGroup({ workspace, sessions, actions }) {
|
|
|
1089
1089
|
] }),
|
|
1090
1090
|
removeError ? /* @__PURE__ */ jsx("p", {
|
|
1091
1091
|
"data-testid": `workspace-delete-error-${id}`,
|
|
1092
|
-
className: "text-sm text-
|
|
1092
|
+
className: "text-sm text-po-red",
|
|
1093
1093
|
children: removeError
|
|
1094
1094
|
}) : null,
|
|
1095
1095
|
/* @__PURE__ */ jsxs(DialogFooter, { children: [/* @__PURE__ */ jsx(Button, {
|
|
@@ -1138,7 +1138,7 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1138
1138
|
className: "size-9 rounded-lg"
|
|
1139
1139
|
}), /* @__PURE__ */ jsx("span", {
|
|
1140
1140
|
"aria-hidden": "true",
|
|
1141
|
-
className: "text-2xl font-semibold text-
|
|
1141
|
+
className: "text-2xl font-semibold text-po-hi",
|
|
1142
1142
|
children: "Po"
|
|
1143
1143
|
})]
|
|
1144
1144
|
}), /* @__PURE__ */ jsxs("span", {
|
|
@@ -1150,7 +1150,7 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1150
1150
|
title: remoteDetail ?? "Remote access",
|
|
1151
1151
|
"aria-label": remoteDetail ?? `Remote access is ${remote.status}`,
|
|
1152
1152
|
onClick: actions.openRemoteAccess,
|
|
1153
|
-
className: `gap-1.5 rounded-md ${remote.status === "failed" ? "" : "bg-
|
|
1153
|
+
className: `gap-1.5 rounded-md ${remote.status === "failed" ? "" : "bg-po-panel"}`,
|
|
1154
1154
|
children: [live ? /* @__PURE__ */ jsx(Dot, {
|
|
1155
1155
|
tone: "yellow",
|
|
1156
1156
|
pulse: true,
|
|
@@ -1163,7 +1163,7 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1163
1163
|
title: "Hide sessions",
|
|
1164
1164
|
"aria-label": "Hide sessions",
|
|
1165
1165
|
onClick: onClose,
|
|
1166
|
-
className: "text-
|
|
1166
|
+
className: "text-po-dim md:hidden",
|
|
1167
1167
|
children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-3.5" })
|
|
1168
1168
|
})]
|
|
1169
1169
|
})]
|
|
@@ -1171,7 +1171,7 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1171
1171
|
/* @__PURE__ */ jsxs("div", {
|
|
1172
1172
|
className: "flex items-center justify-between px-5 pt-4 pb-2",
|
|
1173
1173
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
1174
|
-
className: "text-lg font-semibold text-
|
|
1174
|
+
className: "text-lg font-semibold text-po-hi",
|
|
1175
1175
|
children: "Workspaces"
|
|
1176
1176
|
}), /* @__PURE__ */ jsx(Button, {
|
|
1177
1177
|
variant: "ghost",
|
|
@@ -1180,7 +1180,7 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1180
1180
|
title: "Add workspace",
|
|
1181
1181
|
"aria-label": "Add workspace",
|
|
1182
1182
|
onClick: actions.openAddWorkspace,
|
|
1183
|
-
className: "text-
|
|
1183
|
+
className: "text-po-faint hover:text-po-hi",
|
|
1184
1184
|
children: /* @__PURE__ */ jsx(PlusIcon, { className: "size-3.5" })
|
|
1185
1185
|
})]
|
|
1186
1186
|
}),
|
|
@@ -1191,16 +1191,16 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1191
1191
|
sessions,
|
|
1192
1192
|
actions
|
|
1193
1193
|
}, workspace.id)), rail.workspaces.length === 0 ? /* @__PURE__ */ jsxs("div", {
|
|
1194
|
-
className: "flex flex-col gap-3 rounded-lg border border-dashed border-
|
|
1194
|
+
className: "flex flex-col gap-3 rounded-lg border border-dashed border-po-border px-4 py-5",
|
|
1195
1195
|
children: [/* @__PURE__ */ jsx("p", {
|
|
1196
|
-
className: "text-sm text-
|
|
1196
|
+
className: "text-sm text-po-dim",
|
|
1197
1197
|
children: "Add a folder to start working with Po."
|
|
1198
1198
|
}), /* @__PURE__ */ jsxs(Button, {
|
|
1199
1199
|
variant: "outline",
|
|
1200
1200
|
size: "md",
|
|
1201
1201
|
"data-testid": "add-workspace-empty",
|
|
1202
1202
|
onClick: actions.openAddWorkspace,
|
|
1203
|
-
className: "justify-start gap-2 bg-
|
|
1203
|
+
className: "justify-start gap-2 bg-po-panel",
|
|
1204
1204
|
children: [/* @__PURE__ */ jsx(PlusIcon, { className: "size-3.5" }), "Add workspace"]
|
|
1205
1205
|
})]
|
|
1206
1206
|
}) : null]
|
|
@@ -1208,10 +1208,10 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1208
1208
|
rail.pluginContent,
|
|
1209
1209
|
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
1210
1210
|
/* @__PURE__ */ jsxs("div", {
|
|
1211
|
-
className: "sticky bottom-0 mt-auto shrink-0 bg-
|
|
1211
|
+
className: "sticky bottom-0 mt-auto shrink-0 bg-po-rail",
|
|
1212
1212
|
children: [remote.status === "off" ? null : /* @__PURE__ */ jsxs("div", {
|
|
1213
1213
|
"data-testid": "remote-banner",
|
|
1214
|
-
className: `flex flex-col gap-1.5 border-t border-
|
|
1214
|
+
className: `flex flex-col gap-1.5 border-t border-po-border-soft px-4 py-2 text-sm ${remote.status === "failed" ? "bg-po-tint-red text-po-red" : "bg-po-tint-yellow text-po-yellow"}`,
|
|
1215
1215
|
children: [/* @__PURE__ */ jsxs("output", {
|
|
1216
1216
|
className: "flex min-w-0 items-center gap-2",
|
|
1217
1217
|
children: [/* @__PURE__ */ jsx(Dot, { tone: remote.status === "failed" ? "red" : "yellow" }), /* @__PURE__ */ jsx("span", {
|
|
@@ -1235,24 +1235,24 @@ function AdvancedRail({ rail, onClose }) {
|
|
|
1235
1235
|
})]
|
|
1236
1236
|
})]
|
|
1237
1237
|
}), /* @__PURE__ */ jsxs("div", {
|
|
1238
|
-
className: "flex flex-col gap-1 border-t border-
|
|
1238
|
+
className: "flex flex-col gap-1 border-t border-po-border-soft px-3 py-3",
|
|
1239
1239
|
children: [/* @__PURE__ */ jsxs(Button, {
|
|
1240
1240
|
variant: "ghost",
|
|
1241
1241
|
size: "lg",
|
|
1242
1242
|
"data-testid": "settings-open",
|
|
1243
1243
|
onClick: actions.openSettings,
|
|
1244
|
-
className: "justify-start gap-2.5 px-2 text-
|
|
1245
|
-
children: [/* @__PURE__ */ jsx(GearIcon, { className: "size-5 text-
|
|
1244
|
+
className: "justify-start gap-2.5 px-2 text-po-text",
|
|
1245
|
+
children: [/* @__PURE__ */ jsx(GearIcon, { className: "size-5 text-po-dim" }), "Settings"]
|
|
1246
1246
|
}), /* @__PURE__ */ jsxs("span", {
|
|
1247
|
-
className: "px-2 text-sm text-
|
|
1247
|
+
className: "px-2 text-sm text-po-dim max-sm:hidden",
|
|
1248
1248
|
children: [
|
|
1249
1249
|
/* @__PURE__ */ jsx(Kbd, {
|
|
1250
|
-
className: "bg-
|
|
1250
|
+
className: "bg-po-panel",
|
|
1251
1251
|
children: "ctrl+k"
|
|
1252
1252
|
}),
|
|
1253
1253
|
" commands · ",
|
|
1254
1254
|
/* @__PURE__ */ jsx(Kbd, {
|
|
1255
|
-
className: "bg-
|
|
1255
|
+
className: "bg-po-panel",
|
|
1256
1256
|
children: "ctrl+t"
|
|
1257
1257
|
}),
|
|
1258
1258
|
" new session"
|
|
@@ -1276,7 +1276,7 @@ function AdvancedLayout({ view, slots, rail, navigationOpen, desktopActivityOpen
|
|
|
1276
1276
|
/* @__PURE__ */ jsx("aside", {
|
|
1277
1277
|
ref: scrollRef,
|
|
1278
1278
|
"data-testid": "session-rail-panel",
|
|
1279
|
-
className: `fixed inset-y-0 left-0 z-40 flex w-[min(320px,calc(100vw-48px))] shrink-0 flex-col overflow-y-auto border-r border-
|
|
1279
|
+
className: `fixed inset-y-0 left-0 z-40 flex w-[min(320px,calc(100vw-48px))] shrink-0 flex-col overflow-y-auto border-r border-po-border-soft bg-po-rail transition-transform md:visible md:static md:z-auto md:w-[320px] md:translate-x-0 ${navigationOpen ? "visible translate-x-0" : "invisible -translate-x-full"}`,
|
|
1280
1280
|
children: /* @__PURE__ */ jsx(AdvancedRail, {
|
|
1281
1281
|
rail,
|
|
1282
1282
|
onClose: () => onNavigationOpenChange(false)
|
|
@@ -1316,7 +1316,7 @@ function AdvancedLayout({ view, slots, rail, navigationOpen, desktopActivityOpen
|
|
|
1316
1316
|
"data-testid": "activity-show",
|
|
1317
1317
|
title: "Show activity",
|
|
1318
1318
|
onClick: () => onDesktopActivityOpenChange(true),
|
|
1319
|
-
className: "hidden h-auto shrink-0 rounded-none border-l border-
|
|
1319
|
+
className: "hidden h-auto shrink-0 rounded-none border-l border-po-border-soft bg-po-rail px-2 py-3 font-semibold text-po-dim hover:bg-po-panel hover:text-po-hi lg:flex",
|
|
1320
1320
|
style: { writingMode: "vertical-rl" },
|
|
1321
1321
|
children: "Activity"
|
|
1322
1322
|
}),
|
|
@@ -1408,7 +1408,7 @@ function AdvancedConversation() {
|
|
|
1408
1408
|
}),
|
|
1409
1409
|
notices: transferLabel === null ? null : /* @__PURE__ */ jsxs("output", {
|
|
1410
1410
|
"data-testid": "voice-transfer-transition",
|
|
1411
|
-
className: "border-b border-
|
|
1411
|
+
className: "border-b border-po-cyan/30 bg-po-cyan/10 px-4 py-2 text-center text-base font-medium text-po-cyan",
|
|
1412
1412
|
children: [
|
|
1413
1413
|
"Transferring voice to ",
|
|
1414
1414
|
transferLabel,
|
|
@@ -1468,21 +1468,21 @@ function AdvancedSettings() {
|
|
|
1468
1468
|
]);
|
|
1469
1469
|
return /* @__PURE__ */ jsxs("div", {
|
|
1470
1470
|
"data-testid": "settings",
|
|
1471
|
-
className: "flex h-full min-h-0 min-w-0 flex-col overflow-hidden bg-
|
|
1471
|
+
className: "flex h-full min-h-0 min-w-0 flex-col overflow-hidden bg-po-bg",
|
|
1472
1472
|
children: [/* @__PURE__ */ jsxs("header", {
|
|
1473
|
-
className: "grid shrink-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-2 gap-y-2 border-b border-
|
|
1473
|
+
className: "grid shrink-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-2 gap-y-2 border-b border-po-border px-3 py-2 sm:h-14 sm:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] sm:px-6 sm:py-0",
|
|
1474
1474
|
children: [
|
|
1475
1475
|
/* @__PURE__ */ jsx("h1", {
|
|
1476
|
-
className: "order-1 min-w-0 truncate text-xl font-semibold text-
|
|
1476
|
+
className: "order-1 min-w-0 truncate text-xl font-semibold text-po-hi sm:order-none",
|
|
1477
1477
|
children: "Settings"
|
|
1478
1478
|
}),
|
|
1479
1479
|
/* @__PURE__ */ jsxs("nav", {
|
|
1480
|
-
className: "order-3 col-span-2 flex w-full items-center gap-1 rounded-lg bg-
|
|
1480
|
+
className: "order-3 col-span-2 flex w-full items-center gap-1 rounded-lg bg-po-panel p-1 sm:order-none sm:col-span-1 sm:w-auto",
|
|
1481
1481
|
"aria-label": "settings workspace",
|
|
1482
1482
|
children: [/* @__PURE__ */ jsx(NavTab, {
|
|
1483
1483
|
asChild: true,
|
|
1484
1484
|
active: workspace === "general",
|
|
1485
|
-
className: "min-h-8 flex-1 justify-center rounded-md px-4 focus-visible:ring-2 focus-visible:ring-
|
|
1485
|
+
className: "min-h-8 flex-1 justify-center rounded-md px-4 focus-visible:ring-2 focus-visible:ring-po-green sm:flex-none",
|
|
1486
1486
|
"aria-current": workspace === "general" ? "true" : void 0,
|
|
1487
1487
|
children: /* @__PURE__ */ jsx(Link, {
|
|
1488
1488
|
to: "/settings/$section",
|
|
@@ -1494,7 +1494,7 @@ function AdvancedSettings() {
|
|
|
1494
1494
|
}), /* @__PURE__ */ jsx(NavTab, {
|
|
1495
1495
|
asChild: true,
|
|
1496
1496
|
active: workspace === "repository",
|
|
1497
|
-
className: "min-h-8 flex-1 justify-center rounded-md px-4 focus-visible:ring-2 focus-visible:ring-
|
|
1497
|
+
className: "min-h-8 flex-1 justify-center rounded-md px-4 focus-visible:ring-2 focus-visible:ring-po-green sm:flex-none",
|
|
1498
1498
|
"aria-current": workspace === "repository" ? "true" : void 0,
|
|
1499
1499
|
children: /* @__PURE__ */ jsx(Link, {
|
|
1500
1500
|
to: "/settings/$section",
|