Complete API-driven workflow for AI styling ANTSAND Databoard websites.
The loop is inspect, patch, compile utilities, deploy, smoke test, and iterate.
Authenticate once and operate on behalf of the Databoard owner.
Write content to databoard.menu topo, then map sections to that source.
Utilities, Sass, Volt, routes, ACL, and deployment stay in one pipeline.
Every generated page can be verified with HTTP and semantic contract tests.
Each step is intentionally small and repeatable. Do not skip directly to styling until the data source and mapping are valid.
Find the board id and confirm the API key belongs to the correct user.
curl -H "Authorization: Bearer YOUR_API_KEY" /api/v1/databoards
Read list, menu, sass, page settings, and existing section mappings.
curl -H "Authorization: Bearer YOUR_API_KEY" /api/v1/databoards/{BOARD_ID}
Use patch_delta ensure_menu for editable data and ensure_section for template mapping.
{"data_mapping":{"api_data":[["api_data"],["databoard","menu","stylesdoc_hero"]]}}
Scan css_class fields and emit board-local utility CSS for the classes used by this site.
curl -X POST -H "Authorization: Bearer YOUR_API_KEY" /api/v1/databoards/{BOARD_ID}/utilities/compile
Generate controllers, views, routes, ACL, assets, api_data.json, and the deployable Phalcon app.
curl -X POST -H "Authorization: Bearer YOUR_API_KEY" /api/v1/databoards/{BOARD_ID}/deploy
Confirm the public route returns clean HTML/HTTP before iterating further.
curl -s -o /dev/null -w "%{http_code}" http://YOUR_SITE_URL/docs/agentquickstart
Patch one section at a time. If a pattern repeats, promote it to a renderer/Sass contract and add a test.
Most styling changes belong in Databoard field CSS. Reusable visual language belongs in Sass v2 only after it repeats.
Use for section-level and field-level classes: section.container, data.container, data.sub_container, data.h3, data.p, data.cta.
Use for website-specific classes and brand-specific layout. It compiles into common_styles for that board.
Use after field classes are assigned. It scans css_class values and emits needed utilities into board Sass.
Use only for reusable framework behavior: nav, cards, buttons, docs code blocks, accessibility, themes.
Use when content fits Header / Body / Footer. Most docs, cards, hero, CTA, nav, footer, and prose sections fit.
Add only when the same non-H/B/F pattern repeats, such as live component examples or rich API tables.
These are the failures that made the migration noisy. They should be visible to agents before deployment.
section.data.api_data is preview/fallback. Real editable data belongs in databoard.menu.
data_mapping.api_data[0] and [1] are an atomic destination/source pair. Replacing them avoids corrupt paths.
Multiple pages can be named Databoard, Index, or Buttons. The page route is the true identity.
Every page maps to stylesdoc_topnav and stylesdoc_footer so global navigation updates once.