Repository navigation
fix(code-analysis): show file import direction and source availability - #1421
outlier27-cell wants to merge 28 commits into
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
Scope agreed on the core direction — showing explicit file import direction ( Before moving to final review, please address the following items:
Once retargeted onto |
…las-1421-source-return-20261122 # Conflicts: # archify.zip # archify/modules/code-analysis/overlay/client/overlay.js # test/code-analysis-browser.test.mjs
…las-1421-source-return-20261122 # Conflicts: # archify.zip # test/code-analysis-standalone-browser.test.mjs
…las-1421-source-return-20261122 # Conflicts: # archify.zip
…las-1421-source-return-20261122 # Conflicts: # archify.zip
Personal review: the accountable contributor confirmed head
ecb5ad9ef3e01bd5072945707bae123c949e11daand the PR explanation and validation evidence on 2026-11-26. This is not maintainer scope agreement or approval.Latest follow-up and synchronization
Head
ecb5ad9ef3e01bd5072945707bae123c949e11daincludes dev79c9342947e5a15c434cb5c90ca614cc48a8f40a. The review follow-up asserts Atlas Back opens Overview and closes details; standalone Chrome passed at 1b0ac6d. The 633 and 79c merges rebuilt the ZIP. A Windows rerun on 633 failed in Chrome profile shutdown, so current CI is required. Earlier personal confirmations and CI records below apply only to their named heads. The contributor personally confirmed headecb5ad9ef3e01bd5072945707bae123c949e11daand its explanation; current CI and maintainer review are tracked separately.Latest dev synchronization
Head
1b0ac6d07535518b6443dd934ed950cb49bbb4ecmerges dev88f26d239e0e1d688fdb05b6e21df0b096bc00a4. This head adds an explicit browser assertion that Atlas Back opens Overview and hides finding details; the standalone Chrome test passed. The preceding merge rebuilt the ZIP and retained upstream width-settling waits. A wider Windows browser suite failed in Chrome profile EBUSY cleanup; CI remains required. The contributor's earlier confirmations apply to the heads named below; this new head awaits personal review and its own CI.Latest dev synchronization
Head
43922d488495feac582479a4cd137b3142d01c9bmerges dev88f26d239e0e1d688fdb05b6e21df0b096bc00a4. The ZIP was rebuilt; the standalone browser-test conflict preserves both the current Atlas return expectation and upstream width-settling wait. The standalone Chrome test passed. A wider local browser suite had Windows Chrome profile EBUSY cleanup failures; its Atlas workflow assertion passed. Remote CI is required. The contributor's earlier confirmations apply to the heads named below; this new head awaits personal review and its own CI.Latest review follow-up
Head 36bcad9 merges dev 79ae742; only the generated ZIP conflicted. Canonical Node 22 ZIP: 446 entries, SHA-256 1822a7481703242fb883164154c1c23c1c1d021d6c692d5d7ad3e0c37719aa98. The full workbench Chrome regression passed at the preceding c685b92 merge; the new upstream commit does not change the Atlas or Viewer source. CI status for this historical update is superseded by the current-head result above.
The contributor personally confirmed the then-current head
36bcad9ce55469c237a16fbdda2dfc7cf5410b53and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.Latest review follow-up
Head 0d5271c merges dev c685b92; only the generated ZIP conflicted. The canonical Node 22 archive was rebuilt: 445 entries, SHA-256 384d93b472b551dfefbeb9a8fad5317a854320bc651cc5c428ef6ce463877cb1. The complete workbench Chrome regression passed on the merged tree. CI status for this historical update is superseded by the current-head result above.
The contributor personally confirmed the then-current head
36bcad9ce55469c237a16fbdda2dfc7cf5410b53and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.Latest review follow-up
Head 3c06bf6 merges dev e24ca83. The only conflict was the generated ZIP; the canonical Node 22 archive was rebuilt with both branches: 445 entries, SHA-256 5091e8fc8b8aa9e1805ea8222a4986db558c0efc4cee37c0efea55834d455765. The focused workbench Chrome test passed on the merged tree. CI status for this historical update is superseded by the current-head result above.
The contributor personally confirmed the then-current head
36bcad9ce55469c237a16fbdda2dfc7cf5410b53and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.Latest review follow-up
Head e395904 clears previously captured canvas marker coordinates before resizing and explicitly redraws the selected finding. The 390-by-667 visibility test therefore checks freshly drawn endpoints, not coordinates from the taller viewport. The full workbench Chrome regression passed locally; runtime and ZIP are unchanged from 40e0aa2. Current-head CI completed with 28 successful checks and 3 configured skips; the stale-coordinate Devin flag was marked resolved after the regression passed.
The contributor personally confirmed the then-current head
e39590460083c08927bba99f3437a6c42a8c802aand its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.Latest review follow-up
Head 40e0aa2 resets stale 2D return state when a finding is opened from 3D, while related findings keep their existing return context. Chrome regression reproduced the wrong return before the fix and passed afterward; a 390-by-667 test now checks that both numbered import endpoints are actually visible and hittable. The canonical Node 22 archive contains 445 entries (SHA-256 3565e5fff646cde30ad5dab2f3021377396de6c854b846735ba759a9a07ea10c). Current-head CI completed with 28 successful checks and 3 configured skips; the stale-coordinate Devin flag was marked resolved after the regression passed.
The contributor personally confirmed the then-current head
40e0aa261f6389e0bec943d1ccf21d379c0e8341and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.Latest narrow-map review follow-up
Head
a40e09b1ahides the redundant focus pill while the finding sheet is open at narrow widths, leaving numbered import endpoints visible. The sheet still identifies and clears the selection. The focused workbench browser regression passed in isolation, including 390 x 667; an earlier run hit a Windows Chrome profile cleanup lock after assertions. Canonical Node 22 archive: 445 entries, SHA-256a83a0c5efab8b652c739c266ba1756389cfd4d984e00c4c3f863e43be0b35697. CI at a40e09b completed with 27 successful checks and 3 configured skips; the contributor confirmed that earlier head.Latest Escape review follow-up
Head
91b1d69b3restores the selected Atlas finding and evidence-action focus when Escape is pressed from the finding heading. Escape from the source pane still returns to the finding first. The focused Windows Chrome Atlas test passed in isolation; an earlier broader attempt passed assertions but hit a Chrome profile cleanup lock. The canonical ZIP was rebuilt: 445 entries, SHA-25613e81b856bfb2746d023a3cb5ab5d8cb3c4923f2aab7d988b9fbaf98b6d38d03. CI passed and the contributor confirmed that earlier head. Prior evidence below applies to its named revision.Latest review follow-up
Earlier head
c8c3416aa4654c94a521d4afe92ac39197079a4bmakes an explicit Atlas entry replace any earlier finding return context and clears stale context when entering a top-level component or findings page. The narrow diagram-backed view reserves separate visible space for the map and details. The mapped fixture now passes its map, and browser regressions cover the second selected import, return context, endpoint visibility and the standalone flow. That earlier head had 28 successful CI checks and 3 configured skips; the contributor confirmed it.The canonical Node 22 ZIP at that earlier head was rebuilt: 445 entries, SHA-256
bcda30cb5ceec45e114cfedc0a3c5d4879939fb2bb44e514bb93a1038aab92d6. The later local test-only adjustment does not alter the package. Earlier confirmation, screenshots and CI below refer to their named revisions.November 24 review fixes and dev synchronization
Earlier head
cd1016a032055730b0986376f578362a97278924integrates dev9b6cf46f3195f4a0805c3226e352c92b0fd4cbb0and is retargeted to dev as requested. It retains the current pinned-source navigation while restoring the correct parent label, focus and Atlas selection when returning from evidence. Import endpoint labels now use the selected files' focused module geometry. The unrelated package-marker test adjustment has been removed from this PR.The focused module-coordinate browser test, source-return browser test and Atlas/source unit tests passed. A broader Windows browser run had one Chrome profile teardown failure; that test passed when rerun alone. The canonical Node 22.23.2 ZIP was rebuilt (445 entries, SHA-256
c79c89bfdc0f62bf83256066a97fdb78f8527cdbaed9242ed62223ca4f1e87f2). That earlier revision CI completed with 32 successful checks and 5 configured skips. Earlier CI and screenshot references below apply to their named revisions, not the current head. That earlier revision was confirmed by the contributor as recorded below.Problem and value
Selecting Flask’s
Blueprint.register()in the Atlas at Labs4d382d432highlights imports of its containing file. Readers need to tell which files a curve connects and which side imports the other. The authored-diagram inspector also offers a source button for some locations whose text the report never captured.①and②. The details show the complete importing and imported paths and follow the dependency selector. If the report captured no imports for the selected file, show that state with no selector.This is the narrowed follow-up to the original Atlas proposal after the redesign in #1419. The existing first-screen guidance, 3D view and architecture inspector are the baseline. The maintainer agreed to the core scope, with the review fixes described above. Labs feedback #1182 is the related tracker. The baseline synchronization comparison is
076fe627a...d28ee81d4. It contains the Atlas overlay and browser regression, the installed-Skill fixture adjustment described below, and the generated archive. Labs sync #1432 already supplies the Story CLI, doctor checks, validators, and packaging/CI changes on the target branch.Visual evidence
The saved Flask snapshot at
2c1b30dwas re-rendered on the updated implementation. Independent Chrome selectedBlueprint.register(), checked both paths, and switched the import with the keyboard. The capture at 390 × 844 shows the full paths after scrolling the details into view.Perceptual visual review: passed. The contributor personally reviewed the new Flask desktop and narrow screenshots for implementation commit
d6c9e5840.390 × 844 detail
Stability impact
This change uses the existing captured file graph and source snippets. An import edge describes a file relationship. The authored inspector distinguishes captured source from a known path or location with no captured text. The CLI and stored snapshot schemas are unchanged. Existing snapshots need no migration. The rollback is to revert the feature changes and regenerate
archify.zip.Tests run
Base
4d382d43238a4b5a0e170819c22079b058a7b4cb, implementationd6c9e5840180665babb93e749ebd2f5f4f70d383, keyboard test follow-upe1ea4ca797e26bb2b5de6639746983e20d9b6206. Before the patch, the new workbench assertion failed on Labs because the list of the selected import's endpoint paths was empty. Labs6086c6991and4d382d432have identical trees.The implementation evidence exercised the Code Analysis workbench, standalone Atlas, and diagram-backed PR Files. The workbench assertions cover endpoint labels, import switching, both full paths at 390 px, the no-import state, and the unavailable-source label.
GitHub Actions finished with 19 successful jobs and two deployment jobs skipped by configuration. The Chrome job log confirms the expanded workbench and diagram-backed PR Files tests both ran and passed. Implementation CI · Chrome job
The follow-up uses Chrome's native Arrow Down handling to switch the import, then verifies both paths. It also opens the off-diagram Largest files list and verifies that a path without a source snippet is a text label. The expanded workbench test passed locally and in Chrome CI. The same run hit a race in the installed-Skill fixture when a parallel archive test removed its temporary link.
PR improvement check: extend the existing workbench fixture to protect both user flows without a second report harness. The dependency list and off-diagram list share the source-availability renderer. The Atlas inspector uses the captured file graph and the existing selection state. The focused survey found no further duplication worth removing.
The package-test follow-up
61b4b5c11filters the archive test's temporary markers from the installed-Skill test fixture. The four missing-runtime doctor cases passed locally. The producer's symlink case requires OS support and was left to the Linux CI runner. GitHub Actions at61b4b5c11810e495a5537fb2e3d41de7d4474658finished with 19 successful jobs and two deployment jobs skipped by configuration. The Linux run passed both the installed-Skill doctor case and the archive exclusion case. The Chrome workbench case also ran and passed. CI at 61b4b5c11 · Linux regression · Chrome workbenchLabs sync
d28ee81d4c660574a0c815218c87474e7ff18cc4merges Labs076fe627af3bd185aac41007d2b5b9145dbd941f. The only conflict wasarchify.zip. All non-archive files match Git’s automatic merge result. The four installed-Skill missing-runtime doctor cases passed on Windows. The timed-out output-path case passed when rerun on its own. The Windows workbench assertions ran, but the Chrome shutdown hook reportedARCHIFY_TEMP_CLEANUP. The wider local runs also encountered a 3D test that did not initialize Three.js, symlink permission errors, and a child-process timeout. Those runs did not pass. GitHub Actions on this merge commit passed 19 jobs and skipped two deployment jobs by configuration. The Chrome log confirms that the workbench case ran and passed. CI for the Labs sync · Chrome workbench. The earlier screenshots cover the implementation at the revision shown above.The CI run at
d28ee81d4verifies the combined candidate, including inherited Labs code. Its browser shard log contains the workbench result, and the job list reports the browser, full-regression, Windows, package and ZIP gates. That earlier revision retained the test-fixture adjustment because the previous candidate CI hit a race when the concurrent archive test removed its temporary link. The change only affects the installed-Skill fixture. Scope agreement remained pending after that run.Generated artifacts
Rebuilt
archify.ziptwice froma3d7c9d3ee7c952f88a83bbaf98dc4f94ad2841ewith Node 22.23.2 and bundled zlib1.3.1-e00f703. Both 558-entry builds matched the committed archive byte for byte. SHA-256 is3d582b7201d43b9b4d89f3bbba4e19e7ad3013826fba3249d18f8874866b71b5. The preceding syncd28ee81d4had archive SHA-256308ecb94539fbb22da879ca1a6e079e3c3b52fb64e122ff8273b984558d176ef.AI assistance and accountability
Personal confirmation for earlier head
c8c3416aa4654c94a521d4afe92ac39197079a4b: the accountable contributor personally reviewed the changes, PR explanation and validation evidence.Personal confirmation for earlier head
cd1016a032055730b0986376f578362a97278924: the accountable contributor personally reviewed the changes, PR explanation and validation evidence.Personal confirmation for
a3d7c9d3ee7c952f88a83bbaf98dc4f94ad2841e: the accountable contributor personally reviewed the submitted changes, PR description and visual evidence.Personal confirmation for
d6c9e5840180665babb93e749ebd2f5f4f70d383: the contributor reviewed the submitted changes, the PR description and the updated Flask desktop and narrow screenshots. This confirmation covers the directed file-import selector and the unavailable-source presentation. Personal confirmation for61b4b5c11810e495a5537fb2e3d41de7d4474658: the contributor confirmed the two test-only follow-ups.e1ea4ca79exercises keyboard import selection and the off-diagram unavailable-source label.61b4b5c11limits the installed-Skill test fixture to exclude transient archive-test markers.The earlier contributor confirmation above covers that candidate, including the Labs synchronization and archive rebuild.
The contributor's earlier confirmation covered
0ac50e3498f189437b22b2ad0b65259480dfa08eand the previous scope.Current evidence navigation follow-up
Implementation
3973e44a01b81fcd6bb32e3f99d80580247cf3bdkeeps the existing review scope centered on captured imports and source. Finding details opened from Atlas include a return to Atlas. The original finding, selected import and opener focus are restored. A dependency's evidence goes back to Dependency and restores the source link's focus, including on Escape. The source pane fits the standalone reader column. Complexity evidence explains the difference between its deepest line and the start of the function. Root-file modules with no directory name keep distinct labels.A serial native Windows Chrome run of
test/code-analysis-workbench-browser.test.mjspassed on the earlier revision after the parallel attempt hit a Chrome temporary-directory cleanup error. An independent Chrome run of the same head inspected Flask2c1b30dat line 340, verified the distinct function start at line 273, checked 390px without horizontal overflow, and exercised← Atlasand Escape with focus and import selection restored. The 3D browser check asserts Three.js loading when a WebGL canvas is present and covers the 2D fallback when it is unavailable. CI for that earlier revision passed 19 jobs with 2 configured skips. The Chrome job ran both the Atlas and prepared workbench tests.1440px source at line 340 · 390px source · Finding with the Atlas return control · Restored finding and import selection
At the time of that earlier revision, maintainer scope agreement was pending and the contributor confirmation applied to that revision. The maintainer has since agreed to the core scope; the contributor confirmed that earlier head as recorded above.
Personal confirmation for earlier head
91b1d69b3a2ae9a39fbd538d75c3819835563085: the accountable contributor personally reviewed this commit and PR explanation.Personal confirmation for earlier head
a40e09b1a16317ee3e3b65e17d3ecb2ae2e5a177: the accountable contributor personally reviewed that revision and PR description.Escape view follow-up: e362fc1
A hidden Classic finding no longer intercepts Escape when an Atlas view is active. Chrome regression reproduces the prior 3D-to-2D jump and passes with the fix; two earlier local runs were interrupted by Windows Chrome profile cleanup, then the isolated run passed. Node 22 canonical ZIP: 445 entries, SHA-256
7bc1aa3daa3d1927e8e68d0d67739835defc1257acc51f85ed3790487423f0cd. Current-head CI completed with 28 successful checks and 3 configured skips; personal review is confirmed.Personal confirmation for head
e362fc18e2bb0f1f56073c5e1710b26c073ad6e1: the accountable contributor personally reviewed this revision and its PR description.Personal confirmation: the accountable contributor personally reviewed head
40e0aa261f6389e0bec943d1ccf21d379c0e8341and its PR explanation.Personal confirmation: the accountable contributor personally reviewed head
e39590460083c08927bba99f3437a6c42a8c802aand its PR explanation.Personal confirmation: the accountable contributor personally reviewed head
36bcad9ce55469c237a16fbdda2dfc7cf5410b53and its PR explanation.