Extension points
The places in the Console an extension's screens can appear, and what each one receives.
This is a published preview. Names and fields may still change before general availability; changes will be listed in the changelog.
An extension point is a place in the Console where an installed extension's screen appears. Each one receives the ID of the record it's on and nothing else from the page.
| Point | Where it appears | It receives |
|---|---|---|
task.panel | Below a task, for everyone who can open that task | The task's ID (task_…) |
project.panel | Below a project | The project's ID (proj_…) |
invoice.panel | Below an invoice, for those who work with invoices | The invoice's ID (finv_…) |
contact.panel | Below a contact | The contact's ID (contact_…) |
page | A page of its own under Extensions | No record |
A panel appears only on a record the person can already open. Someone who can't see an invoice never sees its panel, and your screen is never told that record exists.
How your screen is loaded
- The Console draws a small frame of its own for each panel.
- That frame loads your
urlin a sandboxed frame: scripts and forms only. It never shares the Console's origin, so it can't read the page, its cookies, its storage or the person's session. - The frame's security policy allows only your declared host. If your screen tries to go anywhere else, the browser stops it.
- Your screen says it's ready, and gets a context token through
postMessage.
Your page must allow being framed by the Console. Send this header from the addresses in points:
Content-Security-Policy: frame-ancestors https://app.agoohq.comDesign
Your screen sits inside a card with your extension's name and a label saying it's an extension. Keep to these, so it reads well beside Agoo:
- a white background in light mode and a dark one in dark mode (the context says which);
- no fixed widths: it must work from a phone's width to a wide screen;
- ask for the height you need with
agoo:resizerather than scrolling inside the frame.