-
Notifications
You must be signed in to change notification settings - Fork 0
🎨 Palette: 대시보드 'Deploy-blocking' 카드 클릭 필터 기능 추가 #1090
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
Open
seonghobae
wants to merge
5
commits into
develop
Choose a base branch
from
palette-interactive-deploy-blocking-card-12517871394529878792
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
40ab1da
🎨 Palette: 대시보드의 'Deploy-blocking' 카드를 상호작용 가능한 필터 토글로 개선
seonghobae d8bd9a0
test(dashboard): preserve blocking-card filter and focus contract
seonghobae 95fa6ed
fix(dashboard): restore blocking-card focus after render
seonghobae 75987ae
test(dashboard): execute blocking filter render behavior
seonghobae a3ab25b
🎨 Palette: 대시보드의 'Deploy-blocking' 카드를 상호작용 가능한 필터 토글로 개선
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,6 +132,7 @@ | |
|
|
||
| let ALL = null; | ||
| let filterSev = '', query = ''; | ||
| let filterBlocking = false; | ||
| let lastFocus = null; | ||
|
|
||
| function render(){ | ||
|
|
@@ -194,6 +195,7 @@ <h1>Clean scan</h1> | |
| const filtered = ALL | ||
| .map((f,i)=>({f,i})) | ||
| .filter(({f})=> (!filterSev || String(f.severity).toUpperCase()===filterSev)) | ||
| .filter(({f})=> !filterBlocking || isDeployBlocking(f)) | ||
| .filter(({f})=> !query || (String(f.message)+' '+String(f.file)+' '+String(f.rule_id)+' '+String(f.category)).toLowerCase().includes(query)) | ||
| .sort((a,b)=> SEV_ORDER.indexOf(String(a.f.severity).toUpperCase()) - SEV_ORDER.indexOf(String(b.f.severity).toUpperCase())); | ||
| const allFindingsText = formatFindingCount(ALL.length); | ||
|
|
@@ -219,7 +221,9 @@ <h1>Clean scan</h1> | |
| <h1>Dashboard</h1> | ||
| <p class="sub">${findingsText} · <strong>${blocking}</strong> deploy-blocking (gate ${blocking?'active':'clear'})</p> | ||
| <div class="cards">${cards} | ||
| <div class="card"><div class="lbl"><span class="dot" style="background:var(--primary)"></span>Deploy-blocking</div><div class="n">${blocking}</div></div> | ||
| <div id="deploy-blocking-card" class="card" role="button" tabindex="0" aria-label="Filter by Deploy-blocking: ${blocking}" aria-pressed="${filterBlocking}" onclick="filterBlocking=!filterBlocking; document.getElementById('deploy-blocking-card')?.focus(); render();" onkeydown="if(event.key==='Enter'||event.key===' '){event.preventDefault(); this.click();}" style="${filterBlocking ? 'border-color:var(--primary); box-shadow:0 0 0 1px var(--primary); cursor:pointer;' : 'cursor:pointer;'}"> | ||
|
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. |
||
| <div class="lbl"><span class="dot" style="background:var(--primary)"></span>Deploy-blocking</div><div class="n">${blocking}</div> | ||
| </div> | ||
| </div> | ||
| <div class="grid2"> | ||
| <div class="panel"><h2>Findings by category</h2><div class="rowlist">${catRows||'<div class="r">—</div>'}</div></div> | ||
|
|
@@ -235,7 +239,7 @@ <h1>Dashboard</h1> | |
| <thead><tr><th scope="col">Severity</th><th scope="col">Finding</th><th scope="col">File</th><th scope="col">Category</th><th scope="col">Status</th></tr></thead> | ||
| <tbody>${rows||`<tr><td colspan="5" style="padding:32px 24px;text-align:center"> | ||
| <div style="color:var(--text);font-weight:600;font-size:14px;margin-bottom:8px">No findings match the filter</div> | ||
| <button type="button" aria-label="Clear filters" onclick="query=''; filterSev=''; render(); document.getElementById('q')?.focus();" style="padding:6px 12px;border-radius:6px;border:1px solid var(--border);background:var(--surface);cursor:pointer;font:inherit;color:var(--text);font-weight:500;transition:background 0.2s">Clear filters</button> | ||
| <button type="button" aria-label="Clear filters" onclick="query=''; filterSev=''; filterBlocking=false; render(); document.getElementById('q')?.focus();" style="padding:6px 12px;border-radius:6px;border:1px solid var(--border);background:var(--surface);cursor:pointer;font:inherit;color:var(--text);font-weight:500;transition:background 0.2s">Clear filters</button> | ||
| </td></tr>`}</tbody> | ||
| </table></div> | ||
| </div> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: Combined filters preserve row identity
The blocking predicate intersects with severity and search filters. Preserved original indices keep each displayed row linked to the correct finding.
Was this helpful? React with 👍 or 👎 to provide feedback.