Apply progressive disclosure to firewall blocked domains alert#28332
Apply progressive disclosure to firewall blocked domains alert#28332
Conversation
…mmary Agent-Logs-Url: https://github.com/github/gh-aw/sessions/40375956-49f5-42ea-9461-0487043090ac Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
| const domainList = blockedDomains.map(domain => `> - \`${domain}\`\n`).join(""); | ||
| let section = "\n\n> [!WARNING]\n"; | ||
| section += `> <details>\n`; | ||
| section += `> <summary>⚠️ Firewall blocked ${domainCount} ${domainWord}</summary>\n`; |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/b8aaadba-06d5-4735-bbed-60f10a919560 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot resolve the merge conflicts in this pull request |
…sive-disclosure-firewall-alert # Conflicts: # actions/setup/js/firewall_blocked_domains.cjs Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Merge conflicts resolved in 1f84c74. Main branch had refactored |
There was a problem hiding this comment.
Pull request overview
Applies progressive disclosure to the “firewall blocked domains” warning so the alert content is collapsed by default (via <details>/<summary>), reducing comment noise while preserving full troubleshooting guidance.
Changes:
- Updated the firewall blocked domains markdown template to wrap the alert body in
<details>/<summary>, with the summary showing only the blocked count. - Updated unit tests to assert the new
<details>structure in the generated warning section.
Show a summary per file
| File | Description |
|---|---|
| actions/setup/md/firewall_blocked_domains.md | Wrapes the warning body in <details>/<summary> so the domain list/config snippet/docs link are collapsed by default. |
| actions/setup/js/firewall_blocked_domains.test.cjs | Updates assertions to match the new <details>/<summary> output structure. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
The firewall blocked domains
[!WARNING]alert dumped all content (domain list, YAML config snippet, docs link) inline, making it noisy in comments. Wrapping the body in<details>/<summary>collapses it by default, matching the pattern already used by the integrity filter alert.Changes
firewall_blocked_domains.cjs—generateBlockedDomainsSectionnow emits<details>/<summary>inside the[!WARNING]block; the summary shows only the count, full details expand on clickfirewall_blocked_domains.test.cjs— updated assertions to match new structure (<details>,<summary>Firewall blocked N …</summary>,</details>)Before:
After: