Editor Mode
The Editor Mode is where you adjust what the AI generated. Use for specific changes in the backend. Also use to understand the frontend scaffold.
Prerequisites
You have edit permission on the project.
Your app opens in the Preview.
Use Editor Mode for “surgical” adjustments. For large generation, prefer Chat AI.
Typical flow
Backend
Modules
You can add, edit and remove modules.
In the module registration, you configure:
Module Name
Icon
Description
Display Name Translations (display name per language)
The Display Name appears in the Home as a module card.
Common languages in translations:
en(English)de(German)es(Spanish)fr(French)it(Italian)zh(Chinese)ja(Japanese)pt-BR(Portuguese Brazil)pt-PT(Portuguese Portugal)
Module menus
Inside the module, you can register menus. Each menu has:
Name
URL Path
Icon
Display Name Translations
Changing URL Path can break existing links. Test the flow in Preview.
Components (entities)
A Component in Madrix is an entity. It represents a table in the database and can have scripts associated.
You can add, edit and remove components. In the component registration, you configure:
Name (use lowercase)
Description
Module
Display Name Translations
Scripts per event:
Before Insert
After Insert
Before Update
After Update
Before Delete
After Delete
When saving a component, the system may ask:
Create frontend files
Create menu automatically
Menu icon
Database
Fields
You can add, edit and remove component fields.
Each field usually has:
Name
Type
Flag Required
Width in grid (runtime)
Flag Unique (do not allow duplicates)
Display Name Translations
Field types:
StringBooleanDate(sets format)Datetime(sets format)Decimal(decimal places; currency flag)IntegerPicklist(list of options)Component(relationship with another component)UserAttachmentsText
Examples:
Picklist: Priority =High | Medium | LowDecimalas currency: check Currency and set the decimal places
Field Component (relationship)
In the relationship, you configure:
the related component
if it is 1-N or N-N (multiple values)
which field of the related is the Display Field
the flag deleteCascade
deleteCascade defines whether, when removing a “parent” record, the system removes relations in cascade.
Example:
ServiceOrderServiceOrderItemwith a fieldserviceOrder(typeComponent)with
deleteCascade = true, when deleting the SO, deletes the related items
Use deleteCascade be careful. It can delete data in bulk.
Queries
You can add, edit and remove queries on the component table. Use to standardize filters and reuse listings.
Scripts (Python)
You can add, edit and remove Python scripts. Use for backend business rules, tied to component events.
Dashboards and reports
You can add, edit and remove reports and dashboards in the visual editor.
Frontend (generated structure)
When you check Create frontend files, Madrix creates the base frontend structure. It works as a scaffold for screens, routes and theme.
Folder structure (summary)
Public folder
favicon.ico
Private folder
components/background/(background.tsx,classes.ts,index.ts)forms/{{component_name_form.tsx}}(one form per component)
layouts/pages/protected/Home/{module}/components/(create/edit/list screens)kanban-view/reports/
public/login/index.tsx
routes/schemas/settings/theme/app.tsxglobal-config.tsglobal.cssmain.tsxvite-env.d.tssads/
Files at the root
bun.lockindex.htmlvercel.jsonFiles marked as locked (do not edit):
bunfig.tomlpackage.jsontsconfig.jsontsconfig.node.jsonvite.config.ts
File locked is managed by the platform.
Talk about Updating Madrix Core
Last updated
Was this helpful?
