# XWUISuperDB

Super-tier KEYSTONE-style admin shell that wires the five `industry/db/` components - `XWUIDBDashboard`, `XWUIDBDatabasesList`, `XWUIDBCollectionsList`, `XWUIDBDocumentsBrowser`, `XWUIDBQueryEditor` - into a single `db` menu group whose seven leaves mirror KEYSTONE's web views. The Dashboard leaf is the `meta.default` cold landing (KPI ribbon, recent-activity feed, shortcut tiles); Collections and Documents are scoped to the baked-in defaults `tenant-prod` / `users`, the Query editor runs a simulated JSON-predicate round-trip, and Audit Log + Settings fall back to `XWUIEmpty` to lock their menu-key contract. The static `menuTree()` + `pages()` honor `title` (default "Database"), `sidebarWidth`, `activeKey`, `user`, `locale`, and `notifications`, and merge with sibling Super apps via `extraTree` / `extraPages` or `XWUISuperApp.merge()`.

## Basic Usage

Mounts the DB shell standalone with a DBA identity, landing on the KEYSTONE-shaped dashboard with the four real `industry/db/` leaves plus the two placeholders reachable from the sidebar.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: Mounts XWUISuperDB on its own with activeKey db-dashboard, opening on the KEYSTONE-shaped KPI dashboard.
```

## Merged With Auth

Union-merges DB with an inline `AppAuthDemo` stand-in (login / users / keys leaves) via `XWUISuperApp.merge()`, mounting the combined descriptor into a base `XWUISuperApp` while DB's dashboard stays the cold-start default.

```example
file: examples/MergedWithAuth.ts
html: examples/MergedWithAuth.html
title: Merged With Auth
description: Merges XWUISuperDB with a stand-in Auth Super-app into one host shell via extraTree / extraPages, keeping db-dashboard as the landing.
```

## Query Console (Arabic)

Deep-links straight to the `db-query` console under the Arabic locale, flipping the shell to RTL and surfacing a 3-alert badge.

```example
file: examples/QueryConsoleArabic.ts
html: examples/QueryConsoleArabic.html
title: Query Console (Arabic)
description: Opens directly on db-query with locale 'ar' so the shell mirrors to RTL, prefers the user's nameAr, and shows a 3-alert notification badge.
```

## With Schema Docs

Adds a host-owned "Schema Docs" group through extraTree / extraPages, landing on an ERD-reference card without subclassing the shell.

```example
file: examples/WithSchemaDocs.ts
html: examples/WithSchemaDocs.html
title: With Schema Docs
description: Extends the DB nav with a docs-erd leaf via extraTree / extraPages that mounts an XWUICard summarizing the entity-relationship model.
```

```api
```
