Commit 8325969
feat(programs): add per-program scope summary endpoint and inline UI counts
- New POST /api/scope/program-summaries endpoint fetches scope details on
demand for a list of (platform, handle) pairs. Results are cached so
repeat lookups are cheap.
- fetchH1Programs / fetchH1WithREST / fetchBCPrograms grow an includeScope
flag; when true they call fetchH1ScopeSummary / fetchBCScopeSummary per
program to populate in-scope and out-of-scope target counts.
- programScopeCacheKey + cache plumbing keys results by (platform, handle).
- programs.js renders scope counts inline in the monitoring table and
triggers the summary endpoint as rows become visible.
- .gitignore: exclude local .cache/ directory used by the new cache layer.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 5667376 commit 8325969
4 files changed
Lines changed: 399 additions & 135 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
| |||
1879 | 1880 | | |
1880 | 1881 | | |
1881 | 1882 | | |
1882 | | - | |
0 commit comments