-
Notifications
You must be signed in to change notification settings - Fork 0
๐จ Palette: ๋น๋๊ธฐ ๋ก๋ฉ ์ํ ์ ๊ทผ์ฑ ๊ฐ์ #1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
68f5c28
14f8690
95381e7
3b8dc72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,6 +26,7 @@ | |||||
| input{font:inherit;padding:8px 10px;border:1px solid var(--border);border-radius:8px;min-width:280px} | ||||||
| button{font:inherit;font-weight:600;padding:8px 14px;border:0;border-radius:8px;background:var(--primary);color:var(--on-primary);cursor:pointer} | ||||||
| button.ghost{background:var(--surface);color:var(--primary);border:1px solid var(--border)} | ||||||
| [aria-busy="true"], button:disabled{opacity:0.6;pointer-events:none;cursor:not-allowed} | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๐ฏ Functional Correctness | ๐ก Minor | โก Quick win
์์ ์์- [aria-busy="true"], button:disabled{opacity:0.6;pointer-events:none;cursor:not-allowed}
+ [aria-busy="true"]{opacity:0.6;pointer-events:none}
+ button:disabled{opacity:0.6;cursor:not-allowed}๐ค Prompt for AI Agents |
||||||
| .card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;margin-bottom:16px} | ||||||
| .stats{display:flex;gap:12px;flex-wrap:wrap} | ||||||
| .stat{flex:1;min-width:130px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px} | ||||||
|
|
@@ -135,8 +136,8 @@ <h1>AppGuardrail Console</h1> | |||||
| <td>${esc(s.created_at)}</td><td>${esc(s.repo||"โ")}</td><td><code>${esc((s.commit||"โ").slice(0,10))}</code></td> | ||||||
| <td>${s.total}</td><td>${pill(s.deploy_blocking,"var(--crit)")}</td><td>${pill(s.new_blocking,"var(--high)")}</td></tr>`).join("")||'<tr><td colspan="6" class="muted">No scans. POST to /api/v1/scans from CI.</td></tr>'; | ||||||
| document.querySelectorAll("tr.scan").forEach(tr=>{ | ||||||
| tr.onclick=()=>detail(tr.dataset.id,tr); | ||||||
| tr.addEventListener('keydown', e => { if(e.key === 'Enter' || e.key === ' ') { e.preventDefault(); detail(tr.dataset.id,tr); } }); | ||||||
| tr.onclick=()=>{if(tr.getAttribute("aria-busy")==="true") return; detail(tr.dataset.id,tr);}; | ||||||
| tr.addEventListener('keydown', e => { if(e.key === 'Enter' || e.key === ' ') { e.preventDefault(); if(tr.getAttribute("aria-busy")==="true") return; detail(tr.dataset.id,tr); } }); | ||||||
|
Comment on lines
+139
to
+140
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๐ Info: onclick guard redundant under pointer-events:none The new Was this helpful? React with ๐ or ๐ to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๐ฏ Functional Correctness | ๐ก Minor | โก Quick win
ํ์ฌ Line 140์ Enter ๋๋ Space ์
๋ ฅ์์ ๋จผ์ busy ์ํ์์ ๋จผ์ ๋ฐํํ ํ, ์ค์ ์์ ์์- tr.addEventListener('keydown', e => { if(e.key === 'Enter' || e.key === ' ') { e.preventDefault(); if(tr.getAttribute("aria-busy")==="true") return; detail(tr.dataset.id,tr); } });
+ tr.addEventListener('keydown', e => { if(e.key === 'Enter' || e.key === ' ') { if(tr.getAttribute("aria-busy")==="true") return; e.preventDefault(); detail(tr.dataset.id,tr); } });๐ Committable suggestion
Suggested change
๐ค Prompt for AI Agents |
||||||
| }); | ||||||
| }catch(e){ $("#msg").classList.remove("hidden");$("#app").classList.add("hidden"); | ||||||
| $("#msg").innerHTML=`<span class="err">${esc(e.message)}</span>`; } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๐ Info: Loading-row request bookkeeping stays consistent
Across double-click, second-row-during-load, and Escape-during-load scenarios, the stale request returns early via
requestId!==currentDetailRequest, and thefinallyclearsaria-busyonly whentr.dataset.detailRequeststill matches.closeDetailclears both. No row is left permanently dimmed and unclickable.(Refers to this code)
Was this helpful? React with ๐ or ๐ to provide feedback.