Skip to content

fix(analytics): open each subpath detail once per row click - #2474

Merged
efiten merged 2 commits into
Kpa-clawbot:masterfrom
n30nex:codex/subpath-clicks-20261123
Nov 24, 2026
Merged

efiten merged 2 commits into
Kpa-clawbot:masterfrom
n30nex:codex/subpath-clicks-20261123

Conversation

@n30nex

@n30nex n30nex commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Red commit: bf835b794 (failing workflow).

Fixes #2465. Route Patterns now attaches its row-click handler to the list created by each render. Changing the theme or tab replaces that list and its handler together. One click opens the selected route once.

After three renders, the original UI called the detail loader three times on the first click and six times across two clicks. The shared API cache combined requests for the same route. The fix produced one call per click and preserved the selected row. No additional requests or per-row listeners are needed.

Browser verified: http://localhost:15265/#/analytics?tab=subpaths. All 256 standalone suites passed. The VM test and the browser regression reproduced the duplicate calls on the tests-only revision.

E2E assertion added: tests/e2e/test-e2e-playwright.js:1237. In a combined browser check with #2462, two clicks opened two details and a late response for the first route preserved the second route’s panel.

@n30nex

n30nex commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Independent review complete at 060905906. Kent Beck Gate: PASS (test quality). The tests-only revision failed in both the hosted unit and browser assertions with three detail calls from one click. After the fix, two clicks after three renders produced two calls and selected the expected rows. The network request count on its own would miss the duplicate work. Hosted regression

@n30nex
n30nex marked this pull request as ready for review November 24, 2026 01:29
@efiten
efiten merged commit b063c4e into Kpa-clawbot:master Nov 24, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Analytics Subpaths: each render adds another row click listener, so one click loads the detail N times

2 participants