๐จ Palette: ๋์๋ณด๋ 'Deploy-blocking' ์นด๋ ํด๋ฆญ ํํฐ ๊ธฐ๋ฅ ์ถ๊ฐ - #1090
๐จ Palette: ๋์๋ณด๋ 'Deploy-blocking' ์นด๋ ํด๋ฆญ ํํฐ ๊ธฐ๋ฅ ์ถ๊ฐ#1090seonghobae wants to merge 5 commits into
Conversation
๋์๋ณด๋ ๋ด์ 'Deploy-blocking' ์์ฝ ์นด๋๋ฅผ ํด๋ฆญํ์ฌ ๋ฐฐํฌ๋ฅผ ์ฐจ๋จํ๋ ํญ๋ชฉ๋ค๋ง ๋น ๋ฅด๊ฒ ํํฐ๋งํ ์ ์๋๋ก ๊ธฐ๋ฅ์ ์ถ๊ฐํ์ต๋๋ค. ์๊ฐ์ ์ธ ์ํธ์์ฉ ํผ๋๋ฐฑ์ ์ ์ฉํ๊ณ ์ ๊ทผ์ฑ์ ๊ณ ๋ คํ์ฌ ๊ตฌํํ์ต๋๋ค. ๐ก ๋ณ๊ฒฝ ์ฌํญ: - `Deploy-blocking` ์นด๋์ `role="button"`, `tabindex="0"`, `aria-pressed` ์์ฑ ์ถ๊ฐ - ๋ง์ฐ์ค ํด๋ฆญ ๋ฐ ํค๋ณด๋(`Enter`, `Space`) ์ ๋ ฅ์ ํตํ ํํฐ ํ ๊ธ ๊ธฐ๋ฅ ๊ตฌํ - ์ ์ญ `Clear filters` ๋ฒํผ ๋์ ์ ํด๋น ํํฐ ์ํ๋ ํจ๊ป ์ด๊ธฐํ๋๋๋ก ์์ - ํํฐ ํ์ฑํ ์ ๋ค๋ฅธ ์ฌ๊ฐ๋(Severity) ์นด๋๋ค๊ณผ ๋์ผํ ํ์ฑํ ์คํ์ผ(ํ๋์ ํ ๋๋ฆฌ ๋ฐ ๊ทธ๋ฆผ์) ์ ์ฉ
|
๐ Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a ๐ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Warning Review limit reachedNext included review available in 58 minutes. View limit detailsLimit details: Youโve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: โ๏ธ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: ๐ Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| const filtered = ALL | ||
| .map((f,i)=>({f,i})) | ||
| .filter(({f})=> (!filterSev || String(f.severity).toUpperCase()===filterSev)) | ||
| .filter(({f})=> !filterBlocking || isDeployBlocking(f)) |
There was a problem hiding this comment.
๋์๋ณด๋ ๋ด์ 'Deploy-blocking' ์์ฝ ์นด๋๋ฅผ ํด๋ฆญํ์ฌ ๋ฐฐํฌ๋ฅผ ์ฐจ๋จํ๋ ํญ๋ชฉ๋ค๋ง ๋น ๋ฅด๊ฒ ํํฐ๋งํ ์ ์๋๋ก ๊ธฐ๋ฅ์ ์ถ๊ฐํ์ต๋๋ค. ์๊ฐ์ ์ธ ์ํธ์์ฉ ํผ๋๋ฐฑ์ ์ ์ฉํ๊ณ ์ ๊ทผ์ฑ์ ๊ณ ๋ คํ์ฌ ๊ตฌํํ์ต๋๋ค. ๐ก ๋ณ๊ฒฝ ์ฌํญ: - `Deploy-blocking` ์นด๋์ `role="button"`, `tabindex="0"`, `aria-pressed` ์์ฑ ์ถ๊ฐ - ๋ง์ฐ์ค ํด๋ฆญ ๋ฐ ํค๋ณด๋(`Enter`, `Space`) ์ ๋ ฅ์ ํตํ ํํฐ ํ ๊ธ ๊ธฐ๋ฅ ๊ตฌํ - ์ ์ญ `Clear filters` ๋ฒํผ ๋์ ์ ํด๋น ํํฐ ์ํ๋ ํจ๊ป ์ด๊ธฐํ๋๋๋ก ์์ - ํํฐ ํ์ฑํ ์ ๋ค๋ฅธ ์ฌ๊ฐ๋(Severity) ์นด๋๋ค๊ณผ ๋์ผํ ํ์ฑํ ์คํ์ผ(ํ๋์ ํ ๋๋ฆฌ ๋ฐ ๊ทธ๋ฆผ์) ์ ์ฉ - CI ํ ์คํธ์์ ์๊ตฌํ๋ `id="deploy-blocking-card"`๋ฅผ ์นด๋ ์์์ ์ ์ง๋๋๋ก ์ ์ฉ
| <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;'}"> |
Product intent
Make the Deploy-blocking summary card a real findings filter with the same pointer, keyboard, and pressed-state semantics as the existing severity filters, without losing keyboard position when the dashboard rerenders.
Review-driven repair
The initial implementation toggled
filterBlockingand rerendered the entire dashboard, but the generated card had no stable DOM id.render()already preserves focus by capturingdocument.activeElement.idand focusing the replacement element with the same id; because this card had none, Enter/Space activation moved keyboard focus to the page after replacement.The repair was performed test-first and kept the existing focus-restoration mechanism rather than adding a competing state path:
d8bd9a0e09e451f3b61cc706f9c4bea8171abc9crequires a stabledeploy-blocking-cardid, the realisDeployBlockingfiltering predicate, toggle wiring,aria-pressed, and keyboard activation. The preceding source lacks that stable id and therefore fails this acceptance.95fa6ed394b623d3ec9af4c69fea821b6795c0aaadds onlyid="deploy-blocking-card"to the generated card, allowing the pre-existingactiveId/restoredElement.focus()path to restore focus after replacement.75987aea4fdb909d8e18c20e343453a357718209strengthens the regression into executable behavior: a Node DOM harness runs the shippedrender()logic with one blocking finding plus non-blocking HIGH/test and WARNING findings, toggles the filter, and verifies the filtered rows,aria-pressed="true", and focus restoration to the newly rendered card.Current-head evidence
develop@e71d37e7c58118e6764c96ab7c4492fe33eed6f875987aea4fdb909d8e18c20e343453a35771820933647328885, Security Process33647328704, SAST33647328941, Security Scan33647328983, OSV33647329799, Scorecard33647328727, and the evidence-coverage workflows.33647332036terminated withstartup_failure; that control-plane failure is not leaf success evidence and must not be bypassed or inherited from an older head.Delivery gate
The causal UI fix and executable regression are present, but this PR is not yet merge-ready. Require terminal current-head Tests/security evidence and final current-head review reconciliation. If the Node executable is unavailable in the repository runner, treat that as an explicit test-toolchain defect and repair the workflow/toolchain rather than skipping the behavioral regression.
Anti-Slop delivery check