Root Panel Declarations
Keep menu data in menu.jsx, route declarations in routes.jsx, and app-action composition in appActions.jsx at the runnable panel root. Apply this convention to every panel UI. Files under panel may implement rendering components, but must not duplicate these root declarations. A root menu.jsx declares data while panel/menu.jsx may render that data.
Philosophy
Separate application declarations from the components that present them.
Correct
userPanel/menu.jsx: menu data
userPanel/routes.jsx: route declarations
userPanel/appActions.jsx: app-action composition
userPanel/panel/menu.jsx: menu renderer
Fix
Move declaration data to the runnable root and make UI components consume it rather than maintaining a second copy.