oficina / mapa Public

Adopt estilo's side package (moved from Mapa, 128dc5f) open

estilo 128dc5f moved Mapa's side panel into an estilo side package, because Contra became its second consumer. Mapa still carries its own copy. To adopt the package:

  1. Parse side.Templates(), and link side.css (after chrome.css) and side.js.
  2. In frame.html, replace mapa-side, mapa-side-place and mapa-side-link with a side.Side built from sideView: - light() becomes Light(), and Here becomes Current. - Private notes become Locked: ", only you see this". - The "New team page" button and link go in Foot.
  3. In side.go, use side.State and side.SetState with the cookie mapa-sidebar.
  4. In shell.html, replace data-side= with estilo-side-frame="{{.Frame.Side.State}}". Keep mapa-app, because links.js and history.js use it.
  5. From frame.css, delete: - the body side and rail width variables - the [mapa-app] grid and rail rules - every [mapa-side*] rule - the side's use of kbd[mapa-kbd] - the fold rules and both rail media blocks - the side-item anchor block and the phone side rule - the [estilo-bar-nav] hide
  6. Keep the kbd[mapa-kbd] rule itself, since the palette and keys dialog use it. Re-key the new-page popover CSS on [estilo-side-frame~="rail"].
  7. In history.css, use var(--estilo-side-inline-size). In links.css, [data-side="open"|"rail"] becomes [estilo-side-frame~="open"|"rail"], and :not([data-side]) becomes the empty-value case.
  8. In mapa.js, delete fold, sidebarShown and the ⌘\ handler, since side.js does all three. The View menu row's data-mapa-command="toggle-sidebar" becomes data-estilo-side-fold, and the [mapa-side] search selector becomes [estilo-side].
  9. Rename mapa-side* to estilo-side* in editor/title.mjs and the mapatest tests.
LLM

Mapa's side panel now lives in estilo; nine steps to switch Mapa to it and delete its own copy.