fix(mapillary): free share token after upstream took 'y'; markup test follows the rail insert loop

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Said TurkseverandClaude Fable 5.1 committed 2026-09-23 19:08:27 +01:00
1 parent 817716f0c1
commit 1c3d96542f
3 files changed
+422 -7

No files matched your search

+1 -1
View File
@@ -493,7 +493,7 @@ export const LAYER_STATE_REGISTRY = Object.freeze([
disposition: 'enabled-only',
}),
Object.freeze({ id: 'local-firms', token: 'w', disposition: 'enabled-only' }),
Object.freeze({ id: 'mapillary', token: 'y', disposition: 'enabled-only' }),
Object.freeze({ id: 'mapillary', token: '2', disposition: 'enabled-only' }),
Object.freeze({
id: 'military',
token: 'm',
+2 -1
View File
@@ -40,9 +40,10 @@ test('the panel is registered with panel chrome, cockpit entry and the right rai
/COCKPIT_ENTRY_COLLAPSE_PANEL_IDS = Object\.freeze\(\[[\s\S]*'mapillary-panel'/,
);
assert.match(panelChrome, /const isRightRail = \[[\s\S]*'mapillary-panel'/);
// The layout controller moves every rail panel in one loop; ours is listed.
assert.match(
layoutController,
/stack\.insertBefore\(this\._mapillaryPanel, globalContextPanel\)/,
/for \(const panel of \[[\s\S]*?this\._mapillaryPanel,[\s\S]*?\]\) \{[\s\S]*?stack\.insertBefore\(panel, globalContextPanel\)/,
);
for (const rule of [
'#right-context-rail > #mapillary-panel',