# console — repo context

> Curated overview for code_search. Source: `direqt-search/console` (GitHub). Angular 19 SPA.

## Purpose
**Management console** for the Direqt Search platform — an **Angular 19**
single-page app providing administrative and publisher-facing interfaces for
managing search engines, content, crawling, and system operations.

## Product areas
- **Search Engines** — create/manage search apps, embed widgets, search logs, suggestions
- **Search for Publishers** — manage search items (content), edit items (incl. PDF upload), promotional/smart prompts, query logs
- **System Operator** — cross-network admin: network mgmt, search-app oversight, crawler site mgmt, index inspection, ID lookup

## Key concepts
- **Multi-tenant**: each tenant is a **Network** with product entitlements + feature flags. Requests carry the login token + `X-Direqt-Target-Network`.
- **Nick Burns mode** (sysop impersonation): system operators can activate any network; requests add `X-Direqt-System-Request: true` (added automatically by `EntityService`).
- **Auth**: Auth0 (`@auth0/auth0-angular`); see `src/app/auth/auth.service.ts`, `user-context.service.ts`. UI hides controls by permission but the backend enforces authorization.

## Structure
Angular app under `src/` (`src/app/...`, products under `src/app/products/`).

## Tech
Angular 19 · TypeScript · Angular Material · Auth0 · FontAwesome · Firebase hosting · Cypress e2e.
Depends on `@direqt-internal/{common,crawl-api,iam-api,index-api,search-api}`.
