The in-browser IDE is the platform's built-in code editor for tweaking custom functions, workflows, templates, and small JavaScript snippets — all from within the admin panel, no separate IDE required.
What It Edits
- Custom API functions: Server-side PHP for bespoke endpoints.
- Workflow steps: Inline code that runs as part of a workflow.
- Triggers: Custom logic on data events.
- Email/document templates: HTML + template syntax.
- Dashboard block templates: Custom widget HTML/CSS/JS.
- Page builder snippets: Inline JS/CSS.
Editor Features
- Syntax highlighting for PHP, JS, CSS, HTML.
- Autocomplete for platform APIs (
$AM->…). - Inline linting.
- Find / replace across all snippets.
- Git-style diff of changes.
- One-click test runner with sample input.
- Roll-back to any previous version (every save creates a version).
Safety
- Code runs in a sandboxed context — no direct filesystem access outside designated paths.
- Time and memory limits per execution.
- Changes audited — every save logs the author and the diff.
- “Test in dev” option runs against the dev environment, not prod.
Worked Examples
- Quick fix: A custom function has an off-by-one bug. Edit in browser, save, redeploy in 30 seconds.
- Template tweak: Marketing asks for a different subject line on the welcome email. Edit, preview, save.
- Dashboard customisation: Add a new gauge to the operations dashboard via the IDE's block editor.
- Workflow refinement: Add a new condition to an existing workflow without round-tripping through git for a trivial change.