Tabs are open documents: Scene, Game and Plugins stay as fixed tabs, every other asset opens in its own tab (double click or Enter in the asset panel, on creation, from the list button), several assets of one kind can be open at once, a tab is labelled with its kind dimmed before the name, cut at 160 px and renamed with its asset, closes with its x or a middle click and goes away when its asset is deleted; a tab always shows its own document instead of following the selection, the picker in the tab head is gone, zoom and scroll are kept per document for the session and dropped on close, a double click on a call node stays in the same tab with breadcrumbs per tab; one editor per kind is switched between documents, the placement rules live in the pure module documents.ts, and the test hook showTab stays as a compatibility path; new e2e module 44 documents (#171)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f546c0e08
commit
cc285af10a
33 files changed
+895
-225
No files matched your search
@@ -33,14 +33,16 @@ export async function plugins(t) {
|
||||
JSON.stringify(records.filter((r) => r.status !== 'active')),
|
||||
);
|
||||
|
||||
// 38b. Its tab sits after every built-in one – in the row or behind », depending on the width.
|
||||
const row = await json('__gm.tabRow()');
|
||||
const order = [...row.shown.map((p) => p.tab), ...row.hidden];
|
||||
check('the plugin tab is in the tab row', order.includes('plugin:assets'), JSON.stringify(order));
|
||||
// 38b. Its tab sits after the fixed ones and ahead of the open documents (#171) – in the row or
|
||||
// behind », depending on the width.
|
||||
const { order } = await json('__gm.tabRow()');
|
||||
const at = order.indexOf('plugin:assets');
|
||||
check('the plugin tab is in the tab row', at >= 0, JSON.stringify(order));
|
||||
check(
|
||||
'and it comes after the built-in tabs',
|
||||
row.hidden.length > 0 ? row.hidden.at(-1) === 'plugin:assets' : row.shown.at(-1)?.tab === 'plugin:assets',
|
||||
JSON.stringify(row),
|
||||
'and it comes after the fixed tabs, ahead of any document',
|
||||
JSON.stringify(order.slice(0, 3)) === JSON.stringify(['scene', 'game', 'plugins']) &&
|
||||
order.slice(at + 1).every((tab) => tab === 'list' || tab.startsWith('asset:')),
|
||||
JSON.stringify(order),
|
||||
);
|
||||
|
||||
// 38c. One node per asset, titled by its name, in the order of the asset list.
|
||||
|
||||
Reference in new issue
Block a user