Skip to content

Outline: keep closer to the feature asked about, and read route names - #12

Merged
hbenabdallah merged 1 commit into
mainfrom
outline-precision
Oct 30, 2026
Merged

hbenabdallah merged 1 commit into
mainfrom
outline-precision

Conversation

@hbenabdallah

Copy link
Copy Markdown
Collaborator

outline on devnull.com (Laravel, 1,360 files) hung, then gave 67 KB mostly off the feature. This fixes both and tightens how an outline picks its classes.

Fixed

  • No infinite loop when the core shares no namespace.
  • Pest tests count as tests, not as wiring.

Outline selection

  • Nothing joins through a class used by 20+ classes (the User model); it shows only what the feature calls and its attributes naming the feature's classes ($log: Log).
  • An off-topic class joins only through a class about the question; a namespace word most classes carry is no topic; ties at the 45-class cap go to the class most about the question, and a full core names what it left out.
  • A seed's module keeps what the seed runs, not siblings sharing a widget; a class found only by a method name is no seed when most seeds are about the question or a route is named after it.

Route names

  • Laravel ->name() (with group prefixes and resources), Symfony name:, YAML keys and $routes->add(), stored as the route node's alias. A route named after the question opens the outline through its controller.

Checked: 15 outlines on 6 projects before and after (NextAPI, php-ddd-example, Sylius, BookStack, devnull, a legacy app); corpus counts unchanged. Details in the CHANGELOG.

@hbenabdallah
hbenabdallah merged commit 852fba9 into main Oct 30, 2026
8 checks passed
@hbenabdallah
hbenabdallah deleted the outline-precision branch October 30, 2026 05:47
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.

1 participant