Clarify legacy frontend density docs

active-uix
dev 5 months ago
parent 35958a4902
commit bd37e5dd9a

@ -43,6 +43,8 @@ Actualizacion 2026-05-14:
marca `themeDimension`/`densityDimension` como legacy/custom fuera de UIX.
- `src/uix/morfo/README.md` actualizado: fija `translations`, `commonRef`,
registro via `registerMorfo` y `soma.runtime(...)` como contrato vigente.
- Referencias legacy de `frontend` afinadas: su densidad se documenta como
vocabulario compatible para migracion, no como flujo desde `prefs.density`.
- Commits nuevos empujados:
- `694eb5c5` — `Clarify prefs projection contract`
- `223cdf9e` — `Align sema docs with channel ownership`

@ -123,7 +123,7 @@ errors are typed.
| [`timer`](./timer/README.md) | `EngineTimers`, `ActiveTimers` | Deterministic timer scheduler: clock injection, one-shots, intervals, cancellation, snapshots, backoff | `$libs/timers`, `$logger` (optional) |
| [`format`](./format/README.md) | `EngineFormat`, `ActiveFormat` | Localized formatting: numbers, currency, units, dates | `$logger` (currency) |
| [`adom`](./adom/README.md) | `ActiveDom` | Reactive DOM service: viewport, breakpoints, attribute writes, scroll lock | `$libs/dom`, `$reactive` |
| [`frontend`](./frontend/README.md) | `ActiveFrontend` | Legacy UI projection service: theme/mode/dir/density applied via DOM attrs. New UIX code uses `$prefs` projection + `ActiveEidos`. | `$adom` |
| [`frontend`](./frontend/README.md) | `ActiveFrontend` | Legacy UI projection service. New UIX code uses `$prefs` projection for cross-modal attrs and `ActiveEidos` for visual attrs. | `$adom` |
| [`sium`](./sium/README.md) | `EngineSium` | Validation contracts: schemas, issues, introspection, Standard Schema interop | `$langs` (optional), `$logger` (optional), `$libs/days`, `$libs/color` |
| [`storage`](./storage/README.md) | `EngineStorage`, `ActiveStorage` | Reactive sync key/value: pluggable adapters, version+migrate, TTL, validation, intra-tab + cross-tab sync, reactive keys | `$sium` (Standard Schema interop, optional) |
| [`http`](./http/README.md) | `EngineHttp` | HTTP client: tagged `HttpResult`, Standard Schema validation, retry, timeouts, hooks, SvelteKit `event.fetch` integration | `$libs/http`, `$libs/standard-schema` (type-only), `$logger` |

@ -7,11 +7,10 @@ import type { Direction } from './locale-defaults';
export type FrontendMode = 'light' | 'dark' | 'auto';
export type ResolvedFrontendMode = Exclude<FrontendMode, 'auto'>;
/**
* Aligned with the `Density` vocabulary in `$libs/density`
* (`compact | comfortable | spacious`) so a `prefs.density` value
* flows directly into Frontend without a translation step. The
* codex audit's blocker #9 was the previous mismatch (`spacious`
* vs `normal`).
* Legacy Frontend keeps the same density vocabulary that Eidos uses
* (`compact | comfortable | spacious`) so old consumers can migrate
* without translating values. UIX code should pass density to
* `ActiveEidos`, not through `prefs`.
*/
export type FrontendDensity = 'compact' | 'comfortable' | 'spacious';
export type FrontendDirMode = Direction | 'auto';

Loading…
Cancel
Save

Powered by TurnKey Linux.