@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
|
@@ -25,13 +25,14 @@ export function createSettingsHandlers(d, io = {}) {
|
|
|
25
25
|
toast(next ? onSay : offSay);
|
|
26
26
|
};
|
|
27
27
|
return {
|
|
28
|
-
'settings.reset-panel-layout': () => d.setSettingsOpen?.('advanced'),
|
|
29
|
-
'settings.reset-all': () => d.setSettingsOpen?.('advanced'),
|
|
28
|
+
'settings.reset-panel-layout': () => d.setSettingsOpen?.('advanced#reset'),
|
|
29
|
+
'settings.reset-all': () => d.setSettingsOpen?.('advanced#reset'),
|
|
30
30
|
// S11.14 — the Connections rows open where their words are; nothing is typed or linked from ⌘K.
|
|
31
|
-
|
|
32
|
-
'connections.
|
|
33
|
-
'connections.
|
|
34
|
-
'connections.cloud-project-
|
|
31
|
+
// 2.1.1 T6: the project's link (cloud projects, your server's token) is General › This project now.
|
|
32
|
+
'connections.replace-hub-token': () => d.setSettingsOpen?.('general#this-project'),
|
|
33
|
+
'connections.figma-test': () => d.setSettingsOpen?.('connections#figma'),
|
|
34
|
+
'connections.cloud-project-connect': () => d.setSettingsOpen?.('general#this-project'),
|
|
35
|
+
'connections.cloud-project-disconnect': () => d.setSettingsOpen?.('general#this-project'),
|
|
35
36
|
'settings.use-own-plugin-copy': flip(
|
|
36
37
|
OWN_PLUGIN_COPY_PREF,
|
|
37
38
|
'Using your own plugin copy. Takes effect when the AI chat next starts.',
|
|
@@ -37,6 +37,9 @@ export const SETTINGS_TAB_STORE = 'mdcc-settings-tab-v2';
|
|
|
37
37
|
* Every row Settings carries that nothing-deleted.json knows by id (`nd`), plus the v1 settings that
|
|
38
38
|
* have no ND row of their own (`nd: null`, kept reachable because "every today-setting has a row").
|
|
39
39
|
* `testid` is the hook a person / scenario finds the control by; `where` is the path to follow.
|
|
40
|
+
* 2.1.1 T6: `card` is the card of its section that holds it (settings-cards.js `CARDS`) — ⌘K opens that
|
|
41
|
+
* card — and `fold` the fold inside it, when the row sits under one. A `local` row in General lives in
|
|
42
|
+
* This project, the one General card that reads this Mac.
|
|
40
43
|
*/
|
|
41
44
|
export const SETTINGS_ROWS = Object.freeze([
|
|
42
45
|
// ── General ──────────────────────────────────────────────────────────────────────────────────
|
|
@@ -44,6 +47,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
44
47
|
nd: 'A-light-dark-toggle',
|
|
45
48
|
section: 'general',
|
|
46
49
|
testid: 'settings-theme',
|
|
50
|
+
card: 'look',
|
|
47
51
|
action: 'settings.theme',
|
|
48
52
|
where: 'Settings › General › Look › Theme: Light · Dark · Auto (⌘K “Theme” toggles it)',
|
|
49
53
|
},
|
|
@@ -51,15 +55,21 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
51
55
|
nd: 'A-open-the-cloud-dashboard',
|
|
52
56
|
section: 'general',
|
|
53
57
|
testid: 'settings-open-dashboard',
|
|
54
|
-
|
|
58
|
+
card: 'this-project',
|
|
59
|
+
// 2.1.1 T6: the Maude Cloud account belongs to the project (canvas 17 · 10) — on the desktop it is under
|
|
60
|
+
// This project › Sync details; a cloud tab has no This project card and keeps its own Account card.
|
|
61
|
+
where:
|
|
62
|
+
'Settings › General › This project › Sync details › Maude Cloud › Manage on the web (a cloud tab: Settings › General › Account)',
|
|
55
63
|
// The Mac's own account (a local project): a read-only link is somebody else's Mac, so it has none.
|
|
56
64
|
// A cloud viewer keeps it — the hub told its tab where the dashboard is.
|
|
57
65
|
account: true,
|
|
66
|
+
fold: 'settings.project',
|
|
58
67
|
},
|
|
59
68
|
{
|
|
60
69
|
nd: null,
|
|
61
70
|
section: 'general',
|
|
62
71
|
testid: 'settings-canvas-view',
|
|
72
|
+
card: 'canvas',
|
|
63
73
|
where: 'Settings › General › Canvas and view',
|
|
64
74
|
},
|
|
65
75
|
{
|
|
@@ -68,6 +78,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
68
78
|
nd: null,
|
|
69
79
|
section: 'general',
|
|
70
80
|
testid: 'panel-side-<id>',
|
|
81
|
+
card: 'layout',
|
|
71
82
|
where: 'Settings › General › Layout › Panel positions',
|
|
72
83
|
},
|
|
73
84
|
{
|
|
@@ -75,6 +86,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
75
86
|
nd: null,
|
|
76
87
|
section: 'general',
|
|
77
88
|
testid: 'settings-single-keys',
|
|
89
|
+
card: 'keyboard',
|
|
78
90
|
where: 'Settings › General › Keyboard › Single-key shortcuts',
|
|
79
91
|
},
|
|
80
92
|
{
|
|
@@ -82,22 +94,51 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
82
94
|
nd: null,
|
|
83
95
|
section: 'general',
|
|
84
96
|
testid: 'settings-terminal-opens',
|
|
97
|
+
card: 'terminal',
|
|
85
98
|
// General is about the person, not the Mac (no `local`); `native`: only the desktop app has the switch.
|
|
86
99
|
where: 'Settings › General › Terminal › Let the terminal open projects in Maude',
|
|
87
100
|
native: true,
|
|
88
101
|
},
|
|
89
|
-
// ──
|
|
102
|
+
// ── General › This project (2.1.1 T6, canvas 17 · 08 · 09) ─────────────────────────────────────
|
|
103
|
+
// The project's link — Maude Cloud and your server — left Connections: Connections is about the person,
|
|
104
|
+
// This project is about this project. Desktop only (`local`): the card reads this Mac's link and sign-ins.
|
|
90
105
|
{
|
|
91
106
|
nd: 'A-cloud-account-email-and-sign-out',
|
|
92
|
-
section: '
|
|
107
|
+
section: 'general',
|
|
93
108
|
testid: 'cloud-account',
|
|
94
|
-
|
|
109
|
+
card: 'this-project',
|
|
110
|
+
where: 'Settings › General › This project › Sync details › Maude Cloud (email, Sign out)',
|
|
95
111
|
local: true,
|
|
112
|
+
fold: 'settings.project',
|
|
96
113
|
},
|
|
114
|
+
{
|
|
115
|
+
nd: 'A-team-hub-address-and-access-token',
|
|
116
|
+
section: 'general',
|
|
117
|
+
testid: 'settings-hub-address',
|
|
118
|
+
card: 'this-project',
|
|
119
|
+
// the address, the access token as its last four characters, Replace… — under Sync details, for a
|
|
120
|
+
// project linked to your server (a cloud link draws the address under its Maude Cloud block)
|
|
121
|
+
where:
|
|
122
|
+
'Settings › General › This project › Sync details › Your server (address, access token •••• last 4, Replace…)',
|
|
123
|
+
local: true,
|
|
124
|
+
fold: 'settings.project',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
nd: 'A-your-team-s-own-server-email-password',
|
|
128
|
+
section: 'general',
|
|
129
|
+
testid: 'settings-team-server-add',
|
|
130
|
+
card: 'this-project',
|
|
131
|
+
where:
|
|
132
|
+
'Settings › General › This project › Link your server… (a linked project: Sync details › Link another server…)',
|
|
133
|
+
local: true,
|
|
134
|
+
fold: 'settings.project',
|
|
135
|
+
},
|
|
136
|
+
// ── Connections (2.1.1 T6, canvas 17 · 10: only the person's own integrations) ─────────────────
|
|
97
137
|
{
|
|
98
138
|
nd: 'A-sign-in-with-github',
|
|
99
139
|
section: 'connections',
|
|
100
140
|
testid: 'settings-github',
|
|
141
|
+
card: 'github',
|
|
101
142
|
where: 'Settings › Connections › GitHub › Sign in',
|
|
102
143
|
local: true,
|
|
103
144
|
},
|
|
@@ -105,6 +146,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
105
146
|
nd: 'A-ai-provider-keys',
|
|
106
147
|
section: 'connections',
|
|
107
148
|
testid: 'settings-ai-keys',
|
|
149
|
+
card: 'ai',
|
|
108
150
|
where: 'Settings › Connections › AI images, video and voice › Manage',
|
|
109
151
|
local: true,
|
|
110
152
|
},
|
|
@@ -112,33 +154,16 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
112
154
|
nd: 'A-figma-token',
|
|
113
155
|
section: 'connections',
|
|
114
156
|
testid: 'figma-connect-card',
|
|
157
|
+
card: 'figma',
|
|
115
158
|
where: 'Settings › Connections › Figma (Test, Disconnect; the token under its Advanced)',
|
|
116
159
|
local: true,
|
|
117
160
|
},
|
|
118
|
-
{
|
|
119
|
-
nd: 'A-team-hub-address-and-access-token',
|
|
120
|
-
section: 'connections',
|
|
121
|
-
testid: 'settings-hub-address',
|
|
122
|
-
// S11.14 — under the Advanced of the row the link belongs to (your team's own server, or Maude Cloud):
|
|
123
|
-
// the address, the access token as its last four characters, Replace….
|
|
124
|
-
where:
|
|
125
|
-
'Settings › Connections › Your team’s own server › Advanced (address, access token •••• last 4, Replace…)',
|
|
126
|
-
local: true,
|
|
127
|
-
// drawn only while that row's own Advanced fold is open (a cloud link draws it under `connections.cloud`)
|
|
128
|
-
fold: 'connections.hub',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
nd: 'A-your-team-s-own-server-email-password',
|
|
132
|
-
section: 'connections',
|
|
133
|
-
testid: 'settings-team-server-add',
|
|
134
|
-
where: 'Settings › Connections › Your team’s own server › Add a team server…',
|
|
135
|
-
local: true,
|
|
136
|
-
},
|
|
137
161
|
// ── Advanced ─────────────────────────────────────────────────────────────────────────────────
|
|
138
162
|
{
|
|
139
163
|
nd: 'A-app-version',
|
|
140
164
|
section: 'advanced',
|
|
141
165
|
testid: 'settings-app-version',
|
|
166
|
+
card: 'this-mac',
|
|
142
167
|
where: 'Settings › Advanced › This Mac › Version',
|
|
143
168
|
local: true,
|
|
144
169
|
},
|
|
@@ -146,6 +171,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
146
171
|
nd: 'A-update-banner-restart-now-later',
|
|
147
172
|
section: 'advanced',
|
|
148
173
|
testid: 'settings-update-restart',
|
|
174
|
+
card: 'this-mac',
|
|
149
175
|
where:
|
|
150
176
|
'Settings › Advanced › This Mac › Update (Restart now · Later) — the banner says the same',
|
|
151
177
|
local: true,
|
|
@@ -156,6 +182,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
156
182
|
nd: 'D19',
|
|
157
183
|
section: 'advanced',
|
|
158
184
|
testid: 'settings-check-updates',
|
|
185
|
+
card: 'this-mac',
|
|
159
186
|
where: 'Settings › Advanced › This Mac › Update › Check for updates',
|
|
160
187
|
local: true,
|
|
161
188
|
native: true,
|
|
@@ -164,6 +191,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
164
191
|
nd: 'A-server-build-name-maude-dev-srv',
|
|
165
192
|
section: 'advanced',
|
|
166
193
|
testid: 'settings-server-build',
|
|
194
|
+
card: 'this-mac',
|
|
167
195
|
where: 'Settings › Advanced › This Mac › Server build',
|
|
168
196
|
local: true,
|
|
169
197
|
},
|
|
@@ -171,6 +199,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
171
199
|
nd: 'A-where-keys-are-kept-keys-json',
|
|
172
200
|
section: 'advanced',
|
|
173
201
|
testid: 'settings-keys-store',
|
|
202
|
+
card: 'this-mac',
|
|
174
203
|
where: 'Settings › Advanced › This Mac › Keys are kept in',
|
|
175
204
|
local: true,
|
|
176
205
|
},
|
|
@@ -178,6 +207,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
178
207
|
nd: 'A-install-claude-code-automatically',
|
|
179
208
|
section: 'advanced',
|
|
180
209
|
testid: 'settings-claude-autosetup',
|
|
210
|
+
card: 'claude-code',
|
|
181
211
|
where: 'Settings › Advanced › Claude Code › Install and sign in automatically',
|
|
182
212
|
local: true,
|
|
183
213
|
},
|
|
@@ -185,6 +215,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
185
215
|
nd: 'A-draw-with-the-svg-agent-copies-design-draw',
|
|
186
216
|
section: 'advanced',
|
|
187
217
|
testid: 'settings-copy-draw',
|
|
218
|
+
card: 'claude-code',
|
|
188
219
|
where: 'Settings › Advanced › Claude Code › Draw a mark with the SVG agent › Copy command',
|
|
189
220
|
local: true,
|
|
190
221
|
},
|
|
@@ -192,6 +223,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
192
223
|
nd: 'A-brand-upload-copy-command',
|
|
193
224
|
section: 'advanced',
|
|
194
225
|
testid: 'settings-copy-brand',
|
|
226
|
+
card: 'claude-code',
|
|
195
227
|
where: 'Settings › Advanced › Claude Code › Import a brand from the terminal › Copy command',
|
|
196
228
|
local: true,
|
|
197
229
|
},
|
|
@@ -199,6 +231,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
199
231
|
nd: 'A-transcription-engine-and-whisper-model',
|
|
200
232
|
section: 'advanced',
|
|
201
233
|
testid: 'settings-transcription',
|
|
234
|
+
card: 'engines',
|
|
202
235
|
where: 'Settings › Advanced › Engines › Subtitles (engine + whisper model)',
|
|
203
236
|
local: true,
|
|
204
237
|
},
|
|
@@ -206,42 +239,56 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
206
239
|
nd: 'A-keyframe-engine-and-gemma-model',
|
|
207
240
|
section: 'advanced',
|
|
208
241
|
testid: 'settings-keyframes',
|
|
242
|
+
card: 'engines',
|
|
209
243
|
where: 'Settings › Advanced › Engines › Video keyframes (engine + Gemma model)',
|
|
210
244
|
local: true,
|
|
211
245
|
},
|
|
246
|
+
// 2.1.1 T6 (canvas 17 · 08, 11): This project's sync switches left Advanced — they are the project's,
|
|
247
|
+
// under General › This project › Sync details.
|
|
212
248
|
{
|
|
213
249
|
nd: 'A-sync-project-files-propagate-deletions',
|
|
214
|
-
section: '
|
|
250
|
+
section: 'general',
|
|
215
251
|
testid: 'sync-setting-syncFiles',
|
|
216
|
-
|
|
252
|
+
card: 'this-project',
|
|
253
|
+
where:
|
|
254
|
+
'Settings › General › This project › Sync details › Sync project files · Propagate deletions',
|
|
217
255
|
local: true,
|
|
256
|
+
fold: 'settings.project',
|
|
218
257
|
},
|
|
219
258
|
{
|
|
220
259
|
nd: 'A-sync-canvases-only-or-everything',
|
|
221
|
-
section: '
|
|
260
|
+
section: 'general',
|
|
222
261
|
testid: 'sync-setting-syncFiles',
|
|
223
|
-
|
|
262
|
+
card: 'this-project',
|
|
263
|
+
where:
|
|
264
|
+
'Settings › General › This project › Sync details › Sync project files (off = canvases only)',
|
|
224
265
|
local: true,
|
|
266
|
+
fold: 'settings.project',
|
|
225
267
|
},
|
|
226
268
|
{
|
|
227
269
|
nd: 'A-first-link-conflicts-rule',
|
|
228
|
-
section: '
|
|
270
|
+
section: 'general',
|
|
229
271
|
testid: 'sync-setting-firstAnchor',
|
|
230
|
-
|
|
272
|
+
card: 'this-project',
|
|
273
|
+
where: 'Settings › General › This project › Sync details › When a folder first links',
|
|
231
274
|
local: true,
|
|
275
|
+
fold: 'settings.project',
|
|
232
276
|
},
|
|
233
277
|
{
|
|
234
278
|
nd: 'A-hand-design-to-the-workspace',
|
|
235
|
-
section: '
|
|
279
|
+
section: 'general',
|
|
236
280
|
testid: 'sync-ownership-adopt',
|
|
237
|
-
|
|
281
|
+
card: 'this-project',
|
|
282
|
+
where: 'Settings › General › This project › Sync details › Who keeps .design/ › Hand over…',
|
|
238
283
|
local: true,
|
|
284
|
+
fold: 'settings.project',
|
|
239
285
|
},
|
|
240
286
|
{
|
|
241
287
|
// S11.13 (06 ad-settings › This Mac): "Bun 1.3.4 · built in" — the runtime that serves the project.
|
|
242
288
|
nd: null,
|
|
243
289
|
section: 'advanced',
|
|
244
290
|
testid: 'settings-runtime',
|
|
291
|
+
card: 'this-mac',
|
|
245
292
|
where: 'Settings › Advanced › This Mac › Runtime',
|
|
246
293
|
local: true,
|
|
247
294
|
},
|
|
@@ -250,6 +297,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
250
297
|
nd: null,
|
|
251
298
|
section: 'advanced',
|
|
252
299
|
testid: 'settings-server-port',
|
|
300
|
+
card: 'this-mac',
|
|
253
301
|
where: 'Settings › Advanced › This Mac › Local server port',
|
|
254
302
|
local: true,
|
|
255
303
|
},
|
|
@@ -257,6 +305,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
257
305
|
nd: null,
|
|
258
306
|
section: 'advanced',
|
|
259
307
|
testid: 'settings-plugins',
|
|
308
|
+
card: 'claude-code',
|
|
260
309
|
where: 'Settings › Advanced › Claude Code › Plugins',
|
|
261
310
|
local: true,
|
|
262
311
|
},
|
|
@@ -265,6 +314,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
265
314
|
nd: null,
|
|
266
315
|
section: 'advanced',
|
|
267
316
|
testid: 'settings-own-plugin-copy',
|
|
317
|
+
card: 'claude-code',
|
|
268
318
|
action: 'settings.use-own-plugin-copy',
|
|
269
319
|
where: 'Settings › Advanced › Claude Code › Use my own plugin copy',
|
|
270
320
|
local: true,
|
|
@@ -274,6 +324,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
274
324
|
nd: null,
|
|
275
325
|
section: 'advanced',
|
|
276
326
|
testid: 'settings-decision-memory',
|
|
327
|
+
card: 'decision-memory',
|
|
277
328
|
where: 'Settings › Advanced › Decision memory',
|
|
278
329
|
local: true,
|
|
279
330
|
},
|
|
@@ -282,6 +333,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
282
333
|
nd: null,
|
|
283
334
|
section: 'advanced',
|
|
284
335
|
testid: 'settings-report-logs',
|
|
336
|
+
card: 'privacy',
|
|
285
337
|
where: 'Settings › Advanced › Privacy › Logs in bug reports',
|
|
286
338
|
local: true,
|
|
287
339
|
},
|
|
@@ -290,6 +342,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
290
342
|
nd: null,
|
|
291
343
|
section: 'advanced',
|
|
292
344
|
testid: 'settings-experimental-teams',
|
|
345
|
+
card: 'experimental',
|
|
293
346
|
action: 'settings.experimental-teams',
|
|
294
347
|
where: 'Settings › Advanced › Experimental › AI reviews argue it out (teams)',
|
|
295
348
|
local: true,
|
|
@@ -298,6 +351,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
298
351
|
nd: null,
|
|
299
352
|
section: 'advanced',
|
|
300
353
|
testid: 'settings-reset-panel-layout',
|
|
354
|
+
card: 'reset',
|
|
301
355
|
action: 'settings.reset-panel-layout',
|
|
302
356
|
where: 'Settings › Advanced › Reset › Reset panel layout',
|
|
303
357
|
local: true,
|
|
@@ -306,6 +360,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
306
360
|
nd: null,
|
|
307
361
|
section: 'advanced',
|
|
308
362
|
testid: 'settings-reset-all',
|
|
363
|
+
card: 'reset',
|
|
309
364
|
action: 'settings.reset-all',
|
|
310
365
|
where: 'Settings › Advanced › Reset › Reset all settings…',
|
|
311
366
|
local: true,
|
|
@@ -316,6 +371,7 @@ export const SETTINGS_ROWS = Object.freeze([
|
|
|
316
371
|
nd: null,
|
|
317
372
|
section: 'advanced',
|
|
318
373
|
testid: 'settings-reset-folds',
|
|
374
|
+
card: 'reset',
|
|
319
375
|
where: 'Settings › Advanced › Reset › Close all Advanced sections',
|
|
320
376
|
// ⌘K lists the action itself (06 ad-search draws it once, path "Settings › Advanced › Reset"): this row stays
|
|
321
377
|
// in the sheet and in the parity table but is not a second search result.
|
|
@@ -330,6 +386,9 @@ export function sectionsFor(cloud, readOnly = false) {
|
|
|
330
386
|
return SECTIONS.filter((s) => !s.local || (cloud === null && !readOnly));
|
|
331
387
|
}
|
|
332
388
|
|
|
389
|
+
/** The fold This project's Sync details opens (remembered per Mac, like every Advanced fold). */
|
|
390
|
+
export const PROJECT_FOLD = 'settings.project';
|
|
391
|
+
|
|
333
392
|
/** Is a Settings row in this shell? The one rule the sheet, ⌘K and the parity table share. */
|
|
334
393
|
export function rowShown(row, { cloud = null, readOnly = false } = {}) {
|
|
335
394
|
if (row.local && (cloud !== null || readOnly)) return false;
|
|
@@ -426,6 +485,7 @@ export const FOLD_LABELS = Object.freeze({
|
|
|
426
485
|
'left.canvases': 'Canvases › Advanced',
|
|
427
486
|
'left.layers': 'Layers › Advanced',
|
|
428
487
|
settings: 'Settings › Advanced',
|
|
488
|
+
'settings.project': 'Settings › This project › Sync details',
|
|
429
489
|
diagnostics: 'Menu › Diagnostics › Advanced',
|
|
430
490
|
help: 'Keyboard shortcuts › Advanced',
|
|
431
491
|
inspector: 'Inspector › Advanced',
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
// tablist (arrows / Home / End rove); each section is a tabpanel. A section that was opened stays
|
|
14
14
|
// mounted (hidden) so a model download's poll survives a section switch.
|
|
15
15
|
//
|
|
16
|
+
// 2.1.1 T6 (canvas 17 · 08 · 10 · 11): every section is one column of expandable cards (settings-card.jsx),
|
|
17
|
+
// one open per section; ⌘K opens the card that holds the row it found.
|
|
18
|
+
//
|
|
16
19
|
// Connections and Advanced are the desktop's (`cloud === null`, and an owner's session): a browser tab
|
|
17
20
|
// has no keychain, ffmpeg or whisper, and a read-only link must not touch the Mac's config, so those
|
|
18
21
|
// sections are ABSENT there, not disabled (settings-model.js).
|
|
@@ -25,6 +28,7 @@ import AdvancedSection from './advanced-section.jsx';
|
|
|
25
28
|
import { restoreFocus, trapTab } from '../shell/modal-focus.js';
|
|
26
29
|
import ConnectionsSection from './connections-section.jsx';
|
|
27
30
|
import GeneralSection from './general-section.jsx';
|
|
31
|
+
import { parseSettingsTarget } from './settings-cards.js';
|
|
28
32
|
import { railTarget, resolveTab, SETTINGS_TAB_STORE, sectionsFor } from './settings-model.js';
|
|
29
33
|
|
|
30
34
|
function remembered() {
|
|
@@ -41,7 +45,8 @@ export default function SettingsSheet({
|
|
|
41
45
|
/** A read-only session (V2-4.9): General only — the preferences of the person, none of the Mac's. */
|
|
42
46
|
readOnly = false,
|
|
43
47
|
onClose,
|
|
44
|
-
|
|
48
|
+
/** The section to open on — or ⌘K's `"advanced#privacy"`: the section, then the card that holds the row. */
|
|
49
|
+
initialTab: requested,
|
|
45
50
|
/** The staged auto-update (`{ version }`) or null, and the “Later” answer. */
|
|
46
51
|
update = null,
|
|
47
52
|
onUpdateLater,
|
|
@@ -52,7 +57,13 @@ export default function SettingsSheet({
|
|
|
52
57
|
}) {
|
|
53
58
|
const sections = sectionsFor(cloud, readOnly);
|
|
54
59
|
const ids = sections.map((s) => s.id);
|
|
60
|
+
// 2.1.1 T6: ⌘K hands `"advanced#privacy"` — the tab, then the card that holds the row it found.
|
|
61
|
+
const { tab: initialTab, card: initialCard } = parseSettingsTarget(requested);
|
|
55
62
|
const [tab, setTab] = useState(() => resolveTab(cloud, initialTab, remembered(), readOnly));
|
|
63
|
+
const [focus] = useState(() =>
|
|
64
|
+
initialCard && initialTab ? { tab: initialTab, card: initialCard, n: 1 } : null
|
|
65
|
+
);
|
|
66
|
+
const focusFor = (id) => (focus && focus.tab === id ? focus : null);
|
|
56
67
|
// A section the shell lost between renders (cloud answered late) must not stay selected.
|
|
57
68
|
const current = ids.includes(tab) ? tab : 'general';
|
|
58
69
|
const [visited, setVisited] = useState(() => new Set([current]));
|
|
@@ -182,17 +193,25 @@ export default function SettingsSheet({
|
|
|
182
193
|
data-testid={`settings-panel-${s.id}`}
|
|
183
194
|
>
|
|
184
195
|
{s.id === 'general' && (
|
|
185
|
-
<GeneralSection
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
196
|
+
<GeneralSection
|
|
197
|
+
cloud={cloud}
|
|
198
|
+
readOnly={readOnly}
|
|
199
|
+
focus={focusFor('general')}
|
|
189
200
|
syncStatus={syncStatus}
|
|
190
201
|
onLinkedHub={onLinkedHub}
|
|
191
202
|
onLocalProject={onLocalProject}
|
|
203
|
+
onCloseSheet={onClose}
|
|
204
|
+
{...general}
|
|
192
205
|
/>
|
|
193
206
|
)}
|
|
207
|
+
{s.id === 'connections' && <ConnectionsSection focus={focusFor('connections')} />}
|
|
194
208
|
{s.id === 'advanced' && (
|
|
195
|
-
<AdvancedSection
|
|
209
|
+
<AdvancedSection
|
|
210
|
+
update={update}
|
|
211
|
+
onUpdateLater={onUpdateLater}
|
|
212
|
+
live={general}
|
|
213
|
+
focus={focusFor('advanced')}
|
|
214
|
+
/>
|
|
196
215
|
)}
|
|
197
216
|
</section>
|
|
198
217
|
)
|