Menu#
@palmyralabs/rt-forms · src/palmyra/menu/ — navigation primitives that load their structure on demand from a Wire TreeQueryStore. Two components cover the common surface:
| Page | Role |
|---|---|
| AsyncTreeMenu | Sidebar tree — lazy-loaded, persisted expand/select state, route-on-click |
| AsyncTreeMenuEditor | Admin variant with checkbox selection for editing per-group menu access |
| IconProvider | Pluggable icon resolver — maps a menu node’s code to a React icon |
The data contract comes from menu/types.ts — every node is a { id, name, parent, children, isBranch, metadata } shape, with metadata.code / metadata.target driving navigation.