feat: lead dashboard with authorised portal management groups

This commit is contained in:
2026-11-23 10:52:44 +02:00
parent 0cde594e22
commit d231435d84
17 changed files with 688 additions and 9 deletions
@@ -11,7 +11,7 @@ new Function('require','module','exports',code)(name=>name==='@inertiajs/react'?
test('each manager dashboard menu anchor resolves to a real section',()=>{
const html=renderToStaticMarkup(React.createElement(module.exports.default,{summary:{requestsByStatus:{},publishedOpportunities:0,draftOpportunities:0,activeSectors:0,recentRequests:[]},workQueue:null}));
for(const id of ['meu-trabalho','manifestacoes','indicadores-oportunidades','pedidos-recentes','accoes-rapidas'])assert.match(html,new RegExp('id="'+id+'"'));
assert.match(html,/Painel do portal/);
});
test('investor section remains distinct from administrative summary',()=>{
const html=renderToStaticMarkup(React.createElement(module.exports.default,{summary:null,investorPath:{contexts:[],current:null}}));