Docs
Extensions

Extension points

The places in the Console an extension's screens can appear, and what each one receives.

PreviewFor developers

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.

PointWhere it appearsIt receives
task.panelBelow a task, for everyone who can open that taskThe task's ID (task_…)
project.panelBelow a projectThe project's ID (proj_…)
invoice.panelBelow an invoice, for those who work with invoicesThe invoice's ID (finv_…)
contact.panelBelow a contactThe contact's ID (contact_…)
pageA page of its own under ExtensionsNo 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

  1. The Console draws a small frame of its own for each panel.
  2. That frame loads your url in 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.
  3. The frame's security policy allows only your declared host. If your screen tries to go anywhere else, the browser stops it.
  4. 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.com

Design

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:resize rather than scrolling inside the frame.

On this page