Skip to content

Commit 2db5098

Browse files
committed
docs(ui): list the Errors tab for open-in-panel and the tab hashes
The open-in-panel tool description, its docs row and the tab hash table now include the errors tab. Refs #342
1 parent 552ec8b commit 2db5098

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎apps/docs/src/content/agents/tools.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ The URL comes from the HTTP or router report. A page that sends neither (no rout
4949

5050
Gives the user a link that opens the panel on one tab with one item selected, and switches the panels that are open to it. Reads: page. Use it to point the user at what you found.
5151

52-
| Argument | Required | What it is |
53-
| -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
54-
| `tab` | Yes | The tab: `dashboard`, `components`, `routes`, `signals`, `injectors`, `store`, `forms`, `pipes`, `network` (SSR & HTTP), `analog` or `capacitor`. Only tabs that are on count. |
55-
| `id` | No | The item to select: a component id on `components`, the id of the component whose element injector to show on `injectors`, a form id on `forms`. Other tabs ignore it. |
56-
| `page` | No | The page the item belongs to, from `list-pages`. |
52+
| Argument | Required | What it is |
53+
| -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
54+
| `tab` | Yes | The tab: `dashboard`, `components`, `routes`, `signals`, `injectors`, `store`, `forms`, `pipes`, `network` (SSR & HTTP), `errors`, `analog` or `capacitor`. Only tabs that are on count. |
55+
| `id` | No | The item to select: a component id on `components`, the id of the component whose element injector to show on `injectors`, a form id on `forms`. Other tabs ignore it. |
56+
| `page` | No | The page the item belongs to, from `list-pages`. |
5757

5858
The answer is a full URL, such as `http://localhost:4200/__devframes/pangular/#tab=components&id=12&page=k3x9`, when the hub serves the panel and a page has reported its address. Otherwise it is the hash to add to the panel's address. Each panel that is open and not in a background tab opens the link at once. The tool is `read`: it changes what the panel shows, not the app. See [Deep links](../getting-started/popup-and-hub.md#deep-links).
5959

‎apps/docs/src/content/getting-started/popup-and-hub.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ The URL hash selects a tab. Open `/__devframes/pangular/#tab=signals` to land on
192192
| Forms | `#tab=forms` |
193193
| Pipes | `#tab=pipes` |
194194
| SSR & HTTP | `#tab=network` |
195+
| Errors | `#tab=errors` |
195196
| Analog | `#tab=analog` |
196197
| Capacitor | `#tab=capacitor` |
197198
| Settings | `#tab=settings` |

‎packages/devtools/src/rpc/open-in-panel.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
export const OPEN_IN_PANEL_EVENT = 'open-in-panel';
1212

1313
export const OPEN_IN_PANEL_DESCRIPTION =
14-
"Give the user a link that opens the devtools panel on one tab, with one item selected, and switch the panels that are open to it. Use it to point the user at what you found. `tab` is the panel tab: dashboard, components, routes, signals, injectors, store, forms, pipes, network (SSR & HTTP), analog or capacitor. `id` selects an item on components (a component instance id, from list-components or component-tree), injectors (the id of the component whose element injector to show) and forms (a form id, from forms); other tabs open without a selection. Pass `page` (see list-pages) when more than one tab reports. Answers with the link in markdown. The link is a full URL when the panel runs in the hub and a page has reported its address; otherwise it is the hash to add to the panel's address.";
14+
"Give the user a link that opens the devtools panel on one tab, with one item selected, and switch the panels that are open to it. Use it to point the user at what you found. `tab` is the panel tab: dashboard, components, routes, signals, injectors, store, forms, pipes, network (SSR & HTTP), errors, analog or capacitor. `id` selects an item on components (a component instance id, from list-components or component-tree), injectors (the id of the component whose element injector to show) and forms (a form id, from forms); other tabs open without a selection. Pass `page` (see list-pages) when more than one tab reports. Answers with the link in markdown. The link is a full URL when the panel runs in the hub and a page has reported its address; otherwise it is the hash to add to the panel's address.";
1515

1616
export interface OpenInPanelArgs {
1717
tab?: unknown;

0 commit comments

Comments
 (0)