ui(mapillary): drop the keyless empty state

The panel no longer shows a separate keyless call-to-action; the fieldset
gate and the layer-row tooltip already cover the missing-key case. The
planner flag is tri-state (null until status answers).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Said TurkseverandClaude Fable 5.1 committed 2026-09-25 17:51:58 +01:00
1 parent 10a00873ca
commit 7f65a32877
11 files changed
+31 -60

No files matched your search

+2 -6
View File
@@ -36,8 +36,6 @@ export class MapillaryControls {
const byId = (id) => this.root?.querySelector(`#${id}`) || null;
return {
status: byId('mly-status'),
keyless: byId('mly-keyless'),
keylessBtn: byId('mly-keyless-btn'),
controls: byId('mly-controls'),
enableBtn: byId('mly-enable-btn'),
lookBtn: byId('mly-look-btn'),
@@ -82,7 +80,6 @@ export class MapillaryControls {
if (!this.root) return;
this.mapillary.attachViewerHost?.(el.viewer);
this.listen(el.keylessBtn, 'click', () => this.actions.openKeySetup?.());
this.listen(el.enableBtn, 'click', () => this._toggleEnabled());
this.listen(el.lookBtn, 'click', async () => {
if (!(await this._ensureEnabled())) return;
@@ -306,7 +303,7 @@ export class MapillaryControls {
const view = presentMapillaryPanel(state);
this._view = view;
this._renderHeader(view);
this._renderEmptyState(view);
this._renderGate(view);
this._renderQuery(view);
this._renderResults(view);
this._renderFilters(view);
@@ -331,9 +328,8 @@ export class MapillaryControls {
}
}
_renderEmptyState(view) {
_renderGate(view) {
const el = this._elements;
if (el.keyless) el.keyless.hidden = !view.keyless.visible;
if (el.controls) el.controls.disabled = view.controlsDisabled;
}