feat(mcp): surface template-view callers in explore blast radius#960
Open
Johnny-Tsai wants to merge 1 commit into
Open
feat(mcp): surface template-view callers in explore blast radius#960Johnny-Tsai wants to merge 1 commit into
Johnny-Tsai wants to merge 1 commit into
Conversation
The blast-radius section listed caller files under a single flat cap (FILE_CAP), so template views (.cshtml/.razor/.vue/.svelte/.astro) — which are cross-layer callers a JS/TS change ripples into — were easily drowned out by the more numerous same-language code callers and vanished into "+N more". A JS helper used by 4 .js files and 22 views would show 0 views, hiding the answer to "which views depend on this?". Split view files into their own slot so they always surface alongside (not competing with) the code callers, each capped independently. Tested in explore-blast-radius.test.ts: a helper with >FILE_CAP code callers plus a .vue view now shows the view in its own dedicated slot. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
In the
codegraph_exploreblast-radius section, list template-view callers (.cshtml/.razor/.vue/.svelte/.astro) in their own slot instead of letting them compete with same-language code callers under a single flat cap.Why
Caller files were listed under one
FILE_CAP(4) before+N more. Template views are cross-layer callers — a change to a JS/TS helper ripples into the views that use it — but they're typically far fewer than the same-language code callers, so they got drowned out and vanished into+N more.Concretely: a JS helper used by 4
.jsfiles and 22.cshtmlviews would render 0 views, hiding the answer to "which views depend on this?". This showed up on a real .NET MVC ERP, where view callers of shared JS helpers are exactly what you need to see before editing.How
Split
nonTestcallers intoviewFiles(by extension) andcodeFiles, each capped independently. Code callers keep the existingin …phrasing; views get an appended; N view(s): …slot. Pure side-by-side display change — no graph/edge changes.Testing
Added a case to
explore-blast-radius.test.ts: a helper with more thanFILE_CAPcode callers plus a.vueview now surfaces the view in its own dedicated slot rather than burying it behind the code-caller+N more. Existing blast-radius tests still pass.🤖 Generated with Claude Code