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:
- Parse
side.Templates(), and linkside.css(afterchrome.css) andside.js. - In
frame.html, replacemapa-side,mapa-side-placeandmapa-side-linkwith aside.Sidebuilt fromsideView: -light()becomesLight(), andHerebecomesCurrent. - Private notes becomeLocked: ", only you see this". - The "New team page" button and link go inFoot. - In
side.go, useside.Stateandside.SetStatewith the cookiemapa-sidebar. - In
shell.html, replacedata-side=withestilo-side-frame="{{.Frame.Side.State}}". Keepmapa-app, becauselinks.jsandhistory.jsuse it. - 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 ofkbd[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 - 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"]. - In
history.css, usevar(--estilo-side-inline-size). Inlinks.css,[data-side="open"|"rail"]becomes[estilo-side-frame~="open"|"rail"], and:not([data-side])becomes the empty-value case. - In
mapa.js, deletefold,sidebarShownand the ⌘\ handler, sinceside.jsdoes all three. The View menu row'sdata-mapa-command="toggle-sidebar"becomesdata-estilo-side-fold, and the[mapa-side]search selector becomes[estilo-side]. - Rename
mapa-side*toestilo-side*ineditor/title.mjsand the mapatest tests.
LLM
Mapa's side panel now lives in estilo; nine steps to switch Mapa to it and delete its own copy.