fix(khira): fix broken icon text, single circular avatar, forgot password flow, delete authorization, date sections, and archive system
This commit is contained in:
+110
-15
@@ -4,7 +4,7 @@ const $=s=>document.querySelector(s),$$=s=>[...document.querySelectorAll(s)];
|
||||
const esc=s=>s==null?'':String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
||||
const ms=n=>`<span class="ms">${n}</span>`;
|
||||
const ls=k=>{try{return localStorage.getItem(k)}catch(e){return null}};
|
||||
const S={u:null,t:[],us:[],e:[],ts:{},es:{},n:[],sec:'tickets',scope:'assigned',st:'',pr:'',ty:'',view:'board',q:'',ef:'',tid:null};
|
||||
const S={u:null,t:[],us:[],e:[],ts:{},es:{},n:[],sec:'tickets',scope:'assigned',st:'',pr:'',ty:'',fa:'',view:'board',q:'',ef:'',tid:null};
|
||||
const APPS=['Creator Suite Web','FastAPI Backend','Creator Suite Web Unified Dashboard','Batch Inpaint Service','Nexus Gateway','Other App'];
|
||||
const ISS=['API Failure / 500 / 400 Error','UI Layout / Rendering Bug','Schema Sync / Mismatch','Performance / Latency','Auth / Permission','Other'];
|
||||
const CATS=['DevOps & Infrastructure','Database & Storage','Access & Permissions','Design & UX','Internal Workflow & Tooling','Hardware & IT Support','Security & Compliance','General Task'];
|
||||
@@ -184,19 +184,52 @@ function fT(){
|
||||
if(S.scope==='reported'&&(t.reporter?.username||t.created_by)!==me)return false;
|
||||
if(S.ty&&(t.ticket_type||'application')!==S.ty)return false;
|
||||
if(S.pr&&pri(t)!==S.pr)return false;
|
||||
if(S.st&&st(t)!==S.st)return false;
|
||||
if(S.fa&&(t.assignee?.username||t.assigned_to)!==S.fa)return false;
|
||||
if(S.st==='archived'){
|
||||
if(!t.archived)return false;
|
||||
}else{
|
||||
if(t.archived)return false;
|
||||
if(S.st&&st(t)!==S.st)return false;
|
||||
}
|
||||
return!S.q||[t.id,t.title,t.general_category,t.department,t.app,t.feature,t.api_key,t.assignee?.name,t.assigned_to_name].join(' ').toLowerCase().includes(S.q);
|
||||
});
|
||||
}
|
||||
const sub=t=>t.ticket_type==='general'?(t.general_category||t.department||'General'):(t.app||t.app_name||'—');
|
||||
|
||||
function dateGroup(iso){
|
||||
if(!iso)return'Older';
|
||||
const d=new Date(iso);
|
||||
if(isNaN(d))return'Older';
|
||||
const now=new Date();
|
||||
const today=new Date(now.getFullYear(),now.getMonth(),now.getDate());
|
||||
const tDate=new Date(d.getFullYear(),d.getMonth(),d.getDate());
|
||||
const diffDays=Math.floor((today-tDate)/(24*3600*1000));
|
||||
if(diffDays===0)return'Today';
|
||||
if(diffDays===1)return'Yesterday';
|
||||
if(diffDays<7)return'This Week';
|
||||
if(d.getFullYear()===now.getFullYear()&&d.getMonth()===now.getMonth())return'Earlier this Month';
|
||||
return'Older';
|
||||
}
|
||||
|
||||
function renderT(anim){
|
||||
const s=S.ts,f=fT();
|
||||
put('#stats',tile(s.my_assigned,'Assigned to me','sa')+tile(s.my_created,'Filed by me','sr')+tile(s.on_hold,'On hold','sh')+tile(s.completed,'Completed','sc'));
|
||||
put('#tabs',[['assigned','Assigned to me',s.my_assigned],['reported','Created by me',s.my_created],['all','All tickets',s.total]].map(([k,l,n])=>`<button data-sc="${k}" class="${S.scope===k?'on':''}">${l}<small>${n||0}</small></button>`).join(''));
|
||||
put('#stChips',chipRow([['','All'],...Object.entries(STAT)],S.st,'data-st'));
|
||||
|
||||
const archCount=S.t.filter(t=>t.archived).length;
|
||||
const tChips=[['','All'],...Object.entries(STAT),['archived',`Archived (${archCount})`]];
|
||||
put('#stChips',chipRow(tChips,S.st,'data-st'));
|
||||
$('#sum').textContent=`You have ${s.my_assigned||0} active tasks and ${s.my_held||0} on hold.`;
|
||||
$('#fp').value=S.pr;$('#ft').value=S.ty;
|
||||
|
||||
const faEl=$('#fa');
|
||||
if(faEl){
|
||||
const curVal=S.fa||'';
|
||||
const opts=[['','All assignees'],...S.us.map(u=>[u.username,`${u.name} (${u.role_display||u.role})`])];
|
||||
faEl.innerHTML=opts.map(([v,l])=>`<option value="${esc(v)}"${v===curVal?' selected':''}>${esc(l)}</option>`).join('');
|
||||
faEl.value=curVal;
|
||||
}
|
||||
|
||||
$$('#vsw button').forEach(b=>b.classList.toggle('on',b.dataset.v===S.view));
|
||||
$('#board').hidden=S.view!=='board';$('#list').hidden=S.view!=='list';
|
||||
$('#board').classList.toggle('anim',!!anim);$('#list').classList.toggle('anim',!!anim);
|
||||
@@ -210,10 +243,27 @@ function renderT(anim){
|
||||
}).join('')||'<div class="empty">No tickets</div>'}</section>`;
|
||||
}).join(''));
|
||||
}else{
|
||||
put('#list',f.length?f.map((t,i)=>{
|
||||
const p=pri(t),s2=st(t);
|
||||
return`<div class="li" tabindex="0" role="button" data-t="${esc(t.id)}" style="--i:${Math.min(i,12)}"><span class="lead pb ${p.toLowerCase()}">${p}</span><div class="ell"><h4 class="ell">${esc(t.title)}</h4><p class="ell">${esc(t.id)} · ${esc(sub(t))} · ${esc(t.assignee?.name||t.assigned_to_name||'Unassigned')}</p></div><div class="tl2"><span class="stt ${s2}">${STAT[s2]||esc(s2)}</span><span>${ago(t.updated_at)}</span></div></div>`;
|
||||
}).join(''):`<div class="big">${ms('confirmation_number')}<p>No tickets match these filters.</p></div>`);
|
||||
const dateGroups=['Today','Yesterday','This Week','Earlier this Month','Older'];
|
||||
const grouped={};
|
||||
dateGroups.forEach(g=>grouped[g]=[]);
|
||||
f.forEach(t=>{
|
||||
const g=dateGroup(t.created_at);
|
||||
if(!grouped[g])grouped[g]=[];
|
||||
grouped[g].push(t);
|
||||
});
|
||||
|
||||
const sectionsHtml=dateGroups.map(g=>{
|
||||
const items=grouped[g];
|
||||
if(!items||!items.length)return'';
|
||||
const itemsHtml=items.map((t,i)=>{
|
||||
const p=pri(t),s2=st(t);
|
||||
const isArch=!!t.archived;
|
||||
return`<div class="li" tabindex="0" role="button" data-t="${esc(t.id)}" style="--i:${Math.min(i,12)}"><span class="lead pb ${p.toLowerCase()}">${p}</span><div class="ell"><h4 class="ell">${esc(t.title)}</h4><p class="ell">${esc(t.id)} · ${esc(sub(t))} · ${esc(t.assignee?.name||t.assigned_to_name||'Unassigned')}</p></div><div class="tl2">${isArch?'<span class="stt archived">Archived</span>':`<span class="stt ${s2}">${STAT[s2]||esc(s2)}</span>`}<span>${ago(t.created_at||t.updated_at)}</span></div></div>`;
|
||||
}).join('');
|
||||
return`<div class="date-section"><div class="date-header"><span class="ms">calendar_today</span><span>${g}</span><span class="date-badge">${items.length}</span></div>${itemsHtml}</div>`;
|
||||
}).filter(Boolean).join('');
|
||||
|
||||
put('#list',sectionsHtml||`<div class="big">${ms('confirmation_number')}<p>No tickets match these filters.</p></div>`);
|
||||
}
|
||||
put('#title',S.sec==='tickets'?'Tickets':'Errors');
|
||||
}
|
||||
@@ -221,12 +271,23 @@ function renderT(anim){
|
||||
function renderE(anim){
|
||||
const s=S.es;
|
||||
put('#estats',tile(s.total,'Total','et')+tile(s.unresolved,'Unresolved','eu')+tile(s.escalated,'Escalated','ee')+tile(s.resolved,'Resolved','er'));
|
||||
put('#eChips',chipRow([['','All'],...Object.entries(EL)],S.ef,'data-ef'));
|
||||
const f=S.e.filter(e=>(!S.ef||ek(e)===S.ef)&&(!S.q||[e.id,e.exception_type,e.message,e.endpoint,e.app,e.app_name].join(' ').toLowerCase().includes(S.q)));
|
||||
const archErrCount=S.e.filter(e=>e.archived).length;
|
||||
const eChips=[['','All'],...Object.entries(EL),['archived',`Archived (${archErrCount})`]];
|
||||
put('#eChips',chipRow(eChips,S.ef,'data-ef'));
|
||||
const f=S.e.filter(e=>{
|
||||
if(S.ef==='archived'){
|
||||
if(!e.archived)return false;
|
||||
}else{
|
||||
if(e.archived)return false;
|
||||
if(S.ef&&ek(e)!==S.ef)return false;
|
||||
}
|
||||
return!S.q||[e.id,e.exception_type,e.message,e.endpoint,e.app,e.app_name].join(' ').toLowerCase().includes(S.q);
|
||||
});
|
||||
$('#elist').classList.toggle('anim',!!anim);
|
||||
put('#elist',f.length?f.map((e,i)=>{
|
||||
const sev=(e.severity||'MEDIUM').toUpperCase(),k=ek(e);
|
||||
return`<div class="li" tabindex="0" role="button" data-e="${esc(e.id)}" style="--i:${Math.min(i,12)}"><span class="lead sv ${sev}">${ms('error')}</span><div class="ell"><h4 class="ell mono" style="font-size:14px">${esc(e.exception_type)}</h4><p class="ell">${esc(e.message)}</p><p class="ell">${esc(e.id)} · ${esc(e.app||e.app_name||'—')} · ${esc(e.endpoint||'—')}</p></div><div class="tl2"><span class="stt ${k}">${EL[k]}</span><span>${e.events||e.occurrences||1} events · ${ago(e.last_seen)}</span></div></div>`;
|
||||
const isArch=!!e.archived;
|
||||
return`<div class="li" tabindex="0" role="button" data-e="${esc(e.id)}" style="--i:${Math.min(i,12)}"><span class="lead sv ${sev}">${ms('error')}</span><div class="ell"><h4 class="ell mono" style="font-size:14px">${esc(e.exception_type)}</h4><p class="ell">${esc(e.message)}</p><p class="ell">${esc(e.id)} · ${esc(e.app||e.app_name||'—')} · ${esc(e.endpoint||'—')}</p></div><div class="tl2"><span class="stt ${isArch?'archived':k}">${isArch?'Archived':EL[k]}</span><span>${e.events||e.occurrences||1} events · ${ago(e.last_seen)}</span></div></div>`;
|
||||
}).join(''):`<div class="big">${ms('bug_report')}<p>No errors tracked.</p></div>`);
|
||||
}
|
||||
|
||||
@@ -245,16 +306,23 @@ function sheet(id){
|
||||
const p=pri(t),s=st(t),g=t.ticket_type==='general',rem=t.remarks||[],links=(t.links||[]).map(l=>l.url||l);
|
||||
const kv=(k,v,m)=>`<div><dt>${k}</dt><dd${m&&m!=='html'?' class="mono"':''}>${m==='html'?v:esc(v||'—')}</dd></div>`;
|
||||
const meta=g?kv('Category',t.general_category)+kv('Department',t.department):kv('Application',t.app||t.app_name)+kv('Version',t.version)+kv('Feature',t.feature||t.feature_name)+kv('API key / route',t.api_key,1);
|
||||
$('#sheet').innerHTML=`<div class="sbd"><header class="sh"><button class="ib" data-x aria-label="Close">${ms('close')}</button><span class="id">${esc(t.id)}</span><span class="pb ${p.toLowerCase()}">${p}</span><span class="stt ${s}">${STAT[s]||esc(s)}</span></header>
|
||||
|
||||
const isAdmin=S.u?.username==='admin'||S.u?.role==='team_lead'||S.u?.role==='lead';
|
||||
const isCreator=S.u?.username && (S.u.username.toLowerCase()===(t.created_by||t.reporter?.username||'').toLowerCase());
|
||||
const canDel=isAdmin||isCreator;
|
||||
const isDone=s==='completed'||s==='closed';
|
||||
const archBtn=isDone?(t.archived?`<button class="tn" data-do="unarchive"><span class="ms">unarchive</span>Restore</button>`:`<button class="tn" data-do="archive"><span class="ms">archive</span>Archive</button>`):'';
|
||||
|
||||
$('#sheet').innerHTML=`<div class="sbd"><header class="sh"><button class="ib" data-x aria-label="Close">${ms('close')}</button><span class="id">${esc(t.id)}</span><span class="pb ${p.toLowerCase()}">${p}</span>${t.archived?'<span class="stt archived"><span class="ms" style="font-size:14px">archive</span>Archived</span>':`<span class="stt ${s}">${STAT[s]||esc(s)}</span>`}</header>
|
||||
<div class="sb"><h2>${esc(t.title)}</h2>
|
||||
<div class="g2">${fld('a','Assignee',{t:'select',opts:usOpts(),v:t.assignee?.username||t.assigned_to||'',d:'data-act="assign"'})}${fld('p','Priority',{t:'select',opts:PRI,v:p,d:'data-act="prio"'})}</div>
|
||||
<dl>${meta}${kv('Reported by',who(t.reporter||{name:t.created_by_name,username:t.created_by,role:t.created_by_role},t.created_by_name),'html')}</dl>
|
||||
<div><h5>Assistance required</h5><p>${esc(t.assistance||t.assistance_required||'—')}</p></div>
|
||||
<div><h5>Diagnostic context<button class="ib" data-copy aria-label="Copy">${ms('content_copy')}</button></h5><pre class="code" id="ctx">${esc(t.context||t.additional_info||'No logs provided')}</pre></div>
|
||||
${links.length?`<div class="lk"><h5>Links</h5>${links.map(u=>`<a href="${esc(u)}" target="_blank" rel="noopener">${esc(String(u).replace(/^https?:\/\//,''))}</a>`).join('')}</div>`:''}
|
||||
<div><h5>Activity · ${rem.length}</h5>${rem.map(r=>{const sys=r.system||['created','hold','complete','reassigned','priority','resume'].includes(r.type);return`<div class="tle${sys?' sys':''}"><b>${sys?'Khira':who(r.author||{name:r.author_name,username:r.author_username,role:r.author_role},r.author_name)}</b><small>${ago(r.created_at)}</small><p>${esc(r.text||r.body)}</p></div>`}).join('')}
|
||||
<div><h5>Activity · ${rem.length}</h5>${rem.map(r=>{const sys=r.system||['created','hold','complete','reassigned','priority','resume','archive','unarchive'].includes(r.type);return`<div class="tle${sys?' sys':''}"><b>${sys?'Khira':who(r.author||{name:r.author_name,username:r.author_username,role:r.author_role},r.author_name)}</b><small>${ago(r.created_at)}</small><p>${esc(r.text||r.body)}</p></div>`}).join('')}
|
||||
<form class="cmp" id="rf"><textarea id="rt" rows="1" placeholder="Add a remark"></textarea><button class="ib" aria-label="Send">${ms('send')}</button></form></div></div>
|
||||
<footer class="sf"><button class="del-btn" data-do="del"><span class="ms">delete</span>Delete</button>${s==='hold'?`<button class="tn" data-do="resume">${ms('play_arrow')}Resume</button>`:''}${s==='completed'?'':(s==='hold'?'':`<button class="tn" data-do="hold">${ms('pause')}Hold</button>`)+`<button class="fb" data-do="done">Complete</button>`}</footer></div>`;
|
||||
<footer class="sf">${canDel?`<button class="del-btn" data-do="del"><span class="ms">delete</span>Delete</button>`:''}${archBtn}${s==='hold'?`<button class="tn" data-do="resume">${ms('play_arrow')}Resume</button>`:''}${s==='completed'?'':(s==='hold'?'':`<button class="tn" data-do="hold">${ms('pause')}Hold</button>`)+`<button class="fb" data-do="done">Complete</button>`}</footer></div>`;
|
||||
if(!$('#sheet').open)$('#sheet').showModal();
|
||||
}
|
||||
|
||||
@@ -316,12 +384,20 @@ function errD(id){
|
||||
const e=S.e.find(x=>x.id===id);if(!e)return;const k=ek(e);
|
||||
const blk=(l,v)=>v?`<div><p class="lbl">${l}</p><pre class="code">${esc(v)}</pre></div>`:'';
|
||||
const appName=e.app||e.app_name||'';
|
||||
const isArch=!!e.archived;
|
||||
dlg({wide:1,title:esc(e.exception_type),sub:esc(`${e.id} · ${appName}${e.environment?' · '+e.environment:''}`),
|
||||
body:`<div class="r"><span class="sv ${(e.severity||'').toUpperCase()}">${esc(e.severity)}</span><span class="stt ${k}">${EL[k]}</span><span class="id">${e.events||e.occurrences||1} events · ${ago(e.last_seen)}</span></div>
|
||||
body:`<div class="r"><span class="sv ${(e.severity||'').toUpperCase()}">${esc(e.severity)}</span><span class="stt ${isArch?'archived':k}">${isArch?'Archived':EL[k]}</span><span class="id">${e.events||e.occurrences||1} events · ${ago(e.last_seen)}</span></div>
|
||||
${appName?`<div style="margin:10px 0"><button type="button" class="chip" id="btnLogMoreForApp" style="background:var(--sec-c);font-weight:500"><span class="ms">add_circle</span>Log another error for ${esc(appName)}</button></div>`:''}
|
||||
<p>${esc(e.message)}</p>${blk('Endpoint',e.endpoint)}${blk('Stack trace',e.stack_trace)}${blk('Payload',e.payload||e.request_payload)}${e.escalated_ticket_id||e.linked_ticket_id?`<p class="sub">Escalated as ${esc(e.escalated_ticket_id||e.linked_ticket_id)}</p>`:''}${e.resolution_notes?`<p class="sub">Resolution: ${esc(e.resolution_notes)}</p>`:''}`,
|
||||
ok:k==='resolved'?'Close':'Escalate to ticket',
|
||||
alt:k==='unresolved'?['Resolve',()=>resolveD(id)]:null,
|
||||
alt:k==='unresolved'?['Resolve',()=>resolveD(id)]:(k==='resolved'?[(isArch?'Restore':'Archive'),async()=>{
|
||||
const actName=isArch?'unarchive':'archive';
|
||||
const r=await api(`/khira/api/errors/${encodeURIComponent(id)}/${actName}`,'POST');
|
||||
if(r._f||r.error){toast(r.error||'Failed','err');return false}
|
||||
toast(isArch?'Error restored from archive':'Error moved to archive');
|
||||
$('#dlg').close();
|
||||
await refresh();
|
||||
}]:null),
|
||||
init:f=>{
|
||||
f.querySelector('#btnLogMoreForApp')?.addEventListener('click',()=>{
|
||||
$('#dlg').close();
|
||||
@@ -670,6 +746,22 @@ document.addEventListener('click',async e=>{
|
||||
if(x=c('#btnLogAppErr'))return reportErr({continue_app:true});
|
||||
if(x=c('#btnSyncBackup'))return adminSyncDB();
|
||||
if(x=c('#btnRollbackBackup'))return adminRollbackDB();
|
||||
if(x=c('#btnForgot')){
|
||||
const curU=($('#lu')?.value||'').trim();
|
||||
dlg({
|
||||
title:'Forgot Password',
|
||||
sub:'Submit your username to automatically raise a ticket for the administrator to reset your credentials.',
|
||||
body:fld('u','Username',{v:curU,req:1}),
|
||||
ok:'Submit Request',
|
||||
go:async v=>{
|
||||
const r=await api('/khira/api/auth/forgot-password','POST',{username:v.u});
|
||||
if(r._f||r.error){toast(r.error||'Failed to raise ticket','err');return false}
|
||||
toast(r.message||'Password reset ticket raised for admin');
|
||||
return true;
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
if(x=c('#atabs [data-a]')){const up=x.dataset.a==='up';$$('#atabs button').forEach(b=>b.classList.toggle('on',b===x));$('#fIn').hidden=up;$('#fUp').hidden=!up;return}
|
||||
if(x=c('[data-d]')){$('#lu').value=x.dataset.d;$('#lp').value=x.dataset.d==='admin'?'admin':(x.dataset.d+'123');return $('#fIn').requestSubmit()}
|
||||
if(x=c('[data-do]')){
|
||||
@@ -677,6 +769,8 @@ document.addEventListener('click',async e=>{
|
||||
if(d==='del')return deleteTicketD(S.tid);
|
||||
if(d==='hold')return holdD();if(d==='done')return doneD();
|
||||
if(d==='resume')return act('resume',undefined,'Ticket resumed');
|
||||
if(d==='archive')return act('archive',{},'Ticket archived');
|
||||
if(d==='unarchive')return act('unarchive',{},'Ticket restored from archive');
|
||||
if(d==='readall'){await api('/khira/api/notifications/read','POST');await refresh();toast('All marked read');$('#pop').hidden=true}
|
||||
return;
|
||||
}
|
||||
@@ -693,6 +787,7 @@ document.addEventListener('change',e=>{
|
||||
if(a==='prio')act('priority',{priority:T.value},'Priority updated');
|
||||
if(T.id==='fp'){S.pr=T.value;render(true)}
|
||||
if(T.id==='ft'){S.ty=T.value;render(true)}
|
||||
if(T.id==='fa'){S.fa=T.value;render(true)}
|
||||
});
|
||||
document.addEventListener('input',e=>{
|
||||
e.target.closest('.fld')?.classList.remove('bad');
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto+Flex:wght@400;500;600&family=Roboto+Mono:wght@400;500&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=add,bug_report,chat_bubble,check,close,cloud_sync,confirmation_number,content_copy,dark_mode,delete,error,expand_more,face,history,light_mode,logout,notifications,pause,photo_camera,play_arrow,search,send,sync,upgrade,upload,view_kanban,view_list&display=block" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&display=block" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/khira/styles.css">
|
||||
<script>try{document.documentElement.dataset.theme=localStorage.khira_theme||(matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light')}catch(e){}</script>
|
||||
</head>
|
||||
@@ -24,6 +24,7 @@
|
||||
<form id="fIn" novalidate>
|
||||
<label class="fld"><input id="lu" placeholder=" " autocomplete="username" required><span>Username</span></label>
|
||||
<label class="fld"><input id="lp" type="password" placeholder=" " autocomplete="current-password" required><span>Password</span></label>
|
||||
<div class="f-aux"><button type="button" class="btn-text" id="btnForgot">Forgot password?</button></div>
|
||||
<button class="fb lg">Sign in</button>
|
||||
</form>
|
||||
<form id="fUp" hidden novalidate>
|
||||
@@ -53,7 +54,7 @@
|
||||
</div>
|
||||
<button class="ib" id="theme" aria-label="Toggle theme"><span class="ms">dark_mode</span></button>
|
||||
<button class="ib" id="bell" aria-label="Notifications"><span class="ms">notifications</span><i id="dot" hidden></i></button>
|
||||
<button class="av" id="me" aria-label="Profile"></button>
|
||||
<button class="me-btn" id="me" aria-label="Profile"></button>
|
||||
</header>
|
||||
|
||||
<div class="pg">
|
||||
@@ -68,6 +69,7 @@
|
||||
<div class="tr">
|
||||
<label class="fsel"><select id="fp"><option value="">Any priority</option><option>P0</option><option>P1</option><option>P2</option><option>P3</option></select></label>
|
||||
<label class="fsel"><select id="ft"><option value="">Any type</option><option value="application">Application</option><option value="general">General</option></select></label>
|
||||
<label class="fsel"><select id="fa"><option value="">Any assignee</option></select></label>
|
||||
<div class="seg ic" id="vsw"><button class="on" data-v="board" aria-label="Board"><span class="ms">view_kanban</span></button><button data-v="list" aria-label="List"><span class="ms">view_list</span></button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+40
-11
@@ -226,7 +226,21 @@ dt{font-size:12px;color:var(--on-sv)}dd{word-break:break-word}
|
||||
.av-preview{width:88px;height:88px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center}
|
||||
|
||||
/* Special Admin Avatar "A" & Profile Rings */
|
||||
#me{width:50px;height:50px;overflow:visible;padding:0;display:grid;place-items:center}
|
||||
.me-btn, #me{
|
||||
width:auto;
|
||||
height:auto;
|
||||
background:transparent!important;
|
||||
border:none!important;
|
||||
outline:none!important;
|
||||
box-shadow:none!important;
|
||||
padding:0;
|
||||
margin:0 0 0 8px;
|
||||
display:inline-grid;
|
||||
place-items:center;
|
||||
cursor:pointer;
|
||||
border-radius:50%;
|
||||
overflow:visible;
|
||||
}
|
||||
|
||||
.av-wrap{
|
||||
--sz:44px;
|
||||
@@ -237,11 +251,12 @@ dt{font-size:12px;color:var(--on-sv)}dd{word-break:break-word}
|
||||
height:var(--sz);
|
||||
flex-shrink:0;
|
||||
vertical-align:middle;
|
||||
border-radius:50%;
|
||||
}
|
||||
|
||||
/* Admin avatar is larger than other profile avatars */
|
||||
.av-wrap.av-admin{
|
||||
--sz-admin:calc(var(--sz) * 1.15);
|
||||
--sz-admin:calc(var(--sz) * 1.18);
|
||||
width:var(--sz-admin);
|
||||
height:var(--sz-admin);
|
||||
}
|
||||
@@ -252,28 +267,27 @@ dt{font-size:12px;color:var(--on-sv)}dd{word-break:break-word}
|
||||
inset:0;
|
||||
border-radius:50%;
|
||||
pointer-events:none;
|
||||
-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4.2px),#fff calc(100% - 3.6px));
|
||||
mask:radial-gradient(farthest-side,transparent calc(100% - 4.2px),#fff calc(100% - 3.6px));
|
||||
-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3.8px),#fff calc(100% - 3.2px));
|
||||
mask:radial-gradient(farthest-side,transparent calc(100% - 3.8px),#fff calc(100% - 3.2px));
|
||||
}
|
||||
|
||||
/* Inner avatar core, keeping a small floating gap from the wider ring */
|
||||
/* Inner avatar core: unified single circle with NO nested background or shadow */
|
||||
.av-core{
|
||||
position:relative;
|
||||
width:calc(var(--sz) - 9px);
|
||||
height:calc(var(--sz) - 9px);
|
||||
width:100%;
|
||||
height:100%;
|
||||
border-radius:50%;
|
||||
background:var(--sc-hi);
|
||||
background:transparent;
|
||||
display:grid;
|
||||
place-items:center;
|
||||
overflow:hidden;
|
||||
font-size:calc(var(--sz) * 0.58);
|
||||
box-shadow:0 2px 6px rgba(0,0,0,0.3);
|
||||
box-shadow:none;
|
||||
line-height:1;
|
||||
}
|
||||
|
||||
.av-wrap.av-admin .av-core{
|
||||
width:calc(var(--sz-admin) - 9px);
|
||||
height:calc(var(--sz-admin) - 9px);
|
||||
font-size:calc(var(--sz-admin) * 0.58);
|
||||
background:none;
|
||||
box-shadow:none;
|
||||
}
|
||||
@@ -322,6 +336,21 @@ dt{font-size:12px;color:var(--on-sv)}dd{word-break:break-word}
|
||||
.av-opt-admin{position:relative;border:2px solid #FFB800!important}
|
||||
.av-opt-admin::after{content:"ADMIN";position:absolute;bottom:-6px;font-size:8px;font-weight:700;background:#E65100;color:#fff;padding:0 3px;border-radius:3px;letter-spacing:0.4px}
|
||||
|
||||
/* Forgot password link */
|
||||
.f-aux{display:flex;justify-content:flex-end;margin-top:-6px;margin-bottom:6px}
|
||||
.btn-text{background:none;border:none;color:var(--pri);font-size:13px;font-weight:500;cursor:pointer;padding:4px 6px;border-radius:6px;transition:background .2s}
|
||||
.btn-text:hover{background:var(--sec-c)}
|
||||
|
||||
/* Date section grouping in ticket list view */
|
||||
.date-section{display:grid;gap:8px;margin-bottom:24px}
|
||||
.date-header{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:13px;font-weight:600;color:var(--on-sv);letter-spacing:.3px;text-transform:uppercase;border-bottom:1px solid var(--out-v);margin-bottom:4px}
|
||||
.date-header .ms{font-size:18px;color:var(--pri)}
|
||||
.date-header .date-badge{margin-left:auto;font-size:11px;font-weight:600;padding:2px 8px;border-radius:10px;background:var(--sec-c);color:var(--on-s)}
|
||||
|
||||
/* Archive status indicators */
|
||||
.stt.archived{background:rgb(100 116 139/.2);color:rgb(148 163 184)}
|
||||
.archive-chip{border-color:rgb(148 163 184/.4)}
|
||||
|
||||
/* Continuous testing / batch error logging banner in Error tracking */
|
||||
.err-testing-banner{background:var(--sec-c);border:1px solid var(--out-v);padding:10px 16px;border-radius:12px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
|
||||
.err-testing-banner p{font-size:13px;color:var(--on-sv);margin:0}
|
||||
|
||||
Reference in New Issue
Block a user