You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2026/08/16 14:54:14 UTC

(skywalking-horizon-ui) 01/01: feat: extension pages, entity filters, and an operator-defined layer menu

This is an automated email from the ASF dual-hosted git repository.

wu-sheng pushed a commit to branch feat/dashboard-ext-pages
in repository https://gitbox.apache.org/repos/asf/skywalking-horizon-ui.git

commit 2dc949b88d401c65a8b98791d81ab138a8195c4a
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Sun Aug 16 16:48:04 2026 +0800

    feat: extension pages, entity filters, and an operator-defined layer menu
    
    A layer component can carry more than one dashboard page. Service,
    Instance and Endpoint each keep their existing grid as the DEFAULT page —
    same route, same widgets, same translations — and may declare extension
    pages beside it, each with its own id, name, widgets and place in the
    menu. No bundled template declares one, so every layer that exists today
    resolves exactly the rows it did before.
    
    A page can say which entities it is about. Any entity page narrows the
    service list; an Instance page also narrows the instance list and matches
    on instance attributes, through the same evaluator the widget-level
    `visibleWhen` gate uses, so one vocabulary answers both questions. The
    DEFAULT page filters too — it is the page every component already has,
    not an unfiltered one — and its filters live in their own block because
    `dashboards.<scope>` is a bare widget array with nowhere to hang them.
    
    The filter is configuration, not a control. The rendered page shows the
    result and never the pattern: the reader did not write it, and the page's
    name is what tells them what it holds. It is authored and checked in the
    admin, where a preview lists what the filter selects out of what exists —
    because seeing what a pattern EXCLUDES is what makes it checkable.
    
    An operator can order the menu. Dragging is a mode that only makes
    entries draggable; moving one records the order, and an order equal to
    the built-in one is deleted rather than stored, since absence already
    says it.
    
    Identity is the id, never the label. It is asked for once when the page
    is created and never moves again, so a rename cannot change a URL or
    strand the translations stored against it — which is also why duplicate
    display names are legal, and why the admin shows the id beside them.
    
    The BFF serves pages through the same contracts as the default grid, and
    refuses a page that does not resolve rather than answering with the
    default one. Menu rows resolve in a single shared resolver the runtime,
    the sidebar and the admin preview all read, so a previewed draft and a
    published layer cannot disagree about what a layer contains.
---
 apps/bff/src/ai/skill/metric-catalog/catalog.ts    |   9 +-
 apps/bff/src/ai/skill/visualization/tools.test.ts  |  66 +-
 apps/bff/src/ai/skill/visualization/tools.ts       |   6 +-
 apps/bff/src/http/config/bundle.ts                 |  29 +-
 apps/bff/src/http/config/dashboard.ts              |  26 +-
 apps/bff/src/http/config/ext-pages-routes.test.ts  | 204 +++++
 apps/bff/src/http/query/dashboard.test.ts          |  46 +-
 apps/bff/src/http/query/dashboard.ts               |  37 +-
 .../src/http/query/menu-rows.regression.test.ts    | 314 ++++++++
 apps/bff/src/http/query/menu.ts                    | 117 +--
 apps/bff/src/i18n/ext-pages-i18n.test.ts           | 125 +++
 apps/bff/src/i18n/seed.ts                          |   5 +-
 apps/bff/src/logic/dashboard/gates.ts              |  59 +-
 apps/bff/src/logic/dashboard/schema.ts             |   6 +
 apps/bff/src/logic/layers/capabilities.ts          |   6 +-
 apps/bff/src/logic/layers/caps.ts                  |  94 +++
 apps/bff/src/logic/layers/loader.ts                | 182 ++++-
 apps/bff/src/logic/templates/bundled-schema.ts     | 361 ++++++++-
 apps/bff/src/logic/templates/bundled-validate.ts   |  18 +
 .../src/logic/templates/ext-pages-fidelity.test.ts | 118 +++
 apps/bff/src/logic/templates/ext-pages.test.ts     | 837 +++++++++++++++++++++
 apps/ui/src/api/client.ts                          |  31 +
 apps/ui/src/api/scopes/configs.ts                  |   6 +
 apps/ui/src/api/scopes/layer.ts                    |  13 +-
 .../components/primitives/TypeaheadSelect.test.ts  | 169 +++++
 .../src/components/primitives/TypeaheadSelect.vue  | 169 +++--
 apps/ui/src/controls/configBundle.ts               |  59 +-
 apps/ui/src/controls/configBundlePages.test.ts     | 136 ++++
 apps/ui/src/controls/localTemplateEdits.ts         |   6 +
 .../admin/_shared/LayerDashboardCanvas.vue         |  42 ++
 .../_shared/translatableFields.extPages.test.ts    | 129 ++++
 .../features/admin/_shared/translatableFields.ts   |   5 +-
 .../layer-templates/DependencyConfigSection.vue    |   7 +-
 .../admin/layer-templates/LayerDashboardsAdmin.vue | 261 ++++++-
 .../admin/layer-templates/LayerSetupEditor.vue     | 460 +++++++++--
 .../admin/layer-templates/PageEntityFilter.test.ts | 112 +++
 .../admin/layer-templates/PageEntityFilter.vue     | 597 +++++++++++++++
 .../admin/layer-templates/PageSelectorBar.vue      | 355 +++++++++
 .../ServiceListMetricsEditor.test.ts               |  41 +
 .../layer-templates/ServiceListMetricsEditor.vue   |  16 +-
 .../admin/layer-templates/TopologyConfigEditor.vue |   7 +-
 .../admin/layer-templates/WidgetEditorCanvas.vue   | 309 ++------
 .../admin/layer-templates/componentDisable.ts      | 104 +++
 .../admin/layer-templates/layerPickerList.ts       |  88 +++
 .../features/admin/layer-templates/menuOrder.ts    |  39 +
 .../admin/layer-templates/menuOrderPrune.test.ts   | 116 +++
 .../admin/layer-templates/storedOnlyLayers.test.ts | 149 ++++
 .../admin/layer-templates/useCanvasReorder.test.ts | 178 +++++
 .../admin/layer-templates/useCanvasReorder.ts      | 186 +++++
 .../admin/layer-templates/useCanvasResize.test.ts  | 144 ++++
 .../admin/layer-templates/useCanvasResize.ts       | 164 ++++
 .../admin/layer-templates/useExtPages.test.ts      | 318 ++++++++
 .../features/admin/layer-templates/useExtPages.ts  | 395 ++++++++++
 .../admin/layer-templates/useLayerTemplateStore.ts | 204 ++++-
 .../admin/translations/TranslationsView.vue        | 353 ++++++++-
 .../translations/useTranslationDraft.stale.test.ts | 265 +++++++
 .../admin/translations/useTranslationDraft.ts      |  86 ++-
 apps/ui/src/i18n/locales/de.json                   |  96 ++-
 apps/ui/src/i18n/locales/en.json                   |  94 ++-
 apps/ui/src/i18n/locales/es.json                   |  94 ++-
 apps/ui/src/i18n/locales/fr.json                   |  94 ++-
 apps/ui/src/i18n/locales/ja.json                   |  96 ++-
 apps/ui/src/i18n/locales/ko.json                   |  96 ++-
 apps/ui/src/i18n/locales/pt.json                   |  94 ++-
 apps/ui/src/i18n/locales/zh-CN.json                |  94 ++-
 apps/ui/src/layer/LayerLanding.vue                 |  39 +
 apps/ui/src/layer/LayerServiceSelector.vue         |  61 +-
 apps/ui/src/layer/LayerShell.vue                   | 115 ++-
 apps/ui/src/layer/serviceFilter.test.ts            | 110 +++
 apps/ui/src/layer/serviceFilter.ts                 |  74 ++
 .../render/layer-dashboard/LayerDashboardsView.vue | 163 +++-
 .../render/layer-dashboard/entityFanout.test.ts    |  11 +
 apps/ui/src/render/layer-dashboard/entityFanout.ts |  11 +
 .../layer-dashboard/instancePageFilter.test.ts     | 150 ++++
 .../render/layer-dashboard/instancePageFilter.ts   |  58 ++
 .../src/render/layer-dashboard/pageRoutes.test.ts  | 208 +++++
 .../layer-dashboard/useInstanceCascade.test.ts     | 167 ++++
 .../render/layer-dashboard/useInstanceCascade.ts   |  93 ++-
 .../render/layer-dashboard/useLayerDashboard.ts    |  92 ++-
 .../layer-dashboard/useLayerPageOrchestrator.ts    |   8 +-
 apps/ui/src/shell/SidebarLayerChildren.vue         | 203 ++---
 apps/ui/src/shell/layerFromTemplate.test.ts        | 176 +++++
 apps/ui/src/shell/layerFromTemplate.ts             | 107 ++-
 apps/ui/src/shell/router/index.ts                  |  33 +-
 apps/ui/src/shell/useLayers.ts                     |  65 +-
 apps/ui/src/state/sessionReset.test.ts             |   4 +-
 docs/changelog/1.0.0.md                            |  50 ++
 docs/customization/adding-a-new-layer.md           |   2 +-
 docs/customization/i18n.md                         |  16 +-
 docs/customization/layer-templates.md              | 115 ++-
 docs/customization/menu-structure.md               |  37 +-
 packages/api-client/src/dashboard.ts               |   2 +
 packages/api-client/src/index.ts                   |  31 +
 packages/api-client/src/instance-filter.ts         |  78 ++
 packages/api-client/src/layer-menu.test.ts         | 276 +++++++
 packages/api-client/src/layer-menu.ts              | 339 +++++++++
 packages/api-client/src/menu.ts                    |  20 +
 packages/api-client/src/stale-overlay.test.ts      | 221 ++++++
 packages/api-client/src/template-i18n.ts           | 131 ++++
 test/e2e/Makefile                                  |  14 +-
 test/e2e/cases/admin/e2e.yaml                      |  57 +-
 .../cases/admin/expected/layer-template-pages.yml  |  26 +
 .../admin/expected/layer-template-refused.yml      |  19 +
 .../cases/admin/expected/layer-template-saved.yml  |  18 +
 test/e2e/cases/admin/expected/stale-seeded.yml     |  18 +
 .../playwright/specs/admin/ext-page-routes.spec.ts | 115 +++
 .../specs/admin/translations-ext-page.spec.ts      | 243 ++++++
 test/e2e/playwright/specs/fixture.ts               |  33 +
 test/e2e/playwright/specs/ui/ext-pages.spec.ts     | 836 ++++++++++++++++++++
 test/e2e/playwright/specs/ui/sidebar-rows.spec.ts  | 126 ++++
 .../playwright/specs/ui/template-fidelity.spec.ts  |  39 +-
 test/e2e/script/prepare/layer-template-push.sh     | 297 ++++++++
 112 files changed, 13341 insertions(+), 908 deletions(-)

diff --git a/apps/bff/src/ai/skill/metric-catalog/catalog.ts b/apps/bff/src/ai/skill/metric-catalog/catalog.ts
index efd68d6..10e3ebf 100644
--- a/apps/bff/src/ai/skill/metric-catalog/catalog.ts
+++ b/apps/bff/src/ai/skill/metric-catalog/catalog.ts
@@ -33,8 +33,8 @@ import type {
 } from '@skywalking-horizon-ui/api-client';
 import type { ConfigSource } from '../../../config/loader.js';
 import { resolveEffectiveLayer } from '../../../logic/layers/effective.js';
-import { widgetsForScope } from '../../../logic/layers/loader.js';
-import { flattenTabWidgets } from '../../../logic/dashboard/gates.js';
+import { allWidgetsForScope } from '../../../logic/layers/loader.js';
+import { flattenEveryTabPanel } from '../../../logic/dashboard/gates.js';
 
 export interface CatalogEntry {
   layer: string;
@@ -108,7 +108,10 @@ export async function getLayerCatalog(
 ): Promise<CatalogEntry[]> {
   const eff = await resolveEffectiveLayer(deps.uiTemplateClient, layer);
   if (eff.blocked || !eff.template) return [];
-  const widgets = flattenTabWidgets(widgetsForScope(eff.template, scope));
+  // Every page of the scope, not just the default grid — a widget is
+  // addressed as layer + scope + id, which is what makes ids unique
+  // across a component's pages.
+  const widgets = flattenEveryTabPanel(allWidgetsForScope(eff.template, scope));
   return widgets.map((w) => ({
     layer: layer.toUpperCase(),
     scope,
diff --git a/apps/bff/src/ai/skill/visualization/tools.test.ts b/apps/bff/src/ai/skill/visualization/tools.test.ts
index 5581011..55f0306 100644
--- a/apps/bff/src/ai/skill/visualization/tools.test.ts
+++ b/apps/bff/src/ai/skill/visualization/tools.test.ts
@@ -28,8 +28,11 @@ vi.mock('../../../logic/oap/instance-topology.js', () => ({ buildInstanceTopolog
 vi.mock('../../../logic/oap/deployment.js', () => ({ buildDeployment: vi.fn() }));
 vi.mock('../../../logic/oap/endpoint-dependency.js', () => ({ buildEndpointDependency: vi.fn() }));
 vi.mock('../../../logic/layers/effective.js', () => ({ resolveEffectiveLayer: vi.fn() }));
-vi.mock('../../../logic/layers/loader.js', () => ({
-  widgetsForScope: vi.fn(() => []),
+// Only the map CONFIG resolvers are stubbed. The widget resolvers stay
+// REAL so `show_widget`'s lookup runs the same whole-scope enumeration
+// production does — stubbing it would prove the stub, not the resolution.
+vi.mock('../../../logic/layers/loader.js', async (importOriginal) => ({
+  ...(await importOriginal<typeof import('../../../logic/layers/loader.js')>()),
   topologyConfigFor: vi.fn(() => ({ nodeMetrics: [], linkServerMetrics: [], linkClientMetrics: [] })),
   deploymentConfigFor: vi.fn(() => null),
   instanceTopologyConfigFor: vi.fn(() => ({ nodeMetrics: [], linkServerMetrics: [], linkClientMetrics: [] })),
@@ -100,6 +103,32 @@ function byName(ctx: AiRequestContext): Record<string, StructuredToolInterface>
 }
 const base = { title: 'T', layer: 'GENERAL', service: 'agent::songs' };
 
+/** A widget an operator added on an EXTENSION page only — absent from
+ *  `dashboards.service`, so it is reachable solely through the whole-scope
+ *  enumeration `show_widget` performs. */
+const extPageTemplate = {
+  key: 'GENERAL',
+  dashboards: { service: [{ id: 'service_load', type: 'line', title: 'Load', expressions: ['service_cpm'] }] },
+  dashboardExtPages: {
+    service: [
+      {
+        id: 'runtime',
+        name: 'Runtime',
+        widgets: [
+          {
+            id: 'jvm_heap',
+            type: 'line',
+            title: 'JVM heap',
+            expressions: ['instance_jvm_memory_heap'],
+            unit: 'MB',
+            tip: 'Heap after the last GC',
+          },
+        ],
+      },
+    ],
+  },
+};
+
 beforeEach(() => {
   runWidgetsMock.mockReset();
   getHierarchy.mockReset();
@@ -276,4 +305,37 @@ describe('visualization render tools', () => {
     expect(out).toMatch(/permission|topology:read/i);
     expect(emitInstanceTopology).not.toHaveBeenCalled();
   });
+
+  it('show_widget renders a widget that lives ONLY on an extension page', async () => {
+    resolveEff.mockResolvedValue({ blocked: false, template: extPageTemplate });
+    runWidgetsMock.mockResolvedValueOnce({ widgets: [{ id: 'jvm_heap', series: [{ data: [1, 2] }] }] });
+    const { ctx, emitFigure } = mockCtx();
+    const out = String(
+      await byName(ctx).show_widget.invoke({ layer: 'GENERAL', service: 'agent::songs', widgetId: 'jvm_heap' }),
+    );
+    // The default grid holds only `service_load`, so finding this one is
+    // what proves the lookup enumerates the extension pages — and it
+    // arrives with the template's own config rather than a rebuilt spec.
+    expect(runWidgetsMock).toHaveBeenCalledWith(
+      [expect.objectContaining({ id: 'jvm_heap', unit: 'MB', tip: 'Heap after the last GC' })],
+      expect.objectContaining({ service: 'agent::songs', serviceId: 'svc-1', scope: 'service' }),
+      expect.anything(),
+      expect.anything(),
+    );
+    const fig = emitFigure.mock.calls[0]![0] as { title: string; figures: Array<{ spec: { unit?: string } }> };
+    expect(fig.title).toBe('JVM heap');
+    expect(fig.figures[0]!.spec.unit).toBe('MB');
+    expect(out).toContain('Heap after the last GC');
+  });
+
+  it('show_widget reports an unknown widget id without running anything', async () => {
+    resolveEff.mockResolvedValue({ blocked: false, template: extPageTemplate });
+    const { ctx, emitFigure } = mockCtx();
+    const out = String(
+      await byName(ctx).show_widget.invoke({ layer: 'GENERAL', service: 'agent::songs', widgetId: 'nope' }),
+    );
+    expect(out).toMatch(/no widget "nope"/i);
+    expect(runWidgetsMock).not.toHaveBeenCalled();
+    expect(emitFigure).not.toHaveBeenCalled();
+  });
 });
diff --git a/apps/bff/src/ai/skill/visualization/tools.ts b/apps/bff/src/ai/skill/visualization/tools.ts
index e70edd3..d169458 100644
--- a/apps/bff/src/ai/skill/visualization/tools.ts
+++ b/apps/bff/src/ai/skill/visualization/tools.ts
@@ -43,13 +43,13 @@ import type { HierarchyGroup, TopoPeer } from '../../types.js';
 import { runWidgets } from '../../../logic/dashboard/run.js';
 import { resolveEffectiveLayer } from '../../../logic/layers/effective.js';
 import {
-  widgetsForScope,
+  allWidgetsForScope,
   topologyConfigFor,
   deploymentConfigFor,
   instanceTopologyConfigFor,
   endpointDependencyConfigFor,
 } from '../../../logic/layers/loader.js';
-import { flattenTabWidgets } from '../../../logic/dashboard/gates.js';
+import { flattenEveryTabPanel } from '../../../logic/dashboard/gates.js';
 import { serviceLayerCatalog } from '../../../logic/services/service-layer-catalog.js';
 import { getServiceHierarchy } from '../../../logic/oap/hierarchy.js';
 import { buildServiceTopology, emptyTopologyResponse } from '../../../logic/oap/service-topology.js';
@@ -348,7 +348,7 @@ export function visualizationTools(ctx: AiRequestContext): StructuredToolInterfa
       if (eff.blocked || !eff.template)
         return `No template for layer "${layer.toUpperCase()}" (${eff.blocked ? 'template store unreachable' : 'unknown layer'}).`;
       const sc: DashboardScope = scope ?? (instance ? 'instance' : endpoint ? 'endpoint' : 'service');
-      const widget = flattenTabWidgets(widgetsForScope(eff.template, sc)).find((w) => w.id === widgetId);
+      const widget = flattenEveryTabPanel(allWidgetsForScope(eff.template, sc)).find((w) => w.id === widgetId);
       if (!widget)
         return `No widget "${widgetId}" on ${layer.toUpperCase()}/${sc}. Call kb_browse_catalog(${layer}, ${sc}) for the widget ids.`;
       if (widget.type === 'tab') return `"${widgetId}" is a tab container — pass one of its inner widget ids.`;
diff --git a/apps/bff/src/http/config/bundle.ts b/apps/bff/src/http/config/bundle.ts
index a9b1a59..72c74e5 100644
--- a/apps/bff/src/http/config/bundle.ts
+++ b/apps/bff/src/http/config/bundle.ts
@@ -61,7 +61,9 @@ import type { SessionStore } from '../../user/sessions.js';
 import { requireAuth } from '../../user/middleware.js';
 import {
   allLayerTemplates,
+  extPagesForScope,
   widgetsForScope,
+  withTopNOrder,
   type LayerTemplate,
 } from '../../logic/layers/loader.js';
 import { loadOverviewDashboards } from '../../logic/overview/loader.js';
@@ -87,6 +89,11 @@ export interface ConfigBundleDeps {
 
 type ScopeMap = Partial<Record<'service' | 'instance' | 'endpoint', DashboardWidget[]>>;
 
+/** Extension-page widget sets, keyed `<component>/<pageId>`. A sibling of
+ *  `ScopeMap` rather than an entry inside it, so the default grids stay
+ *  exactly the shape every existing reader expects. */
+type ExtPageMap = Record<string, DashboardWidget[]>;
+
 /** What the admin pages need to render their banners + per-row badges.
  *  The full bundled / remote configuration strings are intentionally
  *  omitted here (they'd bloat the bundle 5x); the admin pages fetch
@@ -133,6 +140,10 @@ export interface ConfigBundle {
   etag: string;
   generatedAt: number;
   layers: Record<string, ScopeMap>;
+  /** Per-layer extension-page widgets. Absent for a layer with none, so a
+   *  bundle from a deployment that declares no pages is byte-identical to
+   *  one built before the feature existed. */
+  layerExtPages?: Record<string, ExtPageMap>;
   overviews: OverviewDashboard[];
   syncStatus: BundleSyncStatus;
 }
@@ -196,6 +207,7 @@ async function buildBundle(
   };
 
   const layers: Record<string, ScopeMap> = {};
+  const layerExtPages: Record<string, ExtPageMap> = {};
   // Localize + slice a resolved layer template into per-scope widget sets.
   const addLayer = (picked: LayerTemplate): void => {
     // Localize against the OAP overlay row (keyed on the layer's
@@ -203,11 +215,19 @@ async function buildBundle(
     // only, never a runtime fill — same remote-first rule as the template.
     const effective = localizeContent(picked, oapOverlayFor('layer', picked.key), locale);
     const scopes: ScopeMap = {};
+    const pages: ExtPageMap = {};
     for (const scope of ['service', 'instance', 'endpoint'] as const) {
       const ws = widgetsForScope(effective, scope);
       if (ws.length > 0) scopes[scope] = ws;
+      for (const page of extPagesForScope(effective, scope)) {
+        // Same enrichment the default grid gets: the bundle is what the
+        // UI renders a page from, so a raw list ranks `asc` backwards.
+        pages[`${scope}/${page.id}`] = withTopNOrder(page.widgets);
+      }
     }
-    layers[effective.key.toLowerCase()] = scopes;
+    const key = effective.key.toLowerCase();
+    layers[key] = scopes;
+    if (Object.keys(pages).length > 0) layerExtPages[key] = pages;
   };
   if (preferLocal) {
     // Preview (`?prefer=local`): the disk-bundled copy is the thing being
@@ -282,7 +302,12 @@ async function buildBundle(
     unreadable: sync.unreadable ?? [],
   };
 
-  const body = { layers, overviews, syncStatus };
+  const body = {
+    layers,
+    ...(Object.keys(layerExtPages).length > 0 ? { layerExtPages } : {}),
+    overviews,
+    syncStatus,
+  };
   // Locale folded into the etag so the SPA's per-locale caches don't
   // collide. Without this, switching from `en` to `zh-CN` would 304 off
   // the previous etag and never re-render localized content.
diff --git a/apps/bff/src/http/config/dashboard.ts b/apps/bff/src/http/config/dashboard.ts
index 58937ce..d8e96c4 100644
--- a/apps/bff/src/http/config/dashboard.ts
+++ b/apps/bff/src/http/config/dashboard.ts
@@ -20,7 +20,9 @@
  * set for one (layer, scope) without running any MQE. The SPA renders
  * the empty grid first, then fires `POST /api/layer/:key/dashboard` to
  * populate cells. Accepts `?scope=service|instance|endpoint|…` and
- * defaults to `service`.
+ * defaults to `service`, plus `?page=<id>` to select one of a component's
+ * extension pages — omitted means the component's default grid, and an id
+ * the template doesn't declare is a 404 rather than a silent fall back.
  */
 
 import type { FastifyInstance, FastifyReply, FastifyRequest } from 'fastify';
@@ -29,7 +31,7 @@ import type { ConfigSource } from '../../config/loader.js';
 import type { SessionStore } from '../../user/sessions.js';
 import { requireAuth } from '../../user/middleware.js';
 import {
-  widgetsForScope,
+  widgetsForScopePage,
   type LayerTemplate,
 } from '../../logic/layers/loader.js';
 import { resolveEffectiveLayer } from '../../logic/layers/effective.js';
@@ -58,14 +60,17 @@ export function registerDashboardConfigRoute(app: FastifyInstance, deps: Dashboa
       if (!layerKey || !/^[a-z0-9_]+$/i.test(layerKey)) {
         return reply.code(400).send({ error: 'invalid_layer_key' });
       }
-      const q = req.query as { scope?: string };
+      const q = req.query as { scope?: string; page?: string };
       const scopeParsed = q.scope ? scopeSchema.safeParse(q.scope) : null;
       const scope = scopeParsed?.success ? scopeParsed.data : 'service';
+      const page = q.page || undefined;
       const eff = await resolveEffectiveLayer(deps.uiTemplateClient, layerKey);
       if (eff.blocked) {
         // Template store unreachable / layer disabled — block: empty grid,
         // no in-code defaults. The SPA's banner explains the empty state.
-        return reply.send({ layer: layerKey, scope, widgets: [] });
+        // An explicit page can't be judged unknown from here: the template
+        // that would name it is exactly what could not be read.
+        return reply.send({ layer: layerKey, scope, page, widgets: [] });
       }
       const rawTpl = eff.template;
       const locale = localeFromRequest(req);
@@ -79,8 +84,17 @@ export function registerDashboardConfigRoute(app: FastifyInstance, deps: Dashboa
             locale,
           )
         : null;
-      const widgets = tpl ? widgetsForScope(tpl, scope) : defaultWidgetsFor(rawTpl, layerKey);
-      return reply.send({ layer: layerKey, scope, widgets });
+      if (tpl) {
+        const widgets = widgetsForScopePage(tpl, scope, page);
+        // Unknown explicit page — never the default grid under the wrong
+        // URL, which an operator would read as the page they asked for.
+        if (widgets === null) return reply.code(404).send({ error: 'unknown_page', layer: layerKey, scope, page });
+        return reply.send({ layer: layerKey, scope, page, widgets });
+      }
+      // No template at all: only the in-code default set exists, and it is
+      // the default page by definition.
+      if (page) return reply.code(404).send({ error: 'unknown_page', layer: layerKey, scope, page });
+      return reply.send({ layer: layerKey, scope, widgets: defaultWidgetsFor(rawTpl, layerKey) });
     },
   );
 }
diff --git a/apps/bff/src/http/config/ext-pages-routes.test.ts b/apps/bff/src/http/config/ext-pages-routes.test.ts
new file mode 100644
index 0000000..4ba9600
--- /dev/null
+++ b/apps/bff/src/http/config/ext-pages-routes.test.ts
@@ -0,0 +1,204 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * How the read routes answer a `page` they were given, against a layer
+ * stored on OAP with extension pages.
+ *
+ * The property under test throughout is that an UNKNOWN page is a 404 and
+ * never the component's default grid: answering it with the default would
+ * render real widgets under a URL that promised different ones, and an
+ * operator reading that page has no way to tell.
+ */
+
+import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
+import Fastify, { type FastifyInstance } from 'fastify';
+import cookie from '@fastify/cookie';
+import type { UITemplateClient, UITemplateRow } from '@skywalking-horizon-ui/api-client';
+import { configSchema } from '../../config/schema.js';
+import type { ConfigSource } from '../../config/loader.js';
+import { SessionStore } from '../../user/sessions.js';
+import { makeRouteAuthHook } from '../../rbac/route-policy.js';
+import { buildEnvelope, serializeEnvelope } from '../../logic/templates/names.js';
+import { invalidateSyncCache } from '../../logic/templates/sync.js';
+import { logger } from '../../logger.js';
+import { registerConfigBundleRoute, type ConfigBundle } from './bundle.js';
+import { registerDashboardConfigRoute } from './dashboard.js';
+
+function fakeConfig(): ConfigSource {
+  const cfg = configSchema.parse({});
+  return { current: cfg, current_: () => cfg, path: '', onChange: () => () => {}, close: async () => {} };
+}
+
+const widget = (id: string) => ({ id, title: id, type: 'line', expressions: ['x'] });
+
+/** A layer with a default Service grid plus two Service extension pages
+ *  and one Instance page. */
+const LAYER_KEY = 'CUSTOM_MQ';
+const layerContent = {
+  key: LAYER_KEY,
+  alias: 'Custom MQ',
+  slots: { services: 'Queues' },
+  components: { service: true, instances: true },
+  dashboards: { service: [widget('svc-default')], instance: [widget('inst-default')] },
+  dashboardExtPages: {
+    service: [
+      { id: 'resource', name: 'Resource usage', widgets: [widget('res-a'), widget('res-b')] },
+      { id: 'agents', name: 'Agents', serviceFilter: '/^agent::/', widgets: [widget('ag-a')] },
+    ],
+    instance: [{ id: 'runtime', name: 'Runtime', widgets: [widget('rt-a')] }],
+  },
+};
+
+const store: UITemplateRow[] = [
+  { id: 'r1', configuration: serializeEnvelope(buildEnvelope('layer', LAYER_KEY, layerContent)) } as UITemplateRow,
+];
+
+function templateClient(): () => UITemplateClient {
+  return () =>
+    ({
+      list: async (): Promise<UITemplateRow[]> => store.map((r) => ({ ...r })),
+      create: () => Promise.reject(new Error('read path must not write')),
+      update: () => Promise.reject(new Error('read path must not write')),
+      disable: () => Promise.reject(new Error('read path must not write')),
+    }) as unknown as UITemplateClient;
+}
+
+async function withApp<T>(fn: (app: FastifyInstance, sid: string) => Promise<T>): Promise<T> {
+  const config = fakeConfig();
+  const sessions = new SessionStore({ ttlMinutes: 60 });
+  const app: FastifyInstance = Fastify();
+  await app.register(cookie);
+  app.addHook('onRoute', makeRouteAuthHook({ config, sessions }));
+  const deps = { config, sessions, uiTemplateClient: templateClient() };
+  registerConfigBundleRoute(app, deps);
+  registerDashboardConfigRoute(app, deps);
+  await app.ready();
+  const { sid } = sessions.create('op', ['admin']);
+  try {
+    return await fn(app, sid);
+  } finally {
+    await app.close();
+  }
+}
+
+function configFor(scope: string, page?: string) {
+  return withApp(async (app, sid) => {
+    const qs = new URLSearchParams({ scope, ...(page === undefined ? {} : { page }) });
+    const res = await app.inject({
+      method: 'GET',
+      url: `/api/layer/${LAYER_KEY.toLowerCase()}/dashboard/config?${qs.toString()}`,
+      headers: { cookie: `horizon_sid=${sid}` },
+    });
+    return { status: res.statusCode, body: res.json() as Record<string, unknown> };
+  });
+}
+
+describe('GET dashboard/config — page selection', () => {
+  beforeEach(() => {
+    invalidateSyncCache();
+    vi.spyOn(logger, 'warn').mockImplementation(() => undefined);
+  });
+  afterEach(() => {
+    invalidateSyncCache();
+    vi.restoreAllMocks();
+  });
+
+  it('serves the component default when no page is asked for', async () => {
+    const r = await configFor('service');
+    expect(r.status).toBe(200);
+    expect((r.body.widgets as Array<{ id: string }>).map((w) => w.id)).toEqual(['svc-default']);
+  });
+
+  it('serves a named page and echoes which page it is', async () => {
+    const r = await configFor('service', 'resource');
+    expect(r.status).toBe(200);
+    expect(r.body.page).toBe('resource');
+    expect((r.body.widgets as Array<{ id: string }>).map((w) => w.id)).toEqual(['res-a', 'res-b']);
+  });
+
+  it('404s an unknown page instead of serving the default grid', async () => {
+    const r = await configFor('service', 'nope');
+    expect(r.status).toBe(404);
+    expect(r.body.error).toBe('unknown_page');
+  });
+
+  it('404s a page id borrowed from another component', async () => {
+    // `runtime` exists, but under instance — resolving it here would show
+    // Instance widgets on a Service URL.
+    const r = await configFor('service', 'runtime');
+    expect(r.status).toBe(404);
+  });
+
+  it('serves instance pages independently of service pages', async () => {
+    expect((await configFor('instance')).body.widgets).toHaveLength(1);
+    const r = await configFor('instance', 'runtime');
+    expect(r.status).toBe(200);
+    expect((r.body.widgets as Array<{ id: string }>).map((w) => w.id)).toEqual(['rt-a']);
+  });
+
+  it('404s a page on a scope that cannot carry pages', async () => {
+    expect((await configFor('topology', 'resource')).status).toBe(404);
+  });
+});
+
+describe('config bundle — extension-page widgets', () => {
+  beforeEach(() => {
+    invalidateSyncCache();
+    vi.spyOn(logger, 'warn').mockImplementation(() => undefined);
+  });
+  afterEach(() => {
+    invalidateSyncCache();
+    vi.restoreAllMocks();
+  });
+
+  async function bundle(): Promise<ConfigBundle> {
+    return withApp(async (app, sid) => {
+      const res = await app.inject({
+        method: 'GET',
+        url: '/api/configs/bundle',
+        headers: { cookie: `horizon_sid=${sid}` },
+      });
+      expect(res.statusCode).toBe(200);
+      return res.json() as ConfigBundle;
+    });
+  }
+
+  it('carries each page under `<component>/<id>`', async () => {
+    const b = await bundle();
+    const pages = b.layerExtPages?.[LAYER_KEY.toLowerCase()] ?? {};
+    expect(Object.keys(pages).sort()).toEqual(['instance/runtime', 'service/agents', 'service/resource']);
+    expect(pages['service/resource'].map((w) => w.id)).toEqual(['res-a', 'res-b']);
+  });
+
+  it('leaves the default grids exactly as they were', async () => {
+    const b = await bundle();
+    const scopes = b.layers[LAYER_KEY.toLowerCase()];
+    expect(scopes.service?.map((w) => w.id)).toEqual(['svc-default']);
+    expect(scopes.instance?.map((w) => w.id)).toEqual(['inst-default']);
+  });
+
+  it('omits the block entirely for a deployment with no pages', async () => {
+    // Every bundled layer is in this state, so the field must not appear
+    // merely because the feature exists.
+    const b = await bundle();
+    for (const key of Object.keys(b.layers)) {
+      if (key === LAYER_KEY.toLowerCase()) continue;
+      expect(b.layerExtPages?.[key]).toBeUndefined();
+    }
+  });
+});
diff --git a/apps/bff/src/http/query/dashboard.test.ts b/apps/bff/src/http/query/dashboard.test.ts
index 931a0de..22a0560 100644
--- a/apps/bff/src/http/query/dashboard.test.ts
+++ b/apps/bff/src/http/query/dashboard.test.ts
@@ -18,7 +18,7 @@
 import { describe, it, expect } from 'vitest';
 import { buildFragment, type MqeResultShape } from '../../logic/dashboard/mqe.js';
 import { parseSeries, avgOf, parseLabeledSeries, parseTopList } from '../../logic/dashboard/parsers.js';
-import { flattenTabWidgets } from '../../logic/dashboard/gates.js';
+import { flattenEveryTabPanel, flattenTabWidgets } from '../../logic/dashboard/gates.js';
 import { widgetSchema } from '../../logic/dashboard/schema.js';
 import type { Window } from '../../util/window.js';
 import type { DashboardWidget } from '@skywalking-horizon-ui/api-client';
@@ -424,3 +424,47 @@ describe('widgetSchema — accepts the tab container', () => {
     expect(r.success).toBe(false);
   });
 });
+
+/**
+ * The two flatteners answer different questions, and the difference is
+ * the whole reason both exist.
+ *
+ * The query one mirrors what the UI lazily fetches, so it stops at the
+ * first panel — a tab group must never fan out wider than the screen
+ * asked for. Enumeration asks what a component HAS, and stopping there
+ * hid every widget behind a second tab from the AI catalog, from
+ * `show_widget`, and from the capability count.
+ */
+describe('flattenEveryTabPanel — enumeration sees every panel', () => {
+  const leaf = (id: string) => ({ id, type: 'line', title: id, expressions: ['x'] }) as DashboardWidget;
+  const tabs = (id: string, panels: DashboardWidget[][]) =>
+    ({
+      id,
+      type: 'tab',
+      title: id,
+      expressions: [],
+      tabs: panels.map((widgets, i) => ({ name: `P${i}`, widgets })),
+    }) as DashboardWidget;
+
+  it('returns leaves from panels the query path skips', () => {
+    const ws = [tabs('t', [[leaf('a')], [leaf('b')], [leaf('c')]])];
+    expect(flattenTabWidgets(ws).map((w) => w.id)).toEqual(['a']);
+    expect(flattenEveryTabPanel(ws).map((w) => w.id)).toEqual(['a', 'b', 'c']);
+  });
+
+  it('descends a tab nested inside a tab, which the query path drops', () => {
+    const ws = [tabs('outer', [[leaf('a'), tabs('inner', [[leaf('deep')]])]])];
+    expect(flattenTabWidgets(ws).map((w) => w.id)).toEqual(['a']);
+    expect(flattenEveryTabPanel(ws).map((w) => w.id)).toEqual(['a', 'deep']);
+  });
+
+  it('agrees with the query path when nothing is behind a tab', () => {
+    const ws = [leaf('a'), leaf('b')];
+    expect(flattenEveryTabPanel(ws)).toEqual(flattenTabWidgets(ws));
+  });
+
+  it('emits no tab container itself — only queryable leaves', () => {
+    const ws = [tabs('t', [[leaf('a')], [leaf('b')]])];
+    expect(flattenEveryTabPanel(ws).some((w) => w.type === 'tab')).toBe(false);
+  });
+});
diff --git a/apps/bff/src/http/query/dashboard.ts b/apps/bff/src/http/query/dashboard.ts
index 365f739..b3ac308 100644
--- a/apps/bff/src/http/query/dashboard.ts
+++ b/apps/bff/src/http/query/dashboard.ts
@@ -48,7 +48,7 @@ import {
   getServerOffsetMinutes,
   windowFromRange,
 } from '../../util/window.js';
-import { widgetsForScope } from '../../logic/layers/loader.js';
+import { widgetsForScopePage } from '../../logic/layers/loader.js';
 import { serviceLayerCatalog } from '../../logic/services/service-layer-catalog.js';
 import { resolveEffectiveLayer } from '../../logic/layers/effective.js';
 import { defaultWidgetsFor } from '../../logic/dashboard/defaults.js';
@@ -113,18 +113,35 @@ export function registerDashboardQueryRoute(app: FastifyInstance, deps: Dashboar
         return reply.code(400).send({ error: 'invalid_body', detail: parsed.error.flatten() });
       }
       const scope = parsed.data.scope ?? 'service';
-      const eff = await resolveEffectiveLayer(deps.uiTemplateClient, layerKey);
+      const page = parsed.data.page;
       // Blocked (template store unreachable / layer disabled) → no
       // BFF-derived widgets and no in-code defaults; the grid stays empty.
       // An explicit `widgets[]` in the body still runs — the caller owns it.
-      const widgets: DashboardWidget[] = flattenTabWidgets(
-        parsed.data.widgets ??
-          (eff.blocked
-            ? []
-            : eff.template
-              ? widgetsForScope(eff.template, scope)
-              : defaultWidgetsFor(eff.template, layerKey)),
-      );
+      const eff = await resolveEffectiveLayer(deps.uiTemplateClient, layerKey);
+      // An explicit page is checked FIRST, whether or not the caller sent
+      // its own widgets. Checking only the widget-less path meant the SPA —
+      // which always sends widgets — could name a page that does not exist
+      // and get a 200 back, so the one contract this parameter exists for
+      // never applied to its main caller.
+      if (page && !eff.blocked) {
+        const known = eff.template ? widgetsForScopePage(eff.template, scope, page) !== null : false;
+        if (!known) {
+          return reply.code(404).send({ error: 'unknown_page', layer: layerKey, scope, page });
+        }
+      }
+      let fromTemplate: DashboardWidget[] = [];
+      if (!parsed.data.widgets && !eff.blocked) {
+        if (eff.template) {
+          const resolved = widgetsForScopePage(eff.template, scope, page);
+          if (resolved === null) {
+            return reply.code(404).send({ error: 'unknown_page', layer: layerKey, scope, page });
+          }
+          fromTemplate = resolved;
+        } else {
+          fromTemplate = defaultWidgetsFor(eff.template, layerKey);
+        }
+      }
+      const widgets: DashboardWidget[] = flattenTabWidgets(parsed.data.widgets ?? fromTemplate);
       // Re-apply the cap AFTER expansion for a body-PROVIDED set: a tab counts
       // as 1 in the zod cap but flattens to many leaves, so a hand-built body
       // could fan past it. The SPA pre-flattens + chunks, so this never trips
diff --git a/apps/bff/src/http/query/menu-rows.regression.test.ts b/apps/bff/src/http/query/menu-rows.regression.test.ts
new file mode 100644
index 0000000..3262603
--- /dev/null
+++ b/apps/bff/src/http/query/menu-rows.regression.test.ts
@@ -0,0 +1,314 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Proof that centralising row resolution moved nothing an operator sees.
+ *
+ * Before this, four places decided a layer's rows independently: the
+ * sidebar's `v-if` chain, `firstLayerTab`'s `if` chain, `isSingleFeatureLayer`,
+ * and `LayerShell`'s scope-predicate map. The originals are transcribed
+ * below as ORACLES and run against every bundled layer template alongside
+ * `resolveLayerMenuRows`. A difference here means the refactor changed the
+ * menu for a shipped layer.
+ *
+ * The oracles are frozen copies of deleted code. Do NOT "fix" one to match
+ * a new expectation — if resolution is meant to change, the diff belongs in
+ * the expected-difference lists at the bottom, where it is reviewable.
+ */
+
+import { describe, it, expect } from 'vitest';
+import type { LayerCaps, LayerDef, LayerSlots } from '@skywalking-horizon-ui/api-client';
+import {
+  resolveLayerMenuRows,
+  firstLayerMenuRow,
+  isSingleFeatureLayer,
+  DEFAULT_LAYER_ROW_ORDER,
+} from '@skywalking-horizon-ui/api-client';
+import { allLayerTemplates, type LayerTemplate } from '../../logic/layers/loader.js';
+import { componentsSchema } from '../../logic/templates/bundled-schema.js';
+import { capsForTemplate } from '../../logic/layers/caps.js';
+
+type Legacy = { caps: LayerCaps; slots: LayerSlots; traces?: { source?: string } };
+
+/** The sidebar's `v-if` chain, in template order (SidebarLayerChildren.vue). */
+function oracleSidebarRows(L: Legacy): string[] {
+  const rows: string[] = [];
+  const hasInstances = L.caps.instances ?? Boolean(L.slots.instances);
+  const hasEndpoints = L.caps.endpoints ?? Boolean(L.slots.endpoints);
+  const hasTopology = Boolean(L.caps.serviceMap || L.caps.instanceTopology || L.caps.processTopology);
+  if (L.caps.dashboards) rows.push('service');
+  if (hasInstances) rows.push('instance');
+  if (hasEndpoints) rows.push('endpoint');
+  if (hasTopology) rows.push('topology');
+  if (L.caps.deployment) rows.push('deployment');
+  if (L.caps.endpointDependency) rows.push('dependency');
+  if (L.caps.traces) rows.push('trace');
+  if (L.caps.traces && L.traces?.source === 'both') rows.push('zipkin-trace');
+  if (L.caps.logs) rows.push('logs');
+  if (L.caps.browserErrors) rows.push('browser-errors');
+  if (L.caps.podLogs) rows.push('pod-logs');
+  if (L.caps.traceProfiling) rows.push('trace-profiling');
+  if (L.caps.ebpfProfiling) rows.push('ebpf-profiling');
+  if (L.caps.networkProfiling) rows.push('network-profiling');
+  if (L.caps.continuousProfiling) rows.push('continuous-profiling');
+  if (L.caps.pprofProfiling) rows.push('pprof');
+  if (L.caps.asyncProfiling) rows.push('async-profiling');
+  return rows;
+}
+
+/** `firstLayerTab`'s ordered `if` chain (useLayers.ts). Note its profiling
+ *  tail ordering differs from the sidebar's — that disagreement is exactly
+ *  what the assertions below pin down. */
+function oracleFirstTab(L: Legacy): string {
+  if (L.caps.dashboards) return 'service';
+  if (L.caps.instances ?? Boolean(L.slots.instances)) return 'instance';
+  if (L.caps.endpoints ?? Boolean(L.slots.endpoints)) return 'endpoint';
+  if (L.caps.serviceMap || L.caps.instanceTopology || L.caps.processTopology) return 'topology';
+  if (L.caps.deployment) return 'deployment';
+  if (L.caps.endpointDependency) return 'dependency';
+  if (L.caps.traces) return 'trace';
+  if (L.caps.logs) return 'logs';
+  if (L.caps.browserErrors) return 'browser-errors';
+  if (L.caps.podLogs) return 'pod-logs';
+  if (L.caps.traceProfiling) return 'trace-profiling';
+  if (L.caps.ebpfProfiling) return 'ebpf-profiling';
+  if (L.caps.networkProfiling) return 'network-profiling';
+  if (L.caps.asyncProfiling) return 'async-profiling';
+  if (L.caps.pprofProfiling) return 'pprof';
+  if (L.caps.continuousProfiling) return 'continuous-profiling';
+  return 'service';
+}
+
+/** `isSingleFeatureLayer` as it was — direct link vs accordion. */
+function oracleSingleFeature(L: Legacy): boolean {
+  const hasInstances = L.caps.instances ?? Boolean(L.slots.instances);
+  const hasEndpoints = L.caps.endpoints ?? Boolean(L.slots.endpoints);
+  if (hasInstances || hasEndpoints) return false;
+  if (L.caps.serviceMap || L.caps.instanceTopology || L.caps.processTopology) return false;
+  const c = L.caps;
+  if (c.traces || c.logs || c.browserErrors || c.traceProfiling || c.ebpfProfiling || c.asyncProfiling || c.events) return false;
+  if (c.endpointDependency || c.serviceMap || c.instanceTopology || c.processTopology || c.deployment) return false;
+  return true;
+}
+
+/** Every bundled layer, with the caps the menu route would serve for it. */
+function bundledLayers(): Array<{ key: string; legacy: Legacy; def: LayerDef }> {
+  return allLayerTemplates().map((tpl) => {
+    const caps = capsForTemplate(tpl, tpl);
+    const legacy: Legacy = { caps, slots: tpl.slots ?? {}, traces: tpl.traces };
+    const def = { key: tpl.key, caps, slots: tpl.slots ?? {}, traces: tpl.traces } as LayerDef;
+    return { key: tpl.key, legacy, def };
+  });
+}
+
+describe('layer menu rows — bundled-template regression', () => {
+  it('covers every bundled layer', () => {
+    expect(bundledLayers().length).toBe(44);
+  });
+
+  it('resolves the same rows, in the same order, as the sidebar did', () => {
+    const diffs = bundledLayers()
+      .map(({ key, legacy, def }) => ({
+        key,
+        was: oracleSidebarRows(legacy),
+        now: resolveLayerMenuRows(def).map((r) => r.path),
+      }))
+      .filter((d) => d.was.join() !== d.now.join());
+    expect(diffs).toEqual([]);
+  });
+
+  it('lands every layer on the tab it landed on before', () => {
+    const diffs = bundledLayers()
+      .map(({ key, legacy, def }) => ({ key, was: oracleFirstTab(legacy), now: firstLayerMenuRow(def) }))
+      .filter((d) => d.was !== d.now);
+    expect(diffs).toEqual([]);
+  });
+
+  it('classifies direct-vs-expandable exactly as before — no exceptions', () => {
+    // `isSingleFeatureLayer` is the historical predicate AND the row
+    // count, so a bundled layer can only ever become MORE expandable —
+    // and none of them does. An earlier draft used the row count alone,
+    // which turned the three SO11Y agent layers into direct links: a
+    // behaviour change to layers declaring neither new field, which the
+    // compatibility rule does not permit.
+    // `now` calls the PRODUCTION predicate. Restating its formula here
+    // was the same drift this file exists to catch: the function could
+    // change and the comparison would keep agreeing with itself.
+    const diffs = bundledLayers()
+      .map(({ key, legacy, def }) => ({
+        key,
+        was: oracleSingleFeature(legacy),
+        now: isSingleFeatureLayer(def),
+      }))
+      .filter((d) => d.was !== d.now);
+    expect(diffs).toEqual([]);
+  });
+
+  it('gives every bundled layer at least one row to land on', () => {
+    const empty = bundledLayers().filter(({ def }) => resolveLayerMenuRows(def).length === 0);
+    expect(empty.map((e) => e.key)).toEqual([]);
+  });
+});
+
+/**
+ * The default order has to cover the COMPONENT LIST, not just the layers
+ * that happen to exist. Enabling one component at a time and asking what
+ * it resolves to ties the two together in both directions: a component
+ * added without a row would ship a feature the sidebar can never reach,
+ * and a row no component can produce is dead weight in the order.
+ */
+describe('default order vs. the component list', () => {
+  const COMPONENT_KEYS = Object.keys(componentsSchema.shape);
+
+  /** Rows a layer shows with exactly one component enabled. `service`
+   *  defaults to ON when absent, so the base turns it off explicitly —
+   *  otherwise every case would also report the Service row. */
+  function rowsForComponent(key: string): string[] {
+    const t = {
+      key: 'PROBE',
+      slots: {},
+      components: { service: false, [key]: true },
+      // Two components are gated on a config block as well as their flag.
+      ...(key === 'deployment' ? { deployment: { roles: [], roleToRole: [] } } : {}),
+      // `traces` carries two rows when the layer ships both span formats.
+      ...(key === 'traces' ? { traces: { source: 'both' as const } } : {}),
+    } as unknown as LayerTemplate;
+    const caps = capsForTemplate(t, t);
+    return resolveLayerMenuRows({ caps, slots: {}, traces: t.traces }).map((r) => r.path);
+  }
+
+  it('covers all 16 components', () => {
+    expect(COMPONENT_KEYS).toHaveLength(16);
+  });
+
+  it('gives every component at least one row', () => {
+    const withoutRow = COMPONENT_KEYS.filter((k) => rowsForComponent(k).length === 0);
+    expect(withoutRow).toEqual([]);
+  });
+
+  it('contains nothing a component cannot produce', () => {
+    const produced = new Set(COMPONENT_KEYS.flatMap(rowsForComponent));
+    expect([...DEFAULT_LAYER_ROW_ORDER].sort()).toEqual([...produced].sort());
+  });
+
+  it('is one row per component, plus the second trace row', () => {
+    // 16 components → 17 rows: `traces` is the only one that resolves to
+    // two (native and Zipkin span formats get their own tabs).
+    expect(DEFAULT_LAYER_ROW_ORDER).toHaveLength(COMPONENT_KEYS.length + 1);
+    const multi = COMPONENT_KEYS.filter((k) => rowsForComponent(k).length > 1);
+    expect(multi).toEqual(['traces']);
+    expect(rowsForComponent('traces')).toEqual(['trace', 'zipkin-trace']);
+  });
+});
+
+/**
+ * The four divergences the old code carried. None is reachable by a
+ * bundled layer — the suite above proves that — but a custom template can
+ * reach all of them, so each is pinned here with the behaviour it now has.
+ */
+/** A synthetic layer — the shape the menu route serves. */
+function L(caps: Partial<LayerCaps>, slots: Partial<LayerSlots> = {}): LayerDef {
+  return { key: 'X', caps, slots } as LayerDef;
+}
+
+describe('layer menu rows — divergences the unification resolves', () => {
+
+  it('orders the profiling tail as the sidebar did, not as firstLayerTab did', () => {
+    // The two chains disagreed: firstLayerTab put async-profiling before
+    // pprof before continuous-profiling; the sidebar renders continuous,
+    // then pprof, then async. A layer with only async + continuous was
+    // therefore sent to a tab that was not its first visible row.
+    const layer = L({ asyncProfiling: true, continuousProfiling: true });
+    expect(oracleFirstTab({ caps: layer.caps, slots: layer.slots })).toBe('async-profiling');
+    expect(oracleSidebarRows({ caps: layer.caps, slots: layer.slots })[0]).toBe('continuous-profiling');
+    expect(firstLayerMenuRow(layer)).toBe('continuous-profiling');
+  });
+
+  it.each([
+    ['podLogs', { dashboards: true, podLogs: true }, 'pod-logs'],
+    ['networkProfiling', { dashboards: true, networkProfiling: true }, 'network-profiling'],
+    ['pprofProfiling', { dashboards: true, pprofProfiling: true }, 'pprof'],
+    ['continuousProfiling', { dashboards: true, continuousProfiling: true }, 'continuous-profiling'],
+  ] as const)(
+    'expands a layer whose only second row is %s — the old predicate hid it',
+    (_name, caps, path) => {
+      const layer = L(caps);
+      expect(oracleSingleFeature({ caps: layer.caps, slots: layer.slots })).toBe(true);
+      const rows = resolveLayerMenuRows(layer).map((r) => r.path);
+      expect(rows).toEqual(['service', path]);
+      // Call the PRODUCT's predicate, not a restatement of its formula:
+      // `rows.length <= 1` is the rule's own arithmetic, so asserting it
+      // here would pass however `isSingleFeatureLayer` were written.
+      expect(isSingleFeatureLayer(layer)).toBe(false);
+    },
+  );
+
+  it('still lets caps.events alone make a layer expandable, deliberately', () => {
+    // `events` produces no menu row, yet the frozen predicate treats it as
+    // proof of a second screen — so such a layer is an accordion holding a
+    // single Service row. Kept bug-for-bug: correcting it would change how
+    // a bundled layer is REACHED, which this feature promised not to do.
+    // The row count only ever makes a layer MORE expandable, never less.
+    const layer = L({ dashboards: true, events: true });
+    expect(oracleSingleFeature({ caps: layer.caps, slots: layer.slots })).toBe(false);
+    expect(resolveLayerMenuRows(layer).map((r) => r.path)).toEqual(['service']);
+  });
+});
+
+/**
+ * The row-count half of `isSingleFeatureLayer`, called rather than
+ * restated.
+ *
+ * The rule is `historicallySingleFeature(L) && rows.length <= 1`. The
+ * conjunction is the compatibility promise: the count may only make a
+ * layer MORE expandable, never less, so no layer that predates extension
+ * pages can change how it is reached. Asserting `rows.length <= 1` in the
+ * test proves nothing about the function — it is the same arithmetic.
+ */
+describe('isSingleFeatureLayer, exercised through the function itself', () => {
+  it('is a direct link when the frozen predicate says so AND one row resolves', () => {
+    const layer = L({ dashboards: true });
+    expect(resolveLayerMenuRows(layer)).toHaveLength(1);
+    expect(isSingleFeatureLayer(layer)).toBe(true);
+  });
+
+  it('expands as soon as a SECOND row resolves, whatever the frozen predicate said', () => {
+    const layer = L({ dashboards: true, pprofProfiling: true });
+    expect(oracleSingleFeature({ caps: layer.caps, slots: layer.slots })).toBe(true);
+    expect(isSingleFeatureLayer(layer)).toBe(false);
+  });
+
+  it('an extension page is a second row, so it makes a one-row layer expandable', () => {
+    const bare = L({ dashboards: true });
+    expect(isSingleFeatureLayer(bare)).toBe(true);
+    const withPage = {
+      ...bare,
+      extPages: { service: [{ id: 'agents', name: 'Agents' }] },
+    };
+    expect(resolveLayerMenuRows(withPage).map((r) => r.path)).toEqual(['service', 'service/agents']);
+    expect(isSingleFeatureLayer(withPage)).toBe(false);
+  });
+
+  it('never turns an expandable layer into a direct link', () => {
+    // The half that would break compatibility: a layer the frozen
+    // predicate calls multi-feature stays expandable even when it
+    // resolves a single row (caps.events produces none).
+    const layer = L({ dashboards: true, events: true });
+    expect(resolveLayerMenuRows(layer)).toHaveLength(1);
+    expect(isSingleFeatureLayer(layer)).toBe(false);
+  });
+});
diff --git a/apps/bff/src/http/query/menu.ts b/apps/bff/src/http/query/menu.ts
index 085a02c..4123a1d 100644
--- a/apps/bff/src/http/query/menu.ts
+++ b/apps/bff/src/http/query/menu.ts
@@ -24,11 +24,15 @@ import type {
   MenuResponse,
   UITemplateClient,
 } from '@skywalking-horizon-ui/api-client';
+import { resolveLayerMenuRows } from '@skywalking-horizon-ui/api-client';
+import type { LayerDefaultFilters, LayerExtPages } from '@skywalking-horizon-ui/api-client';
 import type { ConfigSource } from '../../config/loader.js';
 import type { SessionStore } from '../../user/sessions.js';
 import { requireAuth } from '../../user/middleware.js';
 import { buildOapOpts, graphqlPost } from '../../client/graphql.js';
-import type { LayerComponentFlags, LayerTemplate } from '../../logic/layers/loader.js';
+import type { LayerTemplate } from '../../logic/layers/loader.js';
+import { ENTITY_DASHBOARD_SCOPES } from '../../logic/layers/loader.js';
+import { capsForTemplate } from '../../logic/layers/caps.js';
 import { ambiguousConflicts, getSyncStatus } from '../../logic/templates/sync.js';
 import { iterateBundledTemplates } from '../../logic/templates/aggregator.js';
 import { formatName, parseEnvelope } from '../../logic/templates/names.js';
@@ -41,41 +45,6 @@ import { localizeContent, localeFromRequest } from '../../i18n/index.js';
 import { linkSchemeIssue, linkDomainIssue } from '../../util/link-policy.js';
 import { oapOverlayContentFromRows } from '../../logic/templates/overlay.js';
 
-/**
- * Map the JSON config's `components.*` flags onto the wire `caps`
- * shape — caps are the cap-driven feature toggles each per-layer page
- * consults. We expand a few aliases (service ⇒ no separate cap; the
- * components flag is the source of truth for whether the page exists).
- */
-function componentsToCaps(components: LayerComponentFlags): LayerCaps {
-  return {
-    dashboards: components.service !== false,
-    instances: !!components.instances,
-    endpoints: !!components.endpoints,
-    endpointDependency: !!components.endpointDependency,
-    serviceMap: !!components.topology,
-    // instanceTopology is gated by the presence of the
-    // topology.instanceTopology config block, not the component flag —
-    // overridden per-layer at the call site (see resolveLayerDef).
-    instanceTopology: false,
-    // deployment rides the component flag here; the call site
-    // ANDs it with the presence of the top-level config block.
-    deployment: !!components.deployment,
-    processTopology: !!components.topology,
-    traces: !!components.traces,
-    logs: !!components.logs,
-    browserErrors: !!components.browserErrors,
-    traceProfiling: !!components.traceProfiling,
-    ebpfProfiling: !!components.ebpfProfiling,
-    asyncProfiling: !!components.asyncProfiling,
-    networkProfiling: !!components.networkProfiling,
-    pprofProfiling: !!components.pprofProfiling,
-    continuousProfiling: !!components.continuousProfiling,
-    podLogs: !!components.podLogs,
-    events: false,
-  };
-}
-
 export interface MenuRouteDeps {
   config: ConfigSource;
   sessions: SessionStore;
@@ -295,6 +264,61 @@ function deriveLayer(
   // features block in that state while the sidebar still navigates.
   const rawTpl = resolveLayerTemplate(rawKey, layerRowsByName);
   const tpl = rawTpl ? localizeContent<LayerTemplate>(rawTpl, oapOverlay, locale) : null;
+  return withMenuRows(buildLayerDef(rawKey, tpl, rawTpl, { active, level, serviceCount, normal }));
+}
+
+/** Attach the resolved sub-page rows. Every `LayerDef` the menu serves
+ *  goes through here, so the sidebar and the landing routes read one list
+ *  instead of re-deriving it from `caps` / `slots`. */
+function withMenuRows(def: LayerDef): LayerDef {
+  return { ...def, menuRows: resolveLayerMenuRows(def) };
+}
+
+/** The template's extension pages as menu refs — id, localized name, and
+ *  the entity filter the page declares. Widgets stay out: they ride the config
+ *  bundle, and the menu is fetched on every page load. */
+function extPageRefs(tpl: LayerTemplate | null): LayerExtPages | undefined {
+  if (!tpl?.dashboardExtPages) return undefined;
+  const out: LayerExtPages = {};
+  for (const scope of ENTITY_DASHBOARD_SCOPES) {
+    const pages = tpl.dashboardExtPages[scope];
+    if (!pages?.length) continue;
+    out[scope] = pages.map((p) => ({
+      id: p.id,
+      name: p.name,
+      ...(p.alias === undefined ? {} : { alias: p.alias }),
+      ...(p.serviceFilter === undefined ? {} : { serviceFilter: p.serviceFilter }),
+      ...(p.instanceFilter === undefined ? {} : { instanceFilter: p.instanceFilter }),
+      ...(p.instanceAttributes === undefined ? {} : { instanceAttributes: p.instanceAttributes }),
+    }));
+  }
+  return Object.keys(out).length > 0 ? out : undefined;
+}
+
+/** Same shape as a page ref's filter half, for the page that has no ref. */
+function defaultFilterRefs(tpl: LayerTemplate | null): LayerDefaultFilters | undefined {
+  if (!tpl?.dashboardDefaultFilters) return undefined;
+  const out: LayerDefaultFilters = {};
+  for (const scope of ENTITY_DASHBOARD_SCOPES) {
+    const f = tpl.dashboardDefaultFilters[scope];
+    if (!f) continue;
+    const ref = {
+      ...(f.serviceFilter === undefined ? {} : { serviceFilter: f.serviceFilter }),
+      ...(f.instanceFilter === undefined ? {} : { instanceFilter: f.instanceFilter }),
+      ...(f.instanceAttributes === undefined ? {} : { instanceAttributes: f.instanceAttributes }),
+    };
+    if (Object.keys(ref).length > 0) out[scope] = ref;
+  }
+  return Object.keys(out).length > 0 ? out : undefined;
+}
+
+function buildLayerDef(
+  rawKey: string,
+  tpl: LayerTemplate | null,
+  rawTpl: LayerTemplate | null,
+  live: { active: boolean; level: number | null; serviceCount: number; normal: boolean | null },
+): LayerDef {
+  const { active, level, serviceCount, normal } = live;
   if (tpl) {
     return {
       key: rawKey.toLowerCase(),
@@ -316,28 +340,15 @@ function deriveLayer(
       // instanceTopology cap follows the served topology config's
       // `instanceTopology` block (same source the topology routes read),
       // so the Instance-map drill-down only appears where it's configured.
-      caps: ((): LayerCaps => {
-        const c = componentsToCaps(tpl.components);
-        // Read the EFFECTIVE (remote) template — the same one the
-        // topology routes serve — so the Instance-map drill-down is
-        // available iff it's enabled on the in-use template, matching the
-        // admin. Gate on the parent Topology component (`serviceMap` =
-        // `components.topology`): instance topology is a drill-down OF the
-        // topology map, so disabling the Topology component must hide it
-        // too — even if a stale `topology.instanceTopology` block lingers.
-        c.instanceTopology = c.serviceMap && !!rawTpl?.topology?.instanceTopology;
-        // Deployment is its own tab (not a drill-down of the
-        // service map), so it's gated only on its own config block presence
-        // AND its component flag — independent of `serviceMap`.
-        c.deployment =
-          c.deployment && !!rawTpl?.deployment;
-        return c;
-      })(),
+      caps: capsForTemplate(tpl, rawTpl),
       metrics: tpl.metrics,
       log: tpl.log,
       traces: tpl.traces,
       naming: tpl.naming,
       instances: tpl.instances,
+      extPages: extPageRefs(tpl),
+      defaultFilters: defaultFilterRefs(tpl),
+      menuOrder: tpl.menuOrder,
     };
   }
   const def = LAYER_DEFAULTS[rawKey] ?? DEFAULT_FOR_UNKNOWN_LAYER;
diff --git a/apps/bff/src/i18n/ext-pages-i18n.test.ts b/apps/bff/src/i18n/ext-pages-i18n.test.ts
new file mode 100644
index 0000000..a1fe74e
--- /dev/null
+++ b/apps/bff/src/i18n/ext-pages-i18n.test.ts
@@ -0,0 +1,125 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Translating an extension page.
+ *
+ * A page's display name and its widgets' text are ordinary translatable
+ * leaves, so the seeder and the editor already enumerate them. What needed
+ * proving is the part that is NOT ordinary: `dashboardExtPages.<scope>` is
+ * an array whose entries carry a unique `id`, so the merger addresses it by
+ * id — reordering or deleting a page cannot slide a translation onto its
+ * neighbour. That is the whole reason page ids must be unique.
+ */
+
+import { describe, it, expect } from 'vitest';
+import { mergeLocalizedNode, canonicalizeOverlay } from '@skywalking-horizon-ui/api-client';
+
+const w = (id: string, title: string) => ({ id, type: 'line', title, expressions: ['x'] });
+
+function source() {
+  return {
+    key: 'CUSTOM_MQ',
+    dashboards: { service: [w('svc-a', 'Throughput')] },
+    dashboardExtPages: {
+      service: [
+        { id: 'resource', name: 'Resource usage', widgets: [w('res-a', 'CPU')] },
+        { id: 'agents', name: 'Agents', widgets: [w('ag-a', 'Agent count')] },
+      ],
+    },
+  };
+}
+
+/** A locale overlay addressing both pages by id. */
+function overlay() {
+  return {
+    dashboardExtPages: {
+      service: [
+        { id: 'resource', name: '资源用量', widgets: [{ id: 'res-a', title: 'CPU 使用率' }] },
+        { id: 'agents', name: '探针', widgets: [{ id: 'ag-a', title: '探针数量' }] },
+      ],
+    },
+  };
+}
+
+type Merged = {
+  dashboardExtPages: { service: Array<{ id: string; name: string; widgets: Array<{ title: string }> }> };
+};
+
+describe('extension-page translations', () => {
+  it('localizes a page name and its widget titles', () => {
+    const out = mergeLocalizedNode(source(), overlay()) as Merged;
+    const pages = out.dashboardExtPages.service;
+    expect(pages.map((p) => p.name)).toEqual(['资源用量', '探针']);
+    expect(pages[0].widgets[0].title).toBe('CPU 使用率');
+  });
+
+  it('follows a page when the operator reorders the source', () => {
+    const src = source();
+    src.dashboardExtPages.service.reverse(); // agents now first
+    const out = mergeLocalizedNode(src, overlay()) as Merged;
+    expect(out.dashboardExtPages.service.map((p) => p.name)).toEqual(['探针', '资源用量']);
+  });
+
+  it('drops the entry for a page that no longer exists, leaving the rest', () => {
+    const src = source();
+    src.dashboardExtPages.service = src.dashboardExtPages.service.filter((p) => p.id !== 'resource');
+    const out = mergeLocalizedNode(src, overlay()) as Merged;
+    expect(out.dashboardExtPages.service.map((p) => p.name)).toEqual(['探针']);
+  });
+
+  it('never lets an overlay rewrite a page id', () => {
+    const bad = {
+      dashboardExtPages: { service: [{ id: 'resource', name: '资源用量' }] },
+    };
+    const out = mergeLocalizedNode(source(), bad) as unknown as {
+      dashboardExtPages: { service: Array<{ id: string }> };
+    };
+    expect(out.dashboardExtPages.service.map((p) => p.id)).toEqual(['resource', 'agents']);
+  });
+
+  it('falls back to English for a page the overlay has not translated', () => {
+    const partial = {
+      dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] },
+    };
+    const out = mergeLocalizedNode(source(), partial) as Merged;
+    expect(out.dashboardExtPages.service.map((p) => p.name)).toEqual(['Resource usage', '探针']);
+  });
+
+  it('canonicalizes a legacy positional overlay onto page ids', () => {
+    // An overlay written before pages were id-addressed: dense, no ids.
+    const positional = {
+      dashboardExtPages: { service: [{ name: '资源用量' }, { name: '探针' }] },
+    };
+    const out = canonicalizeOverlay(source(), positional) as {
+      dashboardExtPages: { service: Array<{ id?: string; name?: string }> };
+    };
+    expect(out.dashboardExtPages.service.map((p) => p.id)).toEqual(['resource', 'agents']);
+    // And it still merges to the same result as the id-addressed form.
+    expect((mergeLocalizedNode(source(), out) as Merged).dashboardExtPages.service.map((p) => p.name)).toEqual([
+      '资源用量',
+      '探针',
+    ]);
+  });
+
+  it('leaves the default page grid untouched by page overlays', () => {
+    const out = mergeLocalizedNode(source(), overlay()) as unknown as {
+      dashboards: { service: Array<{ title: string }> };
+    };
+    expect(out.dashboards.service[0].title).toBe('Throughput');
+  });
+});
diff --git a/apps/bff/src/i18n/seed.ts b/apps/bff/src/i18n/seed.ts
index a63dc8f..e0349a6 100644
--- a/apps/bff/src/i18n/seed.ts
+++ b/apps/bff/src/i18n/seed.ts
@@ -69,8 +69,9 @@ const STRING_FIELDS = new Set([
   'tip',
   'label',
   'group',
-  // A `tab` widget's panel labels (`tabs[].name`) — the only `name` field in a
-  // template; translatable like a widget title.
+  // Two `name` fields, both translatable like a widget title: a `tab`
+  // widget's panel labels (`tabs[].name`) and an extension page's display
+  // name (`dashboardExtPages.<scope>[].name`).
   'name',
 ]);
 
diff --git a/apps/bff/src/logic/dashboard/gates.ts b/apps/bff/src/logic/dashboard/gates.ts
index 8d14eee..28d13a4 100644
--- a/apps/bff/src/logic/dashboard/gates.ts
+++ b/apps/bff/src/logic/dashboard/gates.ts
@@ -48,22 +48,12 @@ export function mqeGatePass(op: 'exists' | 'gt' | 'lt', value: number | undefine
   return vals.length > 0; // exists
 }
 
-/** Attribute lookup for the selected instance: `language` + named
- *  attributes, keyed lower-case. Empty values are dropped so `exists`
- *  means present-AND-non-empty (OAP reports `namespace`/`cluster` as
- *  empty-string keys). */
-export function buildAttrMap(
-  language: string | null | undefined,
-  attrs: Array<{ name: string; value: string }>,
-): Map<string, string> {
-  const m = new Map<string, string>();
-  if (language && language.trim()) m.set('language', language.trim());
-  for (const a of attrs) {
-    const v = a.value == null ? '' : String(a.value);
-    if (v.trim() !== '') m.set(a.name.toLowerCase(), v);
-  }
-  return m;
-}
+// `buildAttrMap` lives in the shared package: an extension page's
+// `instanceAttributes` asks the same question of the same bag, in the
+// browser, and "exists" must not mean present-and-non-empty on one side
+// and merely-present on the other.
+export { buildAttrMap } from '@skywalking-horizon-ui/api-client';
+import { attrPredicatePass } from '@skywalking-horizon-ui/api-client';
 
 /** Evaluate an entity gate. `attrs === null` means "no entity context"
  *  (non-Instance scope / probe failed) → no-op (visible). */
@@ -72,9 +62,14 @@ export function entityGatePass(
   attrs: Map<string, string> | null,
 ): boolean {
   if (!attrs) return true;
-  const val = attrs.get(vw.attribute.toLowerCase());
-  if (vw.op === 'eq') return val !== undefined && val.toLowerCase() === vw.value.toLowerCase();
-  return val !== undefined; // exists (map already excludes empties)
+  // Delegated, not re-implemented: an extension page asks the same
+  // question of the same bag in the browser, and a second copy here is
+  // how `exists` ends up meaning present-and-non-empty on one side and
+  // merely-present on the other.
+  return attrPredicatePass(
+    vw.op === 'eq' ? { attribute: vw.attribute, op: 'eq', value: vw.value } : { attribute: vw.attribute, op: 'exists' },
+    attrs,
+  );
 }
 
 /** Normalize a widget's gate — overlay-sourced widgets may still carry a
@@ -109,3 +104,29 @@ export function flattenTabWidgets(widgets: DashboardWidget[]): DashboardWidget[]
   }
   return out;
 }
+
+/**
+ * Every leaf a scope declares, across ALL tab panels and nested groups.
+ *
+ * The sibling above deliberately stops at the first panel, because it
+ * feeds the QUERY pipeline and a tab group must not fan out wider than
+ * the UI lazily asks for. Enumeration is the opposite question — what
+ * does this component HAVE — and answering it with the first panel hides
+ * every widget behind a second tab: the AI catalog never listed them, so
+ * `show_widget` could not resolve an id the operator can plainly see on
+ * screen, and the capability count under-reported the scope.
+ */
+export function flattenEveryTabPanel(widgets: DashboardWidget[]): DashboardWidget[] {
+  const out: DashboardWidget[] = [];
+  const walk = (list: DashboardWidget[]): void => {
+    for (const w of list) {
+      if (w.type !== 'tab') {
+        out.push(w);
+        continue;
+      }
+      for (const tab of w.tabs ?? []) walk(tab.widgets);
+    }
+  };
+  walk(widgets);
+  return out;
+}
diff --git a/apps/bff/src/logic/dashboard/schema.ts b/apps/bff/src/logic/dashboard/schema.ts
index bdfd84a..098eb3a 100644
--- a/apps/bff/src/logic/dashboard/schema.ts
+++ b/apps/bff/src/logic/dashboard/schema.ts
@@ -150,6 +150,12 @@ export const bodySchema = z.object({
   // flattens to many leaves) — see the handler.
   widgets: z.array(widgetSchema).max(MAX_REQUEST_WIDGETS).optional(),
   scope: scopeSchema.optional(),
+  /** Which page of `scope` to render. Omitted means the component's
+   *  default grid; an id the template doesn't declare is a 404. Declared
+   *  here because the body schema strips unknown keys — without it a
+   *  `page` would vanish silently and the default grid would come back
+   *  with a 200. */
+  page: z.string().optional(),
   /** Global time-range, forwarded by the SPA's time picker. When all
    *  three are present the BFF queries OAP at the requested precision
    *  and window; otherwise it falls back to the last-hour MINUTE
diff --git a/apps/bff/src/logic/layers/capabilities.ts b/apps/bff/src/logic/layers/capabilities.ts
index 1e5d31c..ee80460 100644
--- a/apps/bff/src/logic/layers/capabilities.ts
+++ b/apps/bff/src/logic/layers/capabilities.ts
@@ -23,7 +23,7 @@
 import type { DashboardScope, UITemplateClient } from '@skywalking-horizon-ui/api-client';
 import { resolveEffectiveLayer } from './effective.js';
 import {
-  widgetsForScope,
+  allWidgetsForScope,
   topologyConfigFor,
   instanceTopologyConfigFor,
   deploymentConfigFor,
@@ -34,7 +34,7 @@ import {
   type LayerComponentFlags,
   type TopologyMetricDef,
 } from './loader.js';
-import { flattenTabWidgets } from '../dashboard/gates.js';
+import { flattenEveryTabPanel } from '../dashboard/gates.js';
 
 export interface MetricLegend {
   id: string;
@@ -113,7 +113,7 @@ function componentList(flags: LayerComponentFlags): string[] {
 }
 
 function scopeCount(template: LayerTemplate, scope: DashboardScope): number {
-  return flattenTabWidgets(widgetsForScope(template, scope)).length;
+  return flattenEveryTabPanel(allWidgetsForScope(template, scope)).length;
 }
 
 export async function layerCapabilities(
diff --git a/apps/bff/src/logic/layers/caps.ts b/apps/bff/src/logic/layers/caps.ts
new file mode 100644
index 0000000..a223007
--- /dev/null
+++ b/apps/bff/src/logic/layers/caps.ts
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * A layer template's `components` flags as the wire `caps` every consumer
+ * reads.
+ *
+ * ONE copy, deliberately. This rule decides which rows a layer exposes, so
+ * a second copy that drifts does not fail loudly — it renders a menu that
+ * disagrees with the one beside it. That has already happened once between
+ * the BFF and the browser, where an absent `service` flag read as ON in
+ * one and OFF in the other.
+ */
+
+import type { LayerCaps } from '@skywalking-horizon-ui/api-client';
+import type { LayerComponentFlags, LayerTemplate } from './loader.js';
+
+/**
+ * Map the JSON config's `components.*` flags onto the wire `caps`
+ * shape — caps are the cap-driven feature toggles each per-layer page
+ * consults. We expand a few aliases (service ⇒ no separate cap; the
+ * components flag is the source of truth for whether the page exists).
+ */
+export function componentsToCaps(components: LayerComponentFlags): LayerCaps {
+  return {
+    dashboards: components.service !== false,
+    instances: !!components.instances,
+    endpoints: !!components.endpoints,
+    endpointDependency: !!components.endpointDependency,
+    serviceMap: !!components.topology,
+    // instanceTopology is gated by the presence of the
+    // topology.instanceTopology config block, not the component flag —
+    // overridden per-layer at the call site (see resolveLayerDef).
+    instanceTopology: false,
+    // deployment rides the component flag here; the call site
+    // ANDs it with the presence of the top-level config block.
+    deployment: !!components.deployment,
+    processTopology: !!components.topology,
+    traces: !!components.traces,
+    logs: !!components.logs,
+    browserErrors: !!components.browserErrors,
+    traceProfiling: !!components.traceProfiling,
+    ebpfProfiling: !!components.ebpfProfiling,
+    asyncProfiling: !!components.asyncProfiling,
+    networkProfiling: !!components.networkProfiling,
+    pprofProfiling: !!components.pprofProfiling,
+    continuousProfiling: !!components.continuousProfiling,
+    podLogs: !!components.podLogs,
+    events: false,
+  };
+}
+
+/**
+ * A template's component flags as wire `caps`, including the two that are
+ * gated on a config block rather than on their own flag.
+ *
+ * `localized` supplies the flags; `raw` supplies the config blocks, which
+ * translation never touches. Exported so the row-resolution regression
+ * test can build the same caps the menu serves rather than an
+ * approximation of them.
+ */
+export function capsForTemplate(
+  localized: LayerTemplate,
+  raw: LayerTemplate | null,
+): LayerCaps {
+  const c = componentsToCaps(localized.components);
+  // Read the EFFECTIVE (remote) template — the same one the topology
+  // routes serve — so the Instance-map drill-down is available iff it's
+  // enabled on the in-use template, matching the admin. Gate on the parent
+  // Topology component (`serviceMap` = `components.topology`): instance
+  // topology is a drill-down OF the topology map, so disabling the
+  // Topology component must hide it too — even if a stale
+  // `topology.instanceTopology` block lingers.
+  c.instanceTopology = c.serviceMap && !!raw?.topology?.instanceTopology;
+  // Deployment is its own tab (not a drill-down of the service map), so
+  // it's gated only on its own config block presence AND its component
+  // flag — independent of `serviceMap`.
+  c.deployment = c.deployment && !!raw?.deployment;
+  return c;
+}
diff --git a/apps/bff/src/logic/layers/loader.ts b/apps/bff/src/logic/layers/loader.ts
index c05b103..27ae119 100644
--- a/apps/bff/src/logic/layers/loader.ts
+++ b/apps/bff/src/logic/layers/loader.ts
@@ -42,6 +42,7 @@ import type {
   InstanceTopologyConfig,
   ProcessTopologyConfig,
   DeploymentConfig,
+  InstanceAttributePredicate,
   InstanceListConfig,
   ServiceNamingRule,
   TopologyConfig,
@@ -140,6 +141,69 @@ export interface LayerDashboards {
   asyncProfiling?: DashboardWidget[];
 }
 
+/** The three entity components that can carry more than one dashboard
+ *  page. The other `LayerDashboards` scopes are single-page features. */
+export type EntityDashboardScope = 'service' | 'instance' | 'endpoint';
+
+export const ENTITY_DASHBOARD_SCOPES: readonly EntityDashboardScope[] = [
+  'service',
+  'instance',
+  'endpoint',
+];
+
+/** Upper bound on extension pages per component. A sidebar that needs
+ *  scrolling to reach a layer's own tabs stops being a menu. */
+export const MAX_EXT_PAGES_PER_SCOPE = 12;
+
+/** Page ids are route segments, so they are lowercase and hyphenated. */
+export const EXT_PAGE_ID_RE = /^[a-z0-9][a-z0-9-]*$/;
+
+/**
+ * One additional dashboard page for an entity component, beyond the
+ * component's default `dashboards.<scope>` grid.
+ *
+ * `id` is both the identity and the route segment (`/layer/K/service/<id>`),
+ * unique within its component. Uniqueness is load-bearing twice over: it
+ * addresses the route, and it is what makes the page array id-addressable
+ * for translation overlays — a duplicate would silently drop the whole
+ * array back to position-based matching.
+ */
+/** The entity narrowing a page applies, default or extension. */
+export interface LayerEntityFilter {
+  /** Narrows the service picker — a bare term is a case-insensitive
+   *  substring match against the raw OAP service name, `/…/` is a regular
+   *  expression. Legal under any entity scope: Instance and Endpoint
+   *  pages show the service picker too. */
+  serviceFilter?: string;
+  /** Instance scope only. Same grammar, matched against the raw instance
+   *  name. */
+  instanceFilter?: string;
+  /** Instance scope only. Every predicate must hold, and they AND with
+   *  {@link instanceFilter}. Read through the same normalisation the
+   *  widget-level `visibleWhen: { kind: 'entity' }` gate uses. */
+  instanceAttributes?: InstanceAttributePredicate[];
+}
+
+export interface LayerDashboardExtPage extends LayerEntityFilter {
+  id: string;
+  /** Display name. Translatable; duplicates across pages are legal
+   *  because identity is the id, never the label. */
+  name: string;
+  /** What this page calls the entity it lists. The layer's `aliases`
+   *  name the default page only. */
+  alias?: string;
+  widgets: DashboardWidget[];
+}
+
+/** One attribute condition on an Instance page. Declared in the shared
+ *  package beside the evaluator that reads it, so the BFF's rules and the
+ *  browser's cannot describe different shapes. */
+export type { InstanceAttributePredicate };
+
+/** More conditions than this on one page is a filter nobody can reason
+ *  about, and each one costs a pass over every instance. */
+export { MAX_INSTANCE_ATTRIBUTE_PREDICATES } from '@skywalking-horizon-ui/api-client';
+
 export interface LayerTemplate {
   /** UPPER_SNAKE enum key (matches OAP). */
   key: string;
@@ -173,6 +237,18 @@ export interface LayerTemplate {
   metrics: LayerHeaderConfig;
   /** Per-scope widget sets. `service` is the layer's primary landing. */
   dashboards?: LayerDashboards;
+  /** Additional dashboard pages for the entity components, beyond the
+   *  default grid each keeps in `dashboards`. A sibling block so that
+   *  adding pages leaves every existing widget and translation path
+   *  byte-identical. Absent on every bundled template. */
+  dashboardExtPages?: Partial<Record<EntityDashboardScope, LayerDashboardExtPage[]>>;
+  /** The same narrowing for the page every component already has. Its own
+   *  block because `dashboards.<scope>` is a bare widget array with
+   *  nowhere to hang a filter. */
+  dashboardDefaultFilters?: Partial<Record<EntityDashboardScope, LayerEntityFilter>>;
+  /** Operator-defined sidebar row order. Row PATHS, never display names.
+   *  Absent means the built-in default order. */
+  menuOrder?: string[];
   /** Legacy single widget list — treated as `dashboards.service`. */
   widgets?: DashboardWidget[];
   /** Service-map dashboard config — operator-editable node + edge MQE.
@@ -453,9 +529,39 @@ export function topNOrderOf(
 export function widgetsForScope(
   template: LayerTemplate,
   scope: DashboardScope,
+): DashboardWidget[] {
+  return withTopNOrder(defaultGridFor(template, scope));
+}
+
+/**
+ * The grid a component's default page ACTUALLY shows, fallbacks included.
+ *
+ * A scope with no grid of its own falls back to Service's, and then to the
+ * legacy flat list — so an Instance page can be showing Service's widgets.
+ * Exported because publish validation has to seed widget ids from the same
+ * place: comparing an extension page against the LITERAL `dashboards
+ * .instance` let a page reuse an id that the instance page really does
+ * render, which is the collision the rule exists to prevent.
+ */
+export function defaultGridFor(
+  template: Pick<LayerTemplate, 'dashboards' | 'widgets'>,
+  scope: DashboardScope,
 ): DashboardWidget[] {
   const d = template.dashboards;
-  const raw = !d ? (template.widgets ?? []) : (d[scope] ?? d.service ?? template.widgets ?? []);
+  return !d ? (template.widgets ?? []) : (d[scope] ?? d.service ?? template.widgets ?? []);
+}
+
+/**
+ * Resolve `top` / `record` sort direction from the MQE, recursively into
+ * tab panels.
+ *
+ * Every path that hands widgets to the UI has to run this, not just the
+ * default grid: the renderer reads `topNOrder` to decide which way a
+ * ranking sorts, and a widget that arrives without it is treated as
+ * descending. An extension-page widget built on `top_n(metric, 10, asc)`
+ * therefore ranked backwards.
+ */
+export function withTopNOrder(raw: DashboardWidget[]): DashboardWidget[] {
   const enrichLeaf = (w: DashboardWidget): DashboardWidget => {
     if (w.type !== 'top' && w.type !== 'record') return w;
     const order = topNOrderOf(w.expressions);
@@ -476,6 +582,80 @@ export function widgetsForScope(
   });
 }
 
+/** Whether `scope` is one of the three components that can carry
+ *  extension pages. */
+function isEntityDashboardScope(scope: string): scope is EntityDashboardScope {
+  return (ENTITY_DASHBOARD_SCOPES as readonly string[]).includes(scope);
+}
+
+/** A component's extension pages, in template order. Empty for a scope
+ *  that declares none, and for the scopes that cannot carry them. */
+export function extPagesForScope(
+  template: LayerTemplate,
+  scope: DashboardScope,
+): LayerDashboardExtPage[] {
+  if (!isEntityDashboardScope(scope)) return [];
+  return template.dashboardExtPages?.[scope] ?? [];
+}
+
+/**
+ * Resolving a `page` request against a scope, keeping the three outcomes
+ * distinct:
+ *
+ *   - `page` omitted  → the component's DEFAULT page (`dashboards.<scope>`)
+ *   - `page` known    → that extension page
+ *   - `page` unknown  → not found, never a silent fall back to the default
+ *
+ * Collapsing the third case into the first is the failure worth guarding:
+ * a mistyped or stale bookmark would render the default grid under the
+ * wrong URL, and the operator would read it as the page they asked for.
+ */
+export type ExtPageResolution =
+  | { kind: 'default' }
+  | { kind: 'page'; page: LayerDashboardExtPage }
+  | { kind: 'unknown' };
+
+export function resolveExtPage(
+  template: LayerTemplate,
+  scope: DashboardScope,
+  pageId: string | undefined | null,
+): ExtPageResolution {
+  if (pageId === undefined || pageId === null || pageId === '') return { kind: 'default' };
+  const page = extPagesForScope(template, scope).find((p) => p.id === pageId);
+  return page ? { kind: 'page', page } : { kind: 'unknown' };
+}
+
+/**
+ * The widgets for one page of a scope. Deliberately does NOT inherit
+ * `widgetsForScope`'s `?? d.service` fallback: that fallback exists so a
+ * template with only a legacy flat `widgets` list still renders its
+ * Service grid everywhere, and applying it to an extension page would
+ * make an unknown page render the Service default.
+ */
+export function widgetsForScopePage(
+  template: LayerTemplate,
+  scope: DashboardScope,
+  pageId: string | undefined | null,
+): DashboardWidget[] | null {
+  const resolved = resolveExtPage(template, scope, pageId);
+  if (resolved.kind === 'unknown') return null;
+  if (resolved.kind === 'default') return widgetsForScope(template, scope);
+  return withTopNOrder(resolved.page.widgets);
+}
+
+/** Every widget a component can show, across its default page and all of
+ *  its extension pages — for catalogs and counts that must see the whole
+ *  scope rather than one screen. */
+export function allWidgetsForScope(
+  template: LayerTemplate,
+  scope: DashboardScope,
+): DashboardWidget[] {
+  return [
+    ...widgetsForScope(template, scope),
+    ...extPagesForScope(template, scope).flatMap((p) => withTopNOrder(p.widgets)),
+  ];
+}
+
 /** Resolve the topology config — operator override if present, else
  *  booster-ui defaults. Operators add a `topology` block to the layer
  *  JSON to swap MQE expressions, units, or visual role bindings. */
diff --git a/apps/bff/src/logic/templates/bundled-schema.ts b/apps/bff/src/logic/templates/bundled-schema.ts
index 3451e85..00d8535 100644
--- a/apps/bff/src/logic/templates/bundled-schema.ts
+++ b/apps/bff/src/logic/templates/bundled-schema.ts
@@ -45,8 +45,26 @@
  */
 
 import { z } from 'zod';
+import {
+  isBuiltInLayerRow,
+  menuOrderIssues,
+  resolveLayerMenuRows,
+  walkWidgets,
+} from '@skywalking-horizon-ui/api-client';
+import type { DashboardWidget, LayerExtPages } from '@skywalking-horizon-ui/api-client';
+import { MAX_EXT_PAGE_ID_LENGTH, MAX_EXT_PAGE_NAME_LENGTH } from '@skywalking-horizon-ui/api-client';
 import { widgetSchema, scopeSchema } from '../dashboard/schema.js';
 import { linkSchemeIssue } from '../../util/link-policy.js';
+import {
+  defaultGridFor,
+  ENTITY_DASHBOARD_SCOPES,
+  MAX_INSTANCE_ATTRIBUTE_PREDICATES,
+  EXT_PAGE_ID_RE,
+  MAX_EXT_PAGES_PER_SCOPE,
+  type EntityDashboardScope,
+  type LayerComponentFlags,
+} from '../layers/loader.js';
+import { componentsToCaps } from '../layers/caps.js';
 
 /** Cross-side rollup of per-service values into one layer KPI. Mirrors
  *  `AggregationKind` — the landing route rejects anything else. */
@@ -83,9 +101,15 @@ const headerColumnSchema = z
  *  every header column, so an 11th would 400 the whole service list. */
 const MAX_HEADER_COLUMNS = 10;
 
-/** `LayerComponentFlags` — a misspelled flag silently leaves its tab off,
- *  which is exactly why this is strict. */
-const componentsSchema = z
+/**
+ * `LayerComponentFlags` — a misspelled flag silently leaves its tab off,
+ * which is exactly why this is strict.
+ *
+ * This is also the COMPLETE component list, exported so the menu-row suite
+ * can assert every component still resolves to a row: a flag added here
+ * without one would ship a feature the sidebar can never reach.
+ */
+export const componentsSchema = z
   .object({
     service: z.boolean().optional(),
     instances: z.boolean().optional(),
@@ -155,6 +179,88 @@ function dashboardsSchemaFor<T extends z.ZodTypeAny>(widget: T) {
   return z.object(shape).strict();
 }
 
+/** The entity-narrowing fields. Shared verbatim by an extension page and
+ *  by `dashboardDefaultFilters`, so the default page and the pages beside
+ *  it cannot drift into two grammars. */
+function entityFilterFields() {
+  return {
+    serviceFilter: z.string().optional(),
+    instanceFilter: z.string().optional(),
+    instanceAttributes: z
+      .array(
+        z
+          .object({
+            attribute: z.string().transform((v) => v.trim()).pipe(z.string().min(1)),
+            op: z.enum(['exists', 'eq']),
+            value: z.string().optional(),
+          })
+          .strict()
+          // `eq` without a value matches nothing, which reads on screen as
+          // a page with no instances rather than a half-written condition.
+          .refine((p) => p.op !== 'eq' || (p.value !== undefined && p.value.trim() !== ''), {
+            message: 'an "eq" condition needs a value',
+            path: ['value'],
+          }),
+      )
+      .max(MAX_INSTANCE_ATTRIBUTE_PREDICATES)
+      .optional(),
+  };
+}
+
+/** `dashboardDefaultFilters.<scope>` — the same narrowing for the page
+ *  every component already has. The default page is a bare widget array,
+ *  so its filters cannot live beside its widgets the way a page's do. */
+function defaultFiltersSchema() {
+  const shape: Record<string, z.ZodOptional<z.ZodTypeAny>> = {};
+  for (const scope of ENTITY_DASHBOARD_SCOPES) {
+    shape[scope] = z.object(entityFilterFields()).strict().optional();
+  }
+  return z.object(shape).strict();
+}
+
+/** `dashboardExtPages.<scope>` — built from the three ENTITY scopes only,
+ *  not from `scopeSchema`. The other seven scopes are single-page features
+ *  (topology, traces, logs, the profilings); accepting pages under them
+ *  would validate config that no route can ever reach. */
+function extPagesSchemaFor<T extends z.ZodTypeAny>(widget: T) {
+  const pageSchema = z
+    .object({
+      id: z
+        .string()
+        .max(MAX_EXT_PAGE_ID_LENGTH, `must be at most ${MAX_EXT_PAGE_ID_LENGTH} characters`)
+        .regex(EXT_PAGE_ID_RE, 'must be lowercase alphanumeric with hyphens, starting with a letter or digit')
+        // A page id becomes a path segment, and several features sniff the
+        // WHOLE route path rather than one segment — `/zipkin-trace` decides
+        // trace mode and hides the layer header in three places. Rejecting
+        // the collision here is cheaper and more honest than hardening
+        // every such regex against a page that impersonates a tab.
+        .refine((v) => !isBuiltInLayerRow(v), (v) => ({
+          message: `"${v}" is a built-in layer tab — pick an id that is not a layer route`,
+        })),
+      // Names may repeat; identity is the id. Blank is rejected at BOTH
+      // bars, unlike the work-in-progress holes the push bar tolerates
+      // elsewhere: a page's name is its sidebar row, so publishing an
+      // empty one ships a row nobody can read or click. The editor always
+      // supplies one, so this only catches hand-edited or imported JSON.
+      // Trimmed: `" "` clears `.min(1)` but renders an unreadable row.
+      name: z
+        .string()
+        .transform((v) => v.trim())
+        .pipe(z.string().min(1).max(MAX_EXT_PAGE_NAME_LENGTH)),
+      /** What this page calls the entity it lists. Translatable, and the
+       *  layer's own `aliases` name only the DEFAULT page. */
+      alias: z.string().optional(),
+      ...entityFilterFields(),
+      widgets: z.array(widget),
+    })
+    .strict();
+  const shape: Record<string, z.ZodOptional<z.ZodArray<typeof pageSchema>>> = {};
+  for (const scope of ENTITY_DASHBOARD_SCOPES) {
+    shape[scope] = z.array(pageSchema).max(MAX_EXT_PAGES_PER_SCOPE).optional();
+  }
+  return z.object(shape).strict();
+}
+
 /**
  * The layer schema, built twice from one body at two completeness bars.
  *
@@ -353,6 +459,12 @@ function buildLayerSchemas(complete: boolean) {
       // Legacy alias the loader still reads (older / operator-exported files).
       metrics: headerSchema.optional(),
       dashboards: dashboardsSchema.optional(),
+      dashboardExtPages: extPagesSchemaFor(complete ? widgetSchema : pushWidgetSchema).optional(),
+      dashboardDefaultFilters: defaultFiltersSchema().optional(),
+      // Row paths, so `service` and `service/agents` are both legal. The
+      // cross-reference pass decides whether each names a row this layer
+      // actually resolves.
+      menuOrder: z.array(z.string().min(1)).max(64).optional(),
       widgets: z.array(complete ? widgetSchema : pushWidgetSchema).optional(),
       topology: topologySchema.optional(),
       endpointDependency: endpointDependencySchema.optional(),
@@ -455,9 +567,12 @@ export function layerCrossRefIssues(tpl: PushLayer, opts: { complete: boolean })
   }
 
   for (const [scope, widgets] of Object.entries(tpl.dashboards ?? {})) {
-    checkWidgetIds(widgets, `dashboards.${scope}`, add);
+    checkWidgetIds(widgets as DashboardWidget[], `dashboards.${scope}`, add);
   }
-  checkWidgetIds(tpl.widgets, 'widgets', add);
+  checkWidgetIds(tpl.widgets as DashboardWidget[] | undefined, 'widgets', add);
+  checkExtPages(tpl, add);
+  checkDefaultFilters(tpl, add);
+  checkMenuOrder(tpl, add);
 
   const regexRules: Array<[string, RegexRule]> = tpl.naming ? [['naming', tpl.naming]] : [];
   for (const rule of ['clusterBy', 'siblingBy', 'roleBy'] as const) {
@@ -503,15 +618,245 @@ export function layerCrossRefIssues(tpl: PushLayer, opts: { complete: boolean })
 
 /** Dashboard results come back keyed by widget id, so a duplicate makes one of
  *  the two unaddressable. */
+/** Which component flag decides whether a scope's pages can be reached. */
+const EXT_PAGE_COMPONENT: Record<EntityDashboardScope, 'service' | 'instances' | 'endpoints'> = {
+  service: 'service',
+  instance: 'instances',
+  endpoint: 'endpoints',
+};
+
+/**
+ * The rules that need the whole template in hand: page-id uniqueness,
+ * component gating, `serviceFilter` placement, and widget-id uniqueness
+ * across every page of one component.
+ *
+ * The widget-id rule is stricter than the per-array check applied to
+ * legacy templates, and deliberately only applies to a component that
+ * declares extension pages. Consumers address a widget as
+ * `layer + scope + widgetId` (the AI metric catalog, the visualization
+ * resolver), so the same id on two pages of one component is ambiguous —
+ * but the same id under Service and under Instance stays fine, and a
+ * legacy template is not rejected for a collision this feature invented.
+ */
+/**
+ * The rules an entity filter obeys wherever it sits — on an extension
+ * page or on the component's default page.
+ *
+ * `serviceFilter` is legal under ANY entity scope: all three show the
+ * service picker, since an Instance or Endpoint page has you pick a
+ * service before the entity it is about. The instance fields are not:
+ * placed elsewhere they are not merely useless, they ride all the way to
+ * the client and are silently ignored, which reads as a filter that does
+ * not work.
+ */
+function checkEntityFilter(
+  scope: string,
+  base: string,
+  filter: {
+    serviceFilter?: string;
+    instanceFilter?: string;
+    instanceAttributes?: Array<{ attribute: string; op: string; value?: string }>;
+  },
+  add: (path: string, message: string) => void,
+): void {
+  if (scope !== 'instance' && filter.instanceFilter !== undefined) {
+    add(`${base}.instanceFilter`, 'only an Instance page can filter the instance list');
+  }
+  if (scope !== 'instance' && filter.instanceAttributes !== undefined) {
+    add(`${base}.instanceAttributes`, 'only an Instance page can filter by instance attributes');
+  }
+  const filterIssue = filterPatternIssue(filter.serviceFilter);
+  if (filterIssue) add(`${base}.serviceFilter`, filterIssue);
+  const instanceIssue = filterPatternIssue(filter.instanceFilter);
+  if (instanceIssue) add(`${base}.instanceFilter`, instanceIssue);
+  // Conditions AND, so a repeat can only ever be redundant.
+  const seen = new Set<string>();
+  (filter.instanceAttributes ?? []).forEach((pred, ai) => {
+    const key = `${pred.attribute.trim().toLowerCase()}|${pred.op}|${(pred.value ?? '').toLowerCase()}`;
+    if (seen.has(key)) add(`${base}.instanceAttributes.${ai}`, `duplicate condition on "${pred.attribute}"`);
+    seen.add(key);
+  });
+}
+
+/** The default page's filters answer to the same rules, and to the same
+ *  component gate: a filter under a component that is off narrows a
+ *  picker no route reaches. */
+function checkDefaultFilters(tpl: PushLayer, add: (path: string, message: string) => void): void {
+  const byScope = tpl.dashboardDefaultFilters;
+  if (!byScope) return;
+  for (const scope of ENTITY_DASHBOARD_SCOPES) {
+    const filter = byScope[scope];
+    if (!filter) continue;
+    const flag = EXT_PAGE_COMPONENT[scope];
+    const enabled = flag === 'service' ? tpl.components?.service !== false : !!tpl.components?.[flag];
+    if (!enabled) {
+      add(`dashboardDefaultFilters.${scope}`, `the ${scope} component is off — its default page has no picker to narrow`);
+      continue;
+    }
+    checkEntityFilter(scope, `dashboardDefaultFilters.${scope}`, filter, add);
+  }
+}
+
+function checkExtPages(tpl: PushLayer, add: (path: string, message: string) => void): void {
+  const byScope = tpl.dashboardExtPages;
+  if (!byScope) return;
+  for (const scope of ENTITY_DASHBOARD_SCOPES) {
+    const pages = byScope[scope];
+    if (!pages || pages.length === 0) continue;
+
+    // `service` defaults to ON when the flag is absent — same rule
+    // `componentsToCaps` applies — so only an explicit false disables it.
+    const flag = EXT_PAGE_COMPONENT[scope];
+    const enabled = flag === 'service' ? tpl.components?.service !== false : !!tpl.components?.[flag];
+    if (!enabled) {
+      add(
+        `dashboardExtPages.${scope}`,
+        `${pages.length} page(s) declared but the ${flag} component is disabled — they would have no menu row`,
+      );
+    }
+
+    const seenIds = new Set<string>();
+    // Widget id → the page that already claimed it, so the message can
+    // name both sides of a collision.
+    const widgetOwner = new Map<string, string>();
+    // The EFFECTIVE grid, resolved exactly as the runtime resolves it —
+    // a scope with no grid of its own falls back to Service's and then to
+    // the legacy flat list. Comparing against the literal
+    // `dashboards.<scope>` let an Instance page reuse an id that the
+    // Instance page really does render, because it was showing Service's
+    // widgets. Shared with the renderer so the two cannot drift.
+    const effective = defaultGridFor(
+      tpl as { dashboards?: Record<string, DashboardWidget[]>; widgets?: DashboardWidget[] },
+      scope,
+    );
+    const where =
+      tpl.dashboards?.[scope] !== undefined
+        ? `dashboards.${scope}`
+        : tpl.dashboards?.service !== undefined
+          ? 'dashboards.service'
+          : 'widgets';
+    const defaultGrid: Array<[DashboardWidget[] | undefined, string]> = [[effective, where]];
+    for (const [list, where] of defaultGrid) {
+      for (const w of walkWidgets(list)) {
+        // First writer wins, so a duplicate INSIDE the default grid keeps
+        // pointing at where it was first seen rather than being silently
+        // overwritten by its own repeat.
+        if (!widgetOwner.has(w.id)) widgetOwner.set(w.id, where);
+      }
+    }
+    pages.forEach((page, pi) => {
+      const base = `dashboardExtPages.${scope}.${pi}`;
+      if (seenIds.has(page.id)) {
+        add(`${base}.id`, `duplicate page id "${page.id}" within ${scope}`);
+      }
+      seenIds.add(page.id);
+
+      checkEntityFilter(scope, base, page, add);
+
+      for (const w of walkWidgets(page.widgets as DashboardWidget[])) {
+        const owner = widgetOwner.get(w.id);
+        if (owner) {
+          add(
+            `${base}.widgets`,
+            `widget id "${w.id}" already exists in ${owner} — ids must be unique across all ${scope} pages`,
+          );
+        } else {
+          widgetOwner.set(w.id, base);
+        }
+      }
+    });
+  }
+}
+
+/**
+ * `menuOrder` must name rows this layer actually has, once each.
+ *
+ * The runtime is lenient — a stale entry is skipped and an unnamed row
+ * keeps its default position — so nothing here is required for the menu to
+ * render. It is required for the order to MEAN what the operator saved:
+ * an entry naming a row that does not exist is an instruction that
+ * silently does nothing, and publishing is the last place to say so.
+ */
+function checkMenuOrder(tpl: PushLayer, add: (path: string, message: string) => void): void {
+  const order = tpl.menuOrder;
+  if (!order?.length) return;
+  const rows = resolveLayerMenuRows({
+    // The ONE caps mapping, shared with the menu route — a private copy
+    // here would decide row existence differently from the runtime it is
+    // validating against.
+    caps: componentsToCaps(tpl.components as LayerComponentFlags),
+    slots: tpl.slots ?? tpl.aliases ?? {},
+    traces: tpl.traces,
+    extPages: extPageRefsOf(tpl),
+  });
+  for (const { path, issue } of menuOrderIssues(order, rows)) {
+    const i = order.indexOf(path);
+    add(
+      `menuOrder.${i}`,
+      issue === 'duplicate'
+        ? `"${path}" is listed more than once`
+        : `"${path}" is not a row this layer exposes (${rows.map((r) => r.path).join(', ')})`,
+    );
+  }
+}
+
+function extPageRefsOf(tpl: PushLayer): LayerExtPages | undefined {
+  const src = tpl.dashboardExtPages;
+  if (!src) return undefined;
+  const out: LayerExtPages = {};
+  for (const scope of ENTITY_DASHBOARD_SCOPES) {
+    const pages = src[scope];
+    if (!pages?.length) continue;
+    out[scope] = pages.map((p) => ({ id: p.id, name: p.name }));
+  }
+  return Object.keys(out).length > 0 ? out : undefined;
+}
+
+/** A stored entity filter that cannot be applied. Only the `/…/` form is
+ *  checked — a bare term is a literal substring and cannot be malformed. */
+function filterPatternIssue(filter: string | undefined): string | null {
+  if (filter === undefined) return null;
+  if (!(filter.length > 2 && filter.startsWith('/') && filter.endsWith('/'))) return null;
+  const body = filter.slice(1, -1);
+  try {
+    new RegExp(body);
+    return null;
+  } catch (e) {
+    return `not a valid regular expression: ${e instanceof Error ? e.message : String(e)}`;
+  }
+}
+
+/**
+ * Widget ids within one grid, INCLUDING inside tab panels.
+ *
+ * A tab panel's leaves share the id space with the grid that holds them:
+ * dashboard results come back keyed by id alone, so a nested repeat is as
+ * unaddressable as a top-level one. The render path resolves it
+ * last-writer-wins and the AI catalog first-match-wins, which is two
+ * consumers disagreeing about which widget an id means.
+ *
+ * Only the cross-PAGE half of this was enforced. A duplicate with both
+ * ends inside one default grid, at least one of them nested, published
+ * with no issue at all.
+ */
 function checkWidgetIds(
-  widgets: ReadonlyArray<{ id: string }> | undefined,
+  widgets: ReadonlyArray<DashboardWidget> | undefined,
   path: string,
   add: (path: string, message: string) => void,
 ): void {
   const seen = new Set<string>();
+  const check = (id: string, where: string): void => {
+    if (seen.has(id)) add(where, `duplicate widget id "${id}"`);
+    seen.add(id);
+  };
   (widgets ?? []).forEach((w, i) => {
-    if (seen.has(w.id)) add(`${path}.${i}.id`, `duplicate widget id "${w.id}"`);
-    seen.add(w.id);
+    check(w.id, `${path}.${i}.id`);
+    if (w.type !== 'tab') return;
+    (w.tabs ?? []).forEach((tab, ti) => {
+      tab.widgets.forEach((child, ci) => {
+        check(child.id, `${path}.${i}.tabs.${ti}.widgets.${ci}.id`);
+      });
+    });
   });
 }
 
diff --git a/apps/bff/src/logic/templates/bundled-validate.ts b/apps/bff/src/logic/templates/bundled-validate.ts
index 233d862..3565d45 100644
--- a/apps/bff/src/logic/templates/bundled-validate.ts
+++ b/apps/bff/src/logic/templates/bundled-validate.ts
@@ -213,6 +213,24 @@ function validateLayer(src: SourceFile, findings: TemplateFinding[]): void {
     });
   }
 
+  // Extension-page widgets get the same fidelity walk. Without this an
+  // unknown field inside one is stripped by the parse and reported
+  // nowhere — the widget renders, quietly missing whatever the author
+  // wrote.
+  const rawExtPages = isRecord(raw.dashboardExtPages) ? raw.dashboardExtPages : {};
+  for (const [scope, rawPages] of Object.entries(rawExtPages)) {
+    if (!Array.isArray(rawPages)) continue;
+    rawPages.forEach((page, pi) => {
+      if (!isRecord(page) || !Array.isArray(page.widgets)) return;
+      page.widgets.forEach((w, i) => {
+        const p = widgetSchema.safeParse(w);
+        if (p.success) {
+          checkWidgetFidelity(w, p.data, src.label, `dashboardExtPages.${scope}.${pi}.widgets.${i}`, findings);
+        }
+      });
+    });
+  }
+
   for (const issue of layerCrossRefIssues(tpl, { complete: true })) {
     findings.push({ file: src.label, path: issue.path, message: issue.message });
   }
diff --git a/apps/bff/src/logic/templates/ext-pages-fidelity.test.ts b/apps/bff/src/logic/templates/ext-pages-fidelity.test.ts
new file mode 100644
index 0000000..528c6a1
--- /dev/null
+++ b/apps/bff/src/logic/templates/ext-pages-fidelity.test.ts
@@ -0,0 +1,118 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Unknown fields inside an extension page's widgets are REPORTED.
+ *
+ * The parse strips them silently, so without this walk the widget renders
+ * while quietly missing whatever the author wrote — a defect with no error
+ * anywhere. The equivalent walk over `dashboards` has existed for a while;
+ * this proves it reaches the new block, including inside tab panels.
+ */
+
+import { describe, it, expect, beforeEach, afterEach } from 'vitest';
+import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import { validateBundledTemplates } from './bundled-validate.js';
+
+let root = '';
+
+const widget = (id: string, extra: Record<string, unknown> = {}) => ({
+  id,
+  type: 'line',
+  title: id,
+  expressions: ['service_cpm'],
+  ...extra,
+});
+
+function writeLayer(content: unknown): void {
+  writeFileSync(join(root, 'layers', 'custom_mq.json'), JSON.stringify(content, null, 2));
+}
+
+/** Findings for our fixture layer only — the temp root has no singletons,
+ *  and those produce their own unrelated findings. */
+function layerFindings(): string[] {
+  return validateBundledTemplates(root)
+    .filter((f) => f.file.includes('custom_mq'))
+    .map((f) => `${f.path}: ${f.message}`);
+}
+
+beforeEach(() => {
+  root = mkdtempSync(join(tmpdir(), 'horizon-tpl-'));
+  mkdirSync(join(root, 'layers'), { recursive: true });
+  mkdirSync(join(root, 'overviews'), { recursive: true });
+});
+afterEach(() => rmSync(root, { recursive: true, force: true }));
+
+const BASE = {
+  key: 'CUSTOM_MQ',
+  slots: { services: 'Queues' },
+  components: { service: true },
+  dashboards: { service: [widget('svc-a')] },
+};
+
+describe('extension-page widget fidelity', () => {
+  it('reports nothing for a clean template', () => {
+    writeLayer({
+      ...BASE,
+      dashboardExtPages: { service: [{ id: 'resource', name: 'Resource', widgets: [widget('res-a')] }] },
+    });
+    expect(layerFindings()).toEqual([]);
+  });
+
+  it('reports an unknown field on a page widget', () => {
+    writeLayer({
+      ...BASE,
+      dashboardExtPages: {
+        service: [{ id: 'resource', name: 'Resource', widgets: [widget('res-a', { colour: 'red' })] }],
+      },
+    });
+    expect(layerFindings().join(' ')).toContain('dashboardExtPages.service.0.widgets.0');
+  });
+
+  it('reports an unknown field nested inside a page tab panel', () => {
+    writeLayer({
+      ...BASE,
+      dashboardExtPages: {
+        service: [
+          {
+            id: 'resource',
+            name: 'Resource',
+            widgets: [
+              {
+                id: 'group',
+                type: 'tab',
+                title: 'T',
+                expressions: [],
+                tabs: [{ name: 'A', widgets: [widget('leaf', { bogus: 1 })] }],
+              },
+            ],
+          },
+        ],
+      },
+    });
+    expect(layerFindings().join(' ')).toContain('tabs.0.widgets.0');
+  });
+
+  it('still reports one on the component default grid', () => {
+    // The pre-existing walk, unchanged — proving the new one was added
+    // beside it rather than in place of it.
+    writeLayer({ ...BASE, dashboards: { service: [widget('svc-a', { colour: 'red' })] } });
+    expect(layerFindings().join(' ')).toContain('dashboards.service.0');
+  });
+});
diff --git a/apps/bff/src/logic/templates/ext-pages.test.ts b/apps/bff/src/logic/templates/ext-pages.test.ts
new file mode 100644
index 0000000..df0f0ca
--- /dev/null
+++ b/apps/bff/src/logic/templates/ext-pages.test.ts
@@ -0,0 +1,837 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/** `dashboardExtPages` — the schema bars and the page-resolution rules. */
+
+import { describe, it, expect } from 'vitest';
+import { layerTemplateSchema, layerTemplatePushSchema, layerCrossRefIssues } from './bundled-schema.js';
+import { MAX_EXT_PAGE_ID_LENGTH, MAX_EXT_PAGE_NAME_LENGTH } from '@skywalking-horizon-ui/api-client';
+import {
+  resolveExtPage,
+  widgetsForScope,
+  widgetsForScopePage,
+  extPagesForScope,
+  allWidgetsForScope,
+  type LayerTemplate,
+} from '../layers/loader.js';
+
+const widget = (id: string) => ({ id, type: 'line' as const, title: id, expressions: ['x'] });
+
+/** A minimal template that passes the bundled (complete) bar. */
+function tpl(over: Record<string, unknown> = {}): Record<string, unknown> {
+  return {
+    key: 'CUSTOM_MQ',
+    slots: { services: 'Services' },
+    components: { service: true, instances: true },
+    dashboards: { service: [widget('svc-a')] },
+    ...over,
+  };
+}
+
+const page = (over: Record<string, unknown> = {}) => ({
+  id: 'resource',
+  name: 'Resource usage',
+  widgets: [widget('res-a')],
+  ...over,
+});
+
+function crossRefs(t: Record<string, unknown>): string[] {
+  const parsed = layerTemplatePushSchema.safeParse(t);
+  if (!parsed.success) return parsed.error.issues.map((i) => `${i.path.join('.')}: ${i.message}`);
+  return layerCrossRefIssues(parsed.data, { complete: true }).map((i) => `${i.path}: ${i.message}`);
+}
+
+describe('dashboardExtPages — schema', () => {
+  it('accepts a template with no extension pages at all (every bundled layer)', () => {
+    expect(layerTemplateSchema.safeParse(tpl()).success).toBe(true);
+  });
+
+  it('accepts pages on all three entity components at once', () => {
+    const t = tpl({
+      components: { service: true, instances: true, endpoints: true },
+      dashboards: { service: [widget('a')], instance: [widget('b')], endpoint: [widget('c')] },
+      dashboardExtPages: {
+        service: [page({ id: 'one', widgets: [widget('s1')] })],
+        instance: [page({ id: 'two', widgets: [widget('i1')] })],
+        endpoint: [page({ id: 'three', widgets: [widget('e1')] })],
+      },
+    });
+    expect(layerTemplateSchema.safeParse(t).success).toBe(true);
+    expect(crossRefs(t)).toEqual([]);
+  });
+
+  it('rejects a page under a scope that cannot carry pages', () => {
+    const r = layerTemplateSchema.safeParse(tpl({ dashboardExtPages: { topology: [page()] } }));
+    expect(r.success).toBe(false);
+  });
+
+  it.each([
+    ['Uppercase', 'Resource'],
+    ['a leading hyphen', '-resource'],
+    ['a slash', 'a/b'],
+    ['an underscore', 'a_b'],
+    ['an empty string', ''],
+  ])('rejects a page id with %s', (_why, id) => {
+    const r = layerTemplateSchema.safeParse(tpl({ dashboardExtPages: { service: [page({ id })] } }));
+    expect(r.success).toBe(false);
+  });
+
+  it.each(['service', 'instance', 'zipkin-trace', 'pprof', 'pod-logs', 'continuous-profiling'])(
+    'rejects the page id %s because it collides with a built-in tab',
+    (id) => {
+      const r = layerTemplateSchema.safeParse(tpl({ dashboardExtPages: { service: [page({ id })] } }));
+      expect(r.success).toBe(false);
+      const msg = r.success ? '' : r.error.issues.map((i) => i.message).join(' ');
+      expect(msg).toContain('built-in layer tab');
+    },
+  );
+
+  it('rejects a blank name at BOTH bars, unlike other work-in-progress holes', () => {
+    // A page's name is its sidebar row. The push bar tolerates an empty
+    // MQE or an unfilled metric because those degrade to one dead widget;
+    // an empty name ships a row nobody can read or click.
+    const t = tpl({ dashboardExtPages: { service: [page({ name: '' })] } });
+    expect(layerTemplateSchema.safeParse(t).success).toBe(false);
+    expect(layerTemplatePushSchema.safeParse(t).success).toBe(false);
+  });
+
+  it('still tolerates a blank MQE in a page widget at the push bar', () => {
+    // The relaxation that DOES apply to pages: "Add widget" seeds an empty
+    // expression, and publishing that is ordinary work in progress.
+    const t = tpl({
+      dashboardExtPages: {
+        service: [page({ widgets: [{ id: 'w', type: 'line', title: 'W', expressions: [''] }] })],
+      },
+    });
+    expect(layerTemplatePushSchema.safeParse(t).success).toBe(true);
+  });
+
+  it('allows two pages to share a display name — identity is the id', () => {
+    const t = tpl({
+      dashboardExtPages: {
+        service: [
+          page({ id: 'a', name: 'Same', widgets: [widget('w1')] }),
+          page({ id: 'b', name: 'Same', widgets: [widget('w2')] }),
+        ],
+      },
+    });
+    expect(layerTemplateSchema.safeParse(t).success).toBe(true);
+    expect(crossRefs(t)).toEqual([]);
+  });
+
+  it('caps a component at 12 extension pages', () => {
+    const many = (n: number) =>
+      Array.from({ length: n }, (_, i) => page({ id: `p${i}`, widgets: [widget(`w${i}`)] }));
+    expect(layerTemplateSchema.safeParse(tpl({ dashboardExtPages: { service: many(12) } })).success).toBe(true);
+    expect(layerTemplateSchema.safeParse(tpl({ dashboardExtPages: { service: many(13) } })).success).toBe(false);
+  });
+
+  it('rejects an unknown field on a page', () => {
+    const r = layerTemplateSchema.safeParse(tpl({ dashboardExtPages: { service: [page({ colour: 'red' })] } }));
+    expect(r.success).toBe(false);
+  });
+});
+
+describe('dashboardExtPages — cross-reference rules', () => {
+  it('reports a duplicate page id within one component', () => {
+    const issues = crossRefs(
+      tpl({
+        dashboardExtPages: {
+          service: [page({ id: 'dup', widgets: [widget('w1')] }), page({ id: 'dup', widgets: [widget('w2')] })],
+        },
+      }),
+    );
+    expect(issues.join(' ')).toContain('duplicate page id "dup"');
+  });
+
+  it('lets the same page id live under two different components', () => {
+    const t = tpl({
+      components: { service: true, instances: true },
+      dashboards: { service: [widget('a')], instance: [widget('b')] },
+      dashboardExtPages: {
+        service: [page({ id: 'detail', widgets: [widget('s1')] })],
+        instance: [page({ id: 'detail', widgets: [widget('i1')] })],
+      },
+    });
+    expect(crossRefs(t)).toEqual([]);
+  });
+
+  it('reports a widget id colliding with the LEGACY flat widget list', () => {
+    // `widgets` is the service grid for a template that never split, so a
+    // page reusing one of those ids is the same collision.
+    const issues = crossRefs(
+      tpl({ dashboards: undefined, widgets: [widget('legacy')], dashboardExtPages: { service: [page({ widgets: [widget('legacy')] })] } }),
+    );
+    expect(issues.join(' ')).toContain('already exists in widgets');
+  });
+
+  it('names where a colliding id was FIRST seen, not its own repeat', () => {
+    const issues = crossRefs(
+      tpl({
+        dashboards: { service: [widget('dup'), widget('dup')] },
+        dashboardExtPages: { service: [page({ widgets: [widget('dup')] })] },
+      }),
+    );
+    expect(issues.join(' ')).toContain('already exists in dashboards.service');
+  });
+
+  it('reports a widget id colliding with the component default page', () => {
+    const issues = crossRefs(
+      tpl({
+        dashboards: { service: [widget('shared')] },
+        dashboardExtPages: { service: [page({ widgets: [widget('shared')] })] },
+      }),
+    );
+    expect(issues.join(' ')).toContain('already exists in dashboards.service');
+  });
+
+  it('reports a widget id colliding between two extension pages', () => {
+    const issues = crossRefs(
+      tpl({
+        dashboardExtPages: {
+          service: [
+            page({ id: 'one', widgets: [widget('dup')] }),
+            page({ id: 'two', widgets: [widget('dup')] }),
+          ],
+        },
+      }),
+    );
+    expect(issues.join(' ')).toContain('already exists in dashboardExtPages.service.0');
+  });
+
+  it('finds a collision nested inside a tab panel', () => {
+    const issues = crossRefs(
+      tpl({
+        dashboards: { service: [widget('leaf')] },
+        dashboardExtPages: {
+          service: [
+            page({
+              widgets: [
+                {
+                  id: 'group',
+                  type: 'tab',
+                  title: 'T',
+                  expressions: [],
+                  tabs: [{ name: 'A', widgets: [widget('leaf')] }],
+                },
+              ],
+            }),
+          ],
+        },
+      }),
+    );
+    expect(issues.join(' ')).toContain('widget id "leaf"');
+  });
+
+  it('lets Service and Instance reuse one widget id', () => {
+    const t = tpl({
+      components: { service: true, instances: true },
+      dashboards: { service: [widget('a')], instance: [widget('b')] },
+      dashboardExtPages: {
+        service: [page({ id: 'one', widgets: [widget('same')] })],
+        instance: [page({ id: 'two', widgets: [widget('same')] })],
+      },
+    });
+    expect(crossRefs(t)).toEqual([]);
+  });
+
+  it('reports pages declared under a disabled component', () => {
+    const issues = crossRefs(
+      tpl({
+        components: { service: false, instances: true },
+        dashboards: { instance: [widget('b')] },
+        dashboardExtPages: { service: [page()] },
+      }),
+    );
+    expect(issues.join(' ')).toContain('service component is disabled');
+  });
+
+  it('treats an absent service flag as enabled, matching the caps rule', () => {
+    const t = tpl({ components: { instances: true }, dashboardExtPages: { service: [page()] } });
+    expect(crossRefs(t)).toEqual([]);
+  });
+
+  it.each([
+    ['a bare substring term', 'agent'],
+    ['a compilable regex', '/^agent::/'],
+    ['a regex with flags-free groups', '/^(a|b)::/'],
+  ])('accepts %s as a serviceFilter', (_why, serviceFilter) => {
+    expect(crossRefs(tpl({ dashboardExtPages: { service: [page({ serviceFilter })] } }))).toEqual([]);
+  });
+
+  it('reports an uncompilable regex filter', () => {
+    const issues = crossRefs(tpl({ dashboardExtPages: { service: [page({ serviceFilter: '/^(unclosed/' })] } }));
+    expect(issues.join(' ')).toContain('not a valid regular expression');
+  });
+
+  it('accepts a serviceFilter on a non-Service page', () => {
+    // Was refused when the filter was a Service-page seed. Every entity
+    // page shows the service picker, so every one may narrow it.
+    const issues = layerCrossRefIssues(
+      layerTemplatePushSchema.parse({
+        key: 'CUSTOM_MQ',
+        alias: 'MQ',
+        components: { service: true, instances: true },
+        dashboards: { instance: [widget('b')] },
+        dashboardExtPages: { instance: [page({ serviceFilter: 'agent' })] },
+      }),
+      { complete: false },
+    ).map((i) => `${i.path}: ${i.message}`);
+    expect(issues).toEqual([]);
+  });
+});
+
+describe('page resolution', () => {
+  const template = {
+    key: 'CUSTOM_MQ',
+    slots: {},
+    components: { service: true },
+    header: {},
+    metrics: {},
+    dashboards: { service: [widget('default-a')] },
+    dashboardExtPages: {
+      service: [
+        { id: 'resource', name: 'Resource', widgets: [widget('res-a')] },
+        { id: 'agents', name: 'Agents', serviceFilter: '/^agent::/', widgets: [widget('ag-a')] },
+      ],
+    },
+  } as unknown as LayerTemplate;
+
+  it('resolves an omitted page to the component default', () => {
+    expect(resolveExtPage(template, 'service', undefined)).toEqual({ kind: 'default' });
+    expect(widgetsForScopePage(template, 'service', undefined)?.map((w) => w.id)).toEqual(['default-a']);
+  });
+
+  it('resolves a known page to its own widgets', () => {
+    const r = resolveExtPage(template, 'service', 'agents');
+    expect(r.kind).toBe('page');
+    expect(widgetsForScopePage(template, 'service', 'agents')?.map((w) => w.id)).toEqual(['ag-a']);
+  });
+
+  it('reports an unknown page rather than falling back to the default', () => {
+    expect(resolveExtPage(template, 'service', 'nope')).toEqual({ kind: 'unknown' });
+    expect(widgetsForScopePage(template, 'service', 'nope')).toBeNull();
+  });
+
+  it('does not inherit the legacy service fallback for an explicit page', () => {
+    // `widgetsForScope('instance')` falls back to the service grid for a
+    // template with no instance dashboard. An explicit page must not.
+    expect(widgetsForScopePage(template, 'instance', undefined)?.map((w) => w.id)).toEqual(['default-a']);
+    expect(widgetsForScopePage(template, 'instance', 'resource')).toBeNull();
+  });
+
+  it('treats an empty page id as omitted', () => {
+    expect(resolveExtPage(template, 'service', '')).toEqual({ kind: 'default' });
+  });
+
+  it('returns no pages for a scope that cannot carry them', () => {
+    expect(extPagesForScope(template, 'topology')).toEqual([]);
+    expect(resolveExtPage(template, 'topology', 'resource')).toEqual({ kind: 'unknown' });
+  });
+
+  it('enumerates every widget of a component across all its pages', () => {
+    expect(allWidgetsForScope(template, 'service').map((w) => w.id)).toEqual(['default-a', 'res-a', 'ag-a']);
+  });
+});
+
+describe('menuOrder — publish validation', () => {
+  const base = () =>
+    tpl({
+      components: { service: true, instances: true, logs: true },
+      dashboards: { service: [widget('a')], instance: [widget('b')] },
+      dashboardExtPages: { service: [page({ id: 'agents', widgets: [widget('ag')] })] },
+    });
+
+  it('accepts an order naming exactly the rows the layer exposes', () => {
+    expect(crossRefs({ ...base(), menuOrder: ['logs', 'service', 'service/agents', 'instance'] })).toEqual([]);
+  });
+
+  it('accepts a partial order — the rest keep their default placement', () => {
+    expect(crossRefs({ ...base(), menuOrder: ['logs'] })).toEqual([]);
+  });
+
+  it('rejects a row this layer does not expose', () => {
+    const issues = crossRefs({ ...base(), menuOrder: ['service', 'topology'] });
+    expect(issues.join(' ')).toContain('"topology" is not a row this layer exposes');
+  });
+
+  it('rejects a page id that no longer exists', () => {
+    const issues = crossRefs({ ...base(), menuOrder: ['service', 'service/gone'] });
+    expect(issues.join(' ')).toContain('"service/gone" is not a row');
+  });
+
+  it('rejects a repeat', () => {
+    const issues = crossRefs({ ...base(), menuOrder: ['service', 'logs', 'service'] });
+    expect(issues.join(' ')).toContain('listed more than once');
+  });
+
+  it('accepts a template with no order at all', () => {
+    expect(crossRefs(base())).toEqual([]);
+  });
+});
+
+/**
+ * A template that predates this feature must survive a load/publish
+ * round-trip byte-identically.
+ *
+ * The push path parses with zod and stores what comes back, so a schema
+ * that adds a default, renames a key, or drops an unknown one would
+ * rewrite every layer an operator opens — silently, and for all of them at
+ * once. The new fields must be absent-in, absent-out.
+ */
+describe('round-trip fidelity for a template with neither new field', () => {
+  const legacy = {
+    key: 'CUSTOM_MQ',
+    alias: 'Custom MQ',
+    slots: { services: 'Queues', instances: 'Brokers' },
+    components: { service: true, instances: true, logs: true },
+    dashboards: {
+      service: [widget('svc-a'), widget('svc-b')],
+      instance: [widget('inst-a')],
+    },
+    traces: { source: 'both' as const },
+  };
+
+  it('parses back to exactly what went in', () => {
+    const parsed = layerTemplatePushSchema.safeParse(legacy);
+    expect(parsed.success).toBe(true);
+    if (!parsed.success) return;
+    expect(JSON.parse(JSON.stringify(parsed.data))).toEqual(legacy);
+  });
+
+  it('does not invent the new fields', () => {
+    const parsed = layerTemplatePushSchema.safeParse(legacy);
+    expect(parsed.success && 'dashboardExtPages' in parsed.data).toBe(false);
+    expect(parsed.success && 'menuOrder' in parsed.data).toBe(false);
+  });
+
+  it('keeps a legacy flat `widgets` list untouched', () => {
+    const flat = { ...legacy, dashboards: undefined, widgets: [widget('legacy-a')] };
+    delete (flat as { dashboards?: unknown }).dashboards;
+    const parsed = layerTemplatePushSchema.safeParse(flat);
+    expect(parsed.success).toBe(true);
+    if (parsed.success) expect(JSON.parse(JSON.stringify(parsed.data))).toEqual(flat);
+  });
+
+  it('round-trips a template that DOES declare the new fields', () => {
+    const withPages = {
+      ...legacy,
+      dashboardExtPages: {
+        service: [{ id: 'agents', name: 'Agents', serviceFilter: '/^agent::/', widgets: [widget('ag-a')] }],
+      },
+      menuOrder: ['service', 'service/agents', 'instance', 'logs'],
+    };
+    const parsed = layerTemplatePushSchema.safeParse(withPages);
+    expect(parsed.success).toBe(true);
+    if (parsed.success) expect(JSON.parse(JSON.stringify(parsed.data))).toEqual(withPages);
+  });
+});
+
+/**
+ * Sort direction on an extension page.
+ *
+ * The renderer reads `topNOrder` to decide which way a ranking sorts and
+ * treats its absence as descending, so a page widget built on
+ * `top_n(metric, 10, asc)` ranked backwards while the identical widget on
+ * the default grid ranked correctly. Every path that hands widgets to the
+ * UI has to resolve it, which is why this asserts the resolvers rather
+ * than one of them.
+ */
+describe('top_n sort direction reaches an extension page', () => {
+  const asc = { id: 'p-top', type: 'top', title: 'Slowest', expressions: ['top_n(service_cpm, 10, asc)'] };
+  const desc = { id: 'd-top', type: 'top', title: 'Busiest', expressions: ['top_n(service_cpm, 10, des)'] };
+  const tpl = {
+    key: 'CUSTOM_MQ',
+    dashboards: { service: [desc] },
+    dashboardExtPages: {
+      service: [
+        { id: 'slow', name: 'Slow', widgets: [asc] },
+        {
+          id: 'nested',
+          name: 'Nested',
+          widgets: [
+            { id: 'tabs', type: 'tab', title: 'T', tabs: [{ name: 'One', widgets: [{ ...asc, id: 'n-top' }] }] },
+          ],
+        },
+      ],
+    },
+  } as unknown as LayerTemplate;
+
+  it('resolves it for a page widget, as it always did for the default grid', () => {
+    expect(widgetsForScope(tpl, 'service')[0]!.topNOrder).toBe('des');
+    expect(widgetsForScopePage(tpl, 'service', 'slow')![0]!.topNOrder).toBe('asc');
+  });
+
+  it('reaches a widget nested in a tab on that page', () => {
+    const page = widgetsForScopePage(tpl, 'service', 'nested')!;
+    expect(page[0]!.tabs![0]!.widgets[0]!.topNOrder).toBe('asc');
+  });
+
+  it('resolves it in the whole-scope enumeration the catalog reads', () => {
+    const all = allWidgetsForScope(tpl, 'service');
+    expect(all.find((x) => x.id === 'p-top')?.topNOrder).toBe('asc');
+    expect(all.find((x) => x.id === 'd-top')?.topNOrder).toBe('des');
+  });
+});
+
+/**
+ * Widget ids inside a tab panel share the grid's id space.
+ *
+ * Results come back keyed by id alone, so a nested repeat is as
+ * unaddressable as a top-level one — the renderer resolves it
+ * last-writer-wins while the AI catalog takes the first match, which is
+ * two consumers disagreeing about which widget an id means. Only the
+ * cross-PAGE half was enforced; a duplicate with both ends inside one
+ * default grid published with no issue at all.
+ */
+describe('duplicate widget ids inside one grid', () => {
+  const leaf = (id: string) => ({ id, type: 'line', title: id, expressions: ['x'] });
+  const tabbed = (id: string, children: unknown[]) =>
+    ({ id, type: 'tab', title: id, expressions: [], tabs: [{ name: 'One', widgets: children }] });
+  const issues = (dashboards: unknown) =>
+    layerCrossRefIssues(
+      layerTemplatePushSchema.parse({
+        key: 'CUSTOM_MQ',
+        alias: 'MQ',
+        components: { service: true, instances: true },
+        dashboards,
+      }),
+      { complete: false },
+    ).map((i) => `${i.path}: ${i.message}`);
+
+  it('catches a top-level widget repeated inside a tab', () => {
+    const found = issues({ service: [leaf('dupe'), tabbed('t', [leaf('dupe')])] });
+    expect(found.join(' ')).toContain('duplicate widget id "dupe"');
+  });
+
+  it('catches a repeat across two tab panels of the same container', () => {
+    const two = {
+      id: 't',
+      type: 'tab',
+      title: 't',
+      expressions: [],
+      tabs: [{ name: 'One', widgets: [leaf('dupe')] }, { name: 'Two', widgets: [leaf('dupe')] }],
+    };
+    expect(issues({ service: [two] }).join(' ')).toContain('duplicate widget id "dupe"');
+  });
+
+  it('catches a repeat within one tab panel', () => {
+    expect(issues({ service: [tabbed('t', [leaf('dupe'), leaf('dupe')])] }).join(' ')).toContain(
+      'duplicate widget id "dupe"',
+    );
+  });
+
+  it('leaves the same id in a DIFFERENT component alone', () => {
+    // Service and Instance are independent id spaces, by design.
+    expect(issues({ service: [leaf('same')], instance: [leaf('same')] })).toEqual([]);
+  });
+
+  it('accepts a grid whose nested ids are all distinct', () => {
+    expect(issues({ service: [leaf('a'), tabbed('t', [leaf('b'), leaf('c')])] })).toEqual([]);
+  });
+});
+
+/**
+ * The grid an extension page is compared against is the EFFECTIVE one.
+ *
+ * A component with no grid of its own renders Service's, and then the
+ * legacy flat list. Validation used to compare against the literal
+ * `dashboards.<scope>`, so an Instance page could reuse an id that the
+ * Instance page really does render — the exact collision the rule exists
+ * to prevent, invisible because the two resolutions disagreed.
+ */
+describe('extension pages versus the grid a component actually shows', () => {
+  const leaf = (id: string) => ({ id, type: 'line', title: id, expressions: ['x'] });
+  const page = (id: string, widgets: unknown[]) => ({ id, name: id, widgets });
+  const issues = (tpl: Record<string, unknown>) =>
+    layerCrossRefIssues(
+      layerTemplatePushSchema.parse({
+        key: 'CUSTOM_MQ',
+        alias: 'MQ',
+        components: { service: true, instances: true, endpoints: true },
+        ...tpl,
+      }),
+      { complete: false },
+    ).map((i) => `${i.path}: ${i.message}`);
+
+  it('catches an Instance page reusing an id from the Service grid it falls back to', () => {
+    const found = issues({
+      dashboards: { service: [leaf('shared')] },
+      dashboardExtPages: { instance: [page('extra', [leaf('shared')])] },
+    });
+    expect(found.join(' ')).toContain('already exists in dashboards.service');
+  });
+
+  it('catches an Endpoint page reusing an id from the legacy flat list', () => {
+    const found = issues({
+      widgets: [leaf('shared')],
+      dashboardExtPages: { endpoint: [page('extra', [leaf('shared')])] },
+    });
+    expect(found.join(' ')).toContain('already exists in widgets');
+  });
+
+  it('still compares against the component’s OWN grid when it has one', () => {
+    const found = issues({
+      dashboards: { service: [leaf('svc-only')], instance: [leaf('ins-only')] },
+      dashboardExtPages: { instance: [page('extra', [leaf('ins-only')])] },
+    });
+    expect(found.join(' ')).toContain('already exists in dashboards.instance');
+  });
+
+  it('leaves a page alone when the id lives in a grid that component does NOT show', () => {
+    // Instance has its own grid, so Service's ids are not on screen for
+    // it — that is a different id space and always was.
+    expect(
+      issues({
+        dashboards: { service: [leaf('svc-only')], instance: [leaf('ins-only')] },
+        dashboardExtPages: { instance: [page('extra', [leaf('svc-only')])] },
+      }),
+    ).toEqual([]);
+  });
+})
+
+/**
+ * Instance-page filters.
+ *
+ * The name filter is the Instance twin of `serviceFilter` — same
+ * grammar, different picker. The attribute conditions borrow the
+ * widget-level entity gate's vocabulary so an operator learns one set of
+ * words, and they AND with the name filter and with each other.
+ *
+ * Placement is the rule worth enforcing hardest: a filter on the wrong
+ * scope is carried to the client and silently ignored, which reads as a
+ * filter that does not work rather than one that was misplaced.
+ */
+describe('instance filters on an extension page', () => {
+  const page = (extra: Record<string, unknown>) => ({ id: 'p', name: 'P', widgets: [], ...extra });
+  const issues = (dashboardExtPages: Record<string, unknown>) =>
+    layerCrossRefIssues(
+      layerTemplatePushSchema.parse({
+        key: 'CUSTOM_MQ',
+        alias: 'MQ',
+        components: { service: true, instances: true, endpoints: true },
+        dashboardExtPages,
+      }),
+      { complete: false },
+    ).map((i) => `${i.path}: ${i.message}`);
+
+  it('accepts a name filter and attribute conditions on an Instance page', () => {
+    expect(
+      issues({
+        instance: [
+          page({
+            instanceFilter: '/^broker-/',
+            instanceAttributes: [
+              { attribute: 'language', op: 'eq', value: 'java' },
+              { attribute: 'namespace', op: 'exists' },
+            ],
+          }),
+        ],
+      }),
+    ).toEqual([]);
+  });
+
+  it('accepts a service filter on an Instance page — it shows the picker too', () => {
+    // An Instance page has you pick a service first, so narrowing that
+    // list is as meaningful there as on a Service page.
+    expect(issues({ instance: [page({ serviceFilter: '/^agent::/', instanceFilter: 'broker' })] })).toEqual([]);
+  });
+
+  it('refuses an instance filter on a Service or Endpoint page', () => {
+    expect(issues({ service: [page({ instanceFilter: 'broker' })] }).join(' ')).toContain(
+      'only an Instance page can filter the instance list',
+    );
+    expect(issues({ endpoint: [page({ instanceAttributes: [{ attribute: 'x', op: 'exists' }] })] }).join(' ')).toContain(
+      'only an Instance page can filter by instance attributes',
+    );
+  });
+
+  it('refuses a regex that cannot compile, as it does for services', () => {
+    expect(issues({ instance: [page({ instanceFilter: '/(unclosed/' })] }).join(' ')).toContain(
+      'not a valid regular expression',
+    );
+  });
+
+  it('treats a bare term as a literal, so it can never be malformed', () => {
+    expect(issues({ instance: [page({ instanceFilter: '(unclosed' })] })).toEqual([]);
+  });
+
+  it('reports a repeated condition — ANDed, it can only be redundant', () => {
+    expect(
+      issues({
+        instance: [
+          page({
+            instanceAttributes: [
+              { attribute: 'Language', op: 'eq', value: 'Java' },
+              { attribute: 'language', op: 'eq', value: 'java' },
+            ],
+          }),
+        ],
+      }).join(' '),
+    ).toContain('duplicate condition');
+  });
+
+  it('refuses an "eq" with no value — it would match nothing', () => {
+    const bad = () =>
+      layerTemplatePushSchema.parse({
+        key: 'CUSTOM_MQ',
+        alias: 'MQ',
+        components: { service: true, instances: true },
+        dashboardExtPages: { instance: [page({ instanceAttributes: [{ attribute: 'x', op: 'eq' }] })] },
+      });
+    expect(bad).toThrow(/needs a value/);
+  });
+
+  it('caps how many conditions one page may carry', () => {
+    const many = Array.from({ length: 9 }, (_, i) => ({ attribute: `a${i}`, op: 'exists' as const }));
+    expect(() =>
+      layerTemplatePushSchema.parse({
+        key: 'CUSTOM_MQ',
+        alias: 'MQ',
+        components: { service: true, instances: true },
+        dashboardExtPages: { instance: [page({ instanceAttributes: many })] },
+      }),
+    ).toThrow();
+  });
+});
+
+describe('dashboardDefaultFilters — the default page narrows too', () => {
+  it('accepts a service filter under any entity scope', () => {
+    expect(
+      crossRefs(
+        tpl({
+          components: { service: true, instances: true, endpoints: true },
+          dashboardDefaultFilters: {
+            service: { serviceFilter: '/^agent::/' },
+            instance: { serviceFilter: 'broker' },
+            endpoint: { serviceFilter: 'gateway' },
+          },
+        }),
+      ),
+    ).toEqual([]);
+  });
+
+  it('accepts the instance fields under the instance scope', () => {
+    expect(
+      crossRefs(
+        tpl({
+          dashboardDefaultFilters: {
+            instance: {
+              instanceFilter: '/^broker-/',
+              instanceAttributes: [{ attribute: 'language', op: 'exists' }],
+            },
+          },
+        }),
+      ),
+    ).toEqual([]);
+  });
+
+  it('refuses the instance fields under service or endpoint', () => {
+    const issues = crossRefs(
+      tpl({
+        components: { service: true, endpoints: true },
+        dashboardDefaultFilters: {
+          service: { instanceFilter: 'x' },
+          endpoint: { instanceAttributes: [{ attribute: 'language', op: 'exists' }] },
+        },
+      }),
+    );
+    expect(issues).toContain(
+      'dashboardDefaultFilters.service.instanceFilter: only an Instance page can filter the instance list',
+    );
+    expect(issues).toContain(
+      'dashboardDefaultFilters.endpoint.instanceAttributes: only an Instance page can filter by instance attributes',
+    );
+  });
+
+  it('refuses a filter under a component that is off', () => {
+    expect(
+      crossRefs(
+        tpl({
+          components: { service: true, instances: false },
+          dashboardDefaultFilters: { instance: { serviceFilter: 'x' } },
+        }),
+      ),
+    ).toContain(
+      'dashboardDefaultFilters.instance: the instance component is off — its default page has no picker to narrow',
+    );
+  });
+
+  it('refuses a pattern that cannot compile, rather than widening the page', () => {
+    const issues = crossRefs(tpl({ dashboardDefaultFilters: { service: { serviceFilter: '/^(unclosed/' } } }));
+    expect(issues.some((i) => i.startsWith('dashboardDefaultFilters.service.serviceFilter:'))).toBe(true);
+  });
+
+  it('refuses an unknown field, like the page schema does', () => {
+    const parsed = layerTemplatePushSchema.safeParse(
+      tpl({ dashboardDefaultFilters: { service: { serviceFilter: 'a', nope: 1 } } }),
+    );
+    expect(parsed.success).toBe(false);
+  });
+
+  it('is absent from a template that declares none, byte for byte', () => {
+    const parsed = layerTemplateSchema.safeParse(tpl());
+    expect(parsed.success).toBe(true);
+    expect(parsed.success && 'dashboardDefaultFilters' in parsed.data).toBe(false);
+  });
+});
+
+describe('an extension page names the entity it lists', () => {
+  it('carries an alias through both bars', () => {
+    for (const schema of [layerTemplateSchema, layerTemplatePushSchema]) {
+      const parsed = schema.safeParse(
+        tpl({ dashboardExtPages: { service: [page({ alias: 'Providers' })] } }),
+      );
+      expect(parsed.success).toBe(true);
+      expect(parsed.success && parsed.data.dashboardExtPages?.service?.[0]?.alias).toBe('Providers');
+    }
+  });
+
+  it('is optional — a page without one falls back to the layer alias', () => {
+    expect(crossRefs(tpl({ dashboardExtPages: { service: [page()] } }))).toEqual([]);
+  });
+});
+
+describe('page id and name have a maximum length', () => {
+  it('refuses an id longer than the shared limit', () => {
+    const long = 'a'.repeat(MAX_EXT_PAGE_ID_LENGTH + 1);
+    const parsed = layerTemplatePushSchema.safeParse(
+      tpl({ dashboardExtPages: { service: [page({ id: long })] } }),
+    );
+    expect(parsed.success).toBe(false);
+  });
+
+  it('accepts one exactly at the limit', () => {
+    const at = 'a'.repeat(MAX_EXT_PAGE_ID_LENGTH);
+    expect(
+      layerTemplatePushSchema.safeParse(tpl({ dashboardExtPages: { service: [page({ id: at })] } })).success,
+    ).toBe(true);
+  });
+
+  it('refuses a name longer than the shared limit, after trimming', () => {
+    const long = `${' '.repeat(4)}${'n'.repeat(MAX_EXT_PAGE_NAME_LENGTH + 1)}`;
+    expect(
+      layerTemplatePushSchema.safeParse(tpl({ dashboardExtPages: { service: [page({ name: long })] } })).success,
+    ).toBe(false);
+    // Trimmed to the limit, the same text is fine — the bound is on the
+    // stored value, not on what was typed around it.
+    const padded = `  ${'n'.repeat(MAX_EXT_PAGE_NAME_LENGTH)}  `;
+    expect(
+      layerTemplatePushSchema.safeParse(tpl({ dashboardExtPages: { service: [page({ name: padded })] } })).success,
+    ).toBe(true);
+  });
+});
diff --git a/apps/ui/src/api/client.ts b/apps/ui/src/api/client.ts
index 028823a..d4e3e33 100644
--- a/apps/ui/src/api/client.ts
+++ b/apps/ui/src/api/client.ts
@@ -45,6 +45,7 @@ import type {
   TopologyConfig,
   TracesConfig,
   Catalog,
+  InstanceAttributePredicate,
 } from '@skywalking-horizon-ui/api-client';
 
 import { pushEvent } from '@/controls/eventLog';
@@ -293,6 +294,26 @@ export interface MeResponse {
 }
 
 /** Wire shape returned by GET /api/admin/layer-templates. */
+/** One operator-authored extension page. `id` is the route segment and the
+ *  translation-overlay key, unique within its component. */
+/** The entity narrowing a page applies. Shared by extension pages and by
+ *  each component's default page. */
+export interface AdminEntityFilter {
+  /** Narrows the service list. Legal under any entity scope. */
+  serviceFilter?: string;
+  /** Instance scope only — the same, for the instance list. */
+  instanceFilter?: string;
+  instanceAttributes?: InstanceAttributePredicate[];
+}
+
+export interface AdminExtPage extends AdminEntityFilter {
+  id: string;
+  name: string;
+  /** What this page calls the entity it lists. */
+  alias?: string;
+  widgets: DashboardWidget[];
+}
+
 export interface AdminLayerTemplate {
   key: string;
   alias?: string;
@@ -341,6 +362,16 @@ export interface AdminLayerTemplate {
   /** Per-scope widget sets (keyed by AdminScope); `widgets` is the legacy
    *  service-scope fallback. */
   dashboards?: Record<string, DashboardWidget[]>;
+  /** Additional pages for the three entity components, beyond the default
+   *  grid each keeps in `dashboards`. A sibling block, so adding pages
+   *  leaves every existing widget and translation path untouched. */
+  dashboardExtPages?: Partial<Record<'service' | 'instance' | 'endpoint', AdminExtPage[]>>;
+  /** The same narrowing for each component's default page, which has no
+   *  page object of its own to carry it. */
+  dashboardDefaultFilters?: Partial<Record<'service' | 'instance' | 'endpoint', AdminEntityFilter>>;
+  /** Operator-defined sidebar row order. Row paths, never display names.
+   *  Absent means the built-in default order. */
+  menuOrder?: string[];
   topology?: TopologyConfig;
   deployment?: DeploymentConfig;
   endpointDependency?: EndpointDependencyConfig;
diff --git a/apps/ui/src/api/scopes/configs.ts b/apps/ui/src/api/scopes/configs.ts
index 88a3eba..0047638 100644
--- a/apps/ui/src/api/scopes/configs.ts
+++ b/apps/ui/src/api/scopes/configs.ts
@@ -118,10 +118,16 @@ export interface BundleSyncStatus {
   unreadable?: UnreadableTemplateRow[];
 }
 
+/** Extension-page widget sets for one layer, keyed `<component>/<pageId>`. */
+export type BundleExtPageMap = Record<string, DashboardWidget[]>;
+
 export interface ConfigBundle {
   etag: string;
   generatedAt: number;
   layers: Record<string, BundleScopeMap>;
+  /** Absent when no layer declares extension pages, which is every
+   *  deployment running only bundled templates. */
+  layerExtPages?: Record<string, BundleExtPageMap>;
   overviews: OverviewDashboard[];
   syncStatus: BundleSyncStatus;
 }
diff --git a/apps/ui/src/api/scopes/layer.ts b/apps/ui/src/api/scopes/layer.ts
index 85680ca..a2167e3 100644
--- a/apps/ui/src/api/scopes/layer.ts
+++ b/apps/ui/src/api/scopes/layer.ts
@@ -67,8 +67,14 @@ export class LayerApi {
     );
   }
 
-  dashboardConfig(layerKey: string, scope?: string): Promise<DashboardConfig> {
-    const qs = scope ? `?scope=${encodeURIComponent(scope)}` : '';
+  /** `page` selects one of the component's extension pages; omitted means
+   *  its default grid. An id the layer doesn't declare comes back 404 — it
+   *  is never quietly answered with the default. */
+  dashboardConfig(layerKey: string, scope?: string, page?: string): Promise<DashboardConfig> {
+    const params = new URLSearchParams();
+    if (scope) params.set('scope', scope);
+    if (page) params.set('page', page);
+    const qs = params.size > 0 ? `?${params.toString()}` : '';
     return this.bff.request<DashboardConfig>(
       'GET',
       `/api/layer/${encodeURIComponent(layerKey)}/dashboard/config${qs}`,
@@ -79,6 +85,9 @@ export class LayerApi {
     layerKey: string,
     body: {
       service?: string;
+      /** Which page of `scope` the widgets came from. Absent on the
+       *  component's default grid. */
+      page?: string;
       /** Active instance — only honored when `scope === 'instance'`. */
       serviceInstance?: string;
       /** Active endpoint — only honored when `scope === 'endpoint'`. */
diff --git a/apps/ui/src/components/primitives/TypeaheadSelect.test.ts b/apps/ui/src/components/primitives/TypeaheadSelect.test.ts
new file mode 100644
index 0000000..bdb05e4
--- /dev/null
+++ b/apps/ui/src/components/primitives/TypeaheadSelect.test.ts
@@ -0,0 +1,169 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Opening and closing the picker panel.
+ *
+ * Choosing a row has to close it. A panel left open floats over whatever
+ * is beneath — on the translations page that is the preview canvas — so
+ * the next click lands on a list row instead of the thing the operator
+ * aimed at. It looks like the click did nothing.
+ */
+
+import { describe, it, expect } from 'vitest';
+import { nextTick } from 'vue';
+import { mount } from '@vue/test-utils';
+import { i18n } from '@/i18n';
+import TypeaheadSelect from './TypeaheadSelect.vue';
+
+const OPTIONS = [
+  { value: 'overview', label: 'Overview' },
+  { value: 'layer', label: 'Layer' },
+];
+
+/** The panel is teleported to <body> so no scrolling ancestor can clip
+ *  it; `stubs: { teleport: true }` renders it in place so these assertions
+ *  can still address it through the wrapper. Where it LANDS is asserted
+ *  separately, below, without the stub. */
+function open() {
+  const w = mount(TypeaheadSelect, {
+    props: { modelValue: 'overview', options: OPTIONS, ariaLabel: 'Kind' },
+    global: { plugins: [i18n], stubs: { teleport: true } },
+  });
+  return w;
+}
+
+describe('the picker panel', () => {
+  it('opens on the trigger', async () => {
+    const w = open();
+    expect(w.find('.tas__panel').exists()).toBe(false);
+    await w.find('.tas__trigger').trigger('click');
+    expect(w.find('.tas__panel').exists()).toBe(true);
+  });
+
+  it('closes when a row is chosen, and reports the choice', async () => {
+    const w = open();
+    await w.find('.tas__trigger').trigger('click');
+    const rows = w.findAll('.tas__row');
+    expect(rows).toHaveLength(2);
+    await rows[1].trigger('click');
+    expect(w.emitted('update:modelValue')?.[0]).toEqual(['layer']);
+    // The part that matters beyond the emit: nothing is left covering the
+    // page.
+    expect(w.find('.tas__panel').exists()).toBe(false);
+  });
+
+  it('cancels the click default, so a wrapping <label> cannot reopen it', async () => {
+    // Callers put this control inside a <label>. A click on a plain <li>
+    // there forwards to the label's control — the trigger — which toggles
+    // the panel straight back open. jsdom does not implement that
+    // forwarding, so the observable stand-in is that the row's click is
+    // cancelled; a real browser then has nothing to forward.
+    const w = open();
+    await w.find('.tas__trigger').trigger('click');
+    const row = w.findAll('.tas__row')[1].element;
+    const ev = new MouseEvent('click', { bubbles: true, cancelable: true });
+    row.dispatchEvent(ev);
+    await w.vm.$nextTick();
+    expect(ev.defaultPrevented).toBe(true);
+    expect(w.find('.tas__panel').exists()).toBe(false);
+  });
+
+  it('closes on Escape', async () => {
+    const w = open();
+    await w.find('.tas__trigger').trigger('click');
+    await w.find('.tas__panel').trigger('keydown', { key: 'Escape' });
+    expect(w.find('.tas__panel').exists()).toBe(false);
+  });
+
+  it('closes on a click outside', async () => {
+    const w = mount(TypeaheadSelect, {
+      props: { modelValue: 'overview', options: OPTIONS, ariaLabel: 'Kind' },
+      global: { plugins: [i18n], stubs: { teleport: true } },
+      attachTo: document.body,
+    });
+    await w.find('.tas__trigger').trigger('click');
+    expect(w.find('.tas__panel').exists()).toBe(true);
+    document.body.dispatchEvent(new MouseEvent('click', { bubbles: true }));
+    await w.vm.$nextTick();
+    expect(w.find('.tas__panel').exists()).toBe(false);
+    w.unmount();
+  });
+
+  it('stays shut when disabled', async () => {
+    const w = mount(TypeaheadSelect, {
+      props: { modelValue: 'overview', options: OPTIONS, ariaLabel: 'Kind', disabled: true },
+      global: { plugins: [i18n], stubs: { teleport: true } },
+    });
+    await w.find('.tas__trigger').trigger('click');
+    expect(w.find('.tas__panel').exists()).toBe(false);
+  });
+});
+
+/**
+ * Teleport is stubbed everywhere above, which is what makes these
+ * necessary: with the stub, every assertion in this file passes on a panel
+ * rendered inline — the exact arrangement that was clipped in production.
+ */
+describe('the panel escapes whatever is scrolling around it', () => {
+  const mountReal = () =>
+    mount(TypeaheadSelect, {
+      props: { modelValue: 'overview', options: OPTIONS, ariaLabel: 'Kind' },
+      global: { plugins: [i18n] },
+      attachTo: document.body,
+    });
+
+  it('renders in <body> rather than inside the component', async () => {
+    const w = mountReal();
+    await w.get('.tas__trigger').trigger('click');
+
+    // Not a descendant of the component: an ancestor's `overflow` can only
+    // clip what it contains, so this is the whole fix in one assertion.
+    expect(w.find('.tas__panel').exists()).toBe(false);
+    const panel = document.body.querySelector('.tas__panel');
+    expect(panel).not.toBeNull();
+    expect(w.element.contains(panel)).toBe(false);
+
+    // Placed from the trigger's rect rather than by CSS flow.
+    const style = panel!.getAttribute('style') ?? '';
+    expect(style).toMatch(/left:/);
+    expect(style).toMatch(/top:|bottom:/);
+    expect(style).toMatch(/width:/);
+
+    w.unmount();
+    expect(document.body.querySelector('.tas__panel')).toBeNull();
+  });
+
+  it('stays open when the click lands inside the teleported panel', async () => {
+    const w = mountReal();
+    await w.get('.tas__trigger').trigger('click');
+    const search = document.body.querySelector('.tas__search') as HTMLElement;
+    expect(search).not.toBeNull();
+
+    // The document-level outside-click handler no longer sees the panel as
+    // part of the component, so typing in the search box closed the list
+    // under the pointer unless the panel is excused explicitly.
+    search.dispatchEvent(new MouseEvent('click', { bubbles: true }));
+    await nextTick();
+    expect(document.body.querySelector('.tas__panel')).not.toBeNull();
+
+    document.body.dispatchEvent(new MouseEvent('click', { bubbles: true }));
+    await nextTick();
+    expect(document.body.querySelector('.tas__panel')).toBeNull();
+    w.unmount();
+  });
+});
diff --git a/apps/ui/src/components/primitives/TypeaheadSelect.vue b/apps/ui/src/components/primitives/TypeaheadSelect.vue
index 4e6a55e..52593fd 100644
--- a/apps/ui/src/components/primitives/TypeaheadSelect.vue
+++ b/apps/ui/src/components/primitives/TypeaheadSelect.vue
@@ -62,8 +62,52 @@ const open = ref(false);
 const query = ref('');
 const activeIdx = ref(0);
 const root = ref<HTMLElement | null>(null);
+const panel = ref<HTMLElement | null>(null);
 const searchEl = ref<HTMLInputElement | null>(null);
 
+/**
+ * The panel renders in a Teleport, positioned from the trigger's viewport
+ * rect. An absolutely-positioned panel is clipped by any scrolling
+ * ancestor — a modal body, a scrollable card — which left the list cut
+ * off or invisible with no way to reach it. Fixed coordinates in `body`
+ * cannot be cropped, at the cost of having to re-measure while open.
+ */
+const panelStyle = ref<Record<string, string>>({});
+const GAP = 4;
+const EDGE = 8;
+
+function place(): void {
+  const trigger = root.value?.querySelector('.tas__trigger') as HTMLElement | null;
+  if (!trigger) return;
+  const r = trigger.getBoundingClientRect();
+  const width = Math.max(r.width, props.minPanelWidth ?? 220);
+  const below = window.innerHeight - r.bottom - GAP - EDGE;
+  const above = r.top - GAP - EDGE;
+  // Flip up only when below genuinely cannot hold a usable list AND above
+  // is roomier — otherwise the panel jumps around as the list is filtered.
+  const up = below < 180 && above > below;
+  panelStyle.value = {
+    left: `${Math.max(EDGE, Math.min(r.left, window.innerWidth - width - EDGE))}px`,
+    width: `${width}px`,
+    maxHeight: `${Math.max(140, up ? above : below)}px`,
+    ...(up ? { bottom: `${window.innerHeight - r.top + GAP}px` } : { top: `${r.bottom + GAP}px` }),
+  };
+}
+
+/** Re-measure on ANY ancestor scroll (capture), not just the window's:
+ *  the trigger moves with the container it sits in, and a panel pinned to
+ *  stale coordinates detaches from it. */
+function trackTrigger(on: boolean): void {
+  const fn = on ? window.addEventListener : window.removeEventListener;
+  fn('scroll', place, true);
+  fn('resize', place);
+}
+watch(open, (v) => {
+  trackTrigger(v);
+  if (v) void nextTick(place);
+});
+onBeforeUnmount(() => trackTrigger(false));
+
 const selectedLabel = computed<string>(() => {
   const m = props.options.find((o) => o.value === props.modelValue);
   return m?.label ?? '';
@@ -153,7 +197,10 @@ function onKey(e: KeyboardEvent): void {
 
 function onDocClick(e: MouseEvent): void {
   if (!root.value) return;
-  if (!root.value.contains(e.target as Node)) open.value = false;
+  const t = e.target as Node;
+  // The panel is no longer a descendant of the root, so a click inside it
+  // has to be excused explicitly or the list closes under the pointer.
+  if (!root.value.contains(t) && !panel.value?.contains(t)) open.value = false;
 }
 document.addEventListener('click', onDocClick);
 onBeforeUnmount(() => document.removeEventListener('click', onDocClick));
@@ -175,58 +222,67 @@ onBeforeUnmount(() => document.removeEventListener('click', onDocClick));
       </span>
       <span class="tas__caret" aria-hidden="true">▾</span>
     </button>
-    <div
-      v-if="open"
-      class="tas__panel"
-      :style="{ minWidth: (minPanelWidth ?? 220) + 'px' }"
-      @keydown="onKey"
-    >
-      <input
-        ref="searchEl"
-        v-model="query"
-        type="text"
-        class="tas__search"
-        :placeholder="t('Filter…')"
+    <Teleport to="body">
+      <div
+        v-if="open"
+        ref="panel"
+        class="tas__panel"
+        :style="panelStyle"
         @keydown="onKey"
-      />
-      <!-- Optional filter row, directly under the search — the same shape the
-           layer-template picker uses. Kept a slot so the primitive stays
-           feature-agnostic: it provides the place, the caller provides the
-           predicate and does its own filtering of `options`. -->
-      <div v-if="$slots.filters" class="tas__filters">
-        <slot name="filters" />
+      >
+        <input
+          ref="searchEl"
+          v-model="query"
+          type="text"
+          class="tas__search"
+          :placeholder="t('Filter…')"
+          @keydown="onKey"
+        />
+        <!-- Optional filter row, directly under the search — the same shape the
+             layer-template picker uses. Kept a slot so the primitive stays
+             feature-agnostic: it provides the place, the caller provides the
+             predicate and does its own filtering of `options`. -->
+        <div v-if="$slots.filters" class="tas__filters">
+          <slot name="filters" />
+        </div>
+        <!-- `.prevent` on the row, not decoration: callers wrap this control
+             in a <label>, and a click on a plain <li> inside a label runs the
+             label's activation behaviour — a synthetic click on its labeled
+             control, which here is the trigger. The panel closed on `pick`
+             and then reopened, so choosing an option left a list floating
+             over the page and the next click landed on a row. -->
+        <ul class="tas__list" role="listbox">
+          <li v-if="filtered.length === 0" class="tas__empty">{{ t('No matches') }}</li>
+          <template v-for="g in grouped" :key="g.name || '_'">
+            <li v-if="showGroups && g.name" class="tas__group">{{ g.name }}</li>
+            <li
+              v-for="{ o, i } in g.rows"
+              :key="String(o.value)"
+              class="tas__row"
+              role="option"
+              :aria-selected="o.value === modelValue"
+              :class="{ 'is-active': i === activeIdx, 'is-selected': o.value === modelValue }"
+              @mouseenter="activeIdx = i"
+              @click.prevent="pick(o)"
+            >
+              <span class="tas__row-label">{{ o.label }}</span>
+              <span
+                v-if="o.hint"
+                class="tas__row-hint"
+                :class="{ 'tas__row-hint--accent': o.hintTone === 'accent' }"
+              >{{ o.hint }}</span>
+            </li>
+          </template>
+        </ul>
+        <!-- Never a silent cut: name what is held back and how to reach it. -->
+        <div v-if="heldBack" class="tas__more">
+          <span>{{ t('Showing {shown} of {total}', { shown: visible.length, total: filtered.length }) }}</span>
+          <button type="button" class="tas__more-btn" @mousedown.prevent="page += 1">
+            {{ t('Show more') }}
+          </button>
+        </div>
       </div>
-      <ul class="tas__list" role="listbox">
-        <li v-if="filtered.length === 0" class="tas__empty">{{ t('No matches') }}</li>
-        <template v-for="g in grouped" :key="g.name || '_'">
-          <li v-if="showGroups && g.name" class="tas__group">{{ g.name }}</li>
-          <li
-            v-for="{ o, i } in g.rows"
-            :key="String(o.value)"
-            class="tas__row"
-            role="option"
-            :aria-selected="o.value === modelValue"
-            :class="{ 'is-active': i === activeIdx, 'is-selected': o.value === modelValue }"
-            @mouseenter="activeIdx = i"
-            @click="pick(o)"
-          >
-            <span class="tas__row-label">{{ o.label }}</span>
-            <span
-              v-if="o.hint"
-              class="tas__row-hint"
-              :class="{ 'tas__row-hint--accent': o.hintTone === 'accent' }"
-            >{{ o.hint }}</span>
-          </li>
-        </template>
-      </ul>
-      <!-- Never a silent cut: name what is held back and how to reach it. -->
-      <div v-if="heldBack" class="tas__more">
-        <span>{{ t('Showing {shown} of {total}', { shown: visible.length, total: filtered.length }) }}</span>
-        <button type="button" class="tas__more-btn" @mousedown.prevent="page += 1">
-          {{ t('Show more') }}
-        </button>
-      </div>
-    </div>
+    </Teleport>
   </div>
 </template>
 
@@ -260,10 +316,11 @@ onBeforeUnmount(() => document.removeEventListener('click', onDocClick));
 .tas__caret { font-size: 10px; color: var(--sw-fg-3); flex: 0 0 auto; }
 
 .tas__panel {
-  position: absolute;
-  top: calc(100% + 4px);
-  left: 0;
-  z-index: 50;
+  position: fixed;
+  /* Above the modal (1000): the panel exists to be usable from inside one. */
+  z-index: 1200;
+  display: flex;
+  flex-direction: column;
   background: var(--sw-bg-1);
   border: 1px solid var(--sw-line-2);
   border-radius: 4px;
@@ -281,7 +338,7 @@ onBeforeUnmount(() => document.removeEventListener('click', onDocClick));
 .tas__search:focus { outline: none; border-color: var(--sw-accent); }
 .tas__list {
   list-style: none; margin: 0; padding: 0;
-  max-height: 320px; overflow-y: auto;
+  flex: 1; min-height: 0; overflow-y: auto;
 }
 .tas__empty { padding: 10px 8px; font-size: 12px; color: var(--sw-fg-3); text-align: center; }
 .tas__group {
diff --git a/apps/ui/src/controls/configBundle.ts b/apps/ui/src/controls/configBundle.ts
index 5af2f61..41e6f49 100644
--- a/apps/ui/src/controls/configBundle.ts
+++ b/apps/ui/src/controls/configBundle.ts
@@ -87,11 +87,14 @@ function preferParam(): 'local' | 'remote' {
   }
 }
 
-// v2 (2026-05) added `syncStatus`; v3 added `syncStatus.mode` (live/readonly).
+// v2 (2026-05) added `syncStatus`; v3 added `syncStatus.mode` (live/readonly);
+// v4 added `layerExtPages`. The bump matters even though the field is
+// optional: a cached v3 bundle has no pages, so a returning operator would
+// paint an extension page as empty before the fetch lands.
 // A returning operator's stale cache lacking `mode` would read as live even
 // when the BFF is in readonly — bump the key so older shapes are discarded and
 // the next fetch repopulates.
-const STORAGE_KEY = 'horizon:configBundle:v3';
+const STORAGE_KEY = 'horizon:configBundle:v4';
 const state = ref<ConfigBundle | null>(null);
 let loadPromise: Promise<void> | null = null;
 
@@ -110,7 +113,7 @@ function readStorage(): ConfigBundle | null {
     const raw = localStorage.getItem(STORAGE_KEY);
     if (!raw) return null;
     const parsed = JSON.parse(raw) as ConfigBundle;
-    // Strict shape check: a v3 bundle MUST carry syncStatus with a mode. Older
+    // Strict shape check: a v4 bundle MUST carry syncStatus with a mode. Older
     // shapes are silently discarded — the next bundle fetch repopulates.
     if (!parsed?.etag || !parsed?.layers || !parsed?.syncStatus?.mode) return null;
     return parsed;
@@ -235,21 +238,61 @@ export async function setTemplateRenderMode(mode: 'local' | 'remote'): Promise<v
   await refreshConfigBundle();
 }
 
-/** Sync lookup. Returns null when the bundle hasn't loaded yet OR
- *  when the (layer, scope) pair has no widgets configured. */
+/**
+ * Sync lookup of one page's widgets. `page` selects an extension page;
+ * omitted means the component's default grid.
+ *
+ * `null` means "nothing here" — the bundle hasn't loaded, or this
+ * (layer, scope, page) has no widgets — and the caller answers it with a
+ * network fetch. That is what turns an unknown page into a 404 instead of
+ * a silent fall back to the component's default grid.
+ */
+/** A page the PREVIEWED draft does not declare. Distinct from `null`
+ *  ("not in the bundle, ask the network") and from `[]` ("a real page with
+ *  no widgets"). */
+export const MISSING_PAGE: DashboardWidget[] & { __missing?: true } = Object.freeze(
+  Object.assign([] as DashboardWidget[], { __missing: true as const }),
+);
+
+export function isMissingPage(v: unknown): boolean {
+  return Array.isArray(v) && (v as { __missing?: true }).__missing === true;
+}
+
 export function getDashboardConfig(
   layerKey: string,
   scope: 'service' | 'instance' | 'endpoint',
+  page?: string,
 ): DashboardWidget[] | null {
   // In preview mode, overlay the previewed source's content for this layer.
-  type LayerContent = { dashboards?: Record<string, DashboardWidget[]>; widgets?: DashboardWidget[] };
+  type LayerContent = {
+    dashboards?: Record<string, DashboardWidget[]>;
+    dashboardExtPages?: Record<string, Array<{ id: string; widgets: DashboardWidget[] }>>;
+    widgets?: DashboardWidget[];
+  };
   const draft = previewContentFor<LayerContent>(layerEditName(layerKey));
   if (draft) {
-    const d = draft.dashboards?.[scope] ?? (scope === 'service' ? draft.widgets : undefined);
-    if (d !== undefined) return d;
+    if (page) {
+      const p = draft.dashboardExtPages?.[scope]?.find((x) => x.id === page);
+      if (p) return p.widgets;
+      // The draft is a FULL template copy, so it is authoritative about
+      // which pages exist — including when it declares none. Gating this
+      // on `dashboardExtPages` being present missed the case that matters
+      // most: deleting the LAST page removes the property entirely, and
+      // the lookup then fell through and resurrected the published page.
+      //
+      // `MISSING_PAGE` rather than `[]`: an empty array is a real page
+      // with no widgets, which renders as a blank dashboard instead of
+      // not-found. `null` would be wrong too — that means "ask the
+      // network", which holds the copy the operator just deleted.
+      return MISSING_PAGE;
+    } else {
+      const d = draft.dashboards?.[scope] ?? (scope === 'service' ? draft.widgets : undefined);
+      if (d !== undefined) return d;
+    }
   }
   const b = state.value;
   if (!b) return null;
+  if (page) return b.layerExtPages?.[layerKey.toLowerCase()]?.[`${scope}/${page}`] ?? null;
   const layer = b.layers[layerKey.toLowerCase()] as BundleScopeMap | undefined;
   return layer?.[scope] ?? null;
 }
diff --git a/apps/ui/src/controls/configBundlePages.test.ts b/apps/ui/src/controls/configBundlePages.test.ts
new file mode 100644
index 0000000..54bc920
--- /dev/null
+++ b/apps/ui/src/controls/configBundlePages.test.ts
@@ -0,0 +1,136 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Reading an extension page's widgets out of the config bundle.
+ *
+ * The property that matters is what a MISS returns: `null`, so the caller
+ * falls through to the network and gets a 404 for a page that does not
+ * exist. Returning the component's default grid instead would render real
+ * widgets under a URL that promised different ones.
+ */
+
+import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
+import { bff } from '@/api/client';
+import { getDashboardConfig, isMissingPage, refreshConfigBundle } from '@/controls/configBundle';
+import { setPreviewMode } from '@/controls/previewMode';
+import { usePreviewOverride } from '@/controls/previewOverride';
+import type { ConfigBundle } from '@/api/scopes/configs';
+
+const w = (id: string) => ({ id, title: id, type: 'line' as const, expressions: ['x'] });
+
+const BUNDLE = {
+  etag: 'W/"1"',
+  generatedAt: 0,
+  layers: { custom_mq: { service: [w('svc-default')], instance: [w('inst-default')] } },
+  layerExtPages: {
+    custom_mq: {
+      'service/resource': [w('res-a'), w('res-b')],
+      'instance/runtime': [w('rt-a')],
+    },
+  },
+  overviews: [],
+  syncStatus: { mode: 'live', unreachable: false, lastSuccessfulSyncAt: null },
+} as unknown as ConfigBundle;
+
+/** Load a bundle through the real path — the module keeps its state
+ *  private, and a test-only setter would prove less than the code that
+ *  actually runs. */
+async function load(bundle: ConfigBundle): Promise<void> {
+  localStorage.clear();
+  vi.spyOn(bff.configs, 'bundle').mockResolvedValue(bundle);
+  await refreshConfigBundle({ force: true });
+}
+
+describe('getDashboardConfig — extension pages', () => {
+  beforeEach(async () => {
+    await load(BUNDLE);
+  });
+  afterEach(() => {
+    vi.restoreAllMocks();
+    localStorage.clear();
+  });
+
+  it('returns the component default when no page is asked for', () => {
+    expect(getDashboardConfig('custom_mq', 'service')?.map((x) => x.id)).toEqual(['svc-default']);
+  });
+
+  it('returns a named page from its own key', () => {
+    expect(getDashboardConfig('custom_mq', 'service', 'resource')?.map((x) => x.id)).toEqual(['res-a', 'res-b']);
+    expect(getDashboardConfig('custom_mq', 'instance', 'runtime')?.map((x) => x.id)).toEqual(['rt-a']);
+  });
+
+  it('misses — never falls back to the default grid — for an unknown page', () => {
+    expect(getDashboardConfig('custom_mq', 'service', 'nope')).toBeNull();
+  });
+
+  it('keys pages by component, so one page id cannot answer for another', () => {
+    // `runtime` exists under instance only.
+    expect(getDashboardConfig('custom_mq', 'service', 'runtime')).toBeNull();
+    expect(getDashboardConfig('custom_mq', 'instance', 'resource')).toBeNull();
+  });
+
+  it('misses for a layer that declares no pages at all', () => {
+    expect(getDashboardConfig('general', 'service', 'resource')).toBeNull();
+  });
+
+  it('does not answer a draft-deleted page from the published bundle', async () => {
+    // Preview of a draft that declares pages but not this one: the operator
+    // deleted it, and rendering its published widgets would say the
+    // deletion had not happened.
+    const override = usePreviewOverride();
+    override.set('horizon.layer.CUSTOM_MQ', {
+      key: 'CUSTOM_MQ',
+      dashboardExtPages: { service: [{ id: 'kept', name: 'Kept', widgets: [w('k-a')] }] },
+    });
+    setPreviewMode(true, 'remote');
+    try {
+      expect(getDashboardConfig('custom_mq', 'service', 'kept')?.map((x) => x.id)).toEqual(['k-a']);
+      // `resource` IS in the published bundle — and must not answer here.
+      // MISSING_PAGE, not `[]`: an empty array is a real page with no
+      // widgets, which renders as a blank dashboard rather than not-found.
+      expect(isMissingPage(getDashboardConfig('custom_mq', 'service', 'resource'))).toBe(true);
+    } finally {
+      setPreviewMode(false);
+      override.clear('horizon.layer.CUSTOM_MQ');
+    }
+  });
+
+  it('does not resurrect a page when the LAST one is deleted', async () => {
+    // Deleting the final page removes `dashboardExtPages` entirely, so a
+    // draft with no pages at all is the case that matters most — and the
+    // one an "if it declares pages" guard misses.
+    const override = usePreviewOverride();
+    override.set('horizon.layer.CUSTOM_MQ', { key: 'CUSTOM_MQ' });
+    setPreviewMode(true, 'remote');
+    try {
+      expect(isMissingPage(getDashboardConfig('custom_mq', 'service', 'resource'))).toBe(true);
+      // The component's DEFAULT grid still comes from the draft/published
+      // pair as before — only pages are affected.
+      expect(getDashboardConfig('custom_mq', 'service')?.map((x) => x.id)).toEqual(['svc-default']);
+    } finally {
+      setPreviewMode(false);
+      override.clear('horizon.layer.CUSTOM_MQ');
+    }
+  });
+
+  it('reads a bundle with no layerExtPages block without throwing', async () => {
+    await load({ ...BUNDLE, layerExtPages: undefined });
+    expect(getDashboardConfig('custom_mq', 'service')?.map((x) => x.id)).toEqual(['svc-default']);
+    expect(getDashboardConfig('custom_mq', 'service', 'resource')).toBeNull();
+  });
+});
diff --git a/apps/ui/src/controls/localTemplateEdits.ts b/apps/ui/src/controls/localTemplateEdits.ts
index 041df09..3388c6a 100644
--- a/apps/ui/src/controls/localTemplateEdits.ts
+++ b/apps/ui/src/controls/localTemplateEdits.ts
@@ -64,6 +64,12 @@ function persist(): void {
 export function layerEditName(key: string): string {
   return `horizon.layer.${key.toUpperCase()}`;
 }
+/** The inverse of {@link layerEditName} — `null` for a name of another
+ *  kind, so a caller iterating every stored row can filter by it. */
+export function layerKeyFromEditName(name: string): string | null {
+  const prefix = 'horizon.layer.';
+  return name.startsWith(prefix) && name.length > prefix.length ? name.slice(prefix.length) : null;
+}
 export function overviewEditName(id: string): string {
   return `horizon.overview.${id}`;
 }
diff --git a/apps/ui/src/features/admin/_shared/LayerDashboardCanvas.vue b/apps/ui/src/features/admin/_shared/LayerDashboardCanvas.vue
index b6983cc..6bbf873 100644
--- a/apps/ui/src/features/admin/_shared/LayerDashboardCanvas.vue
+++ b/apps/ui/src/features/admin/_shared/LayerDashboardCanvas.vue
@@ -48,6 +48,10 @@ const { t } = useI18n({ useScope: 'global' });
 const props = defineProps<{
   template: AdminLayerTemplate;
   scope: AdminScope;
+  /** Which page of `scope` to preview — `null` is the component's default
+   *  grid. Without it the canvas always drew the default, so an extension
+   *  page's widgets could not be clicked to translate them. */
+  page?: string | null;
   /** Selected widget id; the matching cell gets the accent outline. */
   selectedWidgetId?: string | null;
 }>();
@@ -55,10 +59,15 @@ const props = defineProps<{
 const emit = defineEmits<{
   'select-widget': [payload: { widget: DashboardWidget; idx: number; el: HTMLElement; event: MouseEvent }];
   'select-header': [payload: { el: HTMLElement; event: MouseEvent }];
+  'select-page': [payload: { el: HTMLElement; event: MouseEvent }];
 }>();
 
 const widgets = computed<DashboardWidget[]>(() => {
   const tpl = props.template as AdminLayerTemplate & { dashboards?: Record<string, DashboardWidget[]> };
+  if (props.page) {
+    const scope = props.scope as 'service' | 'instance' | 'endpoint';
+    return tpl.dashboardExtPages?.[scope]?.find((p) => p.id === props.page)?.widgets ?? [];
+  }
   if (tpl.dashboards?.[props.scope]) return tpl.dashboards[props.scope];
   if (props.scope === 'service' && tpl.widgets) return tpl.widgets;
   return [];
@@ -81,6 +90,19 @@ function onCellClick(e: MouseEvent, w: DashboardWidget, i: number): void {
 function onHeaderClick(e: MouseEvent): void {
   emit('select-header', { el: e.currentTarget as HTMLElement, event: e });
 }
+
+function onPageClick(e: MouseEvent): void {
+  e.stopPropagation();
+  emit('select-page', { el: e.currentTarget as HTMLElement, event: e });
+}
+
+/** The selected page's own record, so its name can be shown and clicked
+ *  as itself rather than through the layer header. */
+const activePageRef = computed(() => {
+  if (!props.page) return null;
+  const scope = props.scope as 'service' | 'instance' | 'endpoint';
+  return props.template.dashboardExtPages?.[scope]?.find((p) => p.id === props.page) ?? null;
+});
 </script>
 
 <template>
@@ -94,6 +116,17 @@ function onHeaderClick(e: MouseEvent): void {
       {{ t("Click to translate the layer's display name + term aliases (services / instances / endpoints).") }}
     </p>
   </header>
+
+  <!-- The page's own name gets its own target. Folding it into the layer
+       header meant clicking a control that says it edits the LAYER, and
+       editing something else. -->
+  <header v-if="activePageRef" class="ldc-page-head" @click="onPageClick">
+    <div class="ldc-layer-head-row">
+      <h3 class="ldc-layer-alias">{{ activePageRef.name }}</h3>
+      <code class="ldc-layer-key">{{ activePageRef.id }}</code>
+    </div>
+    <p class="ldc-layer-hint">{{ t("Click to translate this page's name — the row operators see in the sidebar.") }}</p>
+  </header>
   <div class="ldc-canvas">
     <div v-if="widgets.length === 0" class="ldc-empty">
       {{ t('No widgets in this scope.') }}
@@ -151,6 +184,15 @@ function onHeaderClick(e: MouseEvent): void {
 </template>
 
 <style scoped>
+.ldc-page-head {
+  cursor: pointer;
+  padding: 8px 10px;
+  border-bottom: 1px solid var(--sw-line-2);
+  border-left: 2px solid var(--sw-accent);
+}
+.ldc-page-head:hover {
+  background: rgba(255, 255, 255, 0.03);
+}
 .ldc-layer-head {
   margin: 8px 12px 0;
   padding: 8px 12px;
diff --git a/apps/ui/src/features/admin/_shared/translatableFields.extPages.test.ts b/apps/ui/src/features/admin/_shared/translatableFields.extPages.test.ts
new file mode 100644
index 0000000..4ea176b
--- /dev/null
+++ b/apps/ui/src/features/admin/_shared/translatableFields.extPages.test.ts
@@ -0,0 +1,129 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * What the translation editor offers for an extension page.
+ *
+ * The walker is field-name driven, so pages needed no new rule — but that
+ * is worth pinning rather than assuming, because the allowlist is also
+ * what the editor REBUILDS overlays from. A field it fails to enumerate is
+ * not merely hidden from the translator: publishing would delete whatever
+ * the seeder had put there.
+ */
+
+import { describe, it, expect } from 'vitest';
+import { walkTranslatable } from './translatableFields';
+
+const w = (id: string, title: string) => ({ id, type: 'line', title, expressions: ['x'] });
+
+const TEMPLATE = {
+  key: 'CUSTOM_MQ',
+  alias: 'Custom MQ',
+  slots: { services: 'Queues' },
+  dashboards: { service: [w('svc-a', 'Throughput')] },
+  dashboardExtPages: {
+    service: [
+      { id: 'resource', name: 'Resource usage', serviceFilter: '/^agent::/', widgets: [w('res-a', 'CPU')] },
+    ],
+    instance: [{ id: 'runtime', name: 'Runtime', widgets: [w('rt-a', 'Heap')] }],
+  },
+};
+
+const paths = (src: unknown) => walkTranslatable(src).map((f) => f.path);
+
+describe('walkTranslatable — extension pages', () => {
+  it("offers a page's display name", () => {
+    expect(paths(TEMPLATE)).toContain('dashboardExtPages.service[0].name');
+    expect(paths(TEMPLATE)).toContain('dashboardExtPages.instance[0].name');
+  });
+
+  it("offers a page widget's title", () => {
+    expect(paths(TEMPLATE)).toContain('dashboardExtPages.service[0].widgets[0].title');
+  });
+
+  it('never offers the page id — it is the matching key, not prose', () => {
+    expect(paths(TEMPLATE).some((p) => p.endsWith('.id'))).toBe(false);
+  });
+
+  it('never offers the service filter — it is a regex over OAP data', () => {
+    expect(paths(TEMPLATE).some((p) => p.includes('serviceFilter'))).toBe(false);
+  });
+
+  it('groups page fields under their own section, apart from the default grid', () => {
+    const byPath = new Map(walkTranslatable(TEMPLATE).map((f) => [f.path, f.section]));
+    expect(byPath.get('dashboardExtPages.service[0].name')).not.toBe(
+      byPath.get('dashboards.service[0].title'),
+    );
+  });
+
+  it('stops offering a deleted page, which is what prunes its overlay', () => {
+    // The editor rebuilds every overlay from this enumeration, so a page
+    // that is gone from the source drops out of the next publish. No
+    // separate cleanup step, and no orphan left behind to resurrect if the
+    // id is ever reused.
+    const without = {
+      ...TEMPLATE,
+      dashboardExtPages: { instance: TEMPLATE.dashboardExtPages.instance },
+    };
+    const after = paths(without);
+    expect(after.some((p) => p.startsWith('dashboardExtPages.service'))).toBe(false);
+    expect(after).toContain('dashboardExtPages.instance[0].name');
+    // The component's own grid is untouched by the page's removal.
+    expect(after).toContain('dashboards.service[0].title');
+  });
+
+  it('offers nothing extra for a template with no pages', () => {
+    const plain = { key: 'X', dashboards: { service: [w('a', 'T')] } };
+    expect(paths(plain).some((p) => p.includes('dashboardExtPages'))).toBe(false);
+  });
+});
+
+/**
+ * The paths the translation editor addresses a page's fields by.
+ *
+ * The editor builds these by hand from the selected scope + page, then
+ * reads and writes the overlay at them. A wrong prefix does not fail — it
+ * silently edits a different widget, or writes a field the merger later
+ * ignores, so the operator's typing disappears on publish.
+ */
+describe('extension-page field addressing', () => {
+  const fields = walkTranslatable(TEMPLATE).map((f) => f.path);
+
+  it('addresses a page widget by page INDEX and widget index', () => {
+    // The editor composes `dashboardExtPages.<scope>[pageIdx].widgets[i]`;
+    // this is the shape the walker actually yields.
+    expect(fields).toContain('dashboardExtPages.service[0].widgets[0].title');
+  });
+
+  it('addresses the page name at the page prefix, outside its widgets', () => {
+    const prefix = 'dashboardExtPages.service[0]';
+    const own = fields.filter((p) => p.startsWith(prefix) && !p.startsWith(`${prefix}.widgets[`));
+    expect(own).toEqual([`${prefix}.name`]);
+  });
+
+  it('keeps each component in its own numbering', () => {
+    // Instance pages start at [0] again — an editor that used a global
+    // page index would address the wrong component's page.
+    expect(fields).toContain('dashboardExtPages.instance[0].name');
+  });
+
+  it('never mixes page fields into the default grid prefix', () => {
+    const grid = fields.filter((p) => p.startsWith('dashboards.service'));
+    expect(grid.every((p) => !p.includes('dashboardExtPages'))).toBe(true);
+    expect(grid).toContain('dashboards.service[0].title');
+  });
+});
diff --git a/apps/ui/src/features/admin/_shared/translatableFields.ts b/apps/ui/src/features/admin/_shared/translatableFields.ts
index 173b04b..46bb2df 100644
--- a/apps/ui/src/features/admin/_shared/translatableFields.ts
+++ b/apps/ui/src/features/admin/_shared/translatableFields.ts
@@ -29,8 +29,9 @@
  *  the seeder had put there.
  *
  *  Two entries are easy to mistake for non-translatable:
- *  `name` is a `tab` widget's panel label (`tabs[].name`), the only
- *  `name` in a template; and `naming.alias` is the dimension caption
+ *  `name` covers a `tab` widget's panel label (`tabs[].name`) and an
+ *  extension page's display name (`dashboardExtPages.<scope>[].name`);
+ *  and `naming.alias` is the dimension caption
  *  ("namespace", "tenant") the topology and 3D map print beside a
  *  cluster — the naming rule's capture groups are `displayGroup` /
  *  `valueGroup`, which are absent here and so never offered. */
diff --git a/apps/ui/src/features/admin/layer-templates/DependencyConfigSection.vue b/apps/ui/src/features/admin/layer-templates/DependencyConfigSection.vue
index d0a9dd2..c4b9c79 100644
--- a/apps/ui/src/features/admin/layer-templates/DependencyConfigSection.vue
+++ b/apps/ui/src/features/admin/layer-templates/DependencyConfigSection.vue
@@ -82,7 +82,12 @@ function remove(list: TopologyMetricDef[], i: number): void {
     <div class="naming-prefix-row">
       <label class="comp-toggle" :class="{ on: showGroup }">
         <input type="checkbox" :checked="showGroup" @change="toggleShowGroup" />
-        <span class="comp-label">{{ t('Show') }} <code>&lt;group&gt;::</code> {{ t('as a chip in the node panel') }}</span>
+        <!-- One key, not three fragments: ja and ko put the prefix and the
+             verb in a different order, which a split sentence cannot express
+             and which left `Show` translated as a mid-sentence clause. -->
+        <i18n-t keypath="Show {prefix} as a chip in the node panel" tag="span" class="comp-label" scope="global">
+          <template #prefix><code>&lt;group&gt;::</code></template>
+        </i18n-t>
       </label>
       <span class="naming-prefix-hint">{{ t("Same semantics as the topology view's flag.") }}</span>
     </div>
diff --git a/apps/ui/src/features/admin/layer-templates/LayerDashboardsAdmin.vue b/apps/ui/src/features/admin/layer-templates/LayerDashboardsAdmin.vue
index a72846f..731d017 100644
--- a/apps/ui/src/features/admin/layer-templates/LayerDashboardsAdmin.vue
+++ b/apps/ui/src/features/admin/layer-templates/LayerDashboardsAdmin.vue
@@ -32,7 +32,7 @@
 <script setup lang="ts">
 import { computed, ref, watch, nextTick } from 'vue';
 import type { AdminLayerTemplate } from '@/api/client';
-import type { DashboardWidget } from '@skywalking-horizon-ui/api-client';
+import type { DashboardWidget, InstanceAttributePredicate } from '@skywalking-horizon-ui/api-client';
 
 import SyncStatusBanner from '@/features/admin/_shared/SyncStatusBanner.vue';
 import Modal from '@/features/operate/_shared/Modal.vue';
@@ -46,6 +46,15 @@ import ServiceListMetricsEditor from './ServiceListMetricsEditor.vue';
 import LayerBrowseRail from './LayerBrowseRail.vue';
 import LayerHeaderBar from './LayerHeaderBar.vue';
 import ScopeTabsBar from './ScopeTabsBar.vue';
+import PageSelectorBar from './PageSelectorBar.vue';
+import PageEntityFilter from './PageEntityFilter.vue';
+import { useExtPages, isPageableScope } from './useExtPages';
+import {
+  componentOwnedCount,
+  disableEntityComponent,
+  type EntityScope,
+} from './componentDisable';
+import { useLayerServices } from '@/layer/useLayerServices';
 import WidgetEditorCanvas from './WidgetEditorCanvas.vue';
 import {
   type AdminScope,
@@ -106,12 +115,186 @@ const {
   confirmLabel,
   confirmIsDanger,
   runConfirm,
+  askConfirm,
   askDeleteLayer,
   askReactivateLayer,
+  activePage,
 } = useLayerTemplateStore();
 
 const activeScopeRuntimeOnly = computed(() => RUNTIME_ONLY_SCOPES.has(activeScope.value));
 
+const readOnly = computed(() => sync.readOnly.value);
+
+const pageableScope = computed(() => isPageableScope(activeScope.value));
+/** Every entity scope narrows the SERVICE list; the mode names the
+ *  second list previewed beneath it. `null` hides the zone. */
+const filterMode = computed<'service' | 'instance' | 'endpoint' | null>(() =>
+  activeScope.value === 'instance'
+    ? 'instance'
+    : activeScope.value === 'endpoint'
+      ? 'endpoint'
+      : activeScope.value === 'service'
+        ? 'service'
+        : null,
+);
+// Gated on `filterMode`, not a second scope list: the zone consuming the
+// roster is gated on it too, and drift leaves a filter that can be
+// authored but never checked. Failure is a missing count, not a block.
+const { services: layerServices } = useLayerServices(
+  computed(() => (filterMode.value ? selectedKey.value : '')),
+  { rideTicker: false },
+);
+/** The filter being edited: an extension page's, or — with DEFAULT
+ *  selected — the component's own. Both narrow the same pickers; the
+ *  default page is only special in that it cannot be renamed or removed. */
+const activeFilter = computed(() =>
+  activePage.value
+    ? (extPages.pages.value.find((p) => p.id === activePage.value) ?? null)
+    : extPages.defaultFilter.value ?? {},
+);
+const extPages = useExtPages(selectedTpl, computed(() => activeScope.value as string), activePage);
+
+/** Extension pages only: the DEFAULT page is named by the layer's own
+ *  Menu labels, so it has no alias of its own to edit. */
+const activePageAlias = computed(() =>
+  activePage.value ? extPages.pages.value.find((p) => p.id === activePage.value)?.alias : undefined,
+);
+
+/** One writer for both targets, so the two cannot drift apart. */
+function writeFilter(which: 'service' | 'instance', value: string): void {
+  const id = activePage.value;
+  if (id) extPages.setEntityFilter(which, id, value);
+  else extPages.setDefaultEntityFilter(which, value);
+}
+function writeAttributes(attributes: InstanceAttributePredicate[]): void {
+  const id = activePage.value;
+  if (id) extPages.setInstanceAttributes(id, attributes);
+  else extPages.setDefaultInstanceAttributes(attributes);
+}
+
+/** Component turned off → its extension pages go with it. Silent by
+ *  design: disabling the component is already the destructive gesture the
+ *  operator confirmed, and its own dashboard grid is dropped the same way. */
+const COMPONENT_TO_PAGEABLE_SCOPE: Record<string, string> = {
+  service: 'service',
+  instances: 'instance',
+  endpoints: 'endpoint',
+};
+
+/**
+ * Switching an entity component off destroys everything only that
+ * component could reach — its widget grid, its extension pages and their
+ * widgets, and its rows in a custom menu order. It asks first, and names
+ * what goes, because none of it is visible again once the component is
+ * off and none of it survives the next save.
+ *
+ * Translations are NOT touched, and do not go on their own: a push is
+ * blocked while a language carries entries the template no longer has,
+ * until they are removed on the Translations page. The confirmation says
+ * so rather than implying they clean themselves up.
+ */
+/** Non-entity components that own a configuration block — the MQE an
+ *  operator tuned for that one view. It is as unreachable as a widget
+ *  grid once the component is off, and it would come back unannounced if
+ *  the component were re-enabled later. */
+const COMPONENT_TO_OWNED_BLOCK: Record<string, 'topology' | 'deployment' | 'endpointDependency'> = {
+  topology: 'topology',
+  deployment: 'deployment',
+  endpointDependency: 'endpointDependency',
+};
+/** The label the Components list shows, so the confirmation names the
+ *  control the operator just clicked. */
+const COMPONENT_LABEL: Record<string, () => string> = {
+  topology: () => t('Topology'),
+  deployment: () => t('Deployment'),
+  endpointDependency: () => t('API dependency'),
+};
+const componentLabel = (key: string): string => COMPONENT_LABEL[key]?.() ?? key;
+
+function onConfirmDisable(key: string): void {
+  const tpl = selectedTpl.value;
+  const block = COMPONENT_TO_OWNED_BLOCK[key];
+  if (tpl && block) {
+    const has = (tpl as Record<string, unknown>)[block] !== undefined;
+    const off = (): void => {
+      (tpl.components as Record<string, boolean | undefined>)[key] = false;
+      delete (tpl as Record<string, unknown>)[block];
+    };
+    // Nothing configured yet — no point asking about deleting nothing.
+    // The menu-order rows go with it either way, pruned by the editor
+    // when it sees the component list change.
+    if (!has) return off();
+    askConfirm({
+      title: t('Turn off {component}?', { component: componentLabel(key) }),
+      message: t(
+        'This removes the {component} configuration this layer carries, and its row in the menu order. This only changes your draft until you push.',
+        { component: componentLabel(key) },
+      ),
+      label: t('Turn off and delete'),
+      run: off,
+    });
+    return;
+  }
+  const scope = COMPONENT_TO_PAGEABLE_SCOPE[key];
+  if (!tpl || !scope) return;
+  // The legacy flat list IS the service grid for a template that never
+  // split, so counting only `dashboards` let it be deleted without ever
+  // being mentioned in the confirmation.
+  const owned = componentOwnedCount(tpl, scope as EntityScope);
+  const { grid, pageWidgets } = owned;
+  const pages = tpl.dashboardExtPages?.[scope as EntityScope] ?? [];
+  // Component-owned settings that are not widgets. Counted, or disabling a
+  // component whose ONLY configuration is one of these takes the
+  // "nothing configured" path and deletes it without asking.
+  const ownedSettings =
+    (scope === 'instance' && (tpl as { instances?: unknown }).instances ? 1 : 0) +
+    // The default page's filter is owned by this component too, and the
+    // publish validator refuses one under a component that is off — so
+    // leaving it behind builds a draft that cannot be pushed.
+    (tpl.dashboardDefaultFilters?.[scope as 'service' | 'instance' | 'endpoint'] ? 1 : 0);
+
+  const disable = (): void => {
+    disableEntityComponent(tpl, key, scope as EntityScope);
+    if (activeScope.value === scope) activeScope.value = visibleScopes.value[0] ?? 'service';
+  };
+
+  // Nothing configured yet — no point asking about deleting nothing.
+  if (grid === 0 && pages.length === 0 && ownedSettings === 0) {
+    disable();
+    return;
+  }
+  askConfirm({
+    title: t('Turn off {component}?', { component: scopeLabel(scope as AdminScope) }),
+    message: t(
+      'This removes its {grid} widget(s), {pages} extra page(s) with {pageWidgets} widget(s), {settings} of its own setting(s), and its rows in the menu order. Their translations stay stored until you clear them on the Translations page. This only changes your draft until you push.',
+      { grid, pages: pages.length, pageWidgets, settings: ownedSettings },
+    ),
+    label: t('Turn off and delete'),
+    danger: true,
+    run: disable,
+  });
+}
+
+/** Deleting a page destroys its widgets, so it asks first — the widgets
+ *  are not recoverable from the editor once the draft is saved. */
+function confirmDeletePage(id: string): void {
+  const page = extPages.pages.value.find((p) => p.id === id);
+  if (!page) return;
+  const count = page.widgets.length;
+  askConfirm({
+    title: t('Delete page?'),
+    message: t(
+      'Delete the “{name}” page and its {n} widget(s)? This only changes your draft until you push.',
+      { name: page.name, n: count },
+    ),
+    label: t('Delete page'),
+    danger: true,
+    run: () => {
+      extPages.deletePage(id);
+    },
+  });
+}
+
 /** Enabled OAP record ids for a duplicated layer name — the browse rail
  *  marks those rows so the operator sees the ambiguity before selecting. */
 function conflictIdsFor(name: string): string[] | null {
@@ -185,9 +368,14 @@ const TRACE_SOURCE_OPTIONS = computed<Array<{ value: TraceSource; label: string;
 /** Menu-preview click: focus the component's scope (if surfaced) and
  *  scroll the scope editor into view so config + preview follow the
  *  selection. */
-function jumpToComponent(scope: AdminScope): void {
-  if (visibleScopes.value.includes(scope)) activeScope.value = scope;
+/** Menu-preview click → open that row's editor. An extension-page row
+ *  selects its PAGE as well as its component, so clicking the row an
+ *  operator sees in the sidebar lands on the grid that row renders. */
+function jumpToComponent(target: { scope: AdminScope; page: string | null }): void {
+  if (visibleScopes.value.includes(target.scope)) activeScope.value = target.scope;
+  // After the scope, so the scope watcher's reset does not clear it.
   void nextTick(() => {
+    activePage.value = target.page;
     document.getElementById('scope-editor')?.scrollIntoView({ behavior: 'smooth', block: 'start' });
   });
 }
@@ -360,8 +548,10 @@ const namingTest = computed<NamingTestResult>(() => {
         <LayerSetupEditor
           v-model:template="selectedTpl"
           :active-scope="activeScope"
+          :active-page="activePage"
           :instance-topology-enabled="instanceTopologyEnabled"
           @jump="jumpToComponent"
+          @confirm-disable="onConfirmDisable"
         />
 
 
@@ -578,11 +768,53 @@ const namingTest = computed<NamingTestResult>(() => {
           </div>
         </section>
 
-        <WidgetEditorCanvas
-          v-else
-          :draft="draft"
-          :active-scope="activeScope"
-        />
+        <div v-else class="canvas-with-pages">
+          <PageSelectorBar
+            v-if="pageableScope"
+            :pages="extPages.pages.value"
+            :active-page="activePage"
+            :can-add="extPages.canAddPage.value"
+            :scope-label="scopeLabel(activeScope)"
+            :read-only="readOnly"
+            @select="activePage = $event"
+            @add="extPages.addPage($event.name, $event.id)"
+            @rename="extPages.renamePage($event.id, $event.name)"
+            @delete="confirmDeletePage($event)"
+          />
+          <!-- The entity set this page shows, in its own zone: it is
+               configuration of a different kind from the page's identity
+               above it and the widgets below, and the rendered page shows
+               none of it. -->
+          <section v-if="activeFilter && filterMode" class="sw-card editor-card filter-card">
+            <div class="card-head">
+              <h4>{{ filterMode === 'instance' ? t('Which instances this page shows') : t('Which services this page shows') }}</h4>
+              <span class="sub">{{ t('Authored here and nowhere else — the page itself shows the result and never the filter.') }}</span>
+            </div>
+            <div class="filter-card-body">
+              <PageEntityFilter
+                :mode="filterMode"
+                :layer-key="selectedKey"
+                :alias="activePageAlias"
+                :show-alias="!!activePage"
+                :service-filter="activeFilter.serviceFilter ?? ''"
+                :instance-filter="activeFilter.instanceFilter"
+                :attributes="activeFilter.instanceAttributes"
+                :services="layerServices"
+                :read-only="readOnly"
+                @update:alias="activePage && extPages.setPageAlias(activePage, $event)"
+                @update:service-filter="writeFilter('service', $event)"
+                @update:instance-filter="writeFilter('instance', $event)"
+                @update:attributes="writeAttributes($event)"
+              />
+            </div>
+          </section>
+          <WidgetEditorCanvas
+            :draft="draft"
+            :active-scope="activeScope"
+            :active-page="activePage"
+            @update:active-page="activePage = $event"
+          />
+        </div>
       </main>
 
     </div>
@@ -785,6 +1017,19 @@ const namingTest = computed<NamingTestResult>(() => {
 /* overflow: visible overrides .sw-card's `overflow: hidden`, which would
  * otherwise clip the sticky header inside the card (so it wouldn't pin). */
 .editor-card { padding: 0; overflow: visible; }
+/* `.editor-card` is padding-free by convention; each body supplies its own. */
+/* A visible boundary. The zone sits between the page bar above and the
+   widget canvas below, and all three are dark on dark — without an edge
+   of its own it reads as one continuous area, which is exactly the "all
+   together" it was split out of. */
+.canvas-with-pages { display: flex; flex-direction: column; gap: 12px; }
+.filter-card {
+  border: 1px solid var(--sw-line-2);
+  border-radius: 6px;
+  background: var(--sw-bg-1);
+  overflow: hidden;
+}
+.filter-card-body { padding: 14px 16px 16px; }
 /* Topology / endpoint-dep config preview — read-only JSON view. */
 .topo-cfg-body { padding: 12px 14px 16px; }
 .topo-cfg-help {
diff --git a/apps/ui/src/features/admin/layer-templates/LayerSetupEditor.vue b/apps/ui/src/features/admin/layer-templates/LayerSetupEditor.vue
index fa6337d..99254aa 100644
--- a/apps/ui/src/features/admin/layer-templates/LayerSetupEditor.vue
+++ b/apps/ui/src/features/admin/layer-templates/LayerSetupEditor.vue
@@ -31,10 +31,13 @@
   parent via the emitted `jump` event.
 -->
 <script setup lang="ts">
-import { computed } from 'vue';
+import { computed, ref, watch } from 'vue';
 import { useI18n } from 'vue-i18n';
+import { isBuiltInOrder, pruneMenuOrder } from './menuOrder';
 import type { AdminLayerTemplate } from '@/api/client';
 import type { AdminScope, ComponentKey, SlotKey } from './layer-dashboards.scopes';
+import { resolveLayerMenuRows } from '@skywalking-horizon-ui/api-client';
+import { componentsToCaps } from '@/shell/layerFromTemplate';
 
 const { t } = useI18n({ useScope: 'global' });
 
@@ -45,9 +48,17 @@ const { t } = useI18n({ useScope: 'global' });
 const template = defineModel<AdminLayerTemplate>('template', { required: true });
 const props = defineProps<{
   activeScope: AdminScope;
+  /** Page currently open in the editor, so the preview row for it can
+   *  show as active — a row that can never highlight looks inert even
+   *  though clicking it works. */
+  activePage?: string | null;
   instanceTopologyEnabled: boolean;
 }>();
-const emit = defineEmits<{ jump: [scope: AdminScope] }>();
+const activePage = computed(() => props.activePage ?? null);
+const emit = defineEmits<{
+  jump: [target: { scope: AdminScope; page: string | null }];
+  'confirm-disable': [key: ComponentKey];
+}>();
 
 /**
  * Component toggles surfaced in the admin editor. Each entry binds to
@@ -78,79 +89,242 @@ function ensureComponents(): AdminLayerTemplate['components'] {
   }
   return template.value.components;
 }
+/**
+ * Turning an entity component OFF destroys the config only it can reach:
+ * its widget grid, its extension pages and their widgets, and its rows in
+ * a custom menu order. None of that is recoverable from the editor once
+ * the draft is saved, and none of it is visible while the component is
+ * off — so the parent confirms first and performs the removal.
+ *
+ * Turning one ON, and every non-entity component, is the plain toggle it
+ * has always been.
+ */
 function toggleComponent(key: ComponentKey): void {
   const c = ensureComponents();
+  if (c[key] && DESTRUCTIVE_OFF.has(key)) {
+    emit('confirm-disable', key);
+    return;
+  }
   c[key] = !c[key];
 }
 
-/** Inverse of SCOPE_COMPONENT, narrowed to the toggle keys — maps each
- *  Components checkbox to the editor scope its config lives under, so a
- *  menu-preview click can jump straight to that scope's widget editor. */
-const COMPONENT_SCOPE: Record<ComponentKey, AdminScope> = {
+/**
+ * Drop order entries for rows the layer no longer has.
+ *
+ * A stored order naming a row that does not resolve is refused at
+ * publish, and switching a component off is how one gets there: preview
+ * stops drawing the row, so the draft looks correct while the push
+ * fails. Filtering against the rows that ACTUALLY resolve covers every
+ * component rather than a table of which owns what — Traces alone owns
+ * two rows, and a component added later would own more.
+ *
+ * Turning a component back ON needs no counterpart: an unnamed row keeps
+ * its default position, which is what absence from the order means.
+ */
+// Watched rather than called from the toggle: the destructive path flips
+// the flag itself, after its confirmation, so a toggle-only hook would
+// have covered half the ways a component goes off.
+// Watches everything that decides which rows EXIST, not just the
+// component flags: pages (deleting one prunes its entry) and `traces`,
+// whose `source` gates the zipkin-trace row. Miss one and the preview
+// stops drawing a row while the stored order keeps naming it — the draft
+// looks right and the push is refused for a row the editor no longer
+// shows anywhere.
+watch(
+  () => [
+    JSON.stringify(template.value.components ?? {}),
+    JSON.stringify(template.value.dashboardExtPages ?? {}),
+    JSON.stringify(template.value.traces ?? {}),
+  ].join('|'),
+  () => pruneMenuOrderToRows(),
+);
+
+function pruneMenuOrderToRows(): void {
+  const order = template.value.menuOrder;
+  if (!Array.isArray(order)) return;
+  const kept = pruneMenuOrder(order, menuRows.value.map((r) => r.path));
+  // Normalised here rather than only on a drag: a page deleted or a
+  // component switched off can leave an order that says exactly what
+  // absence says, and storing that is a pending change against OAP that
+  // moves no menu.
+  if (isBuiltInOrder(kept, builtInOrder.value)) {
+    delete template.value.menuOrder;
+    return;
+  }
+  if (kept.length !== order.length) template.value.menuOrder = kept;
+}
+
+/** Components whose OFF destroys configuration only they can reach.
+ *
+ *  The three entity ones own a widget grid and its pages. The rest own a
+ *  config block each — the MQE an operator tuned for that view — which is
+ *  just as unreachable once the component is off, and just as invisible:
+ *  it would sit in the draft, unrendered, until a future toggle brought
+ *  back a configuration nobody remembered writing. `traces` is absent on
+ *  purpose: its `traces.source` picks a receiver, not a view's content,
+ *  and it is one enum an operator retypes in a second. */
+const DESTRUCTIVE_OFF = new Set<ComponentKey>([
+  'service',
+  'instances',
+  'endpoints',
+  'topology',
+  'deployment',
+  'endpointDependency',
+]);
+
+
+/**
+ * The layer's REAL sidebar rows, resolved exactly as the runtime resolves
+ * them — components, their extension pages, and every feature tab. This is
+ * the menu-order editor, so it has to be the menu, not a summary of it.
+ */
+const ROW_TO_ADMIN_SCOPE: Record<string, AdminScope | undefined> = {
   service: 'service',
-  instances: 'instance',
-  endpoints: 'endpoint',
-  endpointDependency: 'dependency',
+  instance: 'instance',
+  endpoint: 'endpoint',
   topology: 'topology',
   deployment: 'deployment',
-  traces: 'trace',
+  dependency: 'dependency',
+  trace: 'trace',
   logs: 'logs',
-  // Browser Errors + Pod Logs have no editable widget grid — filler to
-  // satisfy the exhaustive Record; the menu-preview click no-ops for them.
-  browserErrors: 'logs',
-  podLogs: 'logs',
-  traceProfiling: 'traceProfiling',
-  ebpfProfiling: 'ebpfProfiling',
-  asyncProfiling: 'asyncProfiling',
-  // Continuous profiling authors POLICIES, not widgets — there is no scope of
-  // its own to edit, so this points at the eBPF scope it arms tasks for.
-  continuousProfiling: 'ebpfProfiling',
-  // Legacy umbrella flag — no checkbox of its own (the three granular
-  // profiling toggles drive the menu), so this entry only satisfies the
-  // exhaustive Record; it is never surfaced as a menu item.
-  profiling: 'traceProfiling',
+  'network-profiling': 'networkProfiling',
 };
-/** Component → slot-alias key. The layer's `slots` carry per-layer term
- *  aliases (services → "ClickHouse clusters", instances → "Nodes", …);
- *  the menu preview shows these instead of the generic component label,
- *  matching what the real sidebar renders. */
-const COMPONENT_SLOT: Partial<Record<ComponentKey, SlotKey>> = {
-  service: 'services',
-  instances: 'instances',
-  endpoints: 'endpoints',
-  endpointDependency: 'endpointDependency',
-  topology: 'topology',
-  deployment: 'deployment',
-};
-/** The layer's sidebar menu as the operator would see it — only the
- *  enabled components, in COMPONENT_TOGGLES order, labelled with the
- *  layer's slot aliases where defined. Drives the menu preview. */
-const menuItems = computed<Array<{ key: string; label: string; scope: AdminScope; child?: boolean }>>(() => {
-  const slots = template.value.slots ?? {};
-  const items = COMPONENT_TOGGLES.value.filter((t) => !!template.value.components?.[t.key]).map((t) => {
-    const slotKey = COMPONENT_SLOT[t.key];
+
+/** The order this layer resolves to with NO stored arrangement — what
+ *  "the built-in order" means for these components and pages. */
+const builtInOrder = computed<string[]>(() => {
+  const tpl = template.value;
+  return resolveLayerMenuRows({
+    caps: componentsToCaps(tpl.components, tpl.topology, tpl.deployment),
+    slots: tpl.slots ?? {},
+    traces: tpl.traces,
+    extPages: extPagesForPreview(tpl),
+  }).map((r) => r.path);
+});
+
+const menuRows = computed(() => {
+  const tpl = template.value;
+  const rows = resolveLayerMenuRows({
+    caps: componentsToCaps(tpl.components, tpl.topology, tpl.deployment),
+    slots: tpl.slots ?? {},
+    traces: tpl.traces,
+    extPages: extPagesForPreview(tpl),
+    menuOrder: tpl.menuOrder,
+  });
+  return rows.map((r) => {
+    const [component, pageId] = r.path.split('/');
     return {
-      key: t.key as string,
-      label: (slotKey && slots[slotKey]) || t.label,
-      scope: COMPONENT_SCOPE[t.key],
-      child: false,
+      path: r.path,
+      // A page carries its own name; a built-in row is labelled by its slot
+      // alias where the layer renames it, else by the row's own wording.
+      label: r.name ?? labelForRow(r.path),
+      // Two pages may share a display name — the id is what tells them
+      // apart, here and in the page selector.
+      hint: pageId,
+      page: !!pageId,
+      scope: ROW_TO_ADMIN_SCOPE[component],
+      pageId,
+      // Profiling, pod logs and browser errors have no editable config, so
+      // their rows are labels rather than dead buttons.
+      jumpable: !!ROW_TO_ADMIN_SCOPE[component],
     };
   });
-  // Instance topology has no component flag of its own (it's a drill-down
-  // of the topology tab, not a sidebar entry); show it as a NESTED child
-  // under Topology so the preview reads "reached from Topology" — and so
-  // it doesn't double-highlight when the topology scope is active. Only
-  // when the Topology component is itself enabled (`topoIdx >= 0`): a
-  // drill-down of a disabled tab must not appear, even if a stale
-  // `topology.instanceTopology` block lingers in the config.
-  const topoIdx = items.findIndex((i) => i.key === 'topology');
-  if (props.instanceTopologyEnabled && topoIdx >= 0) {
-    const instItem = { key: 'instanceTopology', label: slots.instanceTopology || t('Instance map'), scope: 'topology' as AdminScope, child: true };
-    items.splice(topoIdx + 1, 0, instItem);
-  }
-  return items;
 });
 
+function extPagesForPreview(tpl: AdminLayerTemplate) {
+  const src = tpl.dashboardExtPages;
+  if (!src) return undefined;
+  const out: Record<string, Array<{ id: string; name: string }>> = {};
+  for (const scope of ['service', 'instance', 'endpoint'] as const) {
+    const pages = src[scope];
+    if (pages?.length) out[scope] = pages.map((p) => ({ id: p.id, name: p.name }));
+  }
+  return Object.keys(out).length ? out : undefined;
+}
+
+function labelForRow(path: string): string {
+  const slots = template.value.slots ?? {};
+  switch (path) {
+    case 'service': return slots.services || t('Service');
+    case 'instance': return slots.instances || t('Instance');
+    case 'endpoint': return slots.endpoints || t('Endpoint');
+    case 'topology': return slots.topology || t('Topology');
+    case 'deployment': return slots.deployment || t('Deployment');
+    case 'dependency': return slots.endpointDependency || t('Dependency');
+    case 'trace': return t('Traces');
+    case 'zipkin-trace': return t('OTel & Zipkin Traces');
+    case 'logs': return t('Logs');
+    case 'browser-errors': return t('Browser Logs');
+    case 'pod-logs': return t('Pod Logs');
+    case 'trace-profiling': return t('Trace Profiling');
+    case 'ebpf-profiling': return t('eBPF Profiling');
+    case 'network-profiling': return t('Network Profiling');
+    case 'continuous-profiling': return t('Continuous Profiling');
+    case 'pprof': return t('pprof (Go)');
+    case 'async-profiling': return t('Async Profiling');
+    default: return path;
+  }
+}
+
+/** A stored arrangement exists. Independent of whether dragging is on:
+ *  closing the drag mode must not throw the arrangement away. */
+const customOrder = computed(() => Array.isArray(template.value.menuOrder));
+/** Dragging is a MODE, not the setting: closing it keeps the arrangement,
+ *  and it starts off — an operator arrives to read the menu, not to move
+ *  it. Reset on a layer change because the parent reuses this component
+ *  across layers, which left the next layer in drag mode. */
+const rearranging = ref(false);
+watch(() => template.value.key, () => (rearranging.value = false));
+/** The row the editor is currently on, so its id can be shown once
+ *  rather than on every row. */
+const selectedRow = computed(
+  () => menuRows.value.find((m) => m.scope === props.activeScope && (m.pageId ?? null) === (activePage.value ?? null)) ?? null,
+);
+
+/** Turning the mode on stores NOTHING: an arrangement identical to the
+ *  built-in one is still a stored field, and would show as a pending
+ *  change against OAP that says nothing. The first drop writes it. */
+function setRearranging(on: boolean): void {
+  rearranging.value = on;
+}
+
+/** The only way back to the built-in order. Absence IS that order, so
+ *  this deletes the field rather than storing a second spelling of it. */
+function resetOrder(): void {
+  delete template.value.menuOrder;
+  rearranging.value = false;
+}
+
+const dragFrom = ref<number | null>(null);
+const dragOver = ref<number | null>(null);
+function onOrderDragStart(i: number): void {
+  dragFrom.value = i;
+}
+function onOrderDrop(to: number): void {
+  const from = dragFrom.value;
+  dragFrom.value = null;
+  dragOver.value = null;
+  if (from === null || from === to) return;
+  // Always store the FULL resolved order, never a partial list — a stored
+  // order that names only some rows leaves the rest to default placement,
+  // which is not what dragging one row is meant to express.
+  const paths = menuRows.value.map((r) => r.path);
+  const [moved] = paths.splice(from, 1);
+  paths.splice(to, 0, moved);
+  writeOrder(paths);
+}
+
+/** Storing an order equal to the built-in one is storing nothing: absence
+ *  IS that order, so the field would be a pending change against OAP that
+ *  changes no menu. Dragging back to where you started removes it. */
+function writeOrder(paths: string[]): void {
+  if (isBuiltInOrder(paths, builtInOrder.value)) {
+    delete template.value.menuOrder;
+    return;
+  }
+  template.value.menuOrder = paths;
+}
+
 /** The configurable slot aliases. Shown for the components the
  *  layer actually exposes so the editor mirrors the menu. */
 const ALIAS_FIELDS = computed((): Array<{ slot: SlotKey; label: string; comp: ComponentKey; def: string; requireInstanceTopology?: boolean }> => [
@@ -202,21 +376,74 @@ function setSlot(slot: SlotKey, value: string): void {
           <span class="menu-preview-title">{{ template.alias || template.key }}</span>
           <code v-if="template.alias && template.alias !== template.key" class="key-tag">{{ template.key }}</code>
         </div>
-        <p v-if="menuItems.length === 0" class="menu-preview-empty">
+        <p v-if="menuRows.length === 0" class="menu-preview-empty">
           {{ t('No components enabled — toggle one on the right to populate the menu.') }}
         </p>
+        <!-- A switch, not a checkbox: this turns a MODE on — the rows
+             stop being links and become draggable — rather than ticking
+             an option that takes effect on save. The checkbox beside the
+             component list means the other thing, and reading both as the
+             same control is what made this one look like a setting. -->
+        <label v-else class="order-toggle">
+          <input
+            type="checkbox"
+            role="switch"
+            class="order-switch"
+            :aria-checked="rearranging"
+            :checked="rearranging"
+            @change="setRearranging(!rearranging)"
+          />
+          <span>{{ t('Rearrange menu') }}</span>
+          <span class="order-hint">{{
+            rearranging
+              ? t('drag an entry to move it')
+              : customOrder
+                ? t('the menu uses your order')
+                : t('the menu follows the built-in order')
+          }}</span>
+        </label>
+        <button v-if="customOrder" type="button" class="sw-btn xs ghost order-reset" @click="resetOrder">
+          {{ t('Reset to built-in order') }}
+        </button>
         <button
-          v-for="m in menuItems"
-          :key="m.key"
+          v-for="(m, i) in menuRows"
+          :key="m.path"
           type="button"
           class="menu-item"
-          :class="{ on: activeScope === m.scope && !m.child, 'is-child': m.child }"
-          :title="t('Jump to {label} config', { label: m.label })"
-          @click="emit('jump', m.scope)"
+          :class="{
+            on: activeScope === m.scope && (m.pageId ?? null) === (activePage ?? null),
+            'is-page': !!m.page,
+            'is-inert': !m.jumpable,
+            draggable: rearranging,
+            over: dragOver === i,
+          }"
+          :disabled="!rearranging && !m.jumpable"
+          :draggable="rearranging"
+          :title="rearranging
+            ? t('Drag to move {label}', { label: m.hint ? `${m.label} (${m.hint})` : m.label })
+            : m.jumpable
+              ? t('Jump to {label} config', { label: m.label })
+              : t('{label} has no editable configuration', { label: m.label })"
+          @dragstart="onOrderDragStart(i)"
+          @dragover.prevent="dragOver = i"
+          @drop.prevent="onOrderDrop(i)"
+          @dragend="dragFrom = null; dragOver = null"
+          @click="!rearranging && m.jumpable && emit('jump', { scope: m.scope!, page: m.pageId ?? null })"
         >
-          <span class="menu-item-label">{{ m.child ? '↳ ' : '' }}{{ m.label }}</span>
-          <span class="menu-item-arrow">›</span>
+          <span v-if="rearranging" class="menu-grip">⠿</span>
+          <span class="menu-item-label">{{ m.label }}</span>
+          <!-- Shown because two pages may share a display name; the id is
+               what tells them apart. Not in the runtime sidebar. -->
+          <code v-if="m.hint" class="menu-item-hint">{{ m.hint }}</code>
+          <span v-if="!rearranging && m.jumpable" class="menu-item-arrow">›</span>
         </button>
+        <!-- The key is the route segment, the `menuOrder` entry and the
+             translation anchor. Hidden while rearranging. -->
+        <p v-if="!rearranging && selectedRow" class="menu-detail">
+          <span class="menu-detail-field">{{ t('Menu key') }}</span>
+          <code>{{ selectedRow.path }}</code>
+          <span class="menu-detail-kind">{{ selectedRow.page ? t('extra page') : t('built-in entry') }}</span>
+        </p>
       </div>
       <div class="setup-right">
         <label class="alias-field">
@@ -344,6 +571,96 @@ function setSlot(slot: SlotKey, value: string): void {
   padding: 1px 5px;
   border-radius: 3px;
 }
+.order-toggle {
+  display: flex;
+  align-items: center;
+  gap: 7px;
+  padding: 4px 2px 8px;
+  font-size: 11px;
+  color: var(--sw-fg-1);
+  cursor: pointer;
+}
+/* A track with a knob, sized off the label's own line-height so it sits
+   on the text baseline rather than floating above it. */
+.order-switch {
+  appearance: none;
+  flex: none;
+  position: relative;
+  width: 26px;
+  height: 14px;
+  margin: 0;
+  border: 1px solid var(--sw-line-2);
+  border-radius: 999px;
+  background: var(--sw-bg-2);
+  cursor: pointer;
+  transition: background 120ms ease, border-color 120ms ease;
+}
+.order-switch::after {
+  content: '';
+  position: absolute;
+  top: 1px;
+  left: 1px;
+  width: 10px;
+  height: 10px;
+  border-radius: 50%;
+  background: var(--sw-fg-3);
+  transition: transform 120ms ease, background 120ms ease;
+}
+.order-switch:checked {
+  background: color-mix(in srgb, var(--sw-accent) 30%, transparent);
+  border-color: var(--sw-accent);
+}
+.order-switch:checked::after {
+  transform: translateX(12px);
+  background: var(--sw-accent);
+}
+.order-switch:focus-visible { outline: 1px solid var(--sw-accent); outline-offset: 2px; }
+.order-hint {
+  color: var(--sw-fg-3);
+  font-size: 10.5px;
+}
+.menu-detail {
+  margin: 8px 0 0;
+  display: flex;
+  align-items: baseline;
+  flex-wrap: wrap;
+  gap: 3px 7px;
+  font-size: 11px;
+  color: var(--sw-fg-3);
+}
+.menu-detail-field { color: var(--sw-fg-3); }
+.menu-detail code { font-family: var(--sw-mono); color: var(--sw-fg-1); }
+.menu-detail-kind { color: var(--sw-fg-3); }
+.menu-item-id {
+  font-size: 9.5px;
+  color: var(--sw-fg-3);
+  margin-left: 4px;
+}
+.menu-item:disabled {
+  cursor: default;
+  opacity: 0.75;
+}
+.menu-grip {
+  color: var(--sw-fg-3);
+  cursor: grab;
+  margin-right: 2px;
+}
+/* No indent: pages are FLAT siblings in the sidebar, and a custom order
+   can place one anywhere — an indent would claim a parent three rows
+   away. The id chip beside the label is what marks a page. */
+.menu-item.is-page .menu-item-label {
+  color: var(--sw-fg-1);
+}
+.menu-item.draggable {
+  cursor: grab;
+}
+.menu-item.is-inert {
+  cursor: default;
+  opacity: 0.72;
+}
+.menu-item.over {
+  box-shadow: inset 0 2px 0 var(--sw-accent);
+}
 .menu-item {
   display: flex;
   align-items: center;
@@ -366,6 +683,13 @@ function setSlot(slot: SlotKey, value: string): void {
   box-shadow: inset 2px 0 0 var(--sw-accent);
 }
 .menu-item-label { flex: 1; }
+.menu-item-hint {
+  font-family: var(--sw-mono);
+  font-size: 10px;
+  color: var(--sw-fg-3);
+  margin-left: auto;
+  padding-left: 8px;
+}
 .menu-item-arrow { color: var(--sw-fg-3); font-size: 13px; }
 .menu-item.on .menu-item-arrow { color: var(--sw-accent-2); }
 /* Instance map — a nested drill-down of Topology, not a sidebar entry. */
diff --git a/apps/ui/src/features/admin/layer-templates/PageEntityFilter.test.ts b/apps/ui/src/features/admin/layer-templates/PageEntityFilter.test.ts
new file mode 100644
index 0000000..3acd26c
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/PageEntityFilter.test.ts
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * The preview's paging past its first page, which no fixture reaches: the
+ * e2e layers report two services, so an assertion there is satisfied by a
+ * component that never pages at all.
+ */
+
+import { describe, expect, it, vi } from 'vitest';
+import { computed, ref } from 'vue';
+import { mount, type VueWrapper } from '@vue/test-utils';
+import { i18n } from '@/i18n';
+
+vi.mock('@/layer/useLayerInstances', () => ({
+  useLayerInstances: () => ({ instances: computed(() => []), isFetching: ref(false) }),
+}));
+vi.mock('@/layer/useLayerEndpoints', () => ({
+  useLayerEndpoints: () => ({ endpoints: computed(() => []), isFetching: ref(false) }),
+}));
+
+const PageEntityFilter = (await import('./PageEntityFilter.vue')).default;
+
+const roster = (n: number): Array<{ id: string; name: string }> =>
+  Array.from({ length: n }, (_, i) => ({ id: `id-${i}`, name: `svc-${String(i).padStart(3, '0')}` }));
+
+async function openPreview(services: Array<{ id: string; name: string }>, serviceFilter = ''): Promise<VueWrapper> {
+  const w = mount(PageEntityFilter, {
+    props: { mode: 'service', layerKey: 'GENERAL', serviceFilter, services },
+    // Modal teleports to <body>, which the wrapper cannot see. The stub
+    // keeps the `open` gate so the popout is still something that opens.
+    global: {
+      plugins: [i18n],
+      stubs: {
+        TypeaheadSelect: true,
+        Modal: { props: ['open'], template: '<div v-if="open"><slot /></div>' },
+      },
+    },
+  });
+  await w.get('.pef-check .sw-btn').trigger('click');
+  return w;
+}
+
+const rows = (w: VueWrapper): string[] => w.findAll('.pef-list li').map((li) => li.text());
+const pager = (w: VueWrapper) => w.find('.pef-pager');
+
+describe('the preview pages through a long roster', () => {
+  it('shows twenty at a time and says which twenty', async () => {
+    const w = await openPreview(roster(45));
+    expect(rows(w)).toHaveLength(20);
+    expect(rows(w)[0]).toContain('svc-000');
+    expect(pager(w).text()).toContain('1–20 of 45');
+  });
+
+  it('walks forward to a short last page and back again', async () => {
+    const w = await openPreview(roster(45));
+    const next = () => pager(w).findAll('button')[1]!.trigger('click');
+    const prev = () => pager(w).findAll('button')[0]!.trigger('click');
+
+    await next();
+    expect(rows(w)[0]).toContain('svc-020');
+    expect(pager(w).text()).toContain('21–40 of 45');
+
+    await next();
+    // The tail is short, and the label must not promise rows that are
+    // not there — `41–60 of 45` is the arithmetic bug this pins.
+    expect(rows(w)).toHaveLength(5);
+    expect(pager(w).text()).toContain('41–45 of 45');
+    expect(pager(w).findAll('button')[1]!.attributes('disabled')).toBeDefined();
+
+    await prev();
+    expect(pager(w).text()).toContain('21–40 of 45');
+  });
+
+  it('still shows the range when the roster fits one page', async () => {
+    const w = await openPreview(roster(20));
+    expect(rows(w)).toHaveLength(20);
+    // Visible, not hidden: the pager is how the operator learns the list
+    // is paged at all, and a roster that fits still says how many it has.
+    expect(pager(w).text()).toContain('1–20 of 20');
+    expect(pager(w).findAll('button')[0]!.attributes('disabled')).toBeDefined();
+    expect(pager(w).findAll('button')[1]!.attributes('disabled')).toBeDefined();
+  });
+
+  it('re-pages when Filtered shrinks the set under a later page', async () => {
+    // Page 3 of 45, then narrow to a set with a single page: the operator
+    // must not be left staring at a page that no longer exists.
+    const w = await openPreview(roster(45), 'svc-00');
+    await pager(w).findAll('button')[1]!.trigger('click');
+    await pager(w).findAll('button')[1]!.trigger('click');
+    expect(pager(w).text()).toContain('41–45 of 45');
+
+    await w.findAll('.pef-seg button')[1]!.trigger('click'); // Filtered
+    expect(rows(w)).toHaveLength(10); // svc-000 … svc-009
+    expect(pager(w).text()).toContain('1–10 of 10');
+    expect(rows(w)[0]).toContain('svc-000');
+  });
+});
diff --git a/apps/ui/src/features/admin/layer-templates/PageEntityFilter.vue b/apps/ui/src/features/admin/layer-templates/PageEntityFilter.vue
new file mode 100644
index 0000000..cfc4afc
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/PageEntityFilter.vue
@@ -0,0 +1,597 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!--
+  Authoring the entity set an extension page is about.
+
+  This is the ONLY place the filter is visible. The rendered page shows
+  the filtered list and says nothing — an operator reading it did not
+  write the filter and is not owed its syntax. Which makes the assistance
+  below load-bearing rather than decorative: it is the one chance to see
+  what a filter selects before it reaches anyone, and the only way to
+  catch an attribute key that matches nothing because it was mistyped.
+-->
+<script setup lang="ts">
+import { computed, ref, watch } from 'vue';
+import { useI18n } from 'vue-i18n';
+import {
+  MAX_INSTANCE_ATTRIBUTE_PREDICATES,
+  type InstanceAttributePredicate,
+} from '@skywalking-horizon-ui/api-client';
+import { isRegexFilter, serviceFilterMatcher } from '@/layer/serviceFilter';
+import { useLayerInstances } from '@/layer/useLayerInstances';
+import { useLayerEndpoints } from '@/layer/useLayerEndpoints';
+import { instancePageMatcher } from '@/render/layer-dashboard/instancePageFilter';
+import TypeaheadSelect from '@/components/primitives/TypeaheadSelect.vue';
+import Modal from '@/features/operate/_shared/Modal.vue';
+
+const { t } = useI18n({ useScope: 'global' });
+
+const props = defineProps<{
+  /** Which pickers this page's screen shows. `endpoint` narrows the
+   *  service list like `service` does, and browses endpoints beneath it —
+   *  there is no endpoint filter, so that half is informational. */
+  mode: 'service' | 'instance' | 'endpoint';
+  layerKey: string;
+  /** What this page calls the entity it lists. `undefined` hides the row
+   *  — the DEFAULT page is named by the layer's own Menu labels. */
+  alias?: string;
+  showAlias?: boolean;
+  /** Every entity page narrows the service picker — an Instance page
+   *  shows it too, because a service is picked before an instance. */
+  serviceFilter: string;
+  /** Instance pages only, applied within the service picked above. */
+  instanceFilter?: string;
+  attributes?: InstanceAttributePredicate[];
+  /** The layer's own roster, for the assistance list. Rows, not names:
+   *  the instance preview needs the service ID — the BFF refuses a name
+   *  that arrives without one, deliberately, so a name can never be
+   *  mistaken for another service's id. Empty while it loads, which
+   *  shows an unavailable state rather than blocking the edit. */
+  services: readonly { id: string; name: string }[];
+  readOnly?: boolean;
+}>();
+
+const emit = defineEmits<{
+  (e: 'update:alias', v: string): void;
+  (e: 'update:serviceFilter', v: string): void;
+  (e: 'update:instanceFilter', v: string): void;
+  (e: 'update:attributes', v: InstanceAttributePredicate[]): void;
+}>();
+
+/** One row's worth of state, so the Service and Instance fields are the
+ *  same control rather than two near-copies. */
+function fieldFor(get: () => string, set: (v: string) => void) {
+  const isRegex = computed(() => isRegexFilter(get().trim()));
+  const body = computed(() => (isRegex.value ? get().trim().slice(1, -1) : get()));
+  return {
+    isRegex,
+    body,
+    invalid: computed(() => get().trim().length > 0 && serviceFilterMatcher(get()).invalid),
+    setText: (v: string) => set(isRegex.value && v.trim() !== '' ? `/${v}/` : v),
+    setRegex: (on: boolean) => {
+      const b = body.value.trim();
+      set(b === '' ? '' : on ? `/${b}/` : b);
+    },
+  };
+}
+const svc = fieldFor(() => props.serviceFilter, (v) => emit('update:serviceFilter', v));
+const inst = fieldFor(() => props.instanceFilter ?? '', (v) => emit('update:instanceFilter', v));
+
+
+/* ── Attribute conditions (Instance pages) ───────────────────────── */
+const attrs = computed<InstanceAttributePredicate[]>(() => props.attributes ?? []);
+const writeAttrs = (next: InstanceAttributePredicate[]): void => emit('update:attributes', next);
+const atAttrCap = computed(() => attrs.value.length >= MAX_INSTANCE_ATTRIBUTE_PREDICATES);
+function addAttr(): void {
+  // Publish refuses a ninth, so the editor must not mint one.
+  if (atAttrCap.value) return;
+  writeAttrs([...attrs.value, { attribute: '', op: 'exists' }]);
+}
+function removeAttr(i: number): void {
+  writeAttrs(attrs.value.filter((_, j) => j !== i));
+}
+function patchAttr(i: number, patch: Partial<InstanceAttributePredicate>): void {
+  writeAttrs(
+    attrs.value.map((a, j) => {
+      if (j !== i) return a;
+      const next = { ...a, ...patch };
+      // `exists` carries no value; leaving one behind would publish a
+      // field the evaluator ignores and the diff keeps showing.
+      if (next.op === 'exists') delete next.value;
+      return next;
+    }),
+  );
+}
+
+/* ── Assistance: what is available, and what this selects ──────────
+ *
+ * Instances only exist under a service, which the layer editor has not
+ * picked — so the operator picks one to preview against. It is a sample,
+ * not the answer for every service, and the wording says so. */
+const previewOpen = ref(false);
+const previewService = ref<string>('');
+/** The sample-service dropdown offers only what the page's service
+ *  filter allows — previewing instances under a service the page hides
+ *  would answer a question nobody asked. */
+const inScopeServices = computed(() => {
+  const m = serviceFilterMatcher(props.serviceFilter);
+  return props.services.filter((x) => m.match(x.name));
+});
+const serviceOptions = computed(() => inScopeServices.value.map((x) => ({ value: x.id, label: x.name })));
+// Sourced on `inScopeServices`, not `props.services`: the roster keeps its
+// identity while the filter changes, so the pick would never revalidate.
+// Must stay BELOW it — `immediate: true` runs during setup, where a later
+// `const` is still in the TDZ and throws with no rendered error.
+watch(
+  inScopeServices,
+  (rows) => {
+    if (rows.length === 0) return;
+    // Keep the pick only while the filter still allows it.
+    if (!rows.some((x) => x.id === previewService.value)) previewService.value = rows[0]!.id;
+  },
+  { immediate: true },
+);
+const serviceCount = computed(() =>
+  props.services.length === 0
+    ? null
+    : t('{n} of {total}', { n: inScopeServices.value.length, total: props.services.length }),
+);
+const instanceService = computed(() => {
+  if (props.mode === 'service') return null;
+  const row = inScopeServices.value.find((x) => x.id === previewService.value);
+  return row ? { id: row.id, name: row.name } : null;
+});
+const { instances, isFetching: instancesLoading } = useLayerInstances(
+  computed(() => (props.mode === 'instance' ? props.layerKey : '')),
+  instanceService,
+);
+/** Endpoints of the sampled service. There is no endpoint filter to
+ *  preview — this answers the other half of the question an endpoint
+ *  page raises: what is actually under the services it selects. The
+ *  search is the ROUTE's own keyword query, as the runtime picker uses. */
+const endpointQuery = ref('');
+const { endpoints, isFetching: endpointsLoading } = useLayerEndpoints(
+  computed(() => (props.mode === 'endpoint' ? props.layerKey : '')),
+  computed(() => (props.mode === 'endpoint' ? instanceService.value : null)),
+  endpointQuery,
+  ref(50),
+);
+
+/** Every service, with the ones this page's service filter selects lit. */
+const serviceRows = computed<Array<{ name: string; hit: boolean }>>(() => {
+  const m = serviceFilterMatcher(props.serviceFilter);
+  return props.services.map((x) => ({ name: x.name, hit: m.match(x.name) }));
+});
+/** Every instance of the sampled service, with this page's set lit. */
+const instanceRows = computed<Array<{ name: string; hit: boolean }>>(() => {
+  const m = instancePageMatcher({
+    instanceFilter: props.instanceFilter,
+    instanceAttributes: attrs.value,
+  });
+  return instances.value.map((i) => ({ name: i.name, hit: m(i) }));
+});
+/** What the page will actually show — services on a Service page, and
+ *  the entity beneath the service on the other two. */
+const rows = computed(() => (props.mode === 'instance' ? instanceRows.value : serviceRows.value));
+/** Defaults to every candidate: what a filter EXCLUDES is what makes it
+ *  checkable — a list of only the hits looks right either way. */
+const showAll = ref(true);
+const shown = (list: Array<{ name: string; hit: boolean }>): Array<{ name: string; hit: boolean }> =>
+  showAll.value ? list : list.filter((r) => r.hit);
+
+/* ── Paging. A roster runs to hundreds; the popout shows a screenful and
+ *    pages through the rest rather than scrolling a wall of names. ── */
+const PER_PAGE = 20;
+const svcPage = ref(1);
+const instPage = ref(1);
+const epPage = ref(1);
+const pageCount = (n: number): number => Math.max(1, Math.ceil(n / PER_PAGE));
+/** Clamped rather than reset: the list shrinks under the operator when
+ *  they switch to Filtered, and a page number past the end shows blank. */
+const clamp = (page: number, total: number): number => Math.min(Math.max(1, page), pageCount(total));
+const slice = <T,>(list: T[], page: number): T[] => list.slice((page - 1) * PER_PAGE, page * PER_PAGE);
+const rangeLabel = (page: number, total: number): string =>
+  t('{from}–{to} of {total}', { from: (page - 1) * PER_PAGE + 1, to: Math.min(page * PER_PAGE, total), total });
+
+const svcShown = computed(() => shown(serviceRows.value));
+const svcPageNo = computed(() => clamp(svcPage.value, svcShown.value.length));
+const svcSlice = computed(() => slice(svcShown.value, svcPageNo.value));
+const instShown = computed(() => shown(instanceRows.value));
+const instPageNo = computed(() => clamp(instPage.value, instShown.value.length));
+const instSlice = computed(() => slice(instShown.value, instPageNo.value));
+const epPageNo = computed(() => clamp(epPage.value, endpoints.value.length));
+const epSlice = computed(() => slice(endpoints.value, epPageNo.value));
+// Back to the first page when the SET changes under them — a filter edit
+// or a different sample service is a new list, not page 4 of the old one.
+watch([showAll, () => props.serviceFilter, () => props.instanceFilter, previewService, endpointQuery], () => {
+  svcPage.value = 1;
+  instPage.value = 1;
+  epPage.value = 1;
+});
+const hitCount = computed(() => rows.value.filter((r) => r.hit).length);
+const unavailable = computed(() => rows.value.length === 0);
+</script>
+
+<template>
+  <!-- One grid, so every row's label, field and switch line up: the rows
+       ask different questions but they are the same shape, and a ragged
+       column reads as three unrelated controls. -->
+  <div class="pef">
+    <label v-if="showAlias" class="pef-row">
+      <span class="pef-label">{{ t('Entity label') }}</span>
+      <div class="pef-field">
+        <input
+          class="pef-input pef-alias"
+          type="text"
+          :value="alias ?? ''"
+          :placeholder="readOnly ? '' : t('what this page calls them')"
+          :disabled="readOnly"
+          spellcheck="false"
+          @input="emit('update:alias', ($event.target as HTMLInputElement).value)"
+        />
+        <span class="pef-hint">{{ t('Blank uses the layer’s own menu label.') }}</span>
+      </div>
+    </label>
+
+    <label class="pef-row">
+      <span class="pef-label">{{ t('Service filter') }}</span>
+      <div class="pef-field">
+        <input
+          class="pef-input pef-service-filter"
+          :class="{ invalid: svc.invalid.value }"
+          type="text"
+          :value="svc.body.value"
+          :placeholder="readOnly ? '' : svc.isRegex.value ? t('regular expression') : t('name fragment')"
+          :disabled="readOnly"
+          spellcheck="false"
+          @input="svc.setText(($event.target as HTMLInputElement).value)"
+        />
+        <label class="pef-regex" :class="{ on: svc.isRegex.value }">
+          <input type="checkbox" :checked="svc.isRegex.value" :disabled="readOnly" @change="svc.setRegex(($event.target as HTMLInputElement).checked)" />
+          {{ t('regex') }}
+        </label>
+        <span v-if="svc.invalid.value" class="page-issue">{{ t('Not a valid regular expression.') }}</span>
+        <span v-else-if="serviceCount" class="pef-count">{{ serviceCount }}</span>
+        <!-- Its own preview on the pages where the bottom one is about
+             something else: on an Instance or Endpoint page the service
+             filter is otherwise checkable only by a count. -->
+        <button v-if="mode !== 'service'" type="button" class="sw-btn xs" @click="previewOpen = true">
+          {{ t('Preview') }}
+        </button>
+      </div>
+    </label>
+
+    <!-- The instance half, applied within the service picked above. -->
+    <template v-if="mode === 'instance'">
+      <label class="pef-row">
+        <span class="pef-label">{{ t('Instance filter') }}</span>
+        <div class="pef-field">
+          <input
+            class="pef-input pef-instance-filter"
+            :class="{ invalid: inst.invalid.value }"
+            type="text"
+            :value="inst.body.value"
+            :placeholder="readOnly ? '' : inst.isRegex.value ? t('regular expression') : t('name fragment')"
+            :disabled="readOnly"
+            spellcheck="false"
+            @input="inst.setText(($event.target as HTMLInputElement).value)"
+          />
+          <label class="pef-regex" :class="{ on: inst.isRegex.value }">
+            <input type="checkbox" :checked="inst.isRegex.value" :disabled="readOnly" @change="inst.setRegex(($event.target as HTMLInputElement).checked)" />
+            {{ t('regex') }}
+          </label>
+          <span v-if="inst.invalid.value" class="page-issue">{{ t('Not a valid regular expression.') }}</span>
+        </div>
+      </label>
+
+      <div class="pef-row">
+        <span class="pef-label">{{ t('Attribute conditions') }}</span>
+        <div class="pef-attrs">
+          <p v-if="attrs.length === 0" class="pef-hint">{{ t('No conditions — every instance matching the name filter is shown.') }}</p>
+          <!-- Fixed columns so the operator reads down a column rather
+               than re-finding each field on every row. -->
+          <div v-for="(a, i) in attrs" :key="i" class="pef-attr">
+            <input
+              class="pef-input"
+              type="text"
+              :value="a.attribute"
+              :placeholder="t('attribute, e.g. namespace')"
+              :disabled="readOnly"
+              spellcheck="false"
+              @input="patchAttr(i, { attribute: ($event.target as HTMLInputElement).value })"
+            />
+            <TypeaheadSelect
+              :model-value="a.op"
+              :options="[{ value: 'exists', label: t('exists') }, { value: 'eq', label: t('equals') }]"
+              :disabled="readOnly"
+              :min-panel-width="140"
+              @update:model-value="(v) => patchAttr(i, { op: v as 'exists' | 'eq' })"
+            />
+            <input
+              v-if="a.op === 'eq'"
+              class="pef-input"
+              type="text"
+              :value="a.value ?? ''"
+              :placeholder="t('value')"
+              :disabled="readOnly"
+              spellcheck="false"
+              @input="patchAttr(i, { value: ($event.target as HTMLInputElement).value })"
+            />
+            <span v-else class="pef-input-gap" />
+            <button v-if="!readOnly" type="button" class="sw-btn xs danger" @click="removeAttr(i)">{{ t('Remove') }}</button>
+          </div>
+          <button
+            v-if="!readOnly && !atAttrCap"
+            type="button"
+            class="sw-btn xs pef-add"
+            @click="addAttr"
+          >{{ t('+ Condition') }}</button>
+          <p v-else-if="!readOnly" class="pef-hint">
+            {{ t('{n} conditions is the maximum for one page.', { n: MAX_INSTANCE_ATTRIBUTE_PREDICATES }) }}
+          </p>
+        </div>
+      </div>
+    </template>
+
+    <div class="pef-row">
+      <span class="pef-label">{{ t('Matches') }}</span>
+      <div class="pef-check">
+        <button type="button" class="sw-btn xs" @click="previewOpen = true">
+          {{ t('Preview matches') }}
+        </button>
+        <span v-if="!unavailable" class="pef-count">
+          {{ t('{n} of {total}', { n: hitCount, total: rows.length }) }}
+        </span>
+        <!-- The one failure invisible on the rendered page stays on the
+             surface rather than behind the button. -->
+        <span v-if="!unavailable && hitCount === 0" class="page-issue">
+          {{ t('Nothing matches — this page would show an empty list.') }}
+        </span>
+      </div>
+    </div>
+
+    <Modal
+      :open="previewOpen"
+      :title="mode === 'instance' ? t('Instances this page shows') : t('Services this page shows')"
+      width="min(680px, 94vw)"
+      @close="previewOpen = false"
+    >
+      <!-- One switch for both panes, so they cannot disagree. Endpoints
+           have no filter, so nothing there is excluded to hide. -->
+      <div class="pef-seg" role="group" :aria-label="t('Show')">
+        <button type="button" :class="{ on: showAll }" @click="showAll = true">{{ t('All') }}</button>
+        <button type="button" :class="{ on: !showAll }" @click="showAll = false">{{ t('Filtered') }}</button>
+      </div>
+
+      <!-- The service list first, because every entity page starts by
+           picking a service — and on an Instance or Endpoint page it is
+           the only preview the service filter has. -->
+      <div class="pef-pane">
+        <div class="pef-pane-head">
+          <span class="pef-label">{{ t('Services') }}</span>
+          <span v-if="props.services.length" class="pef-count">
+            {{ t('{n} of {total}', { n: inScopeServices.length, total: props.services.length }) }}
+          </span>
+        </div>
+        <p v-if="props.services.length === 0" class="pef-hint">{{ t('service list unavailable') }}</p>
+        <ul v-else class="pef-list">
+          <li v-for="r in svcSlice" :key="r.name" :class="{ hit: r.hit }">
+            <span class="pef-dot" />{{ r.name }}
+          </li>
+        </ul>
+        <div v-if="svcShown.length > 0" class="pef-pager">
+          <button type="button" class="sw-btn xs ghost" :disabled="svcPageNo <= 1" @click="svcPage = svcPageNo - 1">‹</button>
+          <span>{{ rangeLabel(svcPageNo, svcShown.length) }}</span>
+          <button type="button" class="sw-btn xs ghost" :disabled="svcPageNo >= pageCount(svcShown.length)" @click="svcPage = svcPageNo + 1">›</button>
+        </div>
+        <p v-if="props.services.length > 0 && inScopeServices.length === 0" class="page-issue">
+          {{ t('Nothing matches — this page would show an empty list.') }}
+        </p>
+      </div>
+
+      <!-- Beneath a selected service: the entity the page is about. -->
+      <div v-if="mode !== 'service'" class="pef-pane">
+        <div class="pef-pane-head">
+          <span class="pef-label">{{ mode === 'instance' ? t('Instances') : t('Endpoints') }}</span>
+          <label class="pef-sample">
+            <span>{{ t('under') }}</span>
+            <TypeaheadSelect
+              :model-value="previewService"
+              :options="serviceOptions"
+              :disabled="serviceOptions.length === 0"
+              :min-panel-width="260"
+              :aria-label="t('Sample service')"
+              @update:model-value="(v) => (previewService = v as string)"
+            />
+          </label>
+          <input
+            v-if="mode === 'endpoint'"
+            v-model="endpointQuery"
+            class="pef-input pef-search"
+            type="text"
+            :placeholder="t('search endpoints…')"
+            spellcheck="false"
+          />
+          <span v-if="mode === 'instance' && instances.length" class="pef-count">
+            {{ t('{n} of {total}', { n: hitCount, total: instanceRows.length }) }}
+          </span>
+        </div>
+        <p v-if="instancesLoading || endpointsLoading" class="pef-hint">{{ t('Reading data…') }}</p>
+        <template v-else-if="mode === 'instance'">
+          <p v-if="instanceRows.length === 0" class="pef-hint">{{ t('No instances to preview against.') }}</p>
+          <ul v-else class="pef-list">
+            <li v-for="r in instSlice" :key="r.name" :class="{ hit: r.hit }">
+              <span class="pef-dot" />{{ r.name }}
+            </li>
+          </ul>
+          <div v-if="instShown.length > 0" class="pef-pager">
+            <button type="button" class="sw-btn xs ghost" :disabled="instPageNo <= 1" @click="instPage = instPageNo - 1">‹</button>
+            <span>{{ rangeLabel(instPageNo, instShown.length) }}</span>
+            <button type="button" class="sw-btn xs ghost" :disabled="instPageNo >= pageCount(instShown.length)" @click="instPage = instPageNo + 1">›</button>
+          </div>
+          <p v-if="instanceRows.length > 0 && hitCount === 0" class="page-issue">
+            {{ t('Nothing matches — this page would show an empty list.') }}
+          </p>
+        </template>
+        <template v-else>
+          <!-- Endpoints are browsed, not matched: an Endpoint page has no
+               endpoint filter, so this answers "what is under the
+               services this page selects" rather than "what is lit". -->
+          <p v-if="endpoints.length === 0" class="pef-hint">{{ t('No endpoints found.') }}</p>
+          <ul v-else class="pef-list">
+            <li v-for="e in epSlice" :key="e.id" class="hit">
+              <span class="pef-dot" />{{ e.name }}
+            </li>
+          </ul>
+          <div v-if="endpoints.length > 0" class="pef-pager">
+            <button type="button" class="sw-btn xs ghost" :disabled="epPageNo <= 1" @click="epPage = epPageNo - 1">‹</button>
+            <span>{{ rangeLabel(epPageNo, endpoints.length) }}</span>
+            <button type="button" class="sw-btn xs ghost" :disabled="epPageNo >= pageCount(endpoints.length)" @click="epPage = epPageNo + 1">›</button>
+          </div>
+        </template>
+      </div>
+
+      <template #footer>
+        <button class="sw-btn" type="button" @click="previewOpen = false">{{ t('Close') }}</button>
+      </template>
+    </Modal>
+  </div>
+</template>
+
+<style scoped>
+/* A two-column grid: labels in a fixed left column so every field starts
+   at the same x. The rows ask different questions and are different
+   heights; without the column they read as unrelated controls. */
+.pef { display: flex; flex-direction: column; gap: 10px; }
+.pef-row {
+  display: grid;
+  grid-template-columns: 150px minmax(0, 1fr);
+  align-items: start;
+  gap: 4px 10px;
+}
+/* The switch, count and issue sit beside the field, not under it. */
+/* One line: field, switch, then the count or the issue. */
+.pef-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
+.pef-label {
+  padding-top: 4px;
+  font-size: 10px;
+  letter-spacing: 0.05em;
+  text-transform: uppercase;
+  color: var(--sw-fg-2);
+}
+.pef-input {
+  background: var(--sw-bg-2);
+  border: 1px solid var(--sw-line-2);
+  border-radius: 4px;
+  color: var(--sw-fg-0);
+  font-size: 12px;
+  padding: 3px 7px;
+  width: 100%;
+  max-width: 320px;
+  font-family: var(--sw-mono);
+}
+.pef-input.invalid { border-color: var(--sw-danger); }
+.pef-input:disabled { opacity: 0.55; }
+.pef-regex {
+  display: inline-flex;
+  align-items: center;
+  gap: 5px;
+  font-size: 11px;
+  color: var(--sw-fg-2);
+  cursor: pointer;
+}
+.pef-regex.on { color: var(--sw-accent); }
+.pef-attrs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
+/* Fixed columns, so attribute / operator / value / Remove line up down
+   the rows — an `exists` row keeps the value column as a gap rather than
+   sliding its Remove button left. */
+.pef-attr {
+  display: grid;
+  /* The trailing 1fr absorbs the slack, so Remove sits next to the value
+     instead of stretching to the far edge of a wide card. */
+  grid-template-columns: minmax(0, 220px) minmax(150px, auto) minmax(0, 200px) auto 1fr;
+  align-items: center;
+  gap: 6px;
+}
+.pef-attr .pef-input { max-width: none; }
+/* Grid children default to min-width:auto, so the operator select refused
+   to shrink and sat ON the value box beside it. */
+.pef-attr > * { min-width: 0; }
+.pef-input-gap { display: block; }
+.pef-add { justify-self: start; }
+.pef-hint { margin: 0; font-size: 11.5px; color: var(--sw-fg-3); }
+.pef-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
+.pef-count { font-size: 11px; color: var(--sw-fg-2); }
+.pef-pane + .pef-pane { margin-top: 16px; border-top: 1px solid var(--sw-line-2); padding-top: 14px; }
+.pef-pane-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
+.pef-search { max-width: 220px; }
+.pef-sample { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sw-fg-3); }
+.pef-list {
+  list-style: none;
+  margin: 8px 0 0;
+  padding: 0;
+  display: flex;
+  flex-direction: column;
+  max-height: 300px;
+  overflow-y: auto;
+  border: 1px solid var(--sw-line-3);
+  border-radius: 4px;
+}
+.pef-list li {
+  display: flex;
+  align-items: center;
+  gap: 7px;
+  padding: 4px 9px;
+  font-family: var(--sw-mono);
+  font-size: 11px;
+  color: var(--sw-fg-3);
+}
+.pef-list li + li { border-top: 1px solid var(--sw-line-3); }
+.pef-pager {
+  display: flex;
+  align-items: center;
+  gap: 8px;
+  margin-top: 6px;
+  font-size: 11px;
+  color: var(--sw-fg-3);
+}
+.pef-seg {
+  display: inline-flex;
+  margin-bottom: 12px;
+  border: 1px solid var(--sw-line-2);
+  border-radius: 4px;
+  overflow: hidden;
+}
+.pef-seg button {
+  padding: 3px 12px;
+  font-size: 11px;
+  background: transparent;
+  color: var(--sw-fg-3);
+  border: 0;
+  cursor: pointer;
+}
+.pef-seg button.on { background: var(--sw-bg-3); color: var(--sw-fg-0); }
+.pef-seg button + button { border-left: 1px solid var(--sw-line-2); }
+.pef-list li.hit { color: var(--sw-fg-0); }
+.pef-dot {
+  width: 5px;
+  height: 5px;
+  border-radius: 50%;
+  background: var(--sw-line-2);
+}
+.pef-list li.hit .pef-dot { background: var(--sw-accent); }
+</style>
diff --git a/apps/ui/src/features/admin/layer-templates/PageSelectorBar.vue b/apps/ui/src/features/admin/layer-templates/PageSelectorBar.vue
new file mode 100644
index 0000000..cb0a5e1
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/PageSelectorBar.vue
@@ -0,0 +1,355 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!--
+  Picks WHICH page of the active component the canvas edits, and creates,
+  renames and deletes them.
+
+  It is not an ordering control. Where a page sits in the layer's menu is
+  decided in the live menu preview; putting order here too would give the
+  operator two places to answer the same question.
+-->
+<script setup lang="ts">
+import { computed, ref, nextTick } from 'vue';
+import { useI18n } from 'vue-i18n';
+import { isBuiltInLayerRow } from '@skywalking-horizon-ui/api-client';
+import type { AdminExtPage } from '@/api/client';
+import { extPageIdIssue, suggestPageId, MAX_EXT_PAGES } from './useExtPages';
+import { MAX_EXT_PAGE_ID_LENGTH, MAX_EXT_PAGE_NAME_LENGTH } from '@skywalking-horizon-ui/api-client';
+
+const props = defineProps<{
+  pages: readonly AdminExtPage[];
+  activePage: string | null;
+  canAdd: boolean;
+  /** Service pages only: the filter field appears, with a live count
+   *  against this roster. Empty while the roster is still loading, which
+   *  shows an unavailable count rather than blocking the edit. */
+  /** Label of the component whose pages these are — the DEFAULT entry
+   *  shows it, so the operator reads "Service · DEFAULT". */
+  scopeLabel: string;
+  readOnly?: boolean;
+}>();
+const emit = defineEmits<{
+  (e: 'select', id: string | null): void;
+  (e: 'add', v: { id: string; name: string }): void;
+  (e: 'rename', v: { id: string; name: string }): void;
+  (e: 'delete', id: string): void;
+}>();
+
+const { t } = useI18n();
+
+const adding = ref(false);
+const draftName = ref('');
+const draftId = ref('');
+/** True once the operator edits the id, after which the name stops
+ *  seeding it — otherwise typing the name would overwrite their id. */
+const idTouched = ref(false);
+const nameInput = ref<HTMLInputElement | null>(null);
+const renamingId = ref<string | null>(null);
+const renameValue = ref('');
+
+const takenIds = computed(() => props.pages.map((p) => p.id));
+/** The name seeds the id until the operator types one. The id is asked
+ *  for at creation and then frozen: it is the route segment, the
+ *  `menuOrder` entry and the translation anchor, so a later rename must
+ *  not move it. */
+const effectiveId = computed(() =>
+  idTouched.value ? draftId.value.trim() : suggestPageId(draftName.value, takenIds.value, isBuiltInLayerRow),
+);
+const addIssue = computed<string | null>(() => {
+  const name = draftName.value.trim();
+  if (name === '') return t('Give the page a name.');
+  if (name.length > MAX_EXT_PAGE_NAME_LENGTH) {
+    return t('A name is at most {n} characters.', { n: MAX_EXT_PAGE_NAME_LENGTH });
+  }
+  if (effectiveId.value === '') return t('Give the page an id.');
+  if (effectiveId.value.length > MAX_EXT_PAGE_ID_LENGTH) {
+    return t('An id is at most {n} characters.', { n: MAX_EXT_PAGE_ID_LENGTH });
+  }
+  const issue = extPageIdIssue(effectiveId.value, takenIds.value, isBuiltInLayerRow);
+  if (issue === 'duplicate') return t('That id is already used by another page.');
+  if (issue === 'reserved') return t('That id is a built-in menu entry — pick another.');
+  if (issue) return t('An id uses lowercase letters, digits and dashes.');
+  return null;
+});
+
+/** Legal, so it does not block the add — but the id is derived from the
+ *  name, so a repeat quietly becomes `<id>-2` and the two are told apart
+ *  only by that. Worth saying before it is created, not after. */
+const nameClash = computed<boolean>(() => {
+  const n = draftName.value.trim().toLowerCase();
+  return n !== '' && props.pages.some((p) => p.name.trim().toLowerCase() === n);
+});
+
+async function startAdd(): Promise<void> {
+  adding.value = true;
+  draftName.value = '';
+  draftId.value = '';
+  idTouched.value = false;
+  await nextTick();
+  nameInput.value?.focus();
+}
+function confirmAdd(): void {
+  if (addIssue.value) return;
+  emit('add', { id: effectiveId.value, name: draftName.value.trim() });
+  adding.value = false;
+  draftName.value = '';
+  draftId.value = '';
+  idTouched.value = false;
+}
+
+function startRenameActive(): void {
+  const p = props.pages.find((x) => x.id === props.activePage);
+  if (!p) return;
+  renamingId.value = p.id;
+  renameValue.value = p.name;
+}
+/** The same bounds the Add form holds. Rename accepted anything, and the
+ *  draft was then refused at save by a message about ids. */
+const renameIssue = computed<string | null>(() => {
+  const name = renameValue.value.trim();
+  if (name === '') return t('Give the page a name.');
+  if (name.length > MAX_EXT_PAGE_NAME_LENGTH) {
+    return t('A name is at most {n} characters.', { n: MAX_EXT_PAGE_NAME_LENGTH });
+  }
+  return null;
+});
+function commitRename(): void {
+  const id = renamingId.value;
+  // Keep the field open on a bad value rather than silently discarding
+  // the edit — blur commits, and a dropped rename reads as a dead control.
+  if (renameIssue.value) return;
+  if (id) emit('rename', { id, name: renameValue.value.trim() });
+  renamingId.value = null;
+}
+</script>
+
+<template>
+  <div class="page-bar">
+    <span class="page-bar-label">{{ t('Page') }}</span>
+
+    <!-- A select, not chips: the plan asked for one, and a component may
+         carry twelve pages — a chip row wraps and pushes the canvas down,
+         while a select stays one line and names the current page even when
+         two pages share a display name. -->
+    <select
+      class="page-select"
+      :aria-label="t('Page')"
+      :value="activePage ?? ''"
+      @change="emit('select', ($event.target as HTMLSelectElement).value || null)"
+    >
+      <option value="">{{ scopeLabel }} — {{ t('DEFAULT') }}</option>
+      <!-- Name AND id: duplicate names are legal because identity is the
+           id, which leaves two pages called "Detail" indistinguishable
+           without it. The runtime sidebar stays name-only — an operator
+           reading the menu never picked the id. -->
+      <option v-for="p in pages" :key="p.id" :value="p.id">{{ p.name }} ({{ p.id }})</option>
+    </select>
+
+    <!-- With the default page selected, Rename and Delete are simply
+         absent. Say why: their absence reads as a bug or as a page not
+         fully loaded, and the reason is worth knowing — the default page
+         IS the component's own grid, so removing it would leave the
+         component with no dashboard at all. -->
+    <span v-if="!activePage" class="page-default-tip">
+      {{ t('The default page is the component’s own grid — it cannot be renamed or removed. Add a page to create one that can.') }}
+    </span>
+
+    <template v-if="activePage && !readOnly">
+      <input
+        v-if="renamingId === activePage"
+        v-model="renameValue"
+        class="page-rename"
+        type="text"
+        :aria-label="t('Page name')"
+        @keyup.enter="commitRename"
+        @keyup.esc="renamingId = null"
+        @blur="commitRename"
+      />
+      <span v-if="renamingId === activePage && renameIssue" class="page-issue">{{ renameIssue }}</span>
+      <button v-else-if="renamingId !== activePage" type="button" class="sw-btn xs ghost" @click="startRenameActive">
+        {{ t('Rename') }}
+      </button>
+      <button type="button" class="sw-btn xs ghost" :title="t('Delete this page')" @click="emit('delete', activePage)">
+        {{ t('Delete') }}
+      </button>
+    </template>
+
+    <template v-if="!readOnly">
+      <span v-if="adding" class="page-add-form">
+        <input
+          ref="nameInput"
+          v-model="draftName"
+          class="page-rename"
+          type="text"
+          :placeholder="t('Page name')"
+          :aria-label="t('Page name')"
+          @keyup.enter="confirmAdd"
+          @keyup.esc="adding = false"
+        />
+        <span class="page-id-field">
+          <span class="page-id-slash">/</span>
+          <input
+            :value="effectiveId"
+            class="page-id-input"
+            type="text"
+            :placeholder="t('page-id')"
+            :aria-label="t('Page id')"
+            @input="idTouched = true; draftId = ($event.target as HTMLInputElement).value"
+            @keyup.enter="confirmAdd"
+            @keyup.esc="adding = false"
+          />
+        </span>
+        <button type="button" class="sw-btn xs" :disabled="!!addIssue" @click="confirmAdd">
+          {{ t('Add') }}
+        </button>
+        <button type="button" class="sw-btn xs ghost" @click="adding = false">{{ t('Cancel') }}</button>
+        <span v-if="addIssue && draftName" class="page-issue">{{ addIssue }}</span>
+        <span v-else-if="nameClash" class="page-warn">
+          {{ t('Another page already has this name — rename one, or they are told apart only by id.') }}
+        </span>
+      </span>
+      <button
+        v-else-if="canAdd"
+        type="button"
+        class="page-chip add"
+        :title="t('Add a page to this component')"
+        @click="startAdd"
+      >+ {{ t('Page') }}</button>
+      <span v-else class="page-cap">{{ t('{n} page maximum', { n: MAX_EXT_PAGES }) }}</span>
+    </template>
+
+  </div>
+</template>
+
+<style scoped>
+.page-bar {
+  display: flex;
+  align-items: center;
+  flex-wrap: wrap;
+  gap: 6px;
+  padding: 2px 10px 0;
+}
+.page-bar-label {
+  font-size: 10.5px;
+  text-transform: uppercase;
+  letter-spacing: 0.06em;
+  color: var(--sw-fg-2);
+  margin-right: 2px;
+}
+.page-default-tip {
+  font-size: 11px;
+  color: var(--sw-fg-3);
+  line-height: 1.4;
+}
+.page-select {
+  padding: 3px 8px;
+  border: 1px solid var(--sw-line-2);
+  border-radius: 5px;
+  background: var(--sw-bg-2);
+  color: var(--sw-fg-0);
+  font-size: 11.5px;
+  max-width: 260px;
+}
+.page-chip {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
+  padding: 3px 9px;
+  border: 1px solid var(--sw-line-2);
+  border-radius: 999px;
+  background: transparent;
+  color: var(--sw-fg-1);
+  font-size: 11.5px;
+  font-weight: 500;
+  cursor: pointer;
+}
+.page-chip:hover {
+  color: var(--sw-fg-0);
+  border-color: var(--sw-line-1);
+}
+.page-chip.on {
+  background: rgba(249, 115, 22, 0.12);
+  border-color: var(--sw-accent);
+  color: var(--sw-fg-0);
+  font-weight: 600;
+}
+.page-chip.add {
+  border-style: dashed;
+  color: var(--sw-fg-2);
+}
+.default-tag {
+  font-size: 9px;
+  letter-spacing: 0.06em;
+  color: var(--sw-fg-3);
+  border: 1px solid var(--sw-line-2);
+  border-radius: 3px;
+  padding: 0 3px;
+}
+.page-chip.on .default-tag {
+  color: var(--sw-fg-1);
+}
+.page-del {
+  display: inline-flex;
+  opacity: 0.7;
+}
+.page-del:hover {
+  opacity: 1;
+  color: var(--sw-err);
+}
+.page-add-form {
+  display: inline-flex;
+  align-items: center;
+  gap: 5px;
+}
+.page-rename {
+  padding: 3px 8px;
+  border: 1px solid var(--sw-accent);
+  border-radius: 999px;
+  background: var(--sw-bg-2);
+  color: var(--sw-fg-0);
+  font-size: 11.5px;
+  min-width: 140px;
+}
+.page-issue {
+  font-size: 10.5px;
+  color: var(--sw-warn);
+}
+.page-id-field {
+  display: inline-flex;
+  align-items: center;
+  gap: 2px;
+}
+.page-id-slash { font-family: var(--sw-mono); font-size: 11px; color: var(--sw-fg-3); }
+.page-id-input {
+  padding: 3px 8px;
+  border: 1px solid var(--sw-accent);
+  border-radius: 999px;
+  background: var(--sw-bg-2);
+  color: var(--sw-fg-0);
+  font-size: 11.5px;
+  width: 150px;
+  font-family: var(--sw-mono);
+}
+.page-warn {
+  font-size: 10.5px;
+  color: var(--sw-warn);
+}
+.page-cap {
+  font-size: 10.5px;
+  color: var(--sw-fg-3);
+}
+</style>
diff --git a/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.test.ts b/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.test.ts
index 0e9ef5c..31c1d83 100644
--- a/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.test.ts
+++ b/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.test.ts
@@ -50,6 +50,47 @@ async function renameColumn(w: VueWrapper, i: number, to: string): Promise<void>
   await input.setValue(to);
 }
 
+/**
+ * A template that carries no `metrics` block at all.
+ *
+ * Every bundled template ships one, so this shape only became reachable
+ * when the editor started opening templates that exist solely on OAP. It
+ * threw on mount — the block is seeded through the model, and reading that
+ * model back on the same tick yields the value the parent has not sent
+ * back yet.
+ */
+describe('a template with no metrics block', () => {
+  it('mounts, and seeds the block rather than throwing', () => {
+    const w = mount(ServiceListMetricsEditor, {
+      props: { config: undefined, serviceLabel: 'Service' },
+      global: { plugins: [i18n] },
+    });
+    // The orderBy control renders off the seeded block, so its presence is
+    // what says the block reached the template rather than staying
+    // undefined behind a v-if.
+    expect(w.find('.metrics-keys').exists()).toBe(true);
+    // Seeded through the model, so the parent receives the block the
+    // editor is about to write into — and it is the SAME object, which is
+    // what makes the editor's in-place mutations reach the draft. The
+    // template's own reads have already put `columns` on it by now.
+    const seeded = w.emitted('update:config')?.[0]?.[0] as { columns?: unknown[] };
+    expect(seeded).toBeTypeOf('object');
+    expect(seeded.columns).toEqual([]);
+  });
+
+  it('accepts a column straight away', async () => {
+    const w = mount(ServiceListMetricsEditor, {
+      props: { config: undefined, serviceLabel: 'Service' },
+      global: { plugins: [i18n] },
+    });
+    await w.get('.card-head .add').trigger('click');
+    // The seeded object is the one the parent now holds, so the column
+    // landed where the draft can see it.
+    const seeded = w.emitted('update:config')?.[0]?.[0] as { columns?: unknown[] };
+    expect(seeded.columns).toHaveLength(1);
+  });
+});
+
 describe('service-list metrics editor — drafts the push route accepts', () => {
   it('never re-mints a metric id a surviving column still holds', async () => {
     const draft: Metrics = { columns: [] };
diff --git a/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.vue b/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.vue
index de873a5..f8ad334 100644
--- a/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.vue
+++ b/apps/ui/src/features/admin/layer-templates/ServiceListMetricsEditor.vue
@@ -43,7 +43,16 @@ defineProps<{ serviceLabel: string }>();
 const MAX_COLUMNS = 10;
 
 function ensure(): NonNullable<AdminLayerTemplate['metrics']> {
-  if (!config.value) config.value = {};
+  // Return the object we just seeded, not `config.value`: writing through a
+  // model emits to the parent, and the value has not flowed back on this
+  // tick — so the read yielded `undefined` and the caller dereferenced it.
+  // The parent stores this very object, so mutating it here is the same
+  // thing as mutating the draft.
+  if (!config.value) {
+    const seed: NonNullable<AdminLayerTemplate['metrics']> = {};
+    config.value = seed;
+    return seed;
+  }
   return config.value;
 }
 onMounted(ensure);
@@ -51,10 +60,7 @@ onMounted(ensure);
 // Mirrors the legacy metricsModel: seeds the block on access so the orderBy
 // control + columns table render even before the operator touches the JSON
 // (the block is part of the live draft and is mutated in place).
-const metricsModel = computed(() => {
-  ensure();
-  return config.value;
-});
+const metricsModel = computed(() => ensure());
 const metricsColumns = computed(() => {
   const m = ensure();
   if (!m.columns) m.columns = [];
diff --git a/apps/ui/src/features/admin/layer-templates/TopologyConfigEditor.vue b/apps/ui/src/features/admin/layer-templates/TopologyConfigEditor.vue
index f34578f..423df1e 100644
--- a/apps/ui/src/features/admin/layer-templates/TopologyConfigEditor.vue
+++ b/apps/ui/src/features/admin/layer-templates/TopologyConfigEditor.vue
@@ -94,7 +94,12 @@ function remove(list: TopologyMetricDef[], i: number): void {
     <div class="naming-prefix-row">
       <label class="comp-toggle" :class="{ on: showGroup }">
         <input type="checkbox" :checked="showGroup" @change="toggleShowGroup" />
-        <span class="comp-label">{{ t('Show') }} <code>&lt;group&gt;::</code> {{ t('as a chip in the node panel') }}</span>
+        <!-- One key, not three fragments: ja and ko put the prefix and the
+             verb in a different order, which a split sentence cannot express
+             and which left `Show` translated as a mid-sentence clause. -->
+        <i18n-t keypath="Show {prefix} as a chip in the node panel" tag="span" class="comp-label" scope="global">
+          <template #prefix><code>&lt;group&gt;::</code></template>
+        </i18n-t>
       </label>
       <span class="naming-prefix-hint">
         {{ t('Off:') }} <code>mesh-svr::reviews</code> {{ t('reads as') }} <code>reviews</code> {{ t('everywhere.') }}
diff --git a/apps/ui/src/features/admin/layer-templates/WidgetEditorCanvas.vue b/apps/ui/src/features/admin/layer-templates/WidgetEditorCanvas.vue
index d6d5f60..9e415ed 100644
--- a/apps/ui/src/features/admin/layer-templates/WidgetEditorCanvas.vue
+++ b/apps/ui/src/features/admin/layer-templates/WidgetEditorCanvas.vue
@@ -31,7 +31,7 @@
   real dashboard without a query per keystroke.
 -->
 <script setup lang="ts">
-import { computed, reactive, ref, onMounted, onBeforeUnmount, watch, nextTick } from 'vue';
+import { computed, ref, onMounted, onBeforeUnmount, watch, nextTick } from 'vue';
 import { useI18n } from 'vue-i18n';
 import type { AdminLayerTemplate } from '@/api/client';
 import type {
@@ -39,12 +39,10 @@ import type {
   DashboardTab,
 } from '@skywalking-horizon-ui/api-client';
 import { collectWidgetIds } from '@skywalking-horizon-ui/api-client';
+import { useExtPages } from './useExtPages';
+import { useCanvasResize } from './useCanvasResize';
+import { useCanvasReorder } from './useCanvasReorder';
 import {
-  CANVAS_COLS,
-  CANVAS_ROW_PX,
-  CANVAS_GAP_PX,
-  SUBGRID_ROW_PX,
-  SUBGRID_GAP_PX,
   DRAWER_COL,
   widgetSpan,
   widgetRowSpan,
@@ -60,11 +58,15 @@ import MqeExpressionInput from '@/features/admin/_shared/MqeExpressionInput.vue'
 
 // `draft` is the parent's shared reactive wrapper around the live template;
 // every edit here mutates it IN PLACE (the draft is shared by reference — never
-// clone). `activeScope` is the scope whose widget list the canvas edits.
+// clone). `activeScope` is the scope whose widget list the canvas edits, and
+// `activePage` picks WHICH of that component's pages — `null` for its default
+// grid.
 const props = defineProps<{
   draft: { template: AdminLayerTemplate | null };
   activeScope: AdminScope;
+  activePage?: string | null;
 }>();
+const emit = defineEmits<{ (e: 'update:activePage', v: string | null): void }>();
 
 const { t } = useI18n();
 
@@ -72,28 +74,21 @@ function scopeLabel(s: AdminScope): string {
   return scopeLabelOf(props.draft.template, s);
 }
 
+// Which page of the active scope the canvas edits — `null` is the
+// component's DEFAULT grid. Storage lives in `useExtPages`, so every
+// mutation below is page-aware without knowing which kind of page it is.
+const extPages = useExtPages(
+  computed(() => props.draft.template),
+  computed(() => props.activeScope as string),
+  computed({ get: () => props.activePage ?? null, set: (v) => emit('update:activePage', v) }),
+);
+
 function widgetsFor(scope: AdminScope): DashboardWidget[] {
-  const tpl = props.draft.template;
-  if (!tpl) return [];
-  // Read from `dashboards.<scope>`, falling back to legacy `widgets`
-  // for the service scope so the existing JSONs keep their content
-  // until we explicitly migrate them.
-  const scoped = tpl.dashboards?.[scope];
-  if (scoped) return scoped;
-  if (scope === 'service' && tpl.widgets) return tpl.widgets;
-  return [];
+  return extPages.readWidgets(scope, props.activePage ?? null);
 }
 
 function setWidgetsFor(scope: AdminScope, widgets: DashboardWidget[]): void {
-  const tpl = props.draft.template;
-  if (!tpl) return;
-  const dashboards = tpl.dashboards ?? {};
-  dashboards[scope] = widgets;
-  tpl.dashboards = dashboards;
-  // Drop the legacy `widgets` once we've split — keeps the JSON clean.
-  if (scope === 'service' && tpl.widgets) {
-    (tpl as unknown as { widgets?: DashboardWidget[] }).widgets = undefined;
-  }
+  extPages.writeWidgets(scope, props.activePage ?? null, widgets);
 }
 
 /** Every widget id in the draft — all scopes + tab children. Ids are the wire
@@ -101,10 +96,7 @@ function setWidgetsFor(scope: AdminScope, widgets: DashboardWidget[]): void {
  *  collisions a count-based id hits after a delete + re-add. */
 function allWidgetIds(): Set<string> {
   const ids = new Set<string>();
-  const tpl = props.draft.template;
-  if (!tpl) return ids;
-  if (tpl.dashboards) for (const ws of Object.values(tpl.dashboards)) collectWidgetIds(ws, ids);
-  if (tpl.widgets) collectWidgetIds(tpl.widgets, ids);
+  for (const ws of extPages.allWidgetLists()) collectWidgetIds(ws, ids);
   return ids;
 }
 /** Widget ids are minted against the WHOLE draft, not the list being appended
@@ -184,7 +176,7 @@ watch([selectedIdx, subSel], () => void nextTick(positionDrawer));
  *  doesn't refer to a widget that no longer exists. A layer switch / import /
  *  reset replaces `draft.template` (a fresh object), so watching its reference
  *  reproduces the parent's old `[activeScope, selectedKey]` reset trigger. */
-watch([() => props.activeScope, () => props.draft.template], () => {
+watch([() => props.activeScope, () => props.activePage, () => props.draft.template], () => {
   selectedIdx.value = null;
   subSel.value = null;
   // A different scope/layer has its own tab widgets; a stale per-id active-tab
@@ -227,238 +219,36 @@ function addToTab(widgetId: string, type: DashboardWidget['type']): void {
   subSel.value = { widgetId, tabIdx: ti, subIdx: widgets.length - 1 };
 }
 
-const canvasEl = ref<HTMLDivElement | null>(null);
-
-/** Active resize session: tracks the starting span/rowSpan + pixel
- *  origin so we can compute the new span from the mouse delta. */
-const resize = reactive<{
-  active: boolean;
-  idx: number;
-  sub: { widgetId: string; tabIdx: number; subIdx: number } | null;
-  startX: number;
-  startY: number;
-  startSpan: number;
-  startRowSpan: number;
-  cellW: number;
-  cellH: number;
-}>({
-  active: false,
-  idx: -1,
-  sub: null,
-  startX: 0,
-  startY: 0,
-  startSpan: 1,
-  startRowSpan: 1,
-  cellW: 1,
-  cellH: 1,
-});
-
-function onResizeStart(e: MouseEvent, i: number): void {
-  e.preventDefault();
-  e.stopPropagation();
-  const widgets = currentWidgets.value;
-  const w = widgets[i];
-  if (!w || !canvasEl.value) return;
-  const rect = canvasEl.value.getBoundingClientRect();
-  // The canvas grid uses 12 equal-width columns with a fixed gap. Column
-  // width is therefore (canvasWidth - 11 gaps - 2 padding) / 12. We snap
-  // the dragged span based on this cell pitch.
-  const cellW = (rect.width - 2 * 12 - CANVAS_GAP_PX * (CANVAS_COLS - 1)) / CANVAS_COLS;
-  resize.active = true;
-  resize.idx = i;
-  resize.startX = e.clientX;
-  resize.startY = e.clientY;
-  resize.startSpan = widgetSpan(w);
-  resize.startRowSpan = widgetRowSpan(w);
-  resize.cellW = cellW + CANVAS_GAP_PX;
-  resize.cellH = CANVAS_ROW_PX + CANVAS_GAP_PX;
-  selectedIdx.value = i;
-  window.addEventListener('mousemove', onResizeMove);
-  window.addEventListener('mouseup', onResizeEnd);
-}
-/** Resize a widget INSIDE a tab — same drag as the top level, but snapped to
- *  the tab's own 12-col sub-grid pitch (measured from the .cw-subgrid). */
-function onSubResizeStart(e: MouseEvent, widgetId: string, tabIdx: number, subIdx: number): void {
-  e.preventDefault();
-  e.stopPropagation();
-  const sw = subWidgetsOf(widgetId, tabIdx)[subIdx];
-  const grid = (e.target as HTMLElement).closest('.cw-subgrid') as HTMLElement | null;
-  if (!sw || !grid) return;
-  const rect = grid.getBoundingClientRect();
-  const cellW = (rect.width - SUBGRID_GAP_PX * (CANVAS_COLS - 1)) / CANVAS_COLS;
-  resize.active = true;
-  resize.idx = -1;
-  resize.sub = { widgetId, tabIdx, subIdx };
-  resize.startX = e.clientX;
-  resize.startY = e.clientY;
-  resize.startSpan = widgetSpan(sw);
-  resize.startRowSpan = widgetRowSpan(sw);
-  resize.cellW = cellW + SUBGRID_GAP_PX;
-  resize.cellH = SUBGRID_ROW_PX + SUBGRID_GAP_PX;
-  selectSub(widgetId, tabIdx, subIdx);
-  window.addEventListener('mousemove', onResizeMove);
-  window.addEventListener('mouseup', onResizeEnd);
-}
-function onResizeMove(e: MouseEvent): void {
-  if (!resize.active) return;
-  const dx = e.clientX - resize.startX;
-  const dy = e.clientY - resize.startY;
-  const newSpan = Math.max(1, Math.min(CANVAS_COLS, resize.startSpan + Math.round(dx / resize.cellW)));
-  const newRowSpan = Math.max(1, Math.min(8, resize.startRowSpan + Math.round(dy / resize.cellH)));
-  if (resize.sub) {
-    const { widgetId, tabIdx, subIdx } = resize.sub;
-    const ws = [...subWidgetsOf(widgetId, tabIdx)];
-    const w = ws[subIdx];
-    if (w && (w.span !== newSpan || w.rowSpan !== newRowSpan)) {
-      ws[subIdx] = { ...w, span: newSpan, rowSpan: newRowSpan };
-      commitSubWidgets(widgetId, tabIdx, ws);
-    }
-    return;
-  }
-  const widgets = [...currentWidgets.value];
-  const w = widgets[resize.idx];
-  if (!w) return;
-  if (w.span !== newSpan || w.rowSpan !== newRowSpan) {
-    widgets[resize.idx] = { ...w, span: newSpan, rowSpan: newRowSpan };
-    setWidgetsFor(props.activeScope, widgets);
-  }
-}
-function onResizeEnd(): void {
-  resize.active = false;
-  resize.sub = null;
-  window.removeEventListener('mousemove', onResizeMove);
-  window.removeEventListener('mouseup', onResizeEnd);
-}
+// Declared above the canvas composables that consume it: a `const` used
+// before its declaration is a TDZ ReferenceError that aborts setup and
+// leaves the page blank with no trace.
+const currentWidgets = computed(() => widgetsFor(props.activeScope));
 
-/** Active reorder session: tracks the dragged widget index and the
- *  current hover target. Drop reorders the array — no live mutation
- *  during the drag (the dragged widget keeps its slot but dims, the
- *  hover target gets a leading marker). */
-const reorder = reactive<{
-  active: boolean;
-  from: number;
-  over: number;
-  sub: { widgetId: string; tabIdx: number; subIdx: number } | null;
-}>({
-  active: false,
-  from: -1,
-  over: -1,
-  sub: null,
+const { canvasEl, resize, onResizeStart, onSubResizeStart } = useCanvasResize({
+  currentWidgets,
+  setWidgets: (widgets) => setWidgetsFor(props.activeScope, widgets),
+  subWidgetsOf,
+  commitSubWidgets,
+  selectedIdx,
+  selectSub,
 });
 
-function onReorderStart(e: DragEvent, i: number): void {
-  // Only allow drag from the widget's header. The header sets
-  // draggable=true; resize handles + drawer inputs do not.
-  reorder.active = true;
-  reorder.from = i;
-  reorder.over = i;
-  reorder.sub = null;
-  selectedIdx.value = i;
-  if (e.dataTransfer) {
-    e.dataTransfer.effectAllowed = 'move';
-    e.dataTransfer.setData('text/plain', String(i));
-  }
-}
-/** Start dragging a widget that lives INSIDE a tab — dropping it on the
- *  top-level canvas (or a top-level widget) moves it OUT of the tab. */
-function onSubReorderStart(e: DragEvent, widgetId: string, tabIdx: number, subIdx: number): void {
-  reorder.active = true;
-  reorder.from = -1;
-  reorder.over = -1;
-  reorder.sub = { widgetId, tabIdx, subIdx };
-  selectSub(widgetId, tabIdx, subIdx);
-  if (e.dataTransfer) {
-    e.dataTransfer.effectAllowed = 'move';
-    e.dataTransfer.setData('text/plain', 'sub');
-  }
-}
-/** Move the dragged in-tab widget out to the scope's top-level grid. */
-function moveSubToScope(insertAt: number | null): void {
-  if (!reorder.sub) return;
-  const { widgetId, tabIdx, subIdx } = reorder.sub;
-  const scope = [...widgetsFor(props.activeScope)];
-  const twIdx = scope.findIndex((w) => w.id === widgetId && w.type === 'tab');
-  const tw = twIdx >= 0 ? scope[twIdx] : null;
-  const sub = tw?.tabs?.[tabIdx]?.widgets[subIdx];
-  if (!tw?.tabs || !sub) return;
-  const tabs = [...tw.tabs];
-  tabs[tabIdx] = { ...tabs[tabIdx], widgets: tabs[tabIdx].widgets.filter((_, j) => j !== subIdx) };
-  scope[twIdx] = { ...tw, tabs };
-  const at = insertAt == null ? scope.length : Math.min(insertAt, scope.length);
-  scope.splice(at, 0, sub);
-  setWidgetsFor(props.activeScope, scope);
-  subSel.value = null;
-  selectedIdx.value = scope.indexOf(sub);
-}
-/** Drop on the canvas background (not on a widget) — moves a dragged in-tab
- *  widget OUT to the end of the top-level grid. */
-function onCanvasDrop(e: DragEvent): void {
-  if (!reorder.active || !reorder.sub) return;
-  e.preventDefault();
-  moveSubToScope(null);
-  reorder.active = false;
-  reorder.from = -1;
-  reorder.over = -1;
-  reorder.sub = null;
-}
-function onReorderOver(e: DragEvent, i: number): void {
-  if (!reorder.active) return;
-  e.preventDefault();
-  if (e.dataTransfer) e.dataTransfer.dropEffect = 'move';
-  if (reorder.over !== i) reorder.over = i;
-}
-function onReorderDrop(e: DragEvent, i: number): void {
-  if (!reorder.active) return;
-  e.preventDefault();
-  // Dragging a widget OUT of a tab, dropped over a top-level widget → insert
-  // it into the scope at that position.
-  if (reorder.sub) {
-    moveSubToScope(i);
-    reorder.active = false;
-    reorder.from = -1;
-    reorder.over = -1;
-    reorder.sub = null;
-    return;
-  }
-  const from = reorder.from;
-  const to = i;
-  if (from !== to) {
-    const widgets = [...currentWidgets.value];
-    const target = widgets[to];
-    const dragged = widgets[from];
-    if (target && dragged && target.type === 'tab' && dragged.type !== 'tab') {
-      // Dropped a leaf onto a tab container → MOVE it into that tab's ACTIVE
-      // panel (it leaves the top-level grid).
-      widgets.splice(from, 1);
-      const tabs = [...(target.tabs ?? [])];
-      if (tabs.length === 0) tabs.push({ name: 'Tab 1', widgets: [] });
-      const ti = Math.min(activeTabOf(target.id), tabs.length - 1);
-      tabs[ti] = { ...tabs[ti], widgets: [...tabs[ti].widgets, dragged] };
-      const tIdx = widgets.indexOf(target);
-      widgets[tIdx] = { ...target, tabs };
-      setWidgetsFor(props.activeScope, widgets);
-      selectedIdx.value = tIdx;
-    } else {
-      widgets.splice(from, 1);
-      widgets.splice(to, 0, dragged);
-      setWidgetsFor(props.activeScope, widgets);
-      selectedIdx.value = to;
-    }
-  }
-  reorder.active = false;
-  reorder.from = -1;
-  reorder.over = -1;
-}
-function onReorderEnd(): void {
-  reorder.active = false;
-  reorder.from = -1;
-  reorder.over = -1;
-  reorder.sub = null;
-}
-
-onBeforeUnmount(() => {
-  window.removeEventListener('mousemove', onResizeMove);
-  window.removeEventListener('mouseup', onResizeEnd);
+const {
+  reorder,
+  onReorderStart,
+  onSubReorderStart,
+  onCanvasDrop,
+  onReorderOver,
+  onReorderDrop,
+  onReorderEnd,
+} = useCanvasReorder({
+  currentWidgets,
+  readWidgets: () => widgetsFor(props.activeScope),
+  setWidgets: (widgets) => setWidgetsFor(props.activeScope, widgets),
+  selectedIdx,
+  subSel,
+  selectSub,
+  activeTabOf,
 });
 
 /** Convenience: the currently-selected widget — a top-level widget
@@ -772,7 +562,6 @@ function removeExpr(i: number): void {
   w.expressionAxes = drop(w.expressionAxes);
 }
 
-const currentWidgets = computed(() => widgetsFor(props.activeScope));
 
 /**
  * Structured `visibleWhen` editor. The gate is one of:
diff --git a/apps/ui/src/features/admin/layer-templates/componentDisable.ts b/apps/ui/src/features/admin/layer-templates/componentDisable.ts
new file mode 100644
index 0000000..b3a75c6
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/componentDisable.ts
@@ -0,0 +1,104 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * What switching an entity component OFF removes from a draft.
+ *
+ * Everything here is reachable only through that component, so leaving
+ * any of it behind produces configuration with no menu row to open it and
+ * no selector to delete it from — invisible until a publish rejects the
+ * template for carrying it.
+ *
+ * Extracted from the confirm handler so the tests exercise THIS, not a
+ * copy of it. The copy they held drifted immediately: it omitted the
+ * default-page filter and the instance-list configuration, both of which
+ * the handler removes and one of which publish refuses.
+ */
+
+import type { AdminLayerTemplate } from '@/api/client';
+
+export type EntityScope = 'service' | 'instance' | 'endpoint';
+
+/** Non-entity components own a configuration block each. */
+export const COMPONENT_OWNED_BLOCK: Record<string, 'topology' | 'deployment' | 'endpointDependency'> = {
+  topology: 'topology',
+  deployment: 'deployment',
+  endpointDependency: 'endpointDependency',
+};
+
+/** Everything the component owns, counted for the confirmation so it can
+ *  name what goes — and so a component whose ONLY configuration is one of
+ *  these does not take the silent "nothing to delete" path. */
+export function componentOwnedCount(
+  tpl: AdminLayerTemplate,
+  scope: EntityScope,
+): { grid: number; pages: number; pageWidgets: number; settings: number } {
+  const grid =
+    (tpl.dashboards?.[scope]?.length ?? 0) +
+    // The legacy flat list IS the service grid for a template that never
+    // split, so counting only `dashboards` let it be deleted unmentioned.
+    (scope === 'service' ? (tpl.widgets?.length ?? 0) : 0);
+  const pages = tpl.dashboardExtPages?.[scope] ?? [];
+  return {
+    grid,
+    pages: pages.length,
+    pageWidgets: pages.reduce((n, p) => n + p.widgets.length, 0),
+    settings:
+      (scope === 'instance' && (tpl as { instances?: unknown }).instances ? 1 : 0) +
+      (tpl.dashboardDefaultFilters?.[scope] ? 1 : 0),
+  };
+}
+
+/** Remove every trace of an entity component from the draft. */
+export function disableEntityComponent(tpl: AdminLayerTemplate, componentKey: string, scope: EntityScope): void {
+  (tpl.components as Record<string, boolean | undefined>)[componentKey] = false;
+
+  if (tpl.dashboardExtPages) {
+    delete tpl.dashboardExtPages[scope];
+    if (Object.keys(tpl.dashboardExtPages).length === 0) delete tpl.dashboardExtPages;
+  }
+  if (tpl.dashboards) {
+    delete tpl.dashboards[scope];
+    if (Object.keys(tpl.dashboards).length === 0) delete tpl.dashboards;
+  }
+  if (scope === 'service') delete (tpl as { widgets?: unknown }).widgets;
+
+  // Both the component's row and every one of its pages.
+  if (tpl.menuOrder) {
+    tpl.menuOrder = tpl.menuOrder.filter((p) => p !== scope && !p.startsWith(`${scope}/`));
+    if (tpl.menuOrder.length === 0) delete tpl.menuOrder;
+  }
+
+  // `instances` drives the instance list's badge and nothing else, so it
+  // is dead weight the moment the component is off — and would come back
+  // unannounced if the component were re-enabled later.
+  if (scope === 'instance') delete (tpl as { instances?: unknown }).instances;
+
+  // Publish refuses a filter under a component that is off, so leaving it
+  // builds a draft that cannot be pushed.
+  if (tpl.dashboardDefaultFilters) {
+    delete tpl.dashboardDefaultFilters[scope];
+    if (Object.keys(tpl.dashboardDefaultFilters).length === 0) delete tpl.dashboardDefaultFilters;
+  }
+}
+
+/** Remove the configuration block a non-entity component owns. */
+export function disableOwnedBlock(tpl: AdminLayerTemplate, componentKey: string): void {
+  (tpl.components as Record<string, boolean | undefined>)[componentKey] = false;
+  const block = COMPONENT_OWNED_BLOCK[componentKey];
+  if (block) delete (tpl as unknown as Record<string, unknown>)[block];
+}
diff --git a/apps/ui/src/features/admin/layer-templates/layerPickerList.ts b/apps/ui/src/features/admin/layer-templates/layerPickerList.ts
new file mode 100644
index 0000000..d31ea67
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/layerPickerList.ts
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import type { AdminLayerTemplate } from '@/api/client';
+import { layerKeyFromEditName } from '@/controls/localTemplateEdits';
+
+/** A layer the roster reports, as the picker needs it. */
+export interface RosterLayer {
+  key: string;
+  name: string;
+  color?: string;
+}
+
+export interface LayerPickerList {
+  list: AdminLayerTemplate[];
+  /** Roster layers with no template at all — the picker's blanks. */
+  unconfigured: number;
+  /** Their keys, upper-cased. The "not configured" filter reads this
+   *  rather than re-deriving the condition: asking whether a key is
+   *  missing from the BUNDLED list answers a different question, and
+   *  reported every stored-only layer — a published template — as
+   *  unconfigured. */
+  unconfiguredKeys: Set<string>;
+}
+
+/**
+ * Which layers the dashboard editor offers, from three sources in
+ * descending authority:
+ *
+ *  1. what the BFF loaded — every layer shipping a bundled JSON;
+ *  2. layers that exist ONLY as a stored OAP row. A bundled default is not
+ *     a precondition for editing: a template published from this page for
+ *     a layer that never shipped one, or one whose services are not
+ *     reporting right now, is still the operator's configuration and has
+ *     to be reachable. Omitting it did not merely hide the layer — its
+ *     deep link then selected a DIFFERENT one, silently, and edits meant
+ *     for the published template were written to that other one;
+ *  3. layers the roster reports with no template at all, opened from a
+ *     blank and becoming real on first save.
+ *
+ * A stored-only layer is carried in as its stored CONTENT rather than a
+ * blank: opening it empty would flatten its published widgets on save.
+ */
+export function composeLayerPickerList(
+  bundled: readonly AdminLayerTemplate[],
+  remoteNames: readonly string[],
+  remoteContent: (name: string) => AdminLayerTemplate | null,
+  roster: readonly RosterLayer[],
+  blankFor: (key: string, alias: string, color?: string) => AdminLayerTemplate,
+): LayerPickerList {
+  const present = new Set(bundled.map((t) => t.key.toUpperCase()));
+  const stored: AdminLayerTemplate[] = [];
+  for (const name of remoteNames) {
+    const key = layerKeyFromEditName(name);
+    if (!key || present.has(key.toUpperCase())) continue;
+    const content = remoteContent(name);
+    if (!content?.key) continue;
+    present.add(key.toUpperCase());
+    stored.push(content);
+  }
+  stored.sort((a, b) => a.key.localeCompare(b.key));
+  const synthesized = roster
+    .filter((L) => !present.has(L.key.toUpperCase()))
+    .map((L) => blankFor(L.key.toUpperCase(), L.name, L.color))
+    .sort((a, b) => a.key.localeCompare(b.key));
+  // `unconfigured` counts the blanks alone. A stored-only layer IS
+  // configured — by the operator, on this page — and folding it in here
+  // reported their own published template back to them as missing.
+  return {
+    list: [...bundled, ...stored, ...synthesized],
+    unconfigured: synthesized.length,
+    unconfiguredKeys: new Set(synthesized.map((t) => t.key.toUpperCase())),
+  };
+}
diff --git a/apps/ui/src/features/admin/layer-templates/menuOrder.ts b/apps/ui/src/features/admin/layer-templates/menuOrder.ts
new file mode 100644
index 0000000..5ecfb74
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/menuOrder.ts
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * What a stored `menuOrder` may contain, as two decisions the editor makes
+ * every time the menu changes shape.
+ *
+ * Extracted so the tests exercise these rules rather than a copy of them:
+ * a test that re-implements the pruning passes while the editor does
+ * something else, which is the failure mode worth designing against.
+ */
+
+/** Keep only entries the layer still resolves. A stored order naming a
+ *  row that no longer exists is refused at publish, while the editor stops
+ *  drawing it — the draft looks right and the push fails. */
+export function pruneMenuOrder(order: readonly string[], livePaths: readonly string[]): string[] {
+  const live = new Set(livePaths);
+  return order.filter((p) => live.has(p));
+}
+
+/** True when an arrangement says exactly what absence already says.
+ *  Storing it would be a pending change against OAP that moves no menu. */
+export function isBuiltInOrder(paths: readonly string[], builtIn: readonly string[]): boolean {
+  return paths.length === builtIn.length && paths.every((p, i) => p === builtIn[i]);
+}
diff --git a/apps/ui/src/features/admin/layer-templates/menuOrderPrune.test.ts b/apps/ui/src/features/admin/layer-templates/menuOrderPrune.test.ts
new file mode 100644
index 0000000..c098083
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/menuOrderPrune.test.ts
@@ -0,0 +1,116 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Switching a component off must not leave a draft that cannot be pushed.
+ *
+ * A stored order naming a row the layer no longer has is refused at
+ * publish, and the editor stops drawing that row — so the draft looks
+ * right and the push fails, with nothing on screen connecting the two.
+ *
+ * The editor prunes against the rows that ACTUALLY resolve rather than a
+ * table of which component owns which row. This pins the property that
+ * makes that the right shape: components own different NUMBERS of rows
+ * (Traces alone owns two), so any table would have to be maintained in
+ * step with the row registry.
+ */
+
+import { describe, it, expect } from 'vitest';
+import { resolveLayerMenuRows } from '@skywalking-horizon-ui/api-client';
+import { componentsToCaps } from '@/shell/layerFromTemplate';
+import { isBuiltInOrder, pruneMenuOrder } from './menuOrder';
+
+/** Calls the EDITOR's own pruning, not a copy of it: a re-implementation
+ *  here passes while the editor does something else, which is exactly the
+ *  drift this file exists to catch. */
+function prune(components: Record<string, boolean>, order: string[]): string[] {
+  const rows = resolveLayerMenuRows({
+    caps: componentsToCaps(components),
+    slots: {},
+  });
+  return pruneMenuOrder(order, rows.map((r) => r.path));
+}
+
+describe('menu order after a component toggle', () => {
+  it('drops the row a disabled component owned', () => {
+    const before = { service: true, logs: true };
+    expect(prune(before, ['service', 'logs'])).toEqual(['service', 'logs']);
+    expect(prune({ service: true, logs: false }, ['service', 'logs'])).toEqual(['service']);
+  });
+
+  it('drops BOTH rows when one component owns two', () => {
+    // Traces owns `trace` and `zipkin-trace`. A per-component table that
+    // mapped one row each would have left the second entry behind.
+    const on = { service: true, traces: true };
+    const withZipkin = { ...on, tracesSource: undefined };
+    const rows = resolveLayerMenuRows({
+      caps: componentsToCaps(withZipkin),
+      slots: {},
+      traces: { source: 'both' },
+    }).map((r) => r.path);
+    expect(rows).toEqual(expect.arrayContaining(['trace', 'zipkin-trace']));
+
+    const live = new Set(
+      resolveLayerMenuRows({ caps: componentsToCaps({ service: true, traces: false }), slots: {} }).map(
+        (r) => r.path,
+      ),
+    );
+    expect(['service', 'trace', 'zipkin-trace'].filter((p) => live.has(p))).toEqual(['service']);
+  });
+
+  it('keeps every row that still resolves', () => {
+    const c = { service: true, instances: true, logs: true };
+    expect(prune(c, ['logs', 'service', 'instance'])).toEqual(['logs', 'service', 'instance']);
+  });
+
+  it('needs no counterpart when a component is switched back ON', () => {
+    // Absence from the order means "default position", so a row that
+    // returns simply takes its place again — there is nothing to restore.
+    const back = { service: true, logs: true };
+    const rows = resolveLayerMenuRows({ caps: componentsToCaps(back), slots: {} }).map((r) => r.path);
+    expect(rows).toContain('logs');
+    expect(prune(back, ['service'])).toEqual(['service']);
+  });
+});
+
+/**
+ * An arrangement equal to the built-in order is not an arrangement. The
+ * editor stores nothing for it, so dragging back to where you started
+ * leaves no pending change against OAP.
+ */
+describe('an order that says what absence already says', () => {
+  const builtIn = ['service', 'instance', 'endpoint', 'topology'];
+
+  it('is recognised so the editor can drop it', () => {
+    expect(isBuiltInOrder(['service', 'instance', 'endpoint', 'topology'], builtIn)).toBe(true);
+  });
+
+  it('is not confused with a real rearrangement', () => {
+    expect(isBuiltInOrder(['instance', 'service', 'endpoint', 'topology'], builtIn)).toBe(false);
+  });
+
+  it('is not confused with a different SET of the same length', () => {
+    // Same count, one entry swapped for another — order alone is not the
+    // question, membership is part of it.
+    expect(isBuiltInOrder(['service', 'instance', 'endpoint', 'logs'], builtIn)).toBe(false);
+  });
+
+  it('treats a shorter or longer order as its own arrangement', () => {
+    expect(isBuiltInOrder(['service', 'instance', 'endpoint'], builtIn)).toBe(false);
+    expect(isBuiltInOrder([...builtIn, 'logs'], builtIn)).toBe(false);
+  });
+});
diff --git a/apps/ui/src/features/admin/layer-templates/storedOnlyLayers.test.ts b/apps/ui/src/features/admin/layer-templates/storedOnlyLayers.test.ts
new file mode 100644
index 0000000..95d95d4
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/storedOnlyLayers.test.ts
@@ -0,0 +1,149 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Which layers the dashboard editor can open.
+ *
+ * A bundled default is not a precondition for editing. A template
+ * published from this page for a layer that never shipped one — or one
+ * whose services are not reporting right now — is the operator's own
+ * configuration, and it has to be reachable again. When it was not, the
+ * picker silently fell back to another layer and an edit meant for the
+ * published template landed on that one instead.
+ *
+ * The composition is exercised directly rather than restated here: a test
+ * that reimplemented it would keep passing while the store drifted away
+ * from it. What it pins is the ordering of the three sources, that each
+ * key appears once, and that a stored-only layer is not counted among the
+ * "not configured yet" layers the banner reports.
+ */
+
+import { describe, it, expect } from 'vitest';
+import type { AdminLayerTemplate } from '@/api/client';
+import { layerEditName, layerKeyFromEditName } from '@/controls/localTemplateEdits';
+import { composeLayerPickerList } from './layerPickerList';
+
+type Tpl = AdminLayerTemplate;
+
+const blank = (key: string, alias: string): Tpl =>
+  ({ key, alias, slots: {}, components: { service: true }, metrics: {}, widgets: [] }) as Tpl;
+
+/** The real composition, with its four sources supplied. */
+function compose(
+  bundled: Tpl[],
+  remoteNames: string[],
+  remoteContent: (name: string) => Tpl | null,
+  roster: Array<{ key: string; name: string }>,
+) {
+  return composeLayerPickerList(bundled, remoteNames, remoteContent, roster, blank);
+}
+
+const BUNDLED: Tpl[] = [blank('GENERAL', 'General')];
+const stored = (key: string): Tpl => blank(key, `${key} stored`);
+
+describe('the editor picker', () => {
+  it('offers a layer that exists ONLY as a stored row', () => {
+    const r = compose(
+      BUNDLED,
+      [layerEditName('CUSTOM_MQ')],
+      () => stored('CUSTOM_MQ'),
+      [],
+    );
+    expect(r.list.map((t) => t.key)).toEqual(['GENERAL', 'CUSTOM_MQ']);
+  });
+
+  it('opens it from its stored content, not from a blank', () => {
+    // The bug this replaces did not merely hide the layer — anything that
+    // opened it from a blank would silently discard the published widgets
+    // on the next save.
+    const r = compose(BUNDLED, [layerEditName('CUSTOM_MQ')], () => stored('CUSTOM_MQ'), []);
+    expect(r.list[1].alias).toBe('CUSTOM_MQ stored');
+  });
+
+  it('does not need the layer to be reporting', () => {
+    // No roster entry at all: services may be down, or the layer may not
+    // have started reporting yet. The configuration still exists.
+    const r = compose(BUNDLED, [layerEditName('CUSTOM_MQ')], () => stored('CUSTOM_MQ'), []);
+    expect(r.list.some((t) => t.key === 'CUSTOM_MQ')).toBe(true);
+  });
+
+  it('keeps one entry per layer when a stored row also ships a bundle', () => {
+    const r = compose(BUNDLED, [layerEditName('GENERAL')], () => stored('GENERAL'), []);
+    expect(r.list.map((t) => t.key)).toEqual(['GENERAL']);
+    // The bundled entry wins its slot — the store's own remote/local
+    // resolution decides what the editor then loads into it.
+    expect(r.list[0].alias).toBe('General');
+  });
+
+  it('still synthesizes a blank for a reporting layer with no template', () => {
+    const r = compose(BUNDLED, [], () => null, [{ key: 'mesh', name: 'Mesh' }]);
+    expect(r.list.map((t) => t.key)).toEqual(['GENERAL', 'MESH']);
+    expect(r.unconfigured).toBe(1);
+  });
+
+  it('does not count a stored-only layer as "not configured yet"', () => {
+    // It IS configured — by the operator, on this page. Counting it would
+    // report their own published template back to them as missing.
+    const r = compose(
+      BUNDLED,
+      [layerEditName('CUSTOM_MQ')],
+      () => stored('CUSTOM_MQ'),
+      [{ key: 'mesh', name: 'Mesh' }],
+    );
+    expect(r.unconfigured).toBe(1);
+    expect(r.list.map((t) => t.key)).toEqual(['GENERAL', 'CUSTOM_MQ', 'MESH']);
+  });
+
+  it('marks only the blanks as "not configured"', () => {
+    // The picker's filter reads this set. Deriving it as "missing from the
+    // bundled list" instead answers a different question and swept in
+    // every stored-only layer — a template the operator had published.
+    const r = compose(
+      BUNDLED,
+      [layerEditName('CUSTOM_MQ')],
+      () => stored('CUSTOM_MQ'),
+      [{ key: 'mesh', name: 'Mesh' }],
+    );
+    expect([...r.unconfiguredKeys]).toEqual(['MESH']);
+    expect(r.unconfiguredKeys.has('CUSTOM_MQ')).toBe(false);
+    expect(r.unconfiguredKeys.has('GENERAL')).toBe(false);
+  });
+
+  it('ignores stored rows of another kind', () => {
+    const r = compose(BUNDLED, ['horizon.overview.services', 'horizon.alert.page-setup'], () => stored('X'), []);
+    expect(r.list.map((t) => t.key)).toEqual(['GENERAL']);
+  });
+
+  it('matches the roster case-insensitively, so a layer is never listed twice', () => {
+    const r = compose(BUNDLED, [layerEditName('CUSTOM_MQ')], () => stored('CUSTOM_MQ'), [
+      { key: 'custom_mq', name: 'Custom MQ' },
+    ]);
+    expect(r.list.map((t) => t.key)).toEqual(['GENERAL', 'CUSTOM_MQ']);
+    expect(r.unconfigured).toBe(0);
+  });
+});
+
+describe('layerKeyFromEditName', () => {
+  it('round-trips a layer name', () => {
+    expect(layerKeyFromEditName(layerEditName('custom_mq'))).toBe('CUSTOM_MQ');
+  });
+
+  it('refuses another kind, and the bare prefix', () => {
+    expect(layerKeyFromEditName('horizon.overview.services')).toBeNull();
+    expect(layerKeyFromEditName('horizon.layer.')).toBeNull();
+  });
+});
diff --git a/apps/ui/src/features/admin/layer-templates/useCanvasReorder.test.ts b/apps/ui/src/features/admin/layer-templates/useCanvasReorder.test.ts
new file mode 100644
index 0000000..619cd21
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/useCanvasReorder.test.ts
@@ -0,0 +1,178 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * The three drops the canvas distinguishes, and the selection each leaves
+ * behind.
+ *
+ * The composable was lifted out of the widget editor unchanged, which is
+ * exactly the state in which a later edit can shift one of these without
+ * anyone noticing: all three end with a widget on screen, and only WHERE
+ * it ended up says which branch ran. A browser cannot help much either —
+ * HTML5 drag is the one gesture Playwright's synthetic events do not
+ * produce.
+ */
+
+import { describe, it, expect } from 'vitest';
+import { ref, computed } from 'vue';
+import type { DashboardWidget } from '@skywalking-horizon-ui/api-client';
+import { useCanvasReorder } from './useCanvasReorder';
+
+const leaf = (id: string): DashboardWidget =>
+  ({ id, type: 'line', title: id, expressions: ['x'] }) as DashboardWidget;
+
+const tab = (id: string, panels: Array<{ name: string; widgets: DashboardWidget[] }>): DashboardWidget =>
+  ({ id, type: 'tab', title: id, tabs: panels }) as DashboardWidget;
+
+/** A canvas over `initial`, with the deps the composable actually reads. */
+function harness(initial: DashboardWidget[], activeTab = 0) {
+  const widgets = ref<DashboardWidget[]>(initial);
+  const selectedIdx = ref<number | null>(null);
+  const subSel = ref<{ widgetId: string; tabIdx: number; subIdx: number } | null>(null);
+  const api = useCanvasReorder({
+    currentWidgets: computed(() => widgets.value),
+    readWidgets: () => widgets.value,
+    setWidgets: (w) => (widgets.value = w),
+    selectedIdx,
+    subSel,
+    selectSub: (widgetId, tabIdx, subIdx) => (subSel.value = { widgetId, tabIdx, subIdx }),
+    activeTabOf: () => activeTab,
+  });
+  return { api, widgets, selectedIdx, subSel };
+}
+
+/** A drag event with only what the handlers touch. */
+const evt = (): DragEvent =>
+  ({
+    preventDefault: () => {},
+    dataTransfer: { effectAllowed: '', dropEffect: '', setData: () => {} },
+  }) as unknown as DragEvent;
+
+const ids = (w: DashboardWidget[]) => w.map((x) => x.id);
+
+describe('dropping a leaf on another leaf', () => {
+  it('reorders, and the dragged widget stays selected at its new index', () => {
+    const { api, widgets, selectedIdx } = harness([leaf('a'), leaf('b'), leaf('c')]);
+    api.onReorderStart(evt(), 0);
+    api.onReorderDrop(evt(), 2);
+    expect(ids(widgets.value)).toEqual(['b', 'c', 'a']);
+    expect(selectedIdx.value).toBe(2);
+  });
+
+  it('does nothing when dropped on itself', () => {
+    const { api, widgets } = harness([leaf('a'), leaf('b')]);
+    api.onReorderStart(evt(), 1);
+    api.onReorderDrop(evt(), 1);
+    expect(ids(widgets.value)).toEqual(['a', 'b']);
+  });
+});
+
+describe('dropping a leaf on a tab container', () => {
+  it("moves it INTO the tab's active panel and off the grid", () => {
+    const { api, widgets, selectedIdx } = harness(
+      [leaf('a'), tab('t', [{ name: 'One', widgets: [] }, { name: 'Two', widgets: [] }])],
+      1,
+    );
+    api.onReorderStart(evt(), 0);
+    api.onReorderDrop(evt(), 1);
+    expect(ids(widgets.value)).toEqual(['t']);
+    // The ACTIVE panel, not the first — dropping into a tab the operator is
+    // not looking at would put the widget somewhere they cannot see.
+    expect(ids(widgets.value[0].tabs![1].widgets)).toEqual(['a']);
+    expect(ids(widgets.value[0].tabs![0].widgets)).toEqual([]);
+    expect(selectedIdx.value).toBe(0);
+  });
+
+  it('gives a tab with no panels one to receive the drop', () => {
+    const { api, widgets } = harness([leaf('a'), tab('t', [])]);
+    api.onReorderStart(evt(), 0);
+    api.onReorderDrop(evt(), 1);
+    expect(widgets.value[0].tabs).toHaveLength(1);
+    expect(ids(widgets.value[0].tabs![0].widgets)).toEqual(['a']);
+  });
+
+  it('reorders rather than nests when a tab is dragged onto a tab', () => {
+    // Nesting a tab container inside another is not a shape the renderer
+    // supports, so this branch must fall through to a plain reorder.
+    const { api, widgets } = harness([tab('t1', []), tab('t2', [])]);
+    api.onReorderStart(evt(), 0);
+    api.onReorderDrop(evt(), 1);
+    expect(ids(widgets.value)).toEqual(['t2', 't1']);
+    expect(widgets.value[0].tabs).toEqual([]);
+  });
+});
+
+describe('dragging a widget out of a tab', () => {
+  const nested = () => [leaf('a'), tab('t', [{ name: 'One', widgets: [leaf('inner')] }])];
+
+  it('lands at the end of the grid when dropped on the canvas', () => {
+    const { api, widgets, selectedIdx, subSel } = harness(nested());
+    api.onSubReorderStart(evt(), 't', 0, 0);
+    expect(subSel.value).toEqual({ widgetId: 't', tabIdx: 0, subIdx: 0 });
+    api.onCanvasDrop(evt());
+    expect(ids(widgets.value)).toEqual(['a', 't', 'inner']);
+    expect(ids(widgets.value[1].tabs![0].widgets)).toEqual([]);
+    // Selection follows the widget out — it is the one the operator just
+    // moved, and it is no longer where the sub-selection pointed.
+    expect(subSel.value).toBeNull();
+    expect(selectedIdx.value).toBe(2);
+  });
+
+  it('lands at the drop position when dropped on a top-level widget', () => {
+    const { api, widgets, selectedIdx } = harness(nested());
+    api.onSubReorderStart(evt(), 't', 0, 0);
+    api.onReorderDrop(evt(), 0);
+    expect(ids(widgets.value)).toEqual(['inner', 'a', 't']);
+    expect(selectedIdx.value).toBe(0);
+  });
+
+  it('ignores a canvas drop when nothing is being dragged out of a tab', () => {
+    // The canvas background also receives drops from a plain grid reorder,
+    // which it must leave to the widget handlers.
+    const { api, widgets } = harness([leaf('a'), leaf('b')]);
+    api.onReorderStart(evt(), 0);
+    api.onCanvasDrop(evt());
+    expect(ids(widgets.value)).toEqual(['a', 'b']);
+  });
+});
+
+describe('the drag session', () => {
+  it('tracks the hover target without mutating anything', () => {
+    const { api, widgets } = harness([leaf('a'), leaf('b'), leaf('c')]);
+    api.onReorderStart(evt(), 0);
+    api.onReorderOver(evt(), 2);
+    expect(api.reorder.over).toBe(2);
+    expect(api.reorder.from).toBe(0);
+    // The marker is a preview: the order is unchanged until the drop.
+    expect(ids(widgets.value)).toEqual(['a', 'b', 'c']);
+  });
+
+  it('clears on end, so an abandoned drag leaves no armed session', () => {
+    const { api } = harness([leaf('a'), leaf('b')]);
+    api.onReorderStart(evt(), 0);
+    api.onReorderEnd();
+    expect(api.reorder.active).toBe(false);
+    expect(api.reorder.from).toBe(-1);
+    expect(api.reorder.sub).toBeNull();
+  });
+
+  it('ignores a drop that no drag started', () => {
+    const { api, widgets } = harness([leaf('a'), leaf('b')]);
+    api.onReorderDrop(evt(), 1);
+    expect(ids(widgets.value)).toEqual(['a', 'b']);
+  });
+});
diff --git a/apps/ui/src/features/admin/layer-templates/useCanvasReorder.ts b/apps/ui/src/features/admin/layer-templates/useCanvasReorder.ts
new file mode 100644
index 0000000..51e7784
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/useCanvasReorder.ts
@@ -0,0 +1,186 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Drag-to-reorder on the layer-dashboard admin canvas.
+ *
+ * Three drops are possible and each means something different: onto
+ * another top-level widget reorders, onto a tab container moves the
+ * dragged leaf INTO that tab's active panel, and dragging a widget out of
+ * a tab onto the canvas (or onto a top-level widget) lifts it back to the
+ * grid. Nothing mutates during the drag — the dragged widget keeps its
+ * slot and dims, the hover target gets a leading marker.
+ */
+
+import { reactive, type ComputedRef, type Ref } from 'vue';
+import type { DashboardWidget } from '@skywalking-horizon-ui/api-client';
+
+export interface CanvasReorderDeps {
+  /** Widgets of the page being edited. */
+  currentWidgets: ComputedRef<DashboardWidget[]>;
+  /** Read the page's widgets fresh (a drag out of a tab rewrites the
+   *  container in the same pass, so it needs the array, not the computed). */
+  readWidgets: () => DashboardWidget[];
+  /** Write the page's widgets back to the draft. */
+  setWidgets: (widgets: DashboardWidget[]) => void;
+  selectedIdx: Ref<number | null>;
+  subSel: Ref<{ widgetId: string; tabIdx: number; subIdx: number } | null>;
+  selectSub: (widgetId: string, tabIdx: number, subIdx: number) => void;
+  activeTabOf: (id: string) => number;
+}
+
+export function useCanvasReorder(deps: CanvasReorderDeps) {
+  /** Active reorder session: tracks the dragged widget index and the
+   *  current hover target. */
+  const reorder = reactive<{
+    active: boolean;
+    from: number;
+    over: number;
+    sub: { widgetId: string; tabIdx: number; subIdx: number } | null;
+  }>({
+    active: false,
+    from: -1,
+    over: -1,
+    sub: null,
+  });
+
+  function onReorderStart(e: DragEvent, i: number): void {
+    // Only allow drag from the widget's header. The header sets
+    // draggable=true; resize handles + drawer inputs do not.
+    reorder.active = true;
+    reorder.from = i;
+    reorder.over = i;
+    reorder.sub = null;
+    deps.selectedIdx.value = i;
+    if (e.dataTransfer) {
+      e.dataTransfer.effectAllowed = 'move';
+      e.dataTransfer.setData('text/plain', String(i));
+    }
+  }
+
+  /** Start dragging a widget that lives INSIDE a tab — dropping it on the
+   *  top-level canvas (or a top-level widget) moves it OUT of the tab. */
+  function onSubReorderStart(e: DragEvent, widgetId: string, tabIdx: number, subIdx: number): void {
+    reorder.active = true;
+    reorder.from = -1;
+    reorder.over = -1;
+    reorder.sub = { widgetId, tabIdx, subIdx };
+    deps.selectSub(widgetId, tabIdx, subIdx);
+    if (e.dataTransfer) {
+      e.dataTransfer.effectAllowed = 'move';
+      e.dataTransfer.setData('text/plain', 'sub');
+    }
+  }
+
+  /** Move the dragged in-tab widget out to the page's top-level grid. */
+  function moveSubToScope(insertAt: number | null): void {
+    if (!reorder.sub) return;
+    const { widgetId, tabIdx, subIdx } = reorder.sub;
+    const scope = [...deps.readWidgets()];
+    const twIdx = scope.findIndex((w) => w.id === widgetId && w.type === 'tab');
+    const tw = twIdx >= 0 ? scope[twIdx] : null;
+    const sub = tw?.tabs?.[tabIdx]?.widgets[subIdx];
+    if (!tw?.tabs || !sub) return;
+    const tabs = [...tw.tabs];
+    tabs[tabIdx] = { ...tabs[tabIdx], widgets: tabs[tabIdx].widgets.filter((_, j) => j !== subIdx) };
+    scope[twIdx] = { ...tw, tabs };
+    const at = insertAt == null ? scope.length : Math.min(insertAt, scope.length);
+    scope.splice(at, 0, sub);
+    deps.setWidgets(scope);
+    deps.subSel.value = null;
+    deps.selectedIdx.value = scope.indexOf(sub);
+  }
+
+  /** Drop on the canvas background (not on a widget) — moves a dragged in-tab
+   *  widget OUT to the end of the top-level grid. */
+  function onCanvasDrop(e: DragEvent): void {
+    if (!reorder.active || !reorder.sub) return;
+    e.preventDefault();
+    moveSubToScope(null);
+    reorder.active = false;
+    reorder.from = -1;
+    reorder.over = -1;
+    reorder.sub = null;
+  }
+
+  function onReorderOver(e: DragEvent, i: number): void {
+    if (!reorder.active) return;
+    e.preventDefault();
+    if (e.dataTransfer) e.dataTransfer.dropEffect = 'move';
+    if (reorder.over !== i) reorder.over = i;
+  }
+
+  function onReorderDrop(e: DragEvent, i: number): void {
+    if (!reorder.active) return;
+    e.preventDefault();
+    // Dragging a widget OUT of a tab, dropped over a top-level widget → insert
+    // it into the page at that position.
+    if (reorder.sub) {
+      moveSubToScope(i);
+      reorder.active = false;
+      reorder.from = -1;
+      reorder.over = -1;
+      reorder.sub = null;
+      return;
+    }
+    const from = reorder.from;
+    const to = i;
+    if (from !== to) {
+      const widgets = [...deps.currentWidgets.value];
+      const target = widgets[to];
+      const dragged = widgets[from];
+      if (target && dragged && target.type === 'tab' && dragged.type !== 'tab') {
+        // Dropped a leaf onto a tab container → MOVE it into that tab's ACTIVE
+        // panel (it leaves the top-level grid).
+        widgets.splice(from, 1);
+        const tabs = [...(target.tabs ?? [])];
+        if (tabs.length === 0) tabs.push({ name: 'Tab 1', widgets: [] });
+        const ti = Math.min(deps.activeTabOf(target.id), tabs.length - 1);
+        tabs[ti] = { ...tabs[ti], widgets: [...tabs[ti].widgets, dragged] };
+        const tIdx = widgets.indexOf(target);
+        widgets[tIdx] = { ...target, tabs };
+        deps.setWidgets(widgets);
+        deps.selectedIdx.value = tIdx;
+      } else {
+        widgets.splice(from, 1);
+        widgets.splice(to, 0, dragged);
+        deps.setWidgets(widgets);
+        deps.selectedIdx.value = to;
+      }
+    }
+    reorder.active = false;
+    reorder.from = -1;
+    reorder.over = -1;
+  }
+
+  function onReorderEnd(): void {
+    reorder.active = false;
+    reorder.from = -1;
+    reorder.over = -1;
+    reorder.sub = null;
+  }
+
+  return {
+    reorder,
+    onReorderStart,
+    onSubReorderStart,
+    onCanvasDrop,
+    onReorderOver,
+    onReorderDrop,
+    onReorderEnd,
+  };
+}
diff --git a/apps/ui/src/features/admin/layer-templates/useCanvasResize.test.ts b/apps/ui/src/features/admin/layer-templates/useCanvasResize.test.ts
new file mode 100644
index 0000000..977242c
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/useCanvasResize.test.ts
@@ -0,0 +1,144 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Corner-drag resize, driven through real window events.
+ *
+ * The drag lives on the window rather than the handle, because the pointer
+ * leaves the widget almost immediately — so the listeners are the feature,
+ * not an implementation detail, and dispatching real events is what proves
+ * they are attached and, more importantly, REMOVED. A leaked mousemove
+ * listener resizes whatever was last dragged whenever the operator moves
+ * the mouse, which is the kind of fault a mocked handler call cannot see.
+ */
+
+import { describe, it, expect, beforeEach } from 'vitest';
+import { ref, computed } from 'vue';
+import type { DashboardWidget } from '@skywalking-horizon-ui/api-client';
+import { useCanvasResize } from './useCanvasResize';
+import { CANVAS_COLS, CANVAS_GAP_PX, CANVAS_ROW_PX } from './layer-dashboards.geometry';
+
+const w = (id: string, span = 6, rowSpan = 2): DashboardWidget =>
+  ({ id, type: 'line', title: id, expressions: ['x'], span, rowSpan }) as DashboardWidget;
+
+/** Canvas width chosen so one column step is a round number of pixels. */
+const CANVAS_W = 1000;
+const cellW = (CANVAS_W - 2 * 12 - CANVAS_GAP_PX * (CANVAS_COLS - 1)) / CANVAS_COLS + CANVAS_GAP_PX;
+const cellH = CANVAS_ROW_PX + CANVAS_GAP_PX;
+
+function harness(initial: DashboardWidget[]) {
+  const widgets = ref<DashboardWidget[]>(initial);
+  const selectedIdx = ref<number | null>(null);
+  const api = useCanvasResize({
+    currentWidgets: computed(() => widgets.value),
+    setWidgets: (next) => (widgets.value = next),
+    subWidgetsOf: () => [],
+    commitSubWidgets: () => {},
+    selectedIdx,
+    selectSub: () => {},
+  });
+  // The pitch is measured off the canvas element, so the drag cannot be
+  // exercised without one.
+  const el = document.createElement('div');
+  el.getBoundingClientRect = () => ({ width: CANVAS_W, height: 600, x: 0, y: 0, top: 0, left: 0, right: CANVAS_W, bottom: 600, toJSON: () => ({}) });
+  api.canvasEl.value = el as HTMLDivElement;
+  return { api, widgets, selectedIdx };
+}
+
+const down = (): MouseEvent => new MouseEvent('mousedown', { clientX: 0, clientY: 0 });
+const move = (dx: number, dy: number): void => {
+  window.dispatchEvent(new MouseEvent('mousemove', { clientX: dx, clientY: dy }));
+};
+
+beforeEach(() => {
+  window.dispatchEvent(new MouseEvent('mouseup'));
+});
+
+describe('resizing a top-level widget', () => {
+  it('grows by whole columns and rows as the pointer moves', () => {
+    const { api, widgets } = harness([w('a', 6, 2)]);
+    api.onResizeStart(down(), 0);
+    move(cellW * 2, cellH);
+    expect(widgets.value[0].span).toBe(8);
+    expect(widgets.value[0].rowSpan).toBe(3);
+  });
+
+  it('snaps to the nearest column rather than truncating', () => {
+    // Just past the halfway point of one cell is already the next span —
+    // truncation would make the widget feel like it lags the pointer.
+    const { api, widgets } = harness([w('a', 6, 2)]);
+    api.onResizeStart(down(), 0);
+    move(cellW * 0.6, 0);
+    expect(widgets.value[0].span).toBe(7);
+  });
+
+  it('clamps to the grid instead of running off it', () => {
+    const { api, widgets } = harness([w('a', 6, 2)]);
+    api.onResizeStart(down(), 0);
+    move(cellW * 50, cellH * 50);
+    expect(widgets.value[0].span).toBe(CANVAS_COLS);
+    expect(widgets.value[0].rowSpan).toBe(8);
+    move(-cellW * 50, -cellH * 50);
+    expect(widgets.value[0].span).toBe(1);
+    expect(widgets.value[0].rowSpan).toBe(1);
+  });
+
+  it('selects the widget being dragged', () => {
+    const { api, selectedIdx } = harness([w('a'), w('b')]);
+    api.onResizeStart(down(), 1);
+    expect(selectedIdx.value).toBe(1);
+  });
+
+  it('leaves the other widgets alone', () => {
+    const { api, widgets } = harness([w('a', 6, 2), w('b', 4, 3)]);
+    api.onResizeStart(down(), 0);
+    move(cellW, 0);
+    expect(widgets.value[1]).toEqual(w('b', 4, 3));
+  });
+
+  it('does not start without a canvas to measure', () => {
+    const { api, widgets } = harness([w('a', 6, 2)]);
+    api.canvasEl.value = null;
+    api.onResizeStart(down(), 0);
+    move(cellW * 2, 0);
+    expect(widgets.value[0].span).toBe(6);
+    expect(api.resize.active).toBe(false);
+  });
+});
+
+describe('ending the drag', () => {
+  it('stops writing once the button is released', () => {
+    const { api, widgets } = harness([w('a', 6, 2)]);
+    api.onResizeStart(down(), 0);
+    move(cellW, 0);
+    expect(widgets.value[0].span).toBe(7);
+    window.dispatchEvent(new MouseEvent('mouseup'));
+    // The listener is gone, so this movement reaches nothing. If it were
+    // still attached the widget would keep resizing with the mouse.
+    move(cellW * 4, 0);
+    expect(widgets.value[0].span).toBe(7);
+    expect(api.resize.active).toBe(false);
+  });
+
+  it('is idempotent — a second release changes nothing', () => {
+    const { api } = harness([w('a')]);
+    api.onResizeStart(down(), 0);
+    api.onResizeEnd();
+    api.onResizeEnd();
+    expect(api.resize.active).toBe(false);
+  });
+});
diff --git a/apps/ui/src/features/admin/layer-templates/useCanvasResize.ts b/apps/ui/src/features/admin/layer-templates/useCanvasResize.ts
new file mode 100644
index 0000000..fec1572
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/useCanvasResize.ts
@@ -0,0 +1,164 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Drag-to-resize on the layer-dashboard admin canvas: the corner handle
+ * that changes a widget's column span and row span.
+ *
+ * The same drag serves a top-level widget and one nested in a tab panel;
+ * only the grid pitch differs, so the session records which it is and the
+ * move handler writes back through the matching setter. Window listeners
+ * are attached for the duration of a drag and torn down with the owner.
+ */
+
+import { onBeforeUnmount, reactive, ref, type ComputedRef, type Ref } from 'vue';
+import type { DashboardWidget } from '@skywalking-horizon-ui/api-client';
+import {
+  CANVAS_COLS,
+  CANVAS_GAP_PX,
+  CANVAS_ROW_PX,
+  SUBGRID_GAP_PX,
+  SUBGRID_ROW_PX,
+  widgetRowSpan,
+  widgetSpan,
+} from './layer-dashboards.geometry';
+
+export interface CanvasResizeDeps {
+  /** Widgets of the page being edited. */
+  currentWidgets: ComputedRef<DashboardWidget[]>;
+  /** Write the page's widgets back to the draft. */
+  setWidgets: (widgets: DashboardWidget[]) => void;
+  subWidgetsOf: (widgetId: string, tabIdx: number) => DashboardWidget[];
+  commitSubWidgets: (widgetId: string, tabIdx: number, widgets: DashboardWidget[]) => void;
+  selectedIdx: Ref<number | null>;
+  selectSub: (widgetId: string, tabIdx: number, subIdx: number) => void;
+}
+
+export function useCanvasResize(deps: CanvasResizeDeps) {
+  const canvasEl = ref<HTMLDivElement | null>(null);
+
+  /** Active resize session: tracks the starting span/rowSpan + pixel
+   *  origin so we can compute the new span from the mouse delta. */
+  const resize = reactive<{
+    active: boolean;
+    idx: number;
+    sub: { widgetId: string; tabIdx: number; subIdx: number } | null;
+    startX: number;
+    startY: number;
+    startSpan: number;
+    startRowSpan: number;
+    cellW: number;
+    cellH: number;
+  }>({
+    active: false,
+    idx: -1,
+    sub: null,
+    startX: 0,
+    startY: 0,
+    startSpan: 1,
+    startRowSpan: 1,
+    cellW: 1,
+    cellH: 1,
+  });
+
+  function onResizeStart(e: MouseEvent, i: number): void {
+    e.preventDefault();
+    e.stopPropagation();
+    const widgets = deps.currentWidgets.value;
+    const w = widgets[i];
+    if (!w || !canvasEl.value) return;
+    const rect = canvasEl.value.getBoundingClientRect();
+    // The canvas grid uses 12 equal-width columns with a fixed gap. Column
+    // width is therefore (canvasWidth - 11 gaps - 2 padding) / 12. We snap
+    // the dragged span based on this cell pitch.
+    const cellW = (rect.width - 2 * 12 - CANVAS_GAP_PX * (CANVAS_COLS - 1)) / CANVAS_COLS;
+    resize.active = true;
+    resize.idx = i;
+    resize.startX = e.clientX;
+    resize.startY = e.clientY;
+    resize.startSpan = widgetSpan(w);
+    resize.startRowSpan = widgetRowSpan(w);
+    resize.cellW = cellW + CANVAS_GAP_PX;
+    resize.cellH = CANVAS_ROW_PX + CANVAS_GAP_PX;
+    deps.selectedIdx.value = i;
+    window.addEventListener('mousemove', onResizeMove);
+    window.addEventListener('mouseup', onResizeEnd);
+  }
+
+  /** Resize a widget INSIDE a tab — same drag as the top level, but snapped to
+   *  the tab's own 12-col sub-grid pitch (measured from the .cw-subgrid). */
+  function onSubResizeStart(e: MouseEvent, widgetId: string, tabIdx: number, subIdx: number): void {
+    e.preventDefault();
+    e.stopPropagation();
+    const sw = deps.subWidgetsOf(widgetId, tabIdx)[subIdx];
+    const grid = (e.target as HTMLElement).closest('.cw-subgrid') as HTMLElement | null;
+    if (!sw || !grid) return;
+    const rect = grid.getBoundingClientRect();
+    const cellW = (rect.width - SUBGRID_GAP_PX * (CANVAS_COLS - 1)) / CANVAS_COLS;
+    resize.active = true;
+    resize.idx = -1;
+    resize.sub = { widgetId, tabIdx, subIdx };
+    resize.startX = e.clientX;
+    resize.startY = e.clientY;
+    resize.startSpan = widgetSpan(sw);
+    resize.startRowSpan = widgetRowSpan(sw);
+    resize.cellW = cellW + SUBGRID_GAP_PX;
+    resize.cellH = SUBGRID_ROW_PX + SUBGRID_GAP_PX;
+    deps.selectSub(widgetId, tabIdx, subIdx);
+    window.addEventListener('mousemove', onResizeMove);
+    window.addEventListener('mouseup', onResizeEnd);
+  }
+
+  function onResizeMove(e: MouseEvent): void {
+    if (!resize.active) return;
+    const dx = e.clientX - resize.startX;
+    const dy = e.clientY - resize.startY;
+    const newSpan = Math.max(1, Math.min(CANVAS_COLS, resize.startSpan + Math.round(dx / resize.cellW)));
+    const newRowSpan = Math.max(1, Math.min(8, resize.startRowSpan + Math.round(dy / resize.cellH)));
+    if (resize.sub) {
+      const { widgetId, tabIdx, subIdx } = resize.sub;
+      const ws = [...deps.subWidgetsOf(widgetId, tabIdx)];
+      const w = ws[subIdx];
+      if (w && (w.span !== newSpan || w.rowSpan !== newRowSpan)) {
+        ws[subIdx] = { ...w, span: newSpan, rowSpan: newRowSpan };
+        deps.commitSubWidgets(widgetId, tabIdx, ws);
+      }
+      return;
+    }
+    const widgets = [...deps.currentWidgets.value];
+    const w = widgets[resize.idx];
+    if (!w) return;
+    if (w.span !== newSpan || w.rowSpan !== newRowSpan) {
+      widgets[resize.idx] = { ...w, span: newSpan, rowSpan: newRowSpan };
+      deps.setWidgets(widgets);
+    }
+  }
+
+  function onResizeEnd(): void {
+    resize.active = false;
+    resize.sub = null;
+    window.removeEventListener('mousemove', onResizeMove);
+    window.removeEventListener('mouseup', onResizeEnd);
+  }
+
+  onBeforeUnmount(() => {
+    window.removeEventListener('mousemove', onResizeMove);
+    window.removeEventListener('mouseup', onResizeEnd);
+  });
+
+  return { canvasEl, resize, onResizeStart, onSubResizeStart, onResizeEnd };
+}
diff --git a/apps/ui/src/features/admin/layer-templates/useExtPages.test.ts b/apps/ui/src/features/admin/layer-templates/useExtPages.test.ts
new file mode 100644
index 0000000..321859f
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/useExtPages.test.ts
@@ -0,0 +1,318 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/** Where the admin canvas reads and writes widgets, and what happens to a
+ *  component's pages when the component itself goes away. */
+
+import { describe, it, expect } from 'vitest';
+import { ref } from 'vue';
+import type { AdminLayerTemplate } from '@/api/client';
+import { componentOwnedCount, disableEntityComponent, type EntityScope } from './componentDisable';
+import { useExtPages, suggestPageId, extPageIdIssue, isPageableScope } from './useExtPages';
+import { isBuiltInLayerRow } from '@skywalking-horizon-ui/api-client';
+
+const w = (id: string) => ({ id, type: 'line' as const, title: id, expressions: ['x'] });
+
+function setup(over: Partial<AdminLayerTemplate> = {}) {
+  const template = ref<AdminLayerTemplate | null>({
+    key: 'CUSTOM_MQ',
+    slots: {},
+    components: { service: true, instances: true },
+    metrics: {},
+    widgets: [],
+    dashboards: { service: [w('svc-a')], instance: [w('inst-a')] },
+    ...over,
+  } as AdminLayerTemplate);
+  const scope = ref('service');
+  const page = ref<string | null>(null);
+  return { template, scope, page, api: useExtPages(template, scope, page) };
+}
+
+describe('useExtPages — storage', () => {
+  it('reads the default grid when no page is selected', () => {
+    const { api } = setup();
+    expect(api.readWidgets('service', null).map((x) => x.id)).toEqual(['svc-a']);
+  });
+
+  it('creates a page and writes widgets into it, leaving the default alone', () => {
+    const { api, template } = setup();
+    api.addPage('Resource usage', 'resource');
+    api.writeWidgets('service', 'resource', [w('res-a')]);
+    expect(api.readWidgets('service', 'resource').map((x) => x.id)).toEqual(['res-a']);
+    expect(api.readWidgets('service', null).map((x) => x.id)).toEqual(['svc-a']);
+    expect(template.value?.dashboardExtPages?.service?.[0].id).toBe('resource');
+  });
+
+  it('selects the new page so the canvas follows the operator', () => {
+    const { api, page } = setup();
+    api.addPage('Resource usage', 'resource');
+    expect(page.value).toBe('resource');
+  });
+
+  it('enumerates every list for id minting, pages included', () => {
+    const { api } = setup();
+    api.addPage('P', 'p');
+    api.writeWidgets('service', 'p', [w('page-widget')]);
+    const ids = api.allWidgetLists().flat().map((x) => x.id);
+    expect(ids).toContain('svc-a');
+    expect(ids).toContain('inst-a');
+    expect(ids).toContain('page-widget');
+  });
+
+  it('falls back to the legacy flat `widgets` for the service default', () => {
+    const { api } = setup({ dashboards: undefined, widgets: [w('legacy')] } as Partial<AdminLayerTemplate>);
+    expect(api.readWidgets('service', null).map((x) => x.id)).toEqual(['legacy']);
+  });
+
+  it('drops the legacy list once the service grid is written', () => {
+    const { api, template } = setup({ dashboards: undefined, widgets: [w('legacy')] } as Partial<AdminLayerTemplate>);
+    api.writeWidgets('service', null, [w('fresh')]);
+    expect(template.value?.widgets).toBeUndefined();
+    expect(api.readWidgets('service', null).map((x) => x.id)).toEqual(['fresh']);
+  });
+});
+
+describe('useExtPages — lifecycle', () => {
+  it('removes the scope key entirely when its last page goes', () => {
+    const { api, template } = setup();
+    api.addPage('A', 'a');
+    api.deletePage('a');
+    expect(template.value?.dashboardExtPages).toBeUndefined();
+  });
+
+  it('returns to the default page after deleting the selected one', () => {
+    const { api, page } = setup();
+    api.addPage('A', 'a');
+    api.deletePage('a');
+    expect(page.value).toBeNull();
+  });
+
+  it('clears every page of a component that is switched off', () => {
+    const { api, template, scope } = setup();
+    api.addPage('A', 'a');
+    api.addPage('B', 'b');
+    scope.value = 'instance';
+    api.addPage('C', 'c');
+    scope.value = 'service';
+    expect(api.clearScopePages('service').map((p) => p.id)).toEqual(['a', 'b']);
+    expect(template.value?.dashboardExtPages?.service).toBeUndefined();
+    // The other component keeps its own.
+    expect(template.value?.dashboardExtPages?.instance?.map((p) => p.id)).toEqual(['c']);
+  });
+
+  it('stops offering to add past the cap', () => {
+    const { api } = setup();
+    for (let i = 0; i < 12; i++) api.addPage(`P${i}`, `p${i}`);
+    expect(api.canAddPage.value).toBe(false);
+    api.addPage('overflow', 'overflow');
+    expect(api.pages.value).toHaveLength(12);
+  });
+
+  it('treats an emptied filter box as no filter', () => {
+    const { api } = setup();
+    api.addPage('A', 'a');
+    api.setEntityFilter('service', 'a', '/^x/');
+    expect(api.pages.value[0].serviceFilter).toBe('/^x/');
+    api.setEntityFilter('service', 'a', '   ');
+    expect(api.pages.value[0].serviceFilter).toBeUndefined();
+  });
+
+  it('offers no pages for a component that cannot carry them', () => {
+    const { api, scope } = setup();
+    scope.value = 'topology';
+    expect(api.canAddPage.value).toBe(false);
+    api.addPage('X', 'x');
+    expect(api.pages.value).toEqual([]);
+  });
+});
+
+describe('page ids', () => {
+  it.each([
+    ['Resource usage', 'resource-usage'],
+    ['  CPU & Memory  ', 'cpu-memory'],
+    ['???', 'page'],
+  ])('derives %s → %s', (name, id) => {
+    expect(suggestPageId(name, [])).toBe(id);
+  });
+
+  it('numbers a colliding id rather than rejecting the name', () => {
+    expect(suggestPageId('Resource usage', ['resource-usage'])).toBe('resource-usage-2');
+    expect(suggestPageId('Resource usage', ['resource-usage', 'resource-usage-2'])).toBe('resource-usage-3');
+  });
+
+  it('refuses an id that impersonates a built-in tab', () => {
+    for (const id of ['service', 'topology', 'zipkin-trace', 'pprof']) {
+      expect(extPageIdIssue(id, [], isBuiltInLayerRow)).toBe('reserved');
+    }
+  });
+
+  it('accepts a well-formed id', () => {
+    expect(extPageIdIssue('resource-usage', [], isBuiltInLayerRow)).toBeNull();
+  });
+
+  it('knows which components can carry pages', () => {
+    expect(['service', 'instance', 'endpoint'].every(isPageableScope)).toBe(true);
+    expect(['topology', 'trace', 'logs'].some(isPageableScope)).toBe(false);
+  });
+});
+
+describe('useExtPages — adding a page under a custom menu order', () => {
+  it('places the new row next to its component, not at the bottom', () => {
+    const { api, template, scope } = setup();
+    template.value!.menuOrder = ['logs', 'service', 'instance'];
+    scope.value = 'service';
+    api.addPage('Resource usage', 'resource');
+    expect(template.value?.menuOrder).toEqual(['logs', 'service', 'service/resource', 'instance']);
+  });
+
+  it('places a second page after the first', () => {
+    const { api, template } = setup();
+    template.value!.menuOrder = ['service', 'service/one', 'instance'];
+    api.addPage('Two', 'two');
+    expect(template.value?.menuOrder).toEqual(['service', 'service/one', 'service/two', 'instance']);
+  });
+
+  it('appends when the order never mentions the component', () => {
+    const { api, template } = setup();
+    template.value!.menuOrder = ['logs', 'instance'];
+    api.addPage('One', 'one');
+    expect(template.value?.menuOrder).toEqual(['logs', 'instance', 'service/one']);
+  });
+
+  it('leaves the order absent when there is no custom order', () => {
+    const { api, template } = setup();
+    api.addPage('One', 'one');
+    expect(template.value?.menuOrder).toBeUndefined();
+  });
+
+  it('removes the row again when the page is deleted', () => {
+    const { api, template } = setup();
+    template.value!.menuOrder = ['service', 'instance'];
+    api.addPage('One', 'one');
+    expect(template.value?.menuOrder).toContain('service/one');
+    api.deletePage('one');
+    expect(template.value?.menuOrder).toEqual(['service', 'instance']);
+  });
+});
+
+/**
+ * Switching a component off has to leave nothing behind that only that
+ * component could reach. A dormant grid or page is config with no menu row
+ * to open it and no selector to delete it from — invisible until a publish
+ * rejects the template.
+ */
+describe('disabling an entity component', () => {
+  /** The EDITOR's own removal, not a copy of it. The copy this replaces
+   *  omitted the default-page filter and the instance-list configuration,
+   *  so the tests passed while the handler did strictly more — and one of
+   *  those omissions is what publish refuses. */
+  const disable = (tpl: AdminLayerTemplate, key: string, scope: string): void =>
+    disableEntityComponent(tpl, key, scope as EntityScope);
+
+  it('removes the grid, the pages, and the order rows together', () => {
+    const { api, template } = setup();
+    template.value!.menuOrder = ['service', 'service/a', 'instance'];
+    api.addPage('A', 'a');
+    disable(template.value!, 'service', 'service');
+
+    expect(template.value?.components.service).toBe(false);
+    expect(template.value?.dashboards?.service).toBeUndefined();
+    expect(template.value?.dashboardExtPages?.service).toBeUndefined();
+    expect(template.value?.menuOrder).toEqual(['instance']);
+  });
+
+  it('leaves every other component untouched', () => {
+    const { api, template, scope } = setup();
+    scope.value = 'instance';
+    api.addPage('C', 'c');
+    scope.value = 'service';
+    disable(template.value!, 'service', 'service');
+
+    expect(template.value?.components.instances).toBe(true);
+    expect(template.value?.dashboards?.instance?.map((x) => x.id)).toEqual(['inst-a']);
+    expect(template.value?.dashboardExtPages?.instance?.map((p) => p.id)).toEqual(['c']);
+  });
+
+  it('takes the legacy flat widget list with the service grid', () => {
+    // For a template that never split, `widgets` IS the service grid —
+    // leaving it behind would resurrect the page the operator just removed.
+    const { template } = setup({ dashboards: undefined, widgets: [w('legacy')] } as Partial<AdminLayerTemplate>);
+    disable(template.value!, 'service', 'service');
+    expect(template.value?.widgets).toBeUndefined();
+  });
+
+  it('drops the dashboards block entirely once its last scope goes', () => {
+    const { template } = setup({ dashboards: { service: [w('only')] } } as Partial<AdminLayerTemplate>);
+    disable(template.value!, 'service', 'service');
+    expect(template.value?.dashboards).toBeUndefined();
+  });
+});
+
+/**
+ * The two things the old hand-copied `disable` never removed. Both are
+ * reachable only through the component, and one of them makes the draft
+ * unpublishable rather than merely untidy.
+ */
+describe('disabling a component takes its settings, not only its widgets', () => {
+  it('removes the default page filter, which publish refuses under an off component', () => {
+    const { template } = setup();
+    template.value!.dashboardDefaultFilters = {
+      service: { serviceFilter: '/^agent::/' },
+      instance: { instanceFilter: '/^broker-/' },
+    };
+    disableEntityComponent(template.value!, 'service', 'service');
+
+    expect(template.value?.dashboardDefaultFilters?.service).toBeUndefined();
+    // Another component's filter is not collateral damage.
+    expect(template.value?.dashboardDefaultFilters?.instance?.instanceFilter).toBe('/^broker-/');
+  });
+
+  it('drops the filters block once its last scope goes', () => {
+    const { template } = setup();
+    template.value!.dashboardDefaultFilters = { service: { serviceFilter: 'x' } };
+    disableEntityComponent(template.value!, 'service', 'service');
+    expect(template.value?.dashboardDefaultFilters).toBeUndefined();
+  });
+
+  it('removes the instance-list configuration with the Instance component', () => {
+    const { template } = setup();
+    (template.value as unknown as { instances?: unknown }).instances = { badge: 'language' };
+    disableEntityComponent(template.value!, 'instances', 'instance');
+    expect((template.value as unknown as { instances?: unknown }).instances).toBeUndefined();
+  });
+
+  it('leaves the instance configuration alone when another component goes off', () => {
+    const { template } = setup();
+    (template.value as unknown as { instances?: unknown }).instances = { badge: 'language' };
+    disableEntityComponent(template.value!, 'service', 'service');
+    expect((template.value as unknown as { instances?: unknown }).instances).toEqual({ badge: 'language' });
+  });
+
+  it('counts what it is about to remove, so the confirmation cannot understate it', () => {
+    const { api, template, scope } = setup();
+    scope.value = 'service';
+    api.addPage('A', 'a');
+    template.value!.dashboardDefaultFilters = { service: { serviceFilter: 'x' } };
+
+    const owned = componentOwnedCount(template.value!, 'service');
+    expect(owned.pages).toBe(1);
+    // The filter is a SETTING: counted, or a component whose only
+    // configuration is one takes the silent "nothing to delete" path.
+    expect(owned.settings).toBe(1);
+    expect(owned.grid).toBeGreaterThan(0);
+  });
+});
diff --git a/apps/ui/src/features/admin/layer-templates/useExtPages.ts b/apps/ui/src/features/admin/layer-templates/useExtPages.ts
new file mode 100644
index 0000000..206ffe6
--- /dev/null
+++ b/apps/ui/src/features/admin/layer-templates/useExtPages.ts
@@ -0,0 +1,395 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Extension pages in the layer-dashboard admin: which page is being
+ * edited, and where its widgets are stored.
+ *
+ * A component's DEFAULT page is `dashboards.<scope>` — the grid every
+ * layer has always had. Extension pages live in the sibling
+ * `dashboardExtPages.<scope>` array. Both are edited by the same canvas,
+ * which asks this module where to read and write rather than knowing the
+ * difference.
+ */
+
+import { computed, type Ref } from 'vue';
+import type { InstanceAttributePredicate } from '@skywalking-horizon-ui/api-client';
+import type { AdminEntityFilter, AdminExtPage, AdminLayerTemplate } from '@/api/client';
+import {
+  isBuiltInLayerRow,
+  MAX_EXT_PAGE_ID_LENGTH,
+  MAX_EXT_PAGE_NAME_LENGTH,
+} from '@skywalking-horizon-ui/api-client';
+import type { DashboardWidget } from '@skywalking-horizon-ui/api-client';
+
+/** The three components that can carry more than one page. */
+export const PAGEABLE_SCOPES = ['service', 'instance', 'endpoint'] as const;
+export type PageableScope = (typeof PAGEABLE_SCOPES)[number];
+
+/** Publish rejects a 13th, so the UI stops offering to add one. */
+export const MAX_EXT_PAGES = 12;
+
+/** `null` selects the component's default page. */
+export type PageSelection = string | null;
+
+export function isPageableScope(scope: string): scope is PageableScope {
+  return (PAGEABLE_SCOPES as readonly string[]).includes(scope);
+}
+
+/** Route segments a page id may not take, because a whole-path match
+ *  elsewhere would read the page as that feature. Mirrors the publish
+ *  rule; kept here so the editor refuses the name at the point the
+ *  operator types it rather than at push. */
+/**
+ * Every page-id fault in a draft, as `<scope>.<id>: <reason>`.
+ *
+ * The publish schema refuses these, but only once the operator has
+ * pressed push and read a server error — and a hand-imported template can
+ * carry them from the moment it loads. Checking the whole draft at save
+ * names them where they were authored.
+ */
+export function draftPageIdIssues(tpl: AdminLayerTemplate | null): string[] {
+  const out: string[] = [];
+  const byScope = tpl?.dashboardExtPages;
+  if (!byScope) return out;
+  for (const scope of ['service', 'instance', 'endpoint'] as const) {
+    const pages = byScope[scope] ?? [];
+    const seen: string[] = [];
+    for (const p of pages) {
+      const issue = extPageIdIssue(p.id, seen, isBuiltInLayerRow);
+      if (issue) out.push(`${scope}.${p.id || '(empty)'}: ${issue}`);
+      else if (p.id.length > MAX_EXT_PAGE_ID_LENGTH) out.push(`${scope}.${p.id}: too long`);
+      else if (p.name.trim() === '') out.push(`${scope}.${p.id}: empty name`);
+      else if (p.name.trim().length > MAX_EXT_PAGE_NAME_LENGTH) out.push(`${scope}.${p.id}: name too long`);
+      seen.push(p.id);
+    }
+  }
+  return out;
+}
+
+export function extPageIdIssue(id: string, taken: readonly string[], reserved: (v: string) => boolean): string | null {
+  if (!id) return 'empty';
+  if (!/^[a-z0-9][a-z0-9-]*$/.test(id)) return 'format';
+  if (reserved(id)) return 'reserved';
+  if (taken.includes(id)) return 'duplicate';
+  return null;
+}
+
+/**
+ * Derive a route id from a display name — lowercase, hyphenated, and
+ * numbered until it is free.
+ *
+ * `reserved` rejects ids that would impersonate a built-in tab. A display
+ * name is NOT an id, so a page legitimately called "Topology" gets
+ * `topology-2` rather than being refused: the operator named a page, they
+ * did not ask for a route.
+ */
+export function suggestPageId(
+  name: string,
+  taken: readonly string[],
+  reserved: (id: string) => boolean = () => false,
+): string {
+  const base =
+    name
+      .toLowerCase()
+      .replace(/[^a-z0-9]+/g, '-')
+      .replace(/^-+|-+$/g, '')
+      .slice(0, 40) || 'page';
+  const free = (id: string): boolean => !taken.includes(id) && !reserved(id);
+  if (free(base)) return base;
+  for (let i = 2; i < 100; i++) {
+    const candidate = `${base}-${i}`;
+    if (free(candidate)) return candidate;
+  }
+  return `${base}-${Date.now()}`;
+}
+
+export function useExtPages(
+  template: Ref<AdminLayerTemplate | null>,
+  activeScope: Ref<string>,
+  activePage: Ref<PageSelection>,
+) {
+  /** Pages declared for the active component, or none when it cannot
+   *  carry them (topology, traces, logs, the profilings). */
+  const pages = computed<AdminExtPage[]>(() => {
+    const tpl = template.value;
+    if (!tpl || !isPageableScope(activeScope.value)) return [];
+    return tpl.dashboardExtPages?.[activeScope.value] ?? [];
+  });
+
+  /** The active scope's default-page filter, for the editor to read. */
+  const defaultFilter = computed<AdminEntityFilter | null>(() => {
+    const tpl = template.value;
+    if (!tpl || !isPageableScope(activeScope.value)) return null;
+    return (
+      (tpl.dashboardDefaultFilters as Record<string, AdminEntityFilter | undefined> | undefined)?.[
+        activeScope.value
+      ] ?? null
+    );
+  });
+
+  const canAddPage = computed<boolean>(
+    () => isPageableScope(activeScope.value) && pages.value.length < MAX_EXT_PAGES,
+  );
+
+  /** Mutable handle on the pages array, created on demand. Returns null
+   *  when the active scope cannot hold pages. */
+  function pagesMut(): AdminExtPage[] | null {
+    const tpl = template.value;
+    if (!tpl || !isPageableScope(activeScope.value)) return null;
+    const byScope = tpl.dashboardExtPages ?? {};
+    const list = byScope[activeScope.value] ?? [];
+    byScope[activeScope.value] = list;
+    tpl.dashboardExtPages = byScope;
+    return list;
+  }
+
+  function addPage(name: string, id: string): void {
+    const tpl = template.value;
+    const list = pagesMut();
+    if (!tpl || !list || list.length >= MAX_EXT_PAGES) return;
+    list.push({ id, name, widgets: [] });
+    placeInMenuOrder(tpl, activeScope.value, id);
+    activePage.value = id;
+  }
+
+  /**
+   * Give a new page a place in a stored order, next to its component.
+   *
+   * Without this the row is simply absent from the order, and the runtime
+   * appends unnamed rows — so a page created under a custom order would
+   * appear at the BOTTOM of the sidebar, nowhere near the component it
+   * belongs to. It is draggable from there like any other row.
+   */
+  function placeInMenuOrder(tpl: AdminLayerTemplate, scope: string, id: string): void {
+    if (!tpl.menuOrder) return;
+    const path = `${scope}/${id}`;
+    if (tpl.menuOrder.includes(path)) return;
+    // After the component's last existing page, else after the component.
+    let at = -1;
+    tpl.menuOrder.forEach((p, i) => {
+      if (p === scope || p.startsWith(`${scope}/`)) at = i;
+    });
+    if (at < 0) tpl.menuOrder.push(path);
+    else tpl.menuOrder.splice(at + 1, 0, path);
+  }
+
+  function renamePage(id: string, name: string): void {
+    const p = pagesMut()?.find((x) => x.id === id);
+    if (p) p.name = name;
+  }
+
+  /** What the page calls the entity it lists. Blank clears it, so the
+   *  layer's own alias takes over again. */
+  function setPageAlias(id: string, alias: string): void {
+    const p = pagesMut()?.find((x) => x.id === id);
+    if (!p) return;
+    if (alias.trim() === '') delete p.alias;
+    else p.alias = alias;
+  }
+
+  /** The default page's filter block for the active scope, created on
+   *  first write and removed once it holds nothing — an empty object
+   *  would show as a pending change against OAP forever. */
+  function defaultFilterMut(): AdminEntityFilter | null {
+    const tpl = template.value;
+    if (!tpl) return null;
+    const key = activeScope.value;
+    if (!isPageableScope(key)) return null;
+    tpl.dashboardDefaultFilters ??= {};
+    const bag = tpl.dashboardDefaultFilters as Record<string, AdminEntityFilter | undefined>;
+    bag[key] ??= {};
+    return bag[key]!;
+  }
+
+  function pruneDefaultFilter(): void {
+    const tpl = template.value;
+    const bag = tpl?.dashboardDefaultFilters as Record<string, AdminEntityFilter | undefined> | undefined;
+    const key = activeScope.value;
+    if (!bag || !bag[key]) return;
+    if (Object.keys(bag[key]!).length === 0) delete bag[key];
+    if (tpl && Object.keys(bag).length === 0) delete tpl.dashboardDefaultFilters;
+  }
+
+  /** `id === null` addresses the component's DEFAULT page. */
+  function setDefaultEntityFilter(scope: string, filter: string): void {
+    const f = defaultFilterMut();
+    if (!f) return;
+    const blank = filter.trim() === '';
+    if (scope === 'instance') {
+      if (blank) delete f.instanceFilter;
+      else f.instanceFilter = filter;
+    } else if (blank) {
+      delete f.serviceFilter;
+    } else {
+      f.serviceFilter = filter;
+    }
+    pruneDefaultFilter();
+  }
+
+  function setDefaultInstanceAttributes(attributes: InstanceAttributePredicate[]): void {
+    const f = defaultFilterMut();
+    if (!f) return;
+    if (attributes.length === 0) delete f.instanceAttributes;
+    else f.instanceAttributes = attributes;
+    pruneDefaultFilter();
+  }
+
+  /** The name filter for whichever picker this scope's pages narrow. */
+  function setEntityFilter(scope: string, id: string, filter: string): void {
+    const p = pagesMut()?.find((x) => x.id === id);
+    if (!p) return;
+    // An empty box means "no filter", not a filter that matches nothing —
+    // and storing `''` shows as a pending change against OAP forever.
+    const blank = filter.trim() === '';
+    if (scope === 'instance') {
+      if (blank) delete p.instanceFilter;
+      else p.instanceFilter = filter;
+      return;
+    }
+    if (blank) delete p.serviceFilter;
+    else p.serviceFilter = filter;
+  }
+
+  function setInstanceAttributes(id: string, attributes: InstanceAttributePredicate[]): void {
+    const p = pagesMut()?.find((x) => x.id === id);
+    if (!p) return;
+    if (attributes.length === 0) delete p.instanceAttributes;
+    else p.instanceAttributes = attributes;
+  }
+
+  /**
+   * Delete a page and its widgets. Returns the deleted page for the
+   * caller's confirmation text.
+   *
+   * Translations stored for it are deliberately LEFT: the merger ignores
+   * an overlay entry the source cannot place, so nothing renders from
+   * them, and a layer push that rewrote every locale's record would be
+   * the most dangerous write in the admin. They are surfaced and removed
+   * on the Translations page instead.
+   */
+  function deletePage(id: string): AdminExtPage | null {
+    const tpl = template.value;
+    const list = pagesMut();
+    if (!tpl || !list) return null;
+    const i = list.findIndex((p) => p.id === id);
+    if (i < 0) return null;
+    const [removed] = list.splice(i, 1);
+    pruneMenuOrder(tpl, [`${activeScope.value}/${removed.id}`]);
+    if (list.length === 0 && isPageableScope(activeScope.value)) {
+      delete tpl.dashboardExtPages?.[activeScope.value];
+      if (tpl.dashboardExtPages && Object.keys(tpl.dashboardExtPages).length === 0) {
+        delete tpl.dashboardExtPages;
+      }
+    }
+    if (activePage.value === id) activePage.value = null;
+    return removed;
+  }
+
+  /**
+   * Drop every page of a component — used when the component itself is
+   * disabled, where dormant pages would be config nobody can reach and
+   * nobody can see to delete.
+   */
+  function clearScopePages(scope: string): AdminExtPage[] {
+    const tpl = template.value;
+    if (!tpl?.dashboardExtPages || !isPageableScope(scope)) return [];
+    const removed = tpl.dashboardExtPages[scope] ?? [];
+    // The component's own row goes too — it is being switched off.
+    pruneMenuOrder(tpl, [scope, ...removed.map((p) => `${scope}/${p.id}`)]);
+    delete tpl.dashboardExtPages[scope];
+    if (Object.keys(tpl.dashboardExtPages).length === 0) delete tpl.dashboardExtPages;
+    if (activeScope.value === scope) activePage.value = null;
+    return removed;
+  }
+
+  /** Drop rows that no longer exist from a stored order. The runtime
+   *  skips a stale entry anyway, but leaving one behind means the saved
+   *  order describes a menu that is not this one — and publish rejects it. */
+  function pruneMenuOrder(tpl: AdminLayerTemplate, paths: readonly string[]): void {
+    if (!tpl.menuOrder) return;
+    const gone = new Set(paths);
+    tpl.menuOrder = tpl.menuOrder.filter((p) => !gone.has(p));
+  }
+
+  /** Widgets of the page being edited. */
+  function readWidgets(scope: string, page: PageSelection): DashboardWidget[] {
+    const tpl = template.value;
+    if (!tpl) return [];
+    if (page && isPageableScope(scope)) {
+      return tpl.dashboardExtPages?.[scope]?.find((p) => p.id === page)?.widgets ?? [];
+    }
+    // Read from `dashboards.<scope>`, falling back to legacy `widgets`
+    // for the service scope so the existing JSONs keep their content
+    // until we explicitly migrate them.
+    const scoped = tpl.dashboards?.[scope];
+    if (scoped) return scoped;
+    if (scope === 'service' && tpl.widgets) return tpl.widgets;
+    return [];
+  }
+
+  function writeWidgets(scope: string, page: PageSelection, widgets: DashboardWidget[]): void {
+    const tpl = template.value;
+    if (!tpl) return;
+    if (page && isPageableScope(scope)) {
+      const p = tpl.dashboardExtPages?.[scope]?.find((x) => x.id === page);
+      if (p) p.widgets = widgets;
+      return;
+    }
+    const dashboards = tpl.dashboards ?? {};
+    dashboards[scope] = widgets;
+    tpl.dashboards = dashboards;
+    // Drop the legacy `widgets` once we've split — keeps the JSON clean.
+    if (scope === 'service' && tpl.widgets) {
+      (tpl as unknown as { widgets?: DashboardWidget[] }).widgets = undefined;
+    }
+  }
+
+  /** Every widget list in the draft, so a new id can be minted against
+   *  all of them. Extension pages are included: ids must not collide
+   *  across a component's pages, and a widget moved between them must not
+   *  meet one it left behind. */
+  function allWidgetLists(): DashboardWidget[][] {
+    const tpl = template.value;
+    if (!tpl) return [];
+    const out: DashboardWidget[][] = [];
+    if (tpl.dashboards) out.push(...Object.values(tpl.dashboards));
+    if (tpl.widgets) out.push(tpl.widgets);
+    for (const scope of PAGEABLE_SCOPES) {
+      for (const p of tpl.dashboardExtPages?.[scope] ?? []) out.push(p.widgets);
+    }
+    return out;
+  }
+
+  return {
+    pages,
+    canAddPage,
+    addPage,
+    renamePage,
+    setPageAlias,
+    setEntityFilter,
+    setInstanceAttributes,
+    setDefaultEntityFilter,
+    setDefaultInstanceAttributes,
+    defaultFilter,
+    deletePage,
+    clearScopePages,
+    readWidgets,
+    writeWidgets,
+    allWidgetLists,
+  };
+}
diff --git a/apps/ui/src/features/admin/layer-templates/useLayerTemplateStore.ts b/apps/ui/src/features/admin/layer-templates/useLayerTemplateStore.ts
index b95e85e..6515c41 100644
--- a/apps/ui/src/features/admin/layer-templates/useLayerTemplateStore.ts
+++ b/apps/ui/src/features/admin/layer-templates/useLayerTemplateStore.ts
@@ -28,12 +28,15 @@
  */
 import { computed, reactive, ref, onMounted, watch, nextTick } from 'vue';
 import { useI18n } from 'vue-i18n';
-import { useRoute, useRouter } from 'vue-router';
+import { useRoute, useRouter, type LocationQueryRaw } from 'vue-router';
+import { firstLayerMenuRow, FALLBACK_LAYER_ROW } from '@skywalking-horizon-ui/api-client';
+import { layerContentToDef, type LayerTemplateContent } from '@/shell/layerFromTemplate';
 import type { AdminLayerTemplate } from '@/api/client';
 
 import { bff, bffClient, BffApiError } from '@/api/client';
 import { useLayers } from '@/shell/useLayers';
 import { useLocalTemplateEdits, layerEditName } from '@/controls/localTemplateEdits';
+import { composeLayerPickerList } from './layerPickerList';
 import { useTemplateSources } from '@/features/admin/_shared/useTemplateSources';
 import { buildExportEnvelope, downloadJson, pickJsonFile, validateImport } from '@/features/admin/_shared/templatePortability';
 import { pushErrorLines } from '@/features/admin/_shared/pushError';
@@ -42,6 +45,7 @@ import { stableStringify } from '@/utils/stableJson';
 import { refreshConfigBundle } from '@/controls/configBundle';
 import { useTemplateSync } from '@/features/admin/_shared/useTemplateSync';
 import { type AdminScope, SCOPES } from './layer-dashboards.scopes';
+import { draftPageIdIssues } from './useExtPages';
 
 export function useLayerTemplateStore() {
   // OAP UI-template sync status for layer dashboards. Drives the banner +
@@ -57,6 +61,11 @@ export function useLayerTemplateStore() {
   // first Save (published to OAP).
   const rawTemplates = ref<AdminLayerTemplate[]>([]);
   const { layers: menuLayers } = useLayers();
+  // Declared HERE, above `templates`: that computed reads it, and watches
+  // evaluate their source during setup — a later declaration leaves it in
+  // the TDZ at that moment, which aborts setup and renders a blank page
+  // with no console trace.
+  const sources = useTemplateSources('layer');
   function blankTemplateFor(key: string, alias: string, color?: string): AdminLayerTemplate {
     return {
       key,
@@ -68,18 +77,23 @@ export function useLayerTemplateStore() {
       widgets: [],
     };
   }
-  const templates = computed<AdminLayerTemplate[]>(() => {
-    const present = new Set(rawTemplates.value.map((t) => t.key.toUpperCase()));
-    const synthesized = menuLayers.value
-      .filter((L) => !present.has(L.key.toUpperCase()))
-      .map((L) => blankTemplateFor(L.key.toUpperCase(), L.name, L.color))
-      .sort((a, b) => a.key.localeCompare(b.key));
-    return [...rawTemplates.value, ...synthesized];
-  });
+  // Composition lives in `layerPickerList.ts` so it can be exercised
+  // directly; this only supplies the four sources.
+  const templateList = computed(() =>
+    composeLayerPickerList(
+      rawTemplates.value,
+      sources.remoteNames(),
+      (name) => sources.remote<AdminLayerTemplate>(name),
+      menuLayers.value.map((L) => ({ key: L.key, name: L.name, color: L.color })),
+      blankTemplateFor,
+    ),
+  );
+  const templates = computed<AdminLayerTemplate[]>(() => templateList.value.list);
   // Layers the roster reports that carry no dashboard template yet (the
-  // synthesized blanks above). Surfaced in the sync banner so the operator
-  // reads the picker's total as "configured + not-configured-yet".
-  const unconfiguredCount = computed(() => Math.max(0, templates.value.length - rawTemplates.value.length));
+  // synthesized blanks above). Counted from those alone: a stored-only
+  // layer IS configured, and folding it in here would report the
+  // operator's own published template as "not configured yet".
+  const unconfiguredCount = computed(() => templateList.value.unconfigured);
   // The shared sync banner counts only TEMPLATED layers (synced / diverged /
   // local). On this layer-list view we append the not-yet-configured count so
   // the summary explains the full picker. Other admin pages keep the plain
@@ -94,6 +108,9 @@ export function useLayerTemplateStore() {
   const error = ref<string | null>(null);
   const selectedKey = ref<string>('');
   const activeScope = ref<AdminScope>('service');
+  /** Which page of `activeScope` is being edited — `null` is the
+   *  component's default grid, which every layer has. */
+  const activePage = ref<string | null>(null);
   const isSaving = ref(false);
 
   const saveMsg = ref<string | null>(null);
@@ -150,8 +167,12 @@ export function useLayerTemplateStore() {
   }
   /** A layer with no dashboard template yet — present only via the merged live
    *  roster (a synthesized blank), not in the BFF's loaded template set. */
+  // Straight from the composition, so the filter and the count cannot
+  // disagree: "unconfigured" means the picker synthesized a blank for it,
+  // not merely that it ships no bundled JSON — a stored-only layer ships
+  // none and is configured.
   function isUnconfiguredRow(key: string): boolean {
-    return !rawTemplates.value.some((t) => t.key.toUpperCase() === key.toUpperCase());
+    return templateList.value.unconfiguredKeys.has(key.toUpperCase());
   }
   // Declared HERE — before divergedCount / localCount and their watches.
   // Those watches evaluate their source at setup, and `templates` can already
@@ -159,8 +180,8 @@ export function useLayerTemplateStore() {
   // `localEdits` synchronously — it must be initialized first (TDZ otherwise).
   const localEdits = useLocalTemplateEdits();
   // Server-side bundled + remote content for the Reset-to / Preview editor
-  // sources. Local (browser draft) comes from `localEdits`.
-  const sources = useTemplateSources('layer');
+  // sources. Local (browser draft) comes from `localEdits`. (Declared above,
+  // beside `templates`, which reads it during setup.)
   const sourcesReady = computed(() => !sources.isLoading.value);
   const previewOverride = usePreviewOverride();
   const divergedCount = computed(() => templates.value.filter((t) => isDivergedRow(t.key)).length);
@@ -170,6 +191,15 @@ export function useLayerTemplateStore() {
    *  the Save / Reset state. */
   const draft = reactive<{ template: AdminLayerTemplate | null }>({ template: null });
 
+  /** A `?layer=` naming a template the picker had not listed yet. Applied
+   *  by the watcher below when it appears; cleared once it does. */
+  let pendingQueryLayer: string | null = null;
+  /** The `?page=` that arrived with it. Held alongside, because applying
+   *  the layer MOVES `selectedKey`, and the layer-change watcher clears
+   *  the page — so a deep link kept its page everywhere except on the
+   *  stored-only layers that need the wait. */
+  let pendingQueryPage: string | null = null;
+
   async function loadAll(): Promise<void> {
     isLoading.value = true;
     error.value = null;
@@ -179,17 +209,32 @@ export function useLayerTemplateStore() {
       // Hydrate from `?layer=&scope=` first; fall back to the first
       // template only when the URL doesn't pin a layer. This preserves
       // refresh state.
+      // Matched against the PICKER's list, not the loaded bundles: a
+      // stored-only layer is in the picker and not in `res.templates`, so
+      // matching there sent its deep link to whichever layer happened to
+      // be first — and an edit meant for the link's template landed on
+      // that one. The list may still be filling in (`sources` loading),
+      // which is why a miss holds the key rather than falling back; the
+      // watcher below applies it once the list resolves.
       const queryLayer = String(route.query.layer ?? '').toUpperCase();
-      const matchedQuery = res.templates.find((t) => t.key === queryLayer);
+      const matchedQuery = templates.value.find((t) => t.key.toUpperCase() === queryLayer);
       if (matchedQuery) {
         selectedKey.value = matchedQuery.key;
-      } else if (res.templates.length > 0 && !selectedKey.value) {
-        selectedKey.value = res.templates[0].key;
+      } else if (queryLayer) {
+        pendingQueryLayer = queryLayer;
+        pendingQueryPage = String(route.query.page ?? '') || null;
+      } else if (templates.value.length > 0 && !selectedKey.value) {
+        selectedKey.value = templates.value[0].key;
       }
       const queryScope = String(route.query.scope ?? '');
       if (SCOPES.includes(queryScope as AdminScope)) {
         activeScope.value = queryScope as AdminScope;
       }
+      const queryPage = String(route.query.page ?? '');
+      activePage.value = queryPage || null;
+      // Validated below once the draft exists — a `?page=` naming a page
+      // this layer does not have would otherwise leave the canvas reading
+      // an empty grid whose writes go nowhere.
       // Seed the editor only once the config-bundle (and hence
       // `remoteAvailable` / `hasLocalDraft`) has resolved — otherwise
       // syncDraft falls through to bundled and the editor visibly
@@ -211,24 +256,59 @@ export function useLayerTemplateStore() {
     }
   }
 
-  // URL ↔ state sync. Pushes `?layer=&scope=` on every selection change
-  // so refreshing the page (or sharing the URL) keeps the admin focused
-  // on the same layer + scope. Skipped while initial templates load so
-  // the boot-up `loadAll()` hydrate doesn't bounce the URL.
+  // URL ↔ state sync. Pushes `?layer=&scope=&page=` on every selection
+  // change so refreshing the page (or sharing the URL) keeps the admin
+  // focused on the same layer, scope and page. Skipped while initial
+  // templates load so the boot-up `loadAll()` hydrate doesn't bounce the
+  // URL.
   const { t } = useI18n();
   const route = useRoute();
   const router = useRouter();
   let suppressRouteSync = true;
   watch(
-    [selectedKey, activeScope],
-    ([key, scope]) => {
+    [selectedKey, activeScope, activePage],
+    ([key, scope, page]) => {
       if (suppressRouteSync) return;
       if (!key) return;
-      const q = { ...route.query, layer: key, scope };
+      // The default page carries no `page=`, so an untouched admin URL is
+      // exactly what it was before pages existed.
+      const q: LocationQueryRaw = { ...route.query, layer: key, scope };
+      if (page) q.page = page;
+      else delete q.page;
       void router.replace({ path: route.path, query: q });
     },
   );
 
+  /**
+   * Drop an `activePage` the current draft cannot satisfy.
+   *
+   * Three ways to get there: a hand-typed or stale `?page=`, switching the
+   * editor source (local / bundled / remote), and Reset — the last two
+   * replace the template wholesale. The canvas would otherwise read an
+   * empty grid and, worse, WRITE into nothing: `useExtPages` looks the
+   * page up by id and silently does nothing when it is absent, so an
+   * operator could add widgets that vanish on the next render.
+   */
+  watch([() => draft.template, activeScope, activePage], () => {
+    const tpl = draft.template;
+    const page = activePage.value;
+    if (!tpl || !page) return;
+    const scope = activeScope.value;
+    const pageable = scope === 'service' || scope === 'instance' || scope === 'endpoint';
+    const exists = pageable && !!tpl.dashboardExtPages?.[scope]?.some((p) => p.id === page);
+    if (!exists) activePage.value = null;
+  });
+
+  // Changing layer or scope drops back to that component's default page:
+  // a page id belongs to one component of one layer, so carrying it across
+  // would select a page that does not exist there. Suppressed during the
+  // initial hydrate, where these same refs are being SEEDED from the URL —
+  // resetting there would discard the `?page=` the operator deep-linked to.
+  watch([selectedKey, activeScope], () => {
+    if (suppressRouteSync) return;
+    activePage.value = null;
+  });
+
   /* ── Editor sources ───────────────────────────────────────────────
    * The editor loads from one of three sources: LOCAL (browser draft),
    * BUNDLED (shipped default), or REMOTE (OAP live). `editorSource` tracks
@@ -341,19 +421,13 @@ export function useLayerTemplateStore() {
 
   /** First per-layer tab segment for the live route, derived from enabled
    *  components (mirrors the sidebar's firstLayerTab fallback order). */
+  /** Where "Open live page" lands: the layer's FIRST resolved row, the
+   *  same one the sidebar click uses. A hard-coded component chain here
+   *  ignored both extension pages and an operator-defined menu order, so
+   *  preview opened somewhere the real menu would not. */
   function firstTabFor(tpl: AdminLayerTemplate | null): string {
-    const c = tpl?.components ?? {};
-    if (c.service) return 'service';
-    if (c.instances) return 'instance';
-    if (c.endpoints) return 'endpoint';
-    if (c.topology) return 'topology';
-    if (c.endpointDependency) return 'dependency';
-    if (c.traces) return 'trace';
-    if (c.logs) return 'logs';
-    if (c.traceProfiling) return 'trace-profiling';
-    if (c.ebpfProfiling) return 'ebpf-profiling';
-    if (c.asyncProfiling) return 'async-profiling';
-    return 'service';
+    if (!tpl) return FALLBACK_LAYER_ROW;
+    return firstLayerMenuRow(layerContentToDef(tpl as unknown as LayerTemplateContent));
   }
   // "Preview ▾" dropdown — open the REAL layer page in a new tab rendering
   // the chosen source (local / bundled / remote). Writes the content to the
@@ -385,6 +459,31 @@ export function useLayerTemplateStore() {
       syncDraft();
     }
   });
+  // A deep link to a layer the picker had not listed yet. Stored-only
+  // layers arrive with `sources`, after `loadAll` has already read the
+  // URL, so the link is applied here rather than dropped — otherwise it
+  // lands on another layer and every edit goes to the wrong template.
+  watch(templates, (list) => {
+    if (!pendingQueryLayer) return;
+    const match = list.find((t) => t.key.toUpperCase() === pendingQueryLayer);
+    if (match) {
+      pendingQueryLayer = null;
+      const page = pendingQueryPage;
+      pendingQueryPage = null;
+      selectedKey.value = match.key;
+      // Re-applied AFTER the layer-change watcher has run, not beside the
+      // assignment: that watcher is queued, so a page set in the same tick
+      // is cleared a moment later.
+      if (page) void nextTick(() => (activePage.value = page));
+      if (sourcesReady.value) syncDraft();
+    } else if (!selectedKey.value && list.length > 0 && sourcesReady.value) {
+      // The list has settled and it is genuinely not there — a stale
+      // bookmark. Fall back rather than leave the editor with nothing.
+      pendingQueryLayer = null;
+      selectedKey.value = list[0].key;
+      syncDraft();
+    }
+  });
   onMounted(loadAll);
   // Force-refresh the cached config bundle on mount so per-row badges
   // (`synced` / `diverged` / `disabled`) reflect actual OAP state. Without
@@ -430,6 +529,18 @@ export function useLayerTemplateStore() {
    *  only "save" — it never writes OAP. Publish later with "Push local → OAP". */
   function save(): void {
     if (!draft.template) return;
+    // Named here, not at push: the schema refuses these too, but only
+    // after the operator has committed to publishing and read a server
+    // error — and an imported template can arrive carrying them.
+    const pageIssues = draftPageIdIssues(draft.template);
+    if (pageIssues.length > 0) {
+      // Names as well as ids, so the message says "pages", not "ids".
+      error.value = `Fix these pages before saving — ${pageIssues.join('; ')}`;
+      return;
+    }
+    // A save that succeeds clears the last failure: leaving it up showed
+    // the refusal and the confirmation on screen at the same time.
+    error.value = null;
     stripEmptyDeployment(draft.template);
     persistLocal(draft.template);
     editorSource.value = 'local';
@@ -571,6 +682,23 @@ export function useLayerTemplateStore() {
     confirmFn = null;
     if (fn) void fn();
   }
+  /** Raise the shared confirm modal for any destructive editor action.
+   *  Callers own their own wording; this only owns the modal. */
+  function askConfirm(o: {
+    title: string;
+    message: string;
+    label: string;
+    danger?: boolean;
+    run: () => void | Promise<void>;
+  }): void {
+    confirmTitle.value = o.title;
+    confirmMessage.value = o.message;
+    confirmLabel.value = o.label;
+    confirmIsDanger.value = o.danger !== false;
+    confirmFn = o.run;
+    deleteOpen.value = true;
+  }
+
   function askDeleteLayer(): void {
     const key = selectedKey.value;
     if (!key || !editName.value) return;
@@ -658,6 +786,7 @@ export function useLayerTemplateStore() {
     draft,
     selectedKey,
     activeScope,
+    activePage,
     editorSource,
     loadedSnapshot,
     selectedTpl,
@@ -717,6 +846,7 @@ export function useLayerTemplateStore() {
     confirmLabel,
     confirmIsDanger,
     runConfirm,
+    askConfirm,
     askDeleteLayer,
     askReactivateLayer,
     doDeleteLayer,
diff --git a/apps/ui/src/features/admin/translations/TranslationsView.vue b/apps/ui/src/features/admin/translations/TranslationsView.vue
index 98f8b1c..99b22e9 100644
--- a/apps/ui/src/features/admin/translations/TranslationsView.vue
+++ b/apps/ui/src/features/admin/translations/TranslationsView.vue
@@ -72,6 +72,28 @@ const localEdits = useLocalTranslationEdits();
 const selectedKind = ref<'overview' | 'layer'>('overview');
 const selectedName = ref<string>('');
 const scope = ref<DashboardScope>('service');
+/** Which page of `scope` is being translated — `null` is the component's
+ *  default grid. A page's widgets live under `dashboardExtPages`, so
+ *  without this the editor could only ever reach the default grid's. */
+const page = ref<string | null>(null);
+/** The Page picker's options — DEFAULT plus one per declared page. Ids are
+ *  shown because two pages may legally share a display name. */
+const pageOptions = computed(() => [
+  { value: '', label: `${t('DEFAULT')}` },
+  ...scopePages.value.map((p) => ({ value: p.id, label: `${p.name} (${p.id})` })),
+]);
+
+/** Pages the selected template declares for the current scope. */
+const scopePages = computed<Array<{ id: string; name: string }>>(() => {
+  const eff = effective.value;
+  if (!eff) return [];
+  const tpl = eff.source as { dashboardExtPages?: Record<string, Array<{ id: string; name: string }>> };
+  return tpl.dashboardExtPages?.[scope.value] ?? [];
+});
+// A page id belongs to one component of one template.
+watch([scope, selectedName], () => {
+  page.value = null;
+});
 
 const {
   overviewSources,
@@ -140,6 +162,10 @@ const {
   allFields,
   filledCount,
   oapOverlayForTarget,
+  staleOverlayForTarget,
+  staleForLocale,
+  ensureOverlayFor,
+  overlayForLocale,
   draftOverlayForTarget,
   inUseOverlayForTarget,
   dirty,
@@ -183,6 +209,10 @@ function openPanel(fields: TranslatableField[], label: string, el: HTMLElement,
   // stays viewable but the editor never opens — no edit can start that could
   // only end in a server 409. Sibling admin pages gate the same way.
   if (readOnly.value) return;
+  // Leftover entries block editing for the same reason they block the push:
+  // whatever is typed here can only leave the browser through a push, and a
+  // push would take the leftovers with it.
+  if (staleBlocked.value) return;
   // Widgets with no translatable text (e.g. a topology widget that
   // only carries `layer`) shouldn't open an empty panel.
   if (fields.length === 0) return;
@@ -220,9 +250,12 @@ function onSelectLayerWidget(payload: { widget: DashboardWidget; idx: number; el
   const eff = effective.value;
   if (!eff) return;
   const tpl = eff.source as unknown as AdminLayerTemplate & { dashboards?: Record<string, DashboardWidget[]> };
-  const prefix = tpl.dashboards
-    ? `dashboards.${scope.value}[${payload.idx}]`
-    : `widgets[${payload.idx}]`;
+  const pageIdx = page.value ? scopePages.value.findIndex((p) => p.id === page.value) : -1;
+  const prefix = pageIdx >= 0
+    ? `dashboardExtPages.${scope.value}[${pageIdx}].widgets[${payload.idx}]`
+    : tpl.dashboards
+      ? `dashboards.${scope.value}[${payload.idx}]`
+      : `widgets[${payload.idx}]`;
   openPanel(
     fieldsForPrefix(prefix),
     payload.widget.title || payload.widget.id || `widget ${payload.idx + 1}`,
@@ -240,11 +273,31 @@ function onSelectOverviewHeader(payload: { el: HTMLElement; event: MouseEvent })
   openPanel(fields, 'Dashboard header', payload.el, pointFromEvent(payload.event));
 }
 
+/** The selected page's own prose — its display name, which is the sidebar
+ *  row operators read. It has its own target on the canvas rather than
+ *  sharing the layer header's: that control's own label says it edits the
+ *  LAYER's name and aliases, and quietly doing something else when a page
+ *  happens to be selected is the kind of thing an operator only discovers
+ *  by publishing it. */
+function onSelectPageHeader(payload: { el: HTMLElement; event: MouseEvent }): void {
+  const pageIdx = page.value ? scopePages.value.findIndex((p) => p.id === page.value) : -1;
+  if (pageIdx < 0) return;
+  const prefix = `dashboardExtPages.${scope.value}[${pageIdx}]`;
+  const fields = allFields.value.filter(
+    (f) => f.path.startsWith(prefix) && !f.path.startsWith(`${prefix}.widgets[`),
+  );
+  openPanel(fields, scopePages.value[pageIdx].name, payload.el, pointFromEvent(payload.event));
+}
+
 /** Layer header → layer alias + slots aliases + documentLink. Excludes
  *  widget grids and per-widget fields. */
 function onSelectLayerHeader(payload: { el: HTMLElement; event: MouseEvent }): void {
   const fields = allFields.value.filter((f) => {
     if (f.path.startsWith('widgets[') || f.path.startsWith('dashboards.')) return false;
+    // Extension-page prose belongs to its page, not to the layer header —
+    // without this a page's name and every widget title on it landed in
+    // the header panel, which is where the operator edits the LAYER.
+    if (f.path.startsWith('dashboardExtPages.')) return false;
     if (f.path.startsWith('metrics.columns[')) return false;
     if (f.path.startsWith('overview.groups[')) return false;
     return true;
@@ -302,7 +355,149 @@ function prettyJson(o: unknown): string {
 
 /** Publish the active locale's draft → OAP as a sibling overlay row.
  *  Same propagation-wait + 504 chain the source-save path uses. */
+/**
+ * Leftover entries make this language read-only until they are removed.
+ *
+ * They render as nothing, so blocking is not about a broken page. It is
+ * that a push REBUILDS the whole row from the draft, and the draft only
+ * ever holds paths the current template yields — so any ordinary push
+ * already deletes them, silently, as a side effect of saving one edited
+ * string. Requiring the cleanup first turns that into something the
+ * operator did on purpose and can see the extent of beforehand.
+ *
+ * It also closes the case that makes leftovers worth surfacing at all: a
+ * page created later that derives a removed page's id inherits its text.
+ * An operator who never noticed the banner would carry that hazard
+ * through every future edit.
+ */
+const staleBlocked = computed<boolean>(() => staleOverlayForTarget.value.length > 0);
+const blockedHint = computed<string>(() =>
+  t('Remove the leftover entries first — this language is read-only until then.'),
+);
+
+/**
+ * Publish this locale with the leftover entries dropped.
+ *
+ * It reuses the ordinary push rather than editing the stored row in
+ * place: the overlay that push writes is rebuilt from the draft, so a
+ * normal publish IS the cleanup. Doing it through the same path means one
+ * write, one code path, and the same read-only and error handling — and
+ * it is the one push that stays available while `staleBlocked`, being the
+ * only way out of it.
+ */
+// A refetch can introduce leftovers while the panel is open. The gate is
+// on opening, so without this the operator keeps typing into a language
+// that can no longer accept it.
+watch(staleBlocked, (blocked) => {
+  if (blocked) closePanel();
+});
+
+/* ── Removing leftovers ─────────────────────────────────────────────
+ *
+ * A stored row is per (template, language), so leftovers arrive per
+ * language too — a template edit strands text in every language that had
+ * translated the thing it removed. Cleaning only the language in front of
+ * the operator would leave the others to be discovered one at a time, on
+ * the day someone tries to edit them.
+ *
+ * So the action asks for its extent instead of assuming one: it scans
+ * every language of this template first, says which carry leftovers, and
+ * offers all of them or just this one. Scanning is on demand rather than
+ * on page load, because it costs one overlay read per language and most
+ * operators never need it.
+ */
+const sweepOpen = ref(false);
+const sweepScanning = ref(false);
+const sweepResults = ref<Array<{ locale: Locale; count: number }>>([]);
+/** Languages whose stored row could not be READ. Reported rather than
+ *  folded into "clean": a sweep that counted them as checked would tell
+ *  the operator the template is clear when part of it was never seen. */
+const sweepUnread = ref<Locale[]>([]);
+/** Languages of this template that carry leftovers, current one first. */
+const sweepOthers = computed(() => sweepResults.value.filter((r) => r.locale !== target.value));
+
+async function openSweep(): Promise<void> {
+  if (saving.value || readOnly.value) return;
+  sweepOpen.value = true;
+  sweepScanning.value = true;
+  sweepResults.value = [];
+  sweepUnread.value = [];
+  try {
+    // Sequential: a fan-out of seven reads against the admin port is a
+    // burst no other screen produces, and this is not on a hot path.
+    const read: Locale[] = [];
+    for (const loc of targetLocales) {
+      if (await ensureOverlayFor(loc)) read.push(loc);
+      else sweepUnread.value = [...sweepUnread.value, loc];
+    }
+    sweepResults.value = read
+      .map((locale) => ({ locale, count: staleForLocale(locale).length }))
+      .filter((r) => r.count > 0);
+  } finally {
+    sweepScanning.value = false;
+  }
+}
+
+/** Remove leftovers in the given languages, one row at a time, and report
+ *  what actually landed — a partial sweep must not read as a whole one. */
+async function cleanLocales(locales: Locale[]): Promise<void> {
+  if (!selectedName.value || saving.value || readOnly.value) return;
+  sweepOpen.value = false;
+  saving.value = true;
+  const done: Locale[] = [];
+  const failed: Locale[] = [];
+  try {
+    for (const loc of locales) {
+      saveMsg.value = t('Removing leftovers in {locale}…', { locale: LOCALE_NATIVE_LABEL[loc] });
+      try {
+        await writeOverlay(selectedName.value, loc, overlayForLocale(loc));
+        done.push(loc);
+      } catch {
+        failed.push(loc);
+      }
+    }
+    // The outcome is composed AFTER the refresh, not before it: the
+    // countdown used to run over a partial-failure message and nothing
+    // put it back, so a sweep that half-failed ended up reporting the
+    // refresh and then nothing at all.
+    for (let n = 6; n > 0; n--) {
+      saveMsg.value = t('Removed. Refreshing in {n}s…', { n });
+      await sleep(1000);
+    }
+    await bff.templateSync.resync();
+    await refreshConfigBundle({ force: true });
+    if (failed.length) {
+      saveMsg.value = t('Removed leftovers in {n} language(s); {failed} still carry them.', {
+        n: done.length,
+        failed: failed.map((l) => LOCALE_NATIVE_LABEL[l]).join(', '),
+      });
+      // Left up: a partial result is the one an operator has to act on.
+      return;
+    }
+    saveMsg.value = t('Removed leftovers in {n} language(s).', { n: done.length });
+    setTimeout(() => (saveMsg.value = null), 6000);
+  } finally {
+    saving.value = false;
+  }
+}
+
+/** One (template, locale) row: rebuilt, or removed when the rebuild is
+ *  empty because nothing it held is translatable any more. */
+async function writeOverlay(name: string, loc: Locale, overlay: Record<string, unknown> | null): Promise<void> {
+  if (overlay === null) await bff.templateSync.deleteTranslation(name, loc);
+  else await bff.templateSync.saveTranslation(name, loc, overlay);
+  localEdits.remove(name, loc);
+  const next = { ...fetchedOverlays.value };
+  delete next[overlayKey(name, loc)];
+  fetchedOverlays.value = next;
+}
+
 async function pushToOap(): Promise<void> {
+  if (staleBlocked.value) return; // the sweep is the only push allowed here
+  await publishOverlay();
+}
+
+async function publishOverlay(): Promise<void> {
   const name = selectedName.value;
   const loc = target.value;
   const overlay = draftOverlayForTarget.value;
@@ -461,6 +656,25 @@ async function onImportFile(): Promise<void> {
 
     <SyncStatusBanner :banner="banner" />
 
+    <!-- Translations for widgets, pages or scopes the template no longer
+         has. This language is read-only until they go: see `staleBlocked`
+         for why removing them has to be deliberate rather than a side
+         effect of the next push. -->
+    <div v-if="staleBlocked" class="tv__stale">
+      <span class="tv__stale-tag">{{ t('Stale') }}</span>
+      <span class="tv__stale-count">{{ t('{n} leftover entry(s)', { n: staleOverlayForTarget.length }) }}</span>
+      <span class="tv__stale-text">{{
+        t('This language stores translations for widgets or pages this template no longer has. Editing and publishing are blocked until they are removed — a push rebuilds the whole row, so it would drop them without saying so.')
+      }}</span>
+      <button type="button" class="sw-btn xs is-primary" :disabled="readOnly || saving" @click="openSweep">
+        {{ saving ? t('Removing…') : t('Remove them') }}
+      </button>
+      <details class="tv__stale-list">
+        <summary>{{ t('Show') }}</summary>
+        <code v-for="p in staleOverlayForTarget" :key="p">{{ p }}</code>
+      </details>
+    </div>
+
     <div class="tv__picker">
       <label>
         <span>{{ t('Kind') }}</span>
@@ -494,6 +708,18 @@ async function onImportFile(): Promise<void> {
           @update:model-value="(v) => (scope = v as DashboardScope)"
         />
       </label>
+      <!-- Only when the component actually has pages: a picker with one
+           option is noise on every layer that has none. -->
+      <label v-if="selectedKind === 'layer' && scopePages.length > 0">
+        <span>{{ t('Page') }}</span>
+        <TypeaheadSelect
+          :model-value="page ?? ''"
+          :options="pageOptions"
+          :disabled="readOnly"
+          :min-panel-width="220"
+          @update:model-value="(v) => (page = (v as string) || null)"
+        />
+      </label>
       <label>
         <span>{{ t('Target') }}</span>
         <TypeaheadSelect
@@ -541,7 +767,8 @@ async function onImportFile(): Promise<void> {
         <button
           type="button"
           class="sw-btn"
-          :title="t('Import a translation JSON file as a local draft — review, then publish.')"
+          :disabled="staleBlocked || readOnly"
+          :title="staleBlocked ? blockedHint : t('Import a translation JSON file as a local draft — review, then publish.')"
           @click="onImportFile"
         >{{ t('Import') }}</button>
         <!-- Reset to ▾ dropdown — matches the layer / overview
@@ -551,7 +778,8 @@ async function onImportFile(): Promise<void> {
           <button
             type="button"
             class="sw-btn"
-            :disabled="readOnly || !selectedName"
+            :disabled="readOnly || !selectedName || staleBlocked"
+            :title="staleBlocked ? blockedHint : undefined"
             @click="resetDropdownOpen = !resetDropdownOpen"
           >
             {{ t('reset to') }} <span class="caret" :class="{ open: resetDropdownOpen }">›</span>
@@ -584,13 +812,15 @@ async function onImportFile(): Promise<void> {
         <button
           type="button"
           class="sw-btn"
-          :disabled="!dirty || saving"
+          :disabled="!dirty || saving || staleBlocked || readOnly"
+          :title="staleBlocked ? blockedHint : undefined"
           @click="stageLocal"
         >{{ t('Stage local') }}</button>
         <button
           type="button"
           class="sw-btn is-primary"
-          :disabled="!dirty || saving"
+          :disabled="!dirty || saving || staleBlocked || readOnly"
+          :title="staleBlocked ? blockedHint : undefined"
           @click="pushOpen = true"
         >{{ t('Check diff & push') }}</button>
       </div>
@@ -614,6 +844,8 @@ async function onImportFile(): Promise<void> {
         v-else-if="selectedKind === 'layer' && localizedLayer"
         :template="localizedLayer"
         :scope="scope"
+        :page="page"
+        @select-page="onSelectPageHeader"
         :selected-widget-id="null"
         @select-widget="onSelectLayerWidget"
         @select-header="onSelectLayerHeader"
@@ -635,6 +867,50 @@ async function onImportFile(): Promise<void> {
       @stage="stageLocal"
     />
 
+    <Modal
+      :open="sweepOpen"
+      :title="t('Remove leftover translations?')"
+      width="min(560px, 94vw)"
+      @close="sweepOpen = false"
+    >
+      <p v-if="sweepScanning" class="tv__sweep-scan">{{ t('Checking every language…') }}</p>
+      <template v-else>
+        <p class="tv__push-lede">
+          {{ t('Removing rewrites each language\'s stored row without the entries this template can no longer place. What renders does not change.') }}
+        </p>
+        <ul class="tv__sweep-list">
+          <li v-for="r in sweepResults" :key="r.locale" :class="{ on: r.locale === target }">
+            <span class="tv__sweep-loc">{{ LOCALE_NATIVE_LABEL[r.locale] }}</span>
+            <span class="tv__sweep-n">{{ t('{n} leftover entry(s)', { n: r.count }) }}</span>
+          </li>
+        </ul>
+        <p v-if="sweepResults.length === 0 && sweepUnread.length === 0" class="tv__sweep-scan">{{ t('No language carries leftover entries for this template.') }}</p>
+        <!-- Named, not folded into the clean count: these were never read,
+             so "all languages" would be a claim this scan cannot make. -->
+        <p v-if="sweepUnread.length > 0" class="tv__sweep-warn">
+          {{ t('Could not check {locales} — its stored translations were unreadable.', {
+            locales: sweepUnread.map((l) => LOCALE_NATIVE_LABEL[l]).join(', '),
+          }) }}
+        </p>
+      </template>
+      <template #footer>
+        <button class="sw-btn" type="button" @click="sweepOpen = false">{{ t('Cancel') }}</button>
+        <button
+          v-if="sweepOthers.length > 0"
+          class="sw-btn"
+          type="button"
+          :disabled="sweepScanning || saving"
+          @click="cleanLocales([target])"
+        >{{ t('Only {locale}', { locale: LOCALE_NATIVE_LABEL[target] }) }}</button>
+        <button
+          class="sw-btn is-primary"
+          type="button"
+          :disabled="sweepScanning || saving || sweepResults.length === 0"
+          @click="cleanLocales(sweepResults.map((r) => r.locale))"
+        >{{ t('All languages ({n})', { n: sweepResults.length }) }}</button>
+      </template>
+    </Modal>
+
     <Modal
       :open="pushOpen"
       :title="t('Publish {locale} translations → OAP?', { locale: LOCALE_NATIVE_LABEL[target] })"
@@ -649,7 +925,7 @@ async function onImportFile(): Promise<void> {
       </div>
       <template #footer>
         <button class="sw-btn" type="button" @click="pushOpen = false">{{ t('Cancel') }}</button>
-        <button class="sw-btn is-primary" type="button" :disabled="saving" @click="pushToOap">
+        <button class="sw-btn is-primary" type="button" :disabled="saving || readOnly" @click="pushToOap">
           {{ saving ? t('Pushing…') : t('Confirm push') }}
         </button>
       </template>
@@ -658,6 +934,67 @@ async function onImportFile(): Promise<void> {
 </template>
 
 <style scoped>
+.tv__stale {
+  display: flex;
+  align-items: center;
+  flex-wrap: wrap;
+  gap: 10px;
+  padding: 7px 11px;
+  margin-bottom: 10px;
+  border: 1px solid var(--sw-line-2);
+  border-left: 2px solid var(--sw-warn);
+  border-radius: 5px;
+  background: var(--sw-bg-2);
+  font-size: 11.5px;
+  color: var(--sw-fg-1);
+}
+.tv__sweep-scan { margin: 0; color: var(--sw-fg-2); font-size: 12.5px; }
+.tv__sweep-warn { margin: 10px 0 0; color: var(--sw-warn); font-size: 12.5px; }
+.tv__sweep-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
+.tv__sweep-list li {
+  display: flex;
+  justify-content: space-between;
+  gap: 12px;
+  padding: 5px 9px;
+  border: 1px solid var(--sw-line-2);
+  border-radius: 4px;
+  font-size: 12.5px;
+  color: var(--sw-fg-1);
+}
+/* The language in front of the operator, so "Only this one" is unambiguous. */
+.tv__sweep-list li.on { border-color: var(--sw-warn); }
+.tv__sweep-loc { color: var(--sw-fg-0); }
+.tv__sweep-n { color: var(--sw-fg-2); }
+
+.tv__stale-tag {
+  flex: none;
+  padding: 1px 6px;
+  border-radius: 3px;
+  font-size: 10px;
+  font-weight: 700;
+  letter-spacing: 0.06em;
+  text-transform: uppercase;
+  color: var(--sw-bg-0);
+  background: var(--sw-warn);
+}
+.tv__stale-count {
+  font-weight: 600;
+  color: var(--sw-fg-0);
+}
+.tv__stale-text {
+  color: var(--sw-fg-2);
+}
+.tv__stale-list summary {
+  cursor: pointer;
+  color: var(--sw-fg-2);
+}
+.tv__stale-list code {
+  display: block;
+  font-size: 10.5px;
+  color: var(--sw-fg-2);
+  padding: 1px 0;
+}
+
 .tv { padding: 16px 20px 40px; display: flex; flex-direction: column; gap: 12px; max-width: 1600px; margin: 0 auto; }
 .tv__head h1 { margin: 2px 0 4px; font-size: 20px; color: var(--sw-fg-0); }
 .tv__kicker { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sw-warn); }
diff --git a/apps/ui/src/features/admin/translations/useTranslationDraft.stale.test.ts b/apps/ui/src/features/admin/translations/useTranslationDraft.stale.test.ts
new file mode 100644
index 0000000..6298487
--- /dev/null
+++ b/apps/ui/src/features/admin/translations/useTranslationDraft.stale.test.ts
@@ -0,0 +1,265 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * What the editor makes of a stored overlay the template has outgrown.
+ *
+ * The page turns this into a gate — leftovers make the language read-only
+ * until they are removed — so what the composable reports decides whether
+ * an operator can work at all.
+ *
+ * Leftovers come in two shapes and the gate has to catch both, for
+ * opposite reasons. A key the source lost entirely survives
+ * canonicalization, so `dirty` goes TRUE and an ordinary push is offered
+ * that would take the leftovers with it. An entry inside an array the
+ * source still has is canonicalized away, so `dirty` stays FALSE and the
+ * ordinary push is disabled — leaving the cleanup, which bypasses
+ * `dirty`, as the only way to remove it.
+ */
+
+import { describe, it, expect, vi, beforeEach } from 'vitest';
+import { ref, computed } from 'vue';
+
+vi.mock('@/shell/useAdminFeatures', () => ({
+  useAdminFeatures: () => ({ templatesMode: ref('live') }),
+}));
+
+import { useTranslationDraft, type EffectiveSource } from './useTranslationDraft';
+import { useLocalTranslationEdits } from '@/controls/localTranslationEdits';
+
+const NAME = 'horizon.layer.CUSTOM_MQ';
+const LOC = 'zh-CN';
+
+const w = (id: string, title: string) => ({ id, type: 'line', title, expressions: ['x'] });
+
+/** A layer with one default-grid widget and one extension page. */
+const withPage = (): EffectiveSource => ({
+  source: {
+    key: 'CUSTOM_MQ',
+    alias: 'Custom MQ',
+    dashboards: { service: [w('svc-a', 'Throughput')] },
+    dashboardExtPages: {
+      service: [{ id: 'agents', name: 'Agents', widgets: [w('ag-a', 'Agent count')] }],
+    },
+  },
+});
+
+/** The same layer after the operator deleted the page and pushed. */
+const withoutPage = (): EffectiveSource => ({
+  source: {
+    key: 'CUSTOM_MQ',
+    alias: 'Custom MQ',
+    dashboards: { service: [w('svc-a', 'Throughput')] },
+  },
+});
+
+const JA = 'ja';
+
+function harness(eff: EffectiveSource) {
+  const selectedKind = ref<'overview' | 'layer'>('layer');
+  const selectedName = ref(NAME);
+  const source = ref(eff);
+  const draft = useTranslationDraft({
+    selectedKind,
+    selectedName,
+    effective: computed(() => source.value),
+  });
+  draft.target.value = LOC;
+  /** Seed the fetched OAP snapshot the way a BFF read would. */
+  const store = (oap: unknown, loc: string = LOC) => {
+    draft.fetchedOverlays.value = {
+      ...draft.fetchedOverlays.value,
+      [draft.overlayKey(NAME, loc)]: { disk: null, oap },
+    };
+  };
+  return { draft, source, store };
+}
+
+beforeEach(() => {
+  // The local-edit store is module state shared across tests; a draft
+  // staged by one would seed the next one's editor.
+  useLocalTranslationEdits().remove(NAME);
+});
+
+describe('leftovers in a stored overlay', () => {
+  it('are none while the template still declares the page', () => {
+    const { draft, store } = harness(withPage());
+    store({
+      dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] },
+    });
+    expect(draft.staleOverlayForTarget.value).toEqual([]);
+  });
+
+  it('appear the moment the page is gone from the source', () => {
+    const { draft, store, source } = harness(withPage());
+    store({ dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] } });
+    source.value = withoutPage();
+    // The whole key, because the source lost it entirely.
+    expect(draft.staleOverlayForTarget.value).toEqual(['dashboardExtPages']);
+  });
+
+  it('survive canonicalization when the source lost the key entirely', () => {
+    // Canonicalizing copies an unknown key through verbatim, so the
+    // canonical row still carries the leftover — and the draft does not.
+    // The two therefore differ, `dirty` goes true, and an ordinary push
+    // would have been offered and would have dropped them silently. That
+    // is the case the gate exists for.
+    const { draft, store } = harness(withoutPage());
+    store({ dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] } });
+    expect(draft.staleOverlayForTarget.value).toEqual(['dashboardExtPages']);
+    expect(draft.oapOverlayForTarget.value).toHaveProperty('dashboardExtPages');
+    expect(draft.dirty.value).toBe(true);
+  });
+
+  it('are dropped by canonicalization when they sit inside a live array', () => {
+    // The opposite shape, and it needs the gate for the opposite reason:
+    // canonicalizing removes the entry, so the canonical row and the
+    // draft agree, `dirty` stays false, and "Check diff & push" is
+    // disabled. Without a cleanup that bypasses `dirty` there would be no
+    // way to remove this leftover at all.
+    const { draft, store } = harness(withPage());
+    store({
+      dashboardExtPages: {
+        service: [
+          { id: 'agents', name: '探针' },
+          { id: 'deleted', name: '已删除' },
+        ],
+      },
+    });
+    draft.rebuildDraftForLocale(NAME, LOC, 'remote');
+    expect(draft.staleOverlayForTarget.value).toEqual(['dashboardExtPages.service[1]']);
+    expect(draft.dirty.value).toBe(false);
+  });
+
+  it('do not count a widget the template still has', () => {
+    const { draft, store } = harness(withoutPage());
+    store({ dashboards: { service: [{ id: 'svc-a', title: '吞吐量' }] } });
+    expect(draft.staleOverlayForTarget.value).toEqual([]);
+  });
+});
+
+describe('what the cleanup publishes', () => {
+  it('keeps the translations the template can still place', async () => {
+    const { draft, store, source } = harness(withPage());
+    store({
+      dashboards: { service: [{ id: 'svc-a', title: '吞吐量' }] },
+      dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] },
+    });
+    // Seeding maps the stored row onto the CURRENT source's field paths,
+    // which is what drops the leftovers before anything is written.
+    draft.rebuildDraftForLocale(NAME, LOC, 'remote');
+    source.value = withoutPage();
+    const next = draft.buildOverlayContent(NAME, LOC, withoutPage());
+    expect(next).toEqual({ dashboards: { service: [{ id: 'svc-a', title: '吞吐量' }] } });
+    expect(next).not.toHaveProperty('dashboardExtPages');
+  });
+
+  it('is a DELETE when every stored entry was a leftover', () => {
+    // A row whose only content is text for things that no longer exist
+    // translates nothing. Rebuilding it yields no overlay at all, and the
+    // push path reads that as "remove the row" rather than writing an
+    // empty one — which is the correct end state, not a missed case.
+    const { draft, store, source } = harness(withPage());
+    store({ dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] } });
+    draft.rebuildDraftForLocale(NAME, LOC, 'remote');
+    source.value = withoutPage();
+    expect(draft.buildOverlayContent(NAME, LOC, withoutPage())).toBeNull();
+  });
+
+  it('leaves nothing stale behind', () => {
+    const { draft, store, source } = harness(withPage());
+    store({
+      dashboards: { service: [{ id: 'svc-a', title: '吞吐量' }] },
+      dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] },
+    });
+    draft.rebuildDraftForLocale(NAME, LOC, 'remote');
+    source.value = withoutPage();
+    const next = draft.buildOverlayContent(NAME, LOC, withoutPage());
+    // Feed the result back as though it were the newly stored row: the
+    // gate must not fire again, or the operator can never get out of it.
+    store(next);
+    expect(draft.staleOverlayForTarget.value).toEqual([]);
+  });
+});
+
+/**
+ * A template edit strands text in EVERY language that had translated what
+ * it removed, so the cleanup offers to sweep them. Acting on a language
+ * the operator has not selected is the part that can go wrong quietly:
+ * its draft is only seeded when its overlay is fetched, and rebuilding an
+ * unseeded draft yields nothing — which the push path reads as "remove the
+ * row", deleting good translations instead of cleaning them.
+ */
+describe('sweeping other languages', () => {
+  it('reports leftovers per language, not just for the selected one', () => {
+    const { draft, store, source } = harness(withPage());
+    store({ dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] } }, LOC);
+    store({ dashboardExtPages: { service: [{ id: 'agents', name: 'エージェント' }] } }, JA);
+    source.value = withoutPage();
+    expect(draft.staleForLocale(LOC)).toEqual(['dashboardExtPages']);
+    expect(draft.staleForLocale(JA)).toEqual(['dashboardExtPages']);
+    // The selected language is just one of them.
+    expect(draft.staleOverlayForTarget.value).toEqual(draft.staleForLocale(LOC));
+  });
+
+  it('says nothing about a language whose overlay was never fetched', () => {
+    // Not "clean" — unknown. The scan fetches every language before
+    // reporting, because an unfetched one would otherwise be omitted from
+    // the sweep and left carrying its leftovers.
+    const { draft, source } = harness(withPage());
+    source.value = withoutPage();
+    expect(draft.staleForLocale(JA)).toEqual([]);
+  });
+
+  it('rebuilds each language from ITS OWN translations', () => {
+    const { draft, store, source } = harness(withPage());
+    store({
+      dashboards: { service: [{ id: 'svc-a', title: '吞吐量' }] },
+      dashboardExtPages: { service: [{ id: 'agents', name: '探针' }] },
+    }, LOC);
+    store({
+      dashboards: { service: [{ id: 'svc-a', title: 'スループット' }] },
+      dashboardExtPages: { service: [{ id: 'agents', name: 'エージェント' }] },
+    }, JA);
+    draft.rebuildDraftForLocale(NAME, LOC, 'remote');
+    draft.rebuildDraftForLocale(NAME, JA, 'remote');
+    source.value = withoutPage();
+
+    expect(draft.overlayForLocale(LOC)).toEqual({
+      dashboards: { service: [{ id: 'svc-a', title: '吞吐量' }] },
+    });
+    expect(draft.overlayForLocale(JA)).toEqual({
+      dashboards: { service: [{ id: 'svc-a', title: 'スループット' }] },
+    });
+  });
+
+  it('would DELETE a language whose draft was never seeded', () => {
+    // The failure mode the scan exists to prevent, pinned so a later
+    // change that sweeps without fetching first fails here rather than in
+    // production: an unseeded draft rebuilds to nothing, and nothing means
+    // "remove the row" — including its still-valid translations.
+    const { draft, store, source } = harness(withPage());
+    store({ dashboards: { service: [{ id: 'svc-a', title: 'スループット' }] } }, JA);
+    source.value = withoutPage();
+    expect(draft.overlayForLocale(JA)).toBeNull();
+    // Seeded first, the same language keeps its translation.
+    draft.rebuildDraftForLocale(NAME, JA, 'remote');
+    expect(draft.overlayForLocale(JA)).toEqual({
+      dashboards: { service: [{ id: 'svc-a', title: 'スループット' }] },
+    });
+  });
+});
diff --git a/apps/ui/src/features/admin/translations/useTranslationDraft.ts b/apps/ui/src/features/admin/translations/useTranslationDraft.ts
index 2fac025..573a39d 100644
--- a/apps/ui/src/features/admin/translations/useTranslationDraft.ts
+++ b/apps/ui/src/features/admin/translations/useTranslationDraft.ts
@@ -49,6 +49,7 @@ import type { OverviewDashboard } from '@skywalking-horizon-ui/api-client';
 import {
   alignOverlayToSource,
   canonicalizeOverlay,
+  staleOverlayPaths,
   mergeLocalizedNode,
   stampOverlayIds,
 } from '@skywalking-horizon-ui/api-client';
@@ -57,7 +58,14 @@ import {
 export interface EffectiveSource { source: Record<string, unknown> }
 
 /** OAP + disk overlay snapshots already fetched from the BFF. */
-interface OverlaySnapshot { disk: unknown; oap: unknown }
+interface OverlaySnapshot {
+  disk: unknown;
+  oap: unknown;
+  /** The read FAILED — not "this language has no row". The two are the
+   *  same shape otherwise, and a sweep that cannot tell them apart
+   *  reports a language as clean when it was never looked at. */
+  unread?: true;
+}
 
 export interface UseTranslationDraftArgs {
   selectedKind: Ref<'overview' | 'layer'>;
@@ -75,6 +83,14 @@ export interface UseTranslationDraftReturn {
   allFields: ComputedRef<TranslatableField[]>;
   filledCount: ComputedRef<number>;
   oapOverlayForTarget: ComputedRef<unknown>;
+  /** Stored-overlay paths the current template cannot place. */
+  staleOverlayForTarget: ComputedRef<string[]>;
+  /** Leftover paths for any locale already fetched. */
+  staleForLocale: (loc: string) => string[];
+  /** Fetch and seed one locale. `false` when the read failed — the caller
+   *  must not report that language as checked. */
+  ensureOverlayFor: (loc: Locale) => Promise<boolean>;
+  overlayForLocale: (loc: string) => Record<string, unknown> | null;
   draftOverlayForTarget: ComputedRef<Record<string, unknown> | null>;
   inUseOverlayForTarget: ComputedRef<Record<string, unknown> | null>;
   dirty: ComputedRef<boolean>;
@@ -181,7 +197,10 @@ export function useTranslationDraft(args: UseTranslationDraftArgs): UseTranslati
     try {
       snap = await bff.templateSync.overlay(name, loc);
     } catch {
-      /* leave the snapshot empty — the draft then starts from English */
+      // The draft starts from English, as before — but the snapshot says
+      // it is a failure rather than an absence, so a caller that needs to
+      // report coverage can.
+      snap = { disk: null, oap: null, unread: true };
     }
     fetchedOverlays.value = { ...fetchedOverlays.value, [k]: snap };
     applyOverlaysToDraft(name, loc, [renderedOverlay(snap), localEdits.get<unknown>(name, loc)], eff);
@@ -289,6 +308,51 @@ export function useTranslationDraft(args: UseTranslationDraftArgs): UseTranslati
    *  diff. Canonicalizing is what keeps a legacy positional row — or a
    *  row the seeder wrote — from reading as a pending edit: the same
    *  translations always render as the same bytes. */
+  /**
+   * Paths in the STORED OAP overlay that the template can no longer place
+   * — text for a widget, page or scope that has since been removed.
+   *
+   * Read from the RAW snapshot on purpose. `oapOverlayForTarget` below
+   * canonicalizes against the source, and that drops SOME of these but
+   * not all: an entry inside an array the source still has is dropped,
+   * while a key the source lost entirely is copied through verbatim.
+   * Checking there would therefore miss a whole class — and the class it
+   * misses is the one where `dirty` goes true, so the operator would be
+   * offered an ordinary push that silently takes the leftovers with it.
+   *
+   * Nothing renders from them — the merger ignores them, which is what
+   * lets a catalog survive a template edit. They are surfaced because they
+   * are otherwise invisible, and because reusing a removed page's id later
+   * would pick up its old text.
+   */
+  function staleForLocale(loc: string): string[] {
+    const eff = effective.value;
+    const snap = fetchedOverlays.value[overlayKey(selectedName.value, loc)];
+    if (!eff || !snap?.oap) return [];
+    return staleOverlayPaths(eff.source, snap.oap);
+  }
+
+  const staleOverlayForTarget = computed<string[]>(() => staleForLocale(target.value));
+
+  /** Fetch and seed one locale of the selected template on demand.
+   *  A sweep needs languages the operator has not selected, and a draft
+   *  that was never seeded would rebuild as empty — deleting the row
+   *  instead of cleaning it. */
+  async function ensureOverlayFor(loc: Locale): Promise<boolean> {
+    const eff = effective.value;
+    if (!eff || !selectedName.value) return false;
+    const k = overlayKey(selectedName.value, loc);
+    // Retry a language whose last read failed, rather than inheriting the
+    // failure for the rest of the session.
+    if (fetchedOverlays.value[k]?.unread) {
+      const next = { ...fetchedOverlays.value };
+      delete next[k];
+      fetchedOverlays.value = next;
+    }
+    await ensureOverlayFetched(selectedName.value, loc, eff);
+    return !fetchedOverlays.value[k]?.unread;
+  }
+
   const oapOverlayForTarget = computed<unknown>(() => {
     const eff = effective.value;
     const snap = fetchedOverlays.value[overlayKey(selectedName.value, target.value)];
@@ -300,12 +364,20 @@ export function useTranslationDraft(args: UseTranslationDraftArgs): UseTranslati
    *  locale) — built from the in-memory draft, in the same canonical
    *  shape as the left side so the diff shows only real changes. This is
    *  what Push writes. */
-  const draftOverlayForTarget = computed<Record<string, unknown> | null>(() => {
+  /** What a push would write for one locale — canonical, so a row an
+   *  operator publishes is byte-identical to one the seeder writes.
+   *  `null` means the rebuilt overlay is empty, which the push path reads
+   *  as "remove the row". */
+  function overlayForLocale(loc: string): Record<string, unknown> | null {
     const eff = effective.value;
     if (!eff || !selectedName.value) return null;
-    const overlay = buildOverlayContent(selectedName.value, target.value, eff);
+    const overlay = buildOverlayContent(selectedName.value, loc, eff);
     return overlay === null ? null : (canonicalizeOverlay(eff.source, overlay) as Record<string, unknown>);
-  });
+  }
+
+  const draftOverlayForTarget = computed<Record<string, unknown> | null>(() =>
+    overlayForLocale(target.value),
+  );
 
   /** The in-use overlay for (selected template, target locale): the OAP row
    *  (what's published) wins, else the disk-shipped seed. A pushed row is
@@ -386,6 +458,10 @@ export function useTranslationDraft(args: UseTranslationDraftArgs): UseTranslati
     allFields,
     filledCount,
     oapOverlayForTarget,
+    staleOverlayForTarget,
+    staleForLocale,
+    ensureOverlayFor,
+    overlayForLocale,
     draftOverlayForTarget,
     inUseOverlayForTarget,
     dirty,
diff --git a/apps/ui/src/i18n/locales/de.json b/apps/ui/src/i18n/locales/de.json
index 5e47207..bddb412 100644
--- a/apps/ui/src/i18n/locales/de.json
+++ b/apps/ui/src/i18n/locales/de.json
@@ -860,7 +860,6 @@
   "error: {msg}": "Fehler: {msg}",
   "exp": "exp",
   "expired": "abgelaufen",
-  "filter": "Filter",
   "filter username…": "Benutzername filtern…",
   "first match wins · \"*\" matches every authenticated user": "erste Übereinstimmung gewinnt · „*“ trifft auf jeden authentifizierten Benutzer zu",
   "fixed by /inspect/metrics for {metric}": "festgelegt durch /inspect/metrics für {metric}",
@@ -1925,8 +1924,8 @@
   "KPI tile": "KPI-Kachel",
   "Topology config": "Topologie-Konfiguration",
   "node + server-side + client-side line metrics. Add rows; bind a metric to a visual role.": "Knoten- sowie server- und clientseitige Kantenmetriken. Zeilen hinzufügen und je eine Metrik an eine visuelle Rolle binden.",
-  "Show": "Zeige",
-  "as a chip in the node panel": "als Chip im Knoten-Panel an",
+  "Show": "Anzeigen",
+  "Show {prefix} as a chip in the node panel": "{prefix} als Chip im Knoten-Panel anzeigen",
   "Off:": "Aus:",
   "reads as": "erscheint als",
   "everywhere.": "überall.",
@@ -2611,5 +2610,94 @@
   "Content": "Inhalt",
   "words the line must contain…": "Wörter, die die Zeile enthalten muss …",
   "every word must appear in the line": "Jedes Wort muss in der Zeile vorkommen",
-  "Meter Analysis Language - …": "Meter Analysis Language - …"
+  "Meter Analysis Language - …": "Meter Analysis Language - …",
+  "Page not found.": "Seite nicht gefunden.",
+  "This layer has no page with that name. It may have been renamed or removed.": "Dieser Layer hat keine Seite mit diesem Namen. Sie wurde möglicherweise umbenannt oder entfernt.",
+  "DEFAULT": "STANDARD",
+  "Page name": "Seitenname",
+  "Add a page to this component": "Dieser Komponente eine Seite hinzufügen",
+  "Delete this page": "Diese Seite löschen",
+  "Give the page a name.": "Geben Sie der Seite einen Namen.",
+  "{n} page maximum": "Maximal {n} Seiten",
+  "Delete page?": "Seite löschen?",
+  "Delete page": "Seite löschen",
+  "Delete the “{name}” page and its {n} widget(s)? This only changes your draft until you push.": "Die Seite „{name}“ und ihre {n} Widget(s) löschen? Bis zum Push ändert das nur Ihren Entwurf.",
+  "Add": "Hinzufügen",
+  "filter by name, or /regex/…": "nach Name oder /Regex/ filtern…",
+  "Not a valid regular expression — matching the text literally.": "Kein gültiger regulärer Ausdruck – der Text wird wörtlich verglichen.",
+  "Clear filter": "Filter löschen",
+  "Service filter": "Service-Filter",
+  "Not a valid regular expression.": "Kein gültiger regulärer Ausdruck.",
+  "service list unavailable": "Serviceliste nicht verfügbar",
+  "Turn off {component}?": "{component} deaktivieren?",
+  "Turn off and delete": "Deaktivieren und löschen",
+  "This removes its {grid} widget(s), {pages} extra page(s) with {pageWidgets} widget(s), {settings} of its own setting(s), and its rows in the menu order. Their translations stay stored until you clear them on the Translations page. This only changes your draft until you push.": "Dies entfernt seine {grid} Widget(s), {pages} zusätzliche Seite(n) mit {pageWidgets} Widget(s), {settings} eigene Einstellung(en) und seine Einträge in der Menüreihenfolge. Die Übersetzungen bleiben gespeichert [...]
+  "{n} leftover entry(s)": "{n} übrig gebliebene(r) Eintrag/Einträge",
+  "This language stores translations for widgets or pages this template no longer has. Editing and publishing are blocked until they are removed — a push rebuilds the whole row, so it would drop them without saying so.": "Diese Sprache speichert Übersetzungen für Widgets oder Seiten, die diese Vorlage nicht mehr hat. Bearbeiten und Veröffentlichen sind gesperrt, bis sie entfernt sind — ein Push baut die gesamte Zeile neu auf und würde sie kommentarlos verwerfen.",
+  "Remove them": "Entfernen",
+  "Go to {component}": "Zu {component}",
+  "Rename": "Umbenennen",
+  "{label} has no editable configuration": "{label} hat keine bearbeitbare Konfiguration",
+  "Click to translate this page's name — the row operators see in the sidebar.": "Klicken, um den Namen dieser Seite zu übersetzen — die Zeile, die Bedienende in der Seitenleiste sehen.",
+  "Stale": "Veraltet",
+  "Removing…": "Wird entfernt…",
+  "Remove the leftover entries first — this language is read-only until then.": "Entfernen Sie zuerst die übrig gebliebenen Einträge — bis dahin ist diese Sprache schreibgeschützt.",
+  "Remove leftover translations?": "Übrig gebliebene Übersetzungen entfernen?",
+  "Checking every language…": "Alle Sprachen werden geprüft…",
+  "Removing rewrites each language's stored row without the entries this template can no longer place. What renders does not change.": "Beim Entfernen wird die gespeicherte Zeile jeder Sprache ohne die Einträge neu geschrieben, die diese Vorlage nicht mehr zuordnen kann. An der Darstellung ändert sich nichts.",
+  "No language carries leftover entries for this template.": "Keine Sprache enthält übrig gebliebene Einträge für diese Vorlage.",
+  "Only {locale}": "Nur {locale}",
+  "All languages ({n})": "Alle Sprachen ({n})",
+  "Removing leftovers in {locale}…": "Übrig gebliebene Einträge in {locale} werden entfernt…",
+  "Removed leftovers in {n} language(s).": "Übrig gebliebene Einträge in {n} Sprache(n) entfernt.",
+  "Removed leftovers in {n} language(s); {failed} still carry them.": "Übrig gebliebene Einträge in {n} Sprache(n) entfernt; {failed} enthalten sie weiterhin.",
+  "Removed. Refreshing in {n}s…": "Entfernt. Aktualisierung in {n}s…",
+  "Could not check {locales} — its stored translations were unreadable.": "{locales} konnte nicht geprüft werden — die gespeicherten Übersetzungen waren nicht lesbar.",
+  "This removes the {component} configuration this layer carries, and its row in the menu order. This only changes your draft until you push.": "Damit werden die {component}-Konfiguration dieser Ebene und ihre Zeile in der Menüreihenfolge entfernt. Das ändert nur Ihren Entwurf, bis Sie pushen.",
+  "filter": "Filter",
+  "Instance filter": "Instanzfilter",
+  "regular expression": "regulärer Ausdruck",
+  "name fragment": "Namensfragment",
+  "regex": "Regex",
+  "Attribute conditions": "Attributbedingungen",
+  "+ Condition": "+ Bedingung",
+  "No conditions — every instance matching the name filter is shown.": "Keine Bedingungen — jede Instanz, die dem Namensfilter entspricht, wird angezeigt.",
+  "attribute, e.g. namespace": "Attribut, z. B. namespace",
+  "Matches": "Treffer",
+  "No instances to preview against.": "Keine Instanzen für eine Vorschau vorhanden.",
+  "Nothing matches — this page would show an empty list.": "Keine Treffer — diese Seite würde eine leere Liste zeigen.",
+  "Which services this page shows": "Welche Services diese Seite zeigt",
+  "Which instances this page shows": "Welche Instanzen diese Seite zeigt",
+  "Authored here and nowhere else — the page itself shows the result and never the filter.": "Nur hier konfigurierbar — die Seite selbst zeigt das Ergebnis und nie den Filter.",
+  "Preview matches": "Treffer ansehen",
+  "Services this page shows": "Services, die diese Seite zeigt",
+  "Instances this page shows": "Instanzen, die diese Seite zeigt",
+  "under": "unter",
+  "search endpoints…": "Endpoints suchen…",
+  "The default page is the component’s own grid — it cannot be renamed or removed. Add a page to create one that can.": "Die Standardseite IST das Widget-Raster der Komponente — sie lässt sich weder umbenennen noch entfernen. Fügen Sie eine Seite hinzu, wenn Sie eine brauchen, die das kann.",
+  "extra page": "zusätzliche Seite",
+  "Rearrange menu": "Menü neu anordnen",
+  "drag an entry to move it": "Eintrag ziehen, um ihn zu verschieben",
+  "the menu follows the built-in order": "Das Menü folgt der eingebauten Reihenfolge",
+  "built-in entry": "eingebauter Eintrag",
+  "Filtered": "Gefiltert",
+  "Menu key": "Menüschlüssel",
+  "Give the page an id.": "Geben Sie der Seite eine id.",
+  "That id is already used by another page.": "Diese id wird bereits von einer anderen Seite verwendet.",
+  "That id is a built-in menu entry — pick another.": "Diese id ist ein eingebauter Menüeintrag — wählen Sie eine andere.",
+  "An id uses lowercase letters, digits and dashes.": "Eine id besteht aus Kleinbuchstaben, Ziffern und Bindestrichen.",
+  "Page id": "Seiten-id",
+  "page-id": "page-id",
+  "Entity label": "Entitätsbezeichnung",
+  "what this page calls them": "wie diese Seite sie nennt",
+  "Blank uses the layer’s own menu label.": "Leer verwendet die eigene Menübezeichnung des Layers.",
+  "the menu uses your order": "Das Menü verwendet Ihre Reihenfolge",
+  "Reset to built-in order": "Auf eingebaute Reihenfolge zurücksetzen",
+  "Sample service": "Beispiel-Service",
+  "Drag to move {label}": "{label} zum Verschieben ziehen",
+  "No services reported.": "Keine Dienste gemeldet.",
+  "A name is at most {n} characters.": "Ein Name hat höchstens {n} Zeichen.",
+  "An id is at most {n} characters.": "Eine id hat höchstens {n} Zeichen.",
+  "Another page already has this name — rename one, or they are told apart only by id.": "Eine andere Seite heißt bereits so — benennen Sie eine um, sonst unterscheiden sie sich nur durch die id.",
+  "{n} conditions is the maximum for one page.": "{n} Bedingungen sind das Maximum für eine Seite."
 }
diff --git a/apps/ui/src/i18n/locales/en.json b/apps/ui/src/i18n/locales/en.json
index 333bff7..a35a533 100644
--- a/apps/ui/src/i18n/locales/en.json
+++ b/apps/ui/src/i18n/locales/en.json
@@ -842,7 +842,6 @@
   "error: {msg}": "error: {msg}",
   "exp": "exp",
   "expired": "expired",
-  "filter": "filter",
... 6900 lines suppressed ...