Coding agents are pretty good at finding the code behind a piece of UI. Ask for a change to the Archive button on the dashboard and they'll get there, after a few rounds of searching the codebase. That costs time and tokens, and the button is already right in front of you.
ng-origin is a side project of mine that lets you point at it instead. Hold Alt (⌥ on a Mac) in your running dev app, click an element, and a plain-text block with its origin lands in your clipboard. Version 22.0.0 is the first release.
What gets copied
For the Archive button in a dashboard widget, the block looks like this:
Page: /dashboard · route dashboard → DashboardPage (src/app/dashboard/dashboard-page.ts:13) Element: <button> "Archive" Inside: UiButton <button ui-button> (ui-kit) · variant=primary Declared in: Widget (src/app/widget/widget.ts:15) Projected into: CardShell (src/app/card-shell/card-shell.ts:13) Template: src/app/widget/widget.html:2 Find: widget.archive Chain: Widget > DashboardPage Context: lang=en ·…