Surfaces
Surfaces
Custom HTML views that open as tabs on a trace.
A surface is a self-contained HTML page that renders a trace in your own way, for example a cost chart, a timeline or a review checklist. On the trace page it appears as an extra tab next to Highlights and Full Trace, opened with /s/<id>?surface=<key>.
Concepts
- Key: a permanent identifier (2 to 60 characters: lowercase letters, digits, hyphens). Keys cannot be changed. The words
create,new,editandpinnedare reserved. - Version: an immutable upload with a label such as
1.0.0. The surface has one current version. You can make an older version current again. - Visibility: new surfaces are private to the namespace. Namespace admins can publish a surface so it appears in the marketplace at
https://adtraces.adfactory.app/surfaces. - Pins: each user can pin up to 20 surfaces, shown as tabs on traces.
- Sandbox: the HTML runs in a sandboxed frame served from
/api/surfaces/<id>/frame. It must not depend on external resources.
Pages
https://adtraces.adfactory.app/surfaces: browse and pin.https://adtraces.adfactory.app/surfaces/create: create a surface in the browser.https://adtraces.adfactory.app/surfaces/<key>: details, versions and management.https://adtraces.adfactory.app/<slug>/surfaces: the surfaces of a namespace.
To publish from scripts or an agent, see Publishing surfaces.