# oscar-platform

Oscar platform code: the FES inspector dispatcher, dev panel, panel manager, and
the supporting app-fragments that power the in-browser editing experience for
the Oscar website.

## Layout

```
app-fragments/
  oscar-fes-inspector/      # FES inspector dispatcher (W-N / S-N click → panel)
  oscar-panel-manager/      # Dock-based panel system (addPanel, dock, removePanel)
  oscar-trace/              # Trace overlay (badges, click handlers)
  oscar-dev-panel/          # Operator dev panel (reference panel-manager pattern)
docs/
  FES-INSPECTOR-PANEL-FIX.md
```

## FES Inspector
The FES inspector reads FES module specs (per-widget-type JSON) and renders a
3-tab form (Settings / Style / Advanced). See
`docs/FES-INSPECTOR-PANEL-FIX.md` for the panel-manager integration.

## Panel Manager
Single source of truth for panels. Every panel — dev, CMS module editor, FES
inspector — uses `OscarPanelManager.addPanel({id, title, content, position})`
+ `mgr.dock(id, 'right')`. No raw `<div>` panels.

## Status
- 17/17 FreshCloud Mail engine modules DONE (parallel project)
- FES inspector v2 (world-class) is OPT-IN via `window.__fvcmsUseV2 = true`
  (lives in freshvibe-cms, not here)
- The flat-form inspector is the default and is what this repo's
  `oscar-fes-inspector/` ships
