@1agh/maude 2.1.0 → 2.1.2
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/apps/studio/access/request.ts +1 -0
- package/apps/studio/actions/agents.ts +45 -42
- package/apps/studio/actions/defs/app.ts +28 -1
- package/apps/studio/actions/defs/sync.ts +4 -0
- package/apps/studio/actions/verbs.ts +49 -0
- package/apps/studio/actions.manifest.json +162 -20
- package/apps/studio/actions.parity.json +13 -1
- package/apps/studio/ai/create-claim.ts +1 -1
- package/apps/studio/bin/_asset-file.mjs +117 -0
- package/apps/studio/bin/_canvas-file.mjs +146 -0
- package/apps/studio/bin/_curl-local.mjs +7 -4
- package/apps/studio/bin/_footage.mjs +123 -0
- package/apps/studio/bin/_pdf-playwright.mjs +14 -0
- package/apps/studio/bin/_png-playwright.mjs +15 -1
- package/apps/studio/bin/_pw-launch.mjs +98 -0
- package/apps/studio/bin/_retry-save.mjs +49 -0
- package/apps/studio/bin/_sync.mjs +145 -2
- package/apps/studio/bin/asset-rename.sh +12 -0
- package/apps/studio/bin/asset-trash.sh +12 -0
- package/apps/studio/bin/canvas-move.sh +12 -0
- package/apps/studio/bin/canvas-new.sh +12 -0
- package/apps/studio/bin/footage.sh +12 -0
- package/apps/studio/bin/generate.sh +7 -0
- package/apps/studio/bin/retry-save.sh +13 -0
- package/apps/studio/bridge/canvas-mode-store.ts +11 -2
- package/apps/studio/bridge/dgn-protocol.ts +8 -3
- package/apps/studio/bridge/occlusion.ts +45 -0
- package/apps/studio/canvas-theme-pill.tsx +169 -26
- package/apps/studio/client/app.jsx +16 -4
- package/apps/studio/client/export-center.jsx +32 -3
- package/apps/studio/client/home/HomeAccountBanner.jsx +61 -0
- package/apps/studio/client/home/HomeAccountsChip.jsx +404 -0
- package/apps/studio/client/home/HomeConnection.jsx +112 -0
- package/apps/studio/client/home/ProjectRows.jsx +514 -0
- package/apps/studio/client/home/home-accounts-model.js +234 -76
- package/apps/studio/client/home/home-api.js +10 -2
- package/apps/studio/client/home/home-app.jsx +151 -394
- package/apps/studio/client/home/home-icons.jsx +8 -0
- package/apps/studio/client/home/home-model.js +149 -1
- package/apps/studio/client/home/home-where-model.js +105 -0
- package/apps/studio/client/home/home.css +621 -53
- package/apps/studio/client/home/use-account-fix.js +123 -0
- package/apps/studio/client/hooks/use-palette-and-panels.jsx +3 -1
- package/apps/studio/client/hooks/use-tabs.jsx +11 -4
- package/apps/studio/client/panels/TeamProjects.jsx +137 -134
- package/apps/studio/client/share-link.js +12 -0
- package/apps/studio/client/styles/_index.css +4 -0
- package/apps/studio/client/v2/assets/generate-ask.jsx +3 -1
- package/apps/studio/client/v2/diagnostics/diagnostics-host.jsx +1 -0
- package/apps/studio/client/v2/diagnostics/diagnostics-model.js +32 -2
- package/apps/studio/client/v2/diagnostics/diagnostics-sheet.jsx +35 -8
- package/apps/studio/client/v2/diagnostics/diagnostics.css +34 -0
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details-model.js +94 -3
- package/apps/studio/client/v2/diagnostics/sync-details/sync-details.jsx +187 -4
- package/apps/studio/client/v2/export/done-toast.jsx +2 -5
- package/apps/studio/client/v2/export/export-sheet.jsx +9 -2
- package/apps/studio/client/v2/export/export.css +9 -0
- package/apps/studio/client/v2/export/exports-model.js +16 -3
- package/apps/studio/client/v2/export/file-rows.jsx +81 -5
- package/apps/studio/client/v2/export/native-save.js +33 -0
- package/apps/studio/client/v2/export/sections/print-copy.js +3 -0
- package/apps/studio/client/v2/export/sections/print.jsx +37 -20
- package/apps/studio/client/v2/link-server/LinkServerDialog.jsx +492 -0
- package/apps/studio/client/v2/link-server/LinkServerHost.jsx +42 -0
- package/apps/studio/client/v2/link-server/link-server-api.js +142 -0
- package/apps/studio/client/v2/link-server/link-server-model.js +438 -0
- package/apps/studio/client/v2/link-server/link-server.css +109 -0
- package/apps/studio/client/v2/onboarding/AdvancedSheets.jsx +31 -86
- package/apps/studio/client/v2/onboarding/onboarding-model.js +1 -18
- package/apps/studio/client/v2/search/search-keywords.js +3 -2
- package/apps/studio/client/v2/settings/account.jsx +4 -2
- package/apps/studio/client/v2/settings/advanced-section.jsx +245 -148
- package/apps/studio/client/v2/settings/connection-row.jsx +3 -59
- package/apps/studio/client/v2/settings/connections-section.jsx +118 -425
- package/apps/studio/client/v2/settings/general-section.jsx +138 -43
- package/apps/studio/client/v2/settings/project-sync-settings.jsx +4 -3
- package/apps/studio/client/v2/settings/reset-section.jsx +14 -3
- package/apps/studio/client/v2/settings/settings-card.jsx +142 -0
- package/apps/studio/client/v2/settings/settings-cards.js +220 -0
- package/apps/studio/client/v2/settings/settings-handlers.js +7 -6
- package/apps/studio/client/v2/settings/settings-model.js +91 -31
- package/apps/studio/client/v2/settings/settings-sheet.jsx +25 -6
- package/apps/studio/client/v2/settings/settings.css +374 -64
- package/apps/studio/client/v2/settings/this-project-card.jsx +730 -0
- package/apps/studio/client/v2/settings/this-project-model.js +172 -0
- package/apps/studio/client/v2/settings/use-connections.js +3 -2
- package/apps/studio/client/v2/settings/use-open-card.js +37 -0
- package/apps/studio/client/v2/shell/connection-state.js +197 -0
- package/apps/studio/client/v2/shell/menu-runner.js +7 -2
- package/apps/studio/client/v2/shell/occlusion-insets.js +37 -9
- package/apps/studio/client/v2/shell/project-account-bus.js +36 -0
- package/apps/studio/client/v2/shell/project-account-card.jsx +357 -148
- package/apps/studio/client/v2/shell/project-account-model.js +272 -149
- package/apps/studio/client/v2/shell/project-account-toast.js +66 -0
- package/apps/studio/client/v2/shell/project-account.css +237 -0
- package/apps/studio/client/v2/shell/share-cluster-host.jsx +166 -83
- package/apps/studio/client/v2/shell/shell-parity.js +3 -2
- package/apps/studio/client/v2/shell/shell-parity.json +40 -26
- package/apps/studio/client/v2/shell/use-account.js +2 -0
- package/apps/studio/client/v2/shell/use-occluded-insets.js +13 -3
- package/apps/studio/client/v2/signin/use-signin.js +1 -1
- package/apps/studio/cloud/endpoints.ts +29 -4
- package/apps/studio/collab/room.ts +21 -7
- package/apps/studio/dist/client.bundle.js +886 -886
- package/apps/studio/dist/comment-mount.js +2 -2
- package/apps/studio/dist/styles.css +1 -1
- package/apps/studio/exporters/ghostscript.ts +78 -1
- package/apps/studio/exporters/pdf-fonts.ts +31 -4
- package/apps/studio/generation/jobs.ts +6 -0
- package/apps/studio/home/accounts.ts +30 -11
- package/apps/studio/home/cloud.ts +6 -1
- package/apps/studio/home/hub-health.ts +76 -0
- package/apps/studio/home/routes.ts +9 -3
- package/apps/studio/http.ts +14 -2
- package/apps/studio/migrate/hub.ts +8 -1
- package/apps/studio/routes/agent.ts +6 -2
- package/apps/studio/routes/hub-link-folder.ts +334 -0
- package/apps/studio/routes/hub-signin.ts +78 -1
- package/apps/studio/routes/index.ts +4 -0
- package/apps/studio/routes/project-undo.ts +10 -0
- package/apps/studio/routes/sync.ts +22 -4
- package/apps/studio/server.ts +25 -0
- package/apps/studio/shell/api-key.ts +11 -0
- package/apps/studio/shell/cli-yield.ts +48 -11
- package/apps/studio/sync/accepted-cold-start.ts +144 -8
- package/apps/studio/sync/action-stage.ts +18 -1
- package/apps/studio/sync/ctl-heal.ts +58 -0
- package/apps/studio/sync/file-ledger.ts +38 -4
- package/apps/studio/sync/file-plane.ts +226 -19
- package/apps/studio/sync/held-deletes.ts +86 -5
- package/apps/studio/sync/hub-link.ts +8 -0
- package/apps/studio/sync/index.ts +68 -4
- package/apps/studio/sync/link-consent.ts +22 -75
- package/apps/studio/sync/link-survey.ts +252 -0
- package/apps/studio/sync/local-kernel.ts +16 -1
- package/apps/studio/sync/seed-progress.ts +12 -0
- package/apps/studio/sync/source-recovery.ts +18 -2
- package/apps/studio/sync/status.ts +11 -1
- package/apps/studio/sync/writer-registry.ts +5 -0
- package/apps/studio/whats-new.json +36 -0
- package/cli/commands/design.mjs +74 -16
- package/cli/lib/bash-guard.mjs +23 -4
- package/cli/lib/confine-read.mjs +2 -0
- package/cli/lib/design-help.gen.mjs +15 -2
- package/cli/lib/design-hook.mjs +1 -1
- package/cli/lib/desktop-locate.mjs +36 -8
- package/cli/lib/studio-locate.mjs +8 -2
- package/cli/lib/sub-verbs.mjs +13 -1
- package/package.json +9 -8
- package/apps/studio/client/home/HomeAccounts.jsx +0 -262
- package/apps/studio/client/v2/onboarding/HubSheet.jsx +0 -212
- package/apps/studio/client/v2/shell/account-card-model.js +0 -114
- package/apps/studio/client/v2/shell/account-card.jsx +0 -189
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
14
14
|
|
|
15
15
|
import {
|
|
16
|
+
cloudSignOut,
|
|
16
17
|
createLocal,
|
|
17
18
|
createLocalFromPrompt,
|
|
18
19
|
getAccounts,
|
|
@@ -35,13 +36,14 @@ import {
|
|
|
35
36
|
prepareCloud,
|
|
36
37
|
prepareCloudLink,
|
|
37
38
|
relinkProject,
|
|
39
|
+
revealProjectFolder,
|
|
40
|
+
forgetProject,
|
|
38
41
|
saveRecentSearch,
|
|
39
42
|
search,
|
|
40
43
|
setPin,
|
|
41
44
|
shellListen,
|
|
42
45
|
shellState,
|
|
43
46
|
takePendingDeepLink,
|
|
44
|
-
thumbObjectUrl,
|
|
45
47
|
} from './home-api.js';
|
|
46
48
|
import { homeBootConfig } from './shell-mode.js';
|
|
47
49
|
import { parseMaudeLink } from '../share-link.js';
|
|
@@ -59,15 +61,13 @@ import { HomeAsk } from './HomeAsk.jsx';
|
|
|
59
61
|
import { HOME_MENU, homeMenuCtx, homeMenuState } from './home-menu.js';
|
|
60
62
|
import { InviteSheet } from './InviteSheet.jsx';
|
|
61
63
|
import { INVITE_WORDS, joinPendingAndOpen, useInviteFlow } from './invite-flow.js';
|
|
62
|
-
import { HIcon,
|
|
63
|
-
import {
|
|
64
|
+
import { HIcon, HSpark, ProjectSquare } from './home-icons.jsx';
|
|
65
|
+
import { HomeAccountBanner } from './HomeAccountBanner.jsx';
|
|
66
|
+
import { HomeAccountsChip } from './HomeAccountsChip.jsx';
|
|
67
|
+
import { homeAccountBanner, homeAccountCards, homeAccountsSummary } from './home-accounts-model.js';
|
|
68
|
+
import { useAccountFix } from './use-account-fix.js';
|
|
64
69
|
import {
|
|
65
|
-
accountFace,
|
|
66
70
|
buildHomeModel,
|
|
67
|
-
canvasCount,
|
|
68
|
-
cloudRoleWord,
|
|
69
|
-
ownerWord,
|
|
70
|
-
capProjectGroups,
|
|
71
71
|
defaultTarget,
|
|
72
72
|
indexQuery,
|
|
73
73
|
invitedRows,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
} from './home-model.js';
|
|
83
83
|
import { pickStarters } from './home-starters.js';
|
|
84
84
|
import { NewProjectButton, ProjectsEmpty, SharedWithYou } from './Shelves.jsx';
|
|
85
|
-
import {
|
|
85
|
+
import { ProjectList, Thumb } from './ProjectRows.jsx';
|
|
86
86
|
|
|
87
87
|
// ── theme: the Home window follows the Mac's appearance (light is the v2 default) ──────────────
|
|
88
88
|
// S6.9 — every row of the Advanced options flyout now opens its sheet
|
|
@@ -355,8 +355,8 @@ function useOnline() {
|
|
|
355
355
|
// "Shared with you" rows already opened on this Mac (they stop counting as "new this week"). A per-Mac
|
|
356
356
|
// convenience, so Home's own storage is enough; it renders correctly without it.
|
|
357
357
|
const SEEN_KEY = 'maude-home-shared-seen';
|
|
358
|
-
// 11 pn-home: the Projects list draws this many rows, then "N more" (
|
|
359
|
-
const PROJECTS_SHOWN =
|
|
358
|
+
// 11 pn-home: the Projects list draws this many rows, then "N more"; 2.1.2 (artboard 15) slim rows show ten
|
|
359
|
+
const PROJECTS_SHOWN = 10;
|
|
360
360
|
function readSeen() {
|
|
361
361
|
try {
|
|
362
362
|
const v = JSON.parse(localStorage.getItem(SEEN_KEY) || '[]');
|
|
@@ -381,7 +381,6 @@ export function HomeApp() {
|
|
|
381
381
|
// Recent canvases are one row of six with a "See all" (pn-home); Projects: find + sort (pn-projlist)
|
|
382
382
|
const [recentAll, setRecentAll] = useState(false);
|
|
383
383
|
const [projFind, setProjFind] = useState('');
|
|
384
|
-
const [projSort, setProjSort] = useState('recent');
|
|
385
384
|
const [projAll, setProjAll] = useState(false);
|
|
386
385
|
const [notice, setNotice] = useState(null);
|
|
387
386
|
const [link, setLink] = useDeepLink(data.native);
|
|
@@ -453,6 +452,9 @@ export function HomeApp() {
|
|
|
453
452
|
// 2.0.5 W4b — the account each profile's team servers vouched for, so a row can say
|
|
454
453
|
// "Team server · <host> · <account>" (public handles from /_home/accounts, never a token)
|
|
455
454
|
const [hubAccounts, setHubAccounts] = useState(null);
|
|
455
|
+
// 2.1.1 — and whether each of those sign-ins still works (`state`), plus the raw answer for the accounts row
|
|
456
|
+
const [hubStates, setHubStates] = useState(null);
|
|
457
|
+
const [hubProfiles, setHubProfiles] = useState(null);
|
|
456
458
|
const profileKey = (data.shell?.profiles ?? [])
|
|
457
459
|
.map((p) => p?.id)
|
|
458
460
|
.filter(Boolean)
|
|
@@ -471,6 +473,15 @@ export function HomeApp() {
|
|
|
471
473
|
])
|
|
472
474
|
)
|
|
473
475
|
);
|
|
476
|
+
setHubStates(
|
|
477
|
+
Object.fromEntries(
|
|
478
|
+
r.json.profiles.map((p) => [
|
|
479
|
+
p.id,
|
|
480
|
+
Object.fromEntries((p.hubs ?? []).map((h) => [h.url, h.state])),
|
|
481
|
+
])
|
|
482
|
+
)
|
|
483
|
+
);
|
|
484
|
+
setHubProfiles(r.json.profiles);
|
|
474
485
|
});
|
|
475
486
|
return () => {
|
|
476
487
|
live = false;
|
|
@@ -484,11 +495,37 @@ export function HomeApp() {
|
|
|
484
495
|
clouds: data.clouds,
|
|
485
496
|
filterPid: filterPid || null,
|
|
486
497
|
hubAccounts,
|
|
498
|
+
hubStates,
|
|
499
|
+
cloudUrl,
|
|
500
|
+
}),
|
|
501
|
+
[data.shell, data.index, data.clouds, filterPid, hubAccounts, hubStates, cloudUrl]
|
|
502
|
+
);
|
|
503
|
+
// 2.1.2 HB1 (canvas 17, artboards 15–18) — accounts are a chip at the top right that opens the list;
|
|
504
|
+
// only a sign-in the person can fix raises the banner on top. An account whose sign-in stopped
|
|
505
|
+
// working is fixed from its own line or the banner (one shared attempt). A Maude Cloud one drops the
|
|
506
|
+
// dead credential first so the sign-in may use that same profile again (Rust never re-signs a
|
|
507
|
+
// profile that still holds one). A Maude Cloud cell is never a server (`cloudUrl`).
|
|
508
|
+
const accountCards = useMemo(
|
|
509
|
+
() =>
|
|
510
|
+
homeAccountCards({
|
|
511
|
+
shell: data.shell,
|
|
512
|
+
clouds: data.clouds,
|
|
513
|
+
hubProfiles: hubProfiles ?? [],
|
|
514
|
+
groups: model.groups,
|
|
487
515
|
cloudUrl,
|
|
488
516
|
}),
|
|
489
|
-
[data.shell, data.
|
|
517
|
+
[data.shell, data.clouds, hubProfiles, model.groups, cloudUrl]
|
|
490
518
|
);
|
|
491
|
-
|
|
519
|
+
const accountSummary = useMemo(() => homeAccountsSummary(accountCards), [accountCards]);
|
|
520
|
+
const accountBanner = useMemo(() => homeAccountBanner(accountCards), [accountCards]);
|
|
521
|
+
const [accountsOpen, setAccountsOpen] = useState(false);
|
|
522
|
+
const accountFix = useAccountFix({
|
|
523
|
+
onCloudSignIn: async (card) => {
|
|
524
|
+
if (card.state === 'rejected') await cloudSignOut(card.profile);
|
|
525
|
+
signin.begin({ profile: card.profile });
|
|
526
|
+
},
|
|
527
|
+
onChanged: data.reload,
|
|
528
|
+
});
|
|
492
529
|
const searchPids = useMemo(
|
|
493
530
|
() => (data.shell ? indexQuery(data.shell).pids : browserPids()),
|
|
494
531
|
[data.shell]
|
|
@@ -628,6 +665,29 @@ export function HomeApp() {
|
|
|
628
665
|
[fail]
|
|
629
666
|
);
|
|
630
667
|
|
|
668
|
+
// 2.1.2 — a row's "Show in Finder" and "Remove from list" (after the row's confirm). Rust takes each
|
|
669
|
+
// pid off this Mac's list and says so on `shell://state`; nothing on disk changes.
|
|
670
|
+
const reveal = useCallback(
|
|
671
|
+
async (pid) => {
|
|
672
|
+
try {
|
|
673
|
+
await revealProjectFolder(pid);
|
|
674
|
+
} catch (e) {
|
|
675
|
+
fail(e);
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
[fail]
|
|
679
|
+
);
|
|
680
|
+
const forget = useCallback(
|
|
681
|
+
async (pids) => {
|
|
682
|
+
try {
|
|
683
|
+
for (const pid of pids) await forgetProject(pid);
|
|
684
|
+
} catch (e) {
|
|
685
|
+
fail(e);
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
[fail]
|
|
689
|
+
);
|
|
690
|
+
|
|
631
691
|
// #206 T6.3g — a Worktrees row's chip: its own tab, by pid (never `open_project`, never a path).
|
|
632
692
|
const openWorktreeTab = useCallback(
|
|
633
693
|
async (pid) => {
|
|
@@ -931,23 +991,20 @@ export function HomeApp() {
|
|
|
931
991
|
[askNewProject, openFolder, startEmpty, whatsNew.open]
|
|
932
992
|
);
|
|
933
993
|
|
|
934
|
-
const hasProjects = model.
|
|
935
|
-
// Find a project
|
|
936
|
-
|
|
994
|
+
const hasProjects = model.projects.length > 0;
|
|
995
|
+
// Find a project (pn-home Projects) by name as typed; the list keeps the model's order (last used first).
|
|
996
|
+
// 2.1.2 (artboard 15): one flat list — no account headers and no sort; a row wears its account's face.
|
|
997
|
+
const { projRows, projMore } = useMemo(() => {
|
|
937
998
|
const q = projFind.trim().toLowerCase();
|
|
938
|
-
const
|
|
939
|
-
const all = model.groups
|
|
940
|
-
.map((g) => {
|
|
941
|
-
const rows = g.rows.filter((r) => !q || String(r.name).toLowerCase().includes(q));
|
|
942
|
-
return { ...g, rows: projSort === 'name' ? [...rows].sort(byName) : rows };
|
|
943
|
-
})
|
|
944
|
-
.filter((g) => g.rows.length || !q);
|
|
999
|
+
const all = model.projects.filter((r) => !q || String(r.name).toLowerCase().includes(q));
|
|
945
1000
|
// 11 pn-home: the list shows its first rows and a "N more" foot; finding a project searches all of them
|
|
946
|
-
if (q || projAll) return {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
const
|
|
1001
|
+
if (q || projAll || all.length <= PROJECTS_SHOWN) return { projRows: all, projMore: 0 };
|
|
1002
|
+
return { projRows: all.slice(0, PROJECTS_SHOWN), projMore: all.length - PROJECTS_SHOWN };
|
|
1003
|
+
}, [model.projects, projFind, projAll]);
|
|
1004
|
+
// 2.1.2 — Maude Cloud can't be reached: one quiet line above the list (the account headers are gone)
|
|
1005
|
+
const cloudOffline = (data.clouds ?? []).some((c) => c?.offline);
|
|
1006
|
+
// 2.1.2 (artboard 15) — "Shared with you" shows only when something is shared
|
|
1007
|
+
const showShared = signedIn && (shared.length > 0 || invited.length > 0);
|
|
951
1008
|
return (
|
|
952
1009
|
<div className="maude-v2 home-root" data-theme={theme} data-testid="home-root">
|
|
953
1010
|
<header className="home-top">
|
|
@@ -976,19 +1033,31 @@ export function HomeApp() {
|
|
|
976
1033
|
}}
|
|
977
1034
|
canOpen={data.native}
|
|
978
1035
|
/>
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1036
|
+
{accountCards.length || (data.native && data.shell?.profiles?.length) ? (
|
|
1037
|
+
<HomeAccountsChip
|
|
1038
|
+
summary={accountSummary}
|
|
1039
|
+
shell={data.shell}
|
|
1040
|
+
native={data.native}
|
|
1041
|
+
open={accountsOpen}
|
|
1042
|
+
onOpen={() => setAccountsOpen(true)}
|
|
1043
|
+
onClose={() => setAccountsOpen(false)}
|
|
1044
|
+
fixer={accountFix}
|
|
1045
|
+
onAddCloud={() => signin.begin()}
|
|
1046
|
+
onAddTeam={() => openSheet('hub')}
|
|
1047
|
+
onChanged={data.reload}
|
|
1048
|
+
/>
|
|
1049
|
+
) : null}
|
|
987
1050
|
</div>
|
|
988
1051
|
</header>
|
|
989
1052
|
|
|
990
1053
|
<main className="home-page" aria-label="Home">
|
|
991
1054
|
<h1 className="home-sr">Home</h1>
|
|
1055
|
+
<HomeAccountBanner
|
|
1056
|
+
banner={accountBanner}
|
|
1057
|
+
native={data.native}
|
|
1058
|
+
fixer={accountFix}
|
|
1059
|
+
onReview={() => setAccountsOpen(true)}
|
|
1060
|
+
/>
|
|
992
1061
|
<HomeAsk
|
|
993
1062
|
choices={choices}
|
|
994
1063
|
targetKey={targetKey}
|
|
@@ -1065,44 +1134,7 @@ export function HomeApp() {
|
|
|
1065
1134
|
</p>
|
|
1066
1135
|
) : null}
|
|
1067
1136
|
|
|
1068
|
-
{model.
|
|
1069
|
-
<section className="home-sec" aria-labelledby="home-h-pinned">
|
|
1070
|
-
<h2 className="home-h" id="home-h-pinned">
|
|
1071
|
-
Pinned
|
|
1072
|
-
<span className="home-h-aside">pin any canvas from its row or its menu</span>
|
|
1073
|
-
</h2>
|
|
1074
|
-
<ul className="home-pins">
|
|
1075
|
-
{model.pinned.map((r) => (
|
|
1076
|
-
<li key={`${r.pid}:${r.rel}`} className="home-pincard">
|
|
1077
|
-
<button
|
|
1078
|
-
type="button"
|
|
1079
|
-
className="home-pincard-main"
|
|
1080
|
-
data-testid={`home-pinned-row-${r.pid}-${r.slug}`}
|
|
1081
|
-
onClick={() => open(r.pid, r.rel)}
|
|
1082
|
-
disabled={!data.native}
|
|
1083
|
-
>
|
|
1084
|
-
<Thumb src={r.thumb} className="home-thumb-pin" />
|
|
1085
|
-
<span className="home-pincard-t">
|
|
1086
|
-
<strong>{r.name}</strong>
|
|
1087
|
-
<span>
|
|
1088
|
-
<ProjectSquare id={r.pid} name={r.projectName} />
|
|
1089
|
-
{r.projectName}
|
|
1090
|
-
{r.folder ? ` · ${r.folder}` : ''}
|
|
1091
|
-
</span>
|
|
1092
|
-
</span>
|
|
1093
|
-
</button>
|
|
1094
|
-
<PinButton
|
|
1095
|
-
row={r}
|
|
1096
|
-
testid={`home-pinned-unpin-${r.pid}-${r.slug}`}
|
|
1097
|
-
onToggle={togglePin}
|
|
1098
|
-
/>
|
|
1099
|
-
</li>
|
|
1100
|
-
))}
|
|
1101
|
-
</ul>
|
|
1102
|
-
</section>
|
|
1103
|
-
) : null}
|
|
1104
|
-
|
|
1105
|
-
{model.recent.length || filterPid ? (
|
|
1137
|
+
{model.cards.length || filterPid ? (
|
|
1106
1138
|
<section className="home-sec" aria-labelledby="home-h-recent">
|
|
1107
1139
|
<h2 className="home-h" id="home-h-recent">
|
|
1108
1140
|
Recent canvases
|
|
@@ -1127,7 +1159,7 @@ export function HomeApp() {
|
|
|
1127
1159
|
</label>
|
|
1128
1160
|
</span>
|
|
1129
1161
|
) : null}
|
|
1130
|
-
{model.
|
|
1162
|
+
{model.cards.length > RECENT_CAP ? (
|
|
1131
1163
|
<button
|
|
1132
1164
|
type="button"
|
|
1133
1165
|
className="btn btn--ghost btn--sm home-seeall"
|
|
@@ -1139,9 +1171,9 @@ export function HomeApp() {
|
|
|
1139
1171
|
</button>
|
|
1140
1172
|
) : null}
|
|
1141
1173
|
</h2>
|
|
1142
|
-
{model.
|
|
1174
|
+
{model.cards.length ? (
|
|
1143
1175
|
<ul className="home-cards">
|
|
1144
|
-
{(recentAll ? model.
|
|
1176
|
+
{(recentAll ? model.cards : model.cards.slice(0, RECENT_CAP)).map((r) => (
|
|
1145
1177
|
<li key={`${r.pid}:${r.rel}`} className="home-card">
|
|
1146
1178
|
<button
|
|
1147
1179
|
type="button"
|
|
@@ -1160,12 +1192,11 @@ export function HomeApp() {
|
|
|
1160
1192
|
) : null}
|
|
1161
1193
|
</span>
|
|
1162
1194
|
<strong>{r.name}</strong>
|
|
1195
|
+
{/* 2.1.2 (artboard 15): one meta line — the project · when */}
|
|
1163
1196
|
<span className="home-card-meta home-card-proj">
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
<span className="home-card-meta">
|
|
1168
|
-
{[r.folder, relativeTime(r.openedAt)].filter(Boolean).join(' · ')}
|
|
1197
|
+
{[r.projectName, relativeTime(r.openedAt ?? undefined)]
|
|
1198
|
+
.filter(Boolean)
|
|
1199
|
+
.join(' · ')}
|
|
1169
1200
|
</span>
|
|
1170
1201
|
</button>
|
|
1171
1202
|
<PinButton
|
|
@@ -1201,15 +1232,14 @@ export function HomeApp() {
|
|
|
1201
1232
|
) : null}
|
|
1202
1233
|
{hasProjects ? (
|
|
1203
1234
|
<section className="home-sec" aria-labelledby="home-h-projects">
|
|
1235
|
+
{/* 2.1.2 (artboard 15): Projects · count · Find · Open project… · New project, one row */}
|
|
1204
1236
|
<h2 className="home-h" id="home-h-projects">
|
|
1205
1237
|
Projects
|
|
1206
1238
|
{model.projectCount ? (
|
|
1207
|
-
<span className="home-h-aside">
|
|
1208
|
-
{model.projectCount} {model.projectCount === 1 ? 'project' : 'projects'}
|
|
1209
|
-
</span>
|
|
1239
|
+
<span className="home-h-aside home-h-n">{model.projectCount}</span>
|
|
1210
1240
|
) : null}
|
|
1211
|
-
|
|
1212
|
-
|
|
1241
|
+
<span className="home-h-right">
|
|
1242
|
+
{model.projectCount > 1 ? (
|
|
1213
1243
|
<label className="home-projfind">
|
|
1214
1244
|
<span className="home-sr">Find a project</span>
|
|
1215
1245
|
<HIcon name="search" size={14} />
|
|
@@ -1222,37 +1252,39 @@ export function HomeApp() {
|
|
|
1222
1252
|
onChange={(e) => setProjFind(e.target.value)}
|
|
1223
1253
|
/>
|
|
1224
1254
|
</label>
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
</span>
|
|
1239
|
-
) : null}
|
|
1255
|
+
) : null}
|
|
1256
|
+
<button
|
|
1257
|
+
type="button"
|
|
1258
|
+
className="btn btn--ghost btn--sm home-projopen"
|
|
1259
|
+
data-testid="home-open-folder"
|
|
1260
|
+
onClick={openFolder}
|
|
1261
|
+
disabled={!data.native}
|
|
1262
|
+
>
|
|
1263
|
+
<HIcon name="folder" size={14} />
|
|
1264
|
+
Open project…
|
|
1265
|
+
</button>
|
|
1266
|
+
<NewProjectButton native={data.native} onNewProject={askNewProject} />
|
|
1267
|
+
</span>
|
|
1240
1268
|
</h2>
|
|
1269
|
+
{cloudOffline ? (
|
|
1270
|
+
<p className="home-acct-note" role="note">
|
|
1271
|
+
Maude Cloud can't be reached. Showing the last list; projects on this Mac still
|
|
1272
|
+
open.
|
|
1273
|
+
</p>
|
|
1274
|
+
) : null}
|
|
1241
1275
|
<div className="island home-projlist">
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
<div className="home-projmore">
|
|
1255
|
-
{projMore ? (
|
|
1276
|
+
<ProjectList
|
|
1277
|
+
rows={projRows}
|
|
1278
|
+
canOpen={data.native}
|
|
1279
|
+
onOpen={(pid) => open(pid)}
|
|
1280
|
+
onOpenWorktree={openWorktreeTab}
|
|
1281
|
+
onRelink={relink}
|
|
1282
|
+
onOpenCloud={openCloud}
|
|
1283
|
+
onReveal={reveal}
|
|
1284
|
+
onForget={forget}
|
|
1285
|
+
/>
|
|
1286
|
+
{projMore ? (
|
|
1287
|
+
<div className="home-projmore">
|
|
1256
1288
|
<button
|
|
1257
1289
|
type="button"
|
|
1258
1290
|
className="btn btn--ghost btn--sm home-projmore-n"
|
|
@@ -1261,24 +1293,8 @@ export function HomeApp() {
|
|
|
1261
1293
|
>
|
|
1262
1294
|
{projMore} more
|
|
1263
1295
|
</button>
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
)}
|
|
1267
|
-
<span className="home-projacts">
|
|
1268
|
-
<NewProjectButton native={data.native} onNewProject={askNewProject} />
|
|
1269
|
-
<button
|
|
1270
|
-
type="button"
|
|
1271
|
-
className="btn btn--ghost btn--sm home-projopen"
|
|
1272
|
-
data-testid="home-open-folder"
|
|
1273
|
-
onClick={openFolder}
|
|
1274
|
-
disabled={!data.native}
|
|
1275
|
-
>
|
|
1276
|
-
<HIcon name="folder" size={14} />
|
|
1277
|
-
Open project…
|
|
1278
|
-
<kbd className="kbd">⌘O</kbd>
|
|
1279
|
-
</button>
|
|
1280
|
-
</span>
|
|
1281
|
-
</div>
|
|
1296
|
+
</div>
|
|
1297
|
+
) : null}
|
|
1282
1298
|
</div>
|
|
1283
1299
|
</section>
|
|
1284
1300
|
) : data.status !== 'loading' && !cardOn && (firstRunSeen !== null || !data.native) ? (
|
|
@@ -1371,30 +1387,6 @@ export function HomeApp() {
|
|
|
1371
1387
|
);
|
|
1372
1388
|
}
|
|
1373
1389
|
|
|
1374
|
-
/** A Home picture: fetched with the Home header (home-api `thumbObjectUrl`), shown as a blob URL. */
|
|
1375
|
-
function Thumb({ src, className }) {
|
|
1376
|
-
const [url, setUrl] = useState(null);
|
|
1377
|
-
const [broken, setBroken] = useState(false);
|
|
1378
|
-
useEffect(() => {
|
|
1379
|
-
let alive = true;
|
|
1380
|
-
setUrl(null);
|
|
1381
|
-
setBroken(false);
|
|
1382
|
-
if (src)
|
|
1383
|
-
thumbObjectUrl(src).then((u) => {
|
|
1384
|
-
if (alive) setUrl(u);
|
|
1385
|
-
});
|
|
1386
|
-
return () => {
|
|
1387
|
-
alive = false;
|
|
1388
|
-
};
|
|
1389
|
-
}, [src]);
|
|
1390
|
-
if (!url || broken) return <span className={`home-thumb home-thumb--empty ${className}`} />;
|
|
1391
|
-
return (
|
|
1392
|
-
<span className={`home-thumb ${className}`}>
|
|
1393
|
-
<img src={url} alt="" decoding="async" onError={() => setBroken(true)} />
|
|
1394
|
-
</span>
|
|
1395
|
-
);
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
1390
|
function PinButton({ row, testid, onToggle }) {
|
|
1399
1391
|
const pinned = row.pinnedAt != null;
|
|
1400
1392
|
return (
|
|
@@ -1414,241 +1406,6 @@ function PinButton({ row, testid, onToggle }) {
|
|
|
1414
1406
|
|
|
1415
1407
|
const RECENT_CAP = 6;
|
|
1416
1408
|
|
|
1417
|
-
const STATE_WORD = {
|
|
1418
|
-
tab: 'in a tab',
|
|
1419
|
-
cloud: (
|
|
1420
|
-
<>
|
|
1421
|
-
<HIcon name="cloud" size={12} />
|
|
1422
|
-
not on this Mac yet
|
|
1423
|
-
</>
|
|
1424
|
-
),
|
|
1425
|
-
};
|
|
1426
|
-
|
|
1427
|
-
// 2.0.5 W4b — how a local project is connected and as whom: "Local · this Mac only",
|
|
1428
|
-
// "Maude Cloud · <account>", "Team server · <host> · <account>" (home-model `connectionOf`).
|
|
1429
|
-
const CONNECTION_ICON = { local: 'laptop', cloud: 'cloud', team: 'server' };
|
|
1430
|
-
function ConnectionWords({ row }) {
|
|
1431
|
-
const c = row.connection;
|
|
1432
|
-
if (!c?.words) return null;
|
|
1433
|
-
return (
|
|
1434
|
-
<span
|
|
1435
|
-
className="home-prow-conn"
|
|
1436
|
-
data-testid={`home-project-conn-${row.pid}`}
|
|
1437
|
-
data-kind={c.kind}
|
|
1438
|
-
>
|
|
1439
|
-
<HIcon name={CONNECTION_ICON[c.kind] ?? 'laptop'} size={12} />
|
|
1440
|
-
{c.words}
|
|
1441
|
-
</span>
|
|
1442
|
-
);
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
// 2.0.5 W4b — the folders folded into this row (a managed cloud copy; another folder on the same
|
|
1446
|
-
// design root). Each still opens its own project.
|
|
1447
|
-
function RowCopies({ row, canOpen, onOpen }) {
|
|
1448
|
-
if (!row.copies?.length) return null;
|
|
1449
|
-
return (
|
|
1450
|
-
<span className="home-prow-copies">
|
|
1451
|
-
{row.copies.map((c) => (
|
|
1452
|
-
<button
|
|
1453
|
-
key={c.pid}
|
|
1454
|
-
type="button"
|
|
1455
|
-
className="chip home-prow-copy"
|
|
1456
|
-
data-testid={`home-project-copy-${c.pid}`}
|
|
1457
|
-
data-kind={c.kind}
|
|
1458
|
-
onClick={() => onOpen(c.pid)}
|
|
1459
|
-
disabled={!canOpen}
|
|
1460
|
-
{...reasonProps(!canOpen, 'homeBrowser')}
|
|
1461
|
-
title={c.root}
|
|
1462
|
-
aria-label={
|
|
1463
|
-
c.kind === 'folder' ? `Open ${c.label}` : `Open the ${c.label} of ${row.name}`
|
|
1464
|
-
}
|
|
1465
|
-
>
|
|
1466
|
-
{c.kind === 'folder' ? `also ${c.label}` : c.label}
|
|
1467
|
-
</button>
|
|
1468
|
-
))}
|
|
1469
|
-
</span>
|
|
1470
|
-
);
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
// #206 T6.3g (contract 206 §5) — the git worktrees of this project this Mac opened as tabs: one
|
|
1474
|
-
// "Worktrees" row under the project, a chip per branch. A worktree is never a project row of its own.
|
|
1475
|
-
function RowWorktrees({ row, canOpen, onOpen }) {
|
|
1476
|
-
if (!row.worktrees?.length) return null;
|
|
1477
|
-
return (
|
|
1478
|
-
<span className="home-prow-copies" data-testid={`home-project-worktrees-${row.pid}`}>
|
|
1479
|
-
<span className="home-prow-wt-h">Worktrees</span>
|
|
1480
|
-
{row.worktrees.map((w) => (
|
|
1481
|
-
<button
|
|
1482
|
-
key={w.pid}
|
|
1483
|
-
type="button"
|
|
1484
|
-
className="chip home-prow-copy"
|
|
1485
|
-
data-testid={`home-worktree-${w.pid}`}
|
|
1486
|
-
data-place={w.place}
|
|
1487
|
-
onClick={() => onOpen(w.pid)}
|
|
1488
|
-
disabled={!canOpen}
|
|
1489
|
-
{...reasonProps(!canOpen, 'homeBrowser')}
|
|
1490
|
-
title={w.root}
|
|
1491
|
-
aria-label={`Open the ${w.branch} worktree of ${row.name}`}
|
|
1492
|
-
>
|
|
1493
|
-
{w.branch}
|
|
1494
|
-
</button>
|
|
1495
|
-
))}
|
|
1496
|
-
</span>
|
|
1497
|
-
);
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
// A project tab's live state (shell_state `ai` + `place`), canvas 11's words: AI working (a spark
|
|
1501
|
-
// while it runs) · Needs you (it is waiting on a decision — the one that asks for you wins) ·
|
|
1502
|
-
// Resting (its server is stopped; the tab wakes it). A resting tab never has AI (rest policy).
|
|
1503
|
-
function RowLive({ row }) {
|
|
1504
|
-
const ai = row.ai;
|
|
1505
|
-
if (ai?.awaiting > 0)
|
|
1506
|
-
return (
|
|
1507
|
-
<span
|
|
1508
|
-
className="chip home-prow-ai"
|
|
1509
|
-
data-testid={`home-project-ai-${row.pid}`}
|
|
1510
|
-
data-ai="awaiting"
|
|
1511
|
-
>
|
|
1512
|
-
Needs you
|
|
1513
|
-
</span>
|
|
1514
|
-
);
|
|
1515
|
-
if (ai?.running > 0)
|
|
1516
|
-
return (
|
|
1517
|
-
<span
|
|
1518
|
-
className="chip chip--spark home-prow-ai"
|
|
1519
|
-
data-testid={`home-project-ai-${row.pid}`}
|
|
1520
|
-
data-ai="running"
|
|
1521
|
-
>
|
|
1522
|
-
<HSpark size={9} />
|
|
1523
|
-
AI working
|
|
1524
|
-
</span>
|
|
1525
|
-
);
|
|
1526
|
-
if (row.place === 'resting')
|
|
1527
|
-
return (
|
|
1528
|
-
<span className="home-prow-rest" data-testid={`home-project-resting-${row.pid}`}>
|
|
1529
|
-
<span className="home-prow-ring" aria-hidden="true" />
|
|
1530
|
-
Resting
|
|
1531
|
-
</span>
|
|
1532
|
-
);
|
|
1533
|
-
return null;
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
function ProfileGroup({
|
|
1537
|
-
group,
|
|
1538
|
-
showHeader,
|
|
1539
|
-
canOpen,
|
|
1540
|
-
onOpen,
|
|
1541
|
-
onOpenWorktree,
|
|
1542
|
-
onRelink,
|
|
1543
|
-
onOpenCloud,
|
|
1544
|
-
}) {
|
|
1545
|
-
const { profile, cloud } = group;
|
|
1546
|
-
return (
|
|
1547
|
-
<div className="home-acct" data-testid={`home-profile-${profile.id}`}>
|
|
1548
|
-
{showHeader ? (
|
|
1549
|
-
<h3 className="home-acct-h">
|
|
1550
|
-
<span
|
|
1551
|
-
className={`home-acctf home-acctf--${accountFace(profile).tone}`}
|
|
1552
|
-
aria-hidden="true"
|
|
1553
|
-
>
|
|
1554
|
-
{accountFace(profile).initial}
|
|
1555
|
-
</span>
|
|
1556
|
-
{profile.label}
|
|
1557
|
-
{profile.email ? ` · ${profile.email}` : ''}
|
|
1558
|
-
</h3>
|
|
1559
|
-
) : null}
|
|
1560
|
-
{cloud?.offline ? (
|
|
1561
|
-
<p className="home-acct-note" role="note">
|
|
1562
|
-
Maude Cloud can't be reached. Showing the last list; projects on this Mac still open.
|
|
1563
|
-
</p>
|
|
1564
|
-
) : null}
|
|
1565
|
-
<ul className="home-prows">
|
|
1566
|
-
{group.rows.map((r) =>
|
|
1567
|
-
r.kind === 'cloud' ? (
|
|
1568
|
-
<li key={`c:${r.projectId}`} className="row-item home-prow home-prow--cloud">
|
|
1569
|
-
<ProjectSquare id={r.projectId} name={r.name} size="md" />
|
|
1570
|
-
<span className="home-prow-t" data-testid={`home-cloud-row-${r.projectId}`}>
|
|
1571
|
-
<strong>{r.name}</strong>
|
|
1572
|
-
<span>
|
|
1573
|
-
{ownerWord(r.ownerName, r.role) ? `${ownerWord(r.ownerName, r.role)} · ` : ''}
|
|
1574
|
-
{cloudRoleWord(r.role)} · {STATE_WORD.cloud}
|
|
1575
|
-
</span>
|
|
1576
|
-
</span>
|
|
1577
|
-
<button
|
|
1578
|
-
type="button"
|
|
1579
|
-
className="btn btn--sm"
|
|
1580
|
-
data-testid={`home-cloud-open-${r.projectId}`}
|
|
1581
|
-
onClick={() => onOpenCloud(r)}
|
|
1582
|
-
disabled={!canOpen}
|
|
1583
|
-
{...reasonProps(!canOpen, 'homeBrowser')}
|
|
1584
|
-
aria-label={`Open ${r.name}`}
|
|
1585
|
-
>
|
|
1586
|
-
Open
|
|
1587
|
-
</button>
|
|
1588
|
-
</li>
|
|
1589
|
-
) : (
|
|
1590
|
-
<li key={r.pid} className="home-prow-li">
|
|
1591
|
-
{r.status === 'gone' ? (
|
|
1592
|
-
<div className="row-item home-prow home-prow--gone">
|
|
1593
|
-
<ProjectSquare id={r.pid} name={r.name} size="md" />
|
|
1594
|
-
<span className="home-prow-t" data-testid={`home-project-row-${r.pid}`}>
|
|
1595
|
-
<strong>{r.name}</strong>
|
|
1596
|
-
<span>{r.name} isn't where it was.</span>
|
|
1597
|
-
</span>
|
|
1598
|
-
<button
|
|
1599
|
-
type="button"
|
|
1600
|
-
className="btn btn--sm"
|
|
1601
|
-
data-testid={`home-relink-${r.pid}`}
|
|
1602
|
-
onClick={() => onRelink(r.pid)}
|
|
1603
|
-
disabled={!canOpen}
|
|
1604
|
-
{...reasonProps(!canOpen, 'homeBrowser')}
|
|
1605
|
-
>
|
|
1606
|
-
Find the folder…
|
|
1607
|
-
</button>
|
|
1608
|
-
</div>
|
|
1609
|
-
) : (
|
|
1610
|
-
<button
|
|
1611
|
-
type="button"
|
|
1612
|
-
className="row-item home-prow"
|
|
1613
|
-
data-testid={`home-project-row-${r.pid}`}
|
|
1614
|
-
data-place={r.place}
|
|
1615
|
-
onClick={() => onOpen(r.pid)}
|
|
1616
|
-
disabled={!canOpen}
|
|
1617
|
-
{...reasonProps(!canOpen, 'homeBrowser')}
|
|
1618
|
-
>
|
|
1619
|
-
<Thumb src={r.cover} className="home-prow-thumb" />
|
|
1620
|
-
<span className="home-prow-t">
|
|
1621
|
-
<strong>{r.name}</strong>
|
|
1622
|
-
<span>
|
|
1623
|
-
{[
|
|
1624
|
-
r.canvasCount != null ? canvasCount(r.canvasCount) : null,
|
|
1625
|
-
STATE_WORD[r.status] ?? null,
|
|
1626
|
-
r.connection ? <ConnectionWords key="conn" row={r} /> : null,
|
|
1627
|
-
]
|
|
1628
|
-
.filter(Boolean)
|
|
1629
|
-
.map((part, i) => (
|
|
1630
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: a fixed three-part line
|
|
1631
|
-
<span key={i} className="home-prow-part">
|
|
1632
|
-
{i ? ' · ' : ''}
|
|
1633
|
-
{part}
|
|
1634
|
-
</span>
|
|
1635
|
-
))}
|
|
1636
|
-
</span>
|
|
1637
|
-
</span>
|
|
1638
|
-
<RowLive row={r} />
|
|
1639
|
-
<ProjectSquare id={r.pid} name={r.name} />
|
|
1640
|
-
</button>
|
|
1641
|
-
)}
|
|
1642
|
-
<RowCopies row={r} canOpen={canOpen} onOpen={onOpen} />
|
|
1643
|
-
<RowWorktrees row={r} canOpen={canOpen} onOpen={onOpenWorktree} />
|
|
1644
|
-
</li>
|
|
1645
|
-
)
|
|
1646
|
-
)}
|
|
1647
|
-
</ul>
|
|
1648
|
-
</div>
|
|
1649
|
-
);
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
1409
|
// ── ⌘K Search (11 pn-home-search) ───────────────────────────────────────────────────────────
|
|
1653
1410
|
// The top bar holds an icon + the ⌘K key; the field lives in a centred 620 palette over a veil. Before you
|
|
1654
1411
|
// type it is a shortcut list — Recent searches · Open tabs · Recent canvases — with an Ask AI row and a
|