feat: new layout phase G, the phone as on the canvas
The bottom bar keeps Produção, Cotações, Pagamentos and Números; Mais opens a sheet with the other sections (Montar, Site, Integrações, Usuários, as the role allows, with the rail's icons) and the account (theme, password, Sair) under their own headings, as in Ph1 and Ph2. Stage chips drop their icons and keep the fade at the edge; the contraction fields take the full width in the order page (Ph3). Números on the phone names each stage's limit, overruns and waiting orders, and Por origem fits its five columns. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -572,16 +572,25 @@ function phoneMenu(){
|
||||
const ava=node('span',initialsOf(ME.name||ME.email),'ava');ava.append(node('i',undefined,'pres on'));
|
||||
words.append(node('b',ME.name||ME.email),node('span',(ROLE_NAMES[ME.role]||ME.role)+(myMachine()?', na '+myMachine().name:''),'sub'));
|
||||
who.append(ava,words);
|
||||
const rows=[];
|
||||
if(TAB_NEEDS.integrations()){const n=$('badge-integrations').textContent;
|
||||
rows.push(mrow(IC.link,'Integrações',go(()=>showTab('integrations')),'mrow',n?statePill(n,'warn'):null));}
|
||||
if(TAB_NEEDS.users())rows.push(mrow(IC.user,'Usuários',go(()=>showTab('users'))));
|
||||
if(ME.machine_question)rows.push(mrow(IC.printer,'Trocar de máquina',go(()=>askMachine(true)),'mrow',node('span',myMachine()?.name||'','lbl')));
|
||||
// Seções: the tabs that do not fit the bottom bar (canvas Ph2), with the
|
||||
// rail's own icon and name; then the account.
|
||||
const sections=[];
|
||||
for(const name of MORE_TABS){
|
||||
if(TAB_NEEDS[name]&&!TAB_NEEDS[name]())continue;
|
||||
const nav=document.querySelector('.rail .nav[data-tab="'+name+'"]');
|
||||
const n=name==='integrations'?$('badge-integrations').textContent:'';
|
||||
const row=mrow(nav.querySelector('path').getAttribute('d'),nav.querySelector('span').textContent,go(()=>showTab(name)),'mrow',n?statePill(n,'warn'):null);
|
||||
if(tab===name)row.classList.add('on');
|
||||
sections.push(row);
|
||||
}
|
||||
if(ME.machine_question)sections.push(mrow(IC.printer,'Trocar de máquina',go(()=>askMachine(true)),'mrow',node('span',myMachine()?.name||'','lbl')));
|
||||
const light=kanbanTheme.get()==='light';
|
||||
rows.push(mrow(light?ICON_MOON:ICON_SUN,light?'Mudar para o modo escuro':'Mudar para o modo claro',go(()=>{kanbanTheme.toggle();paintThemeToggle();})));
|
||||
rows.push(mrow(IC.key,'Trocar a senha',go(accountForm)));
|
||||
rows.push(mrow(IC.logout,'Sair',go(()=>$('logout').click()),'mrow bad'));
|
||||
const body=node('div',undefined,'sbody');body.append(...rows);
|
||||
const account=[mrow(light?ICON_MOON:ICON_SUN,light?'Mudar para o modo escuro':'Mudar para o modo claro',go(()=>{kanbanTheme.toggle();paintThemeToggle();})),
|
||||
mrow(IC.key,'Trocar a senha',go(accountForm)),
|
||||
mrow(IC.logout,'Sair',go(()=>$('logout').click()),'mrow bad')];
|
||||
const body=node('div',undefined,'sbody');
|
||||
if(sections.length)body.append(node('span','Seções','sgroup'),...sections);
|
||||
body.append(node('span','Conta','sgroup'),...account);
|
||||
m=sheet([who,body],{label:'Mais',role:'menu'});
|
||||
}
|
||||
// The board's filters on the phone: every kind, the product too, and how many
|
||||
|
||||
Reference in New Issue
Block a user