Builds a Clay config array from a per-section description.
It is the section builders above in their usual order, for a face that wants the whole page. A
face that needs its own sections in between calls the builders it wants and lays them out itself.
Some rows carry plugin source marks on every face. The WEATHER_PROVIDER and STOCK_PROVIDER
selects carry a pluginSource mark. The weather's API key and unit rows, the Location Settings
heading and its three rows, the stocks' lead line, API key, Paid Plan, and tickers, the iCal lead line, and the iCal
link carry pluginSourceHides, naming WEATHER_PROVIDER, STOCK_PROVIDER, or CALENDAR_SOURCE.
The weather lead line carries pluginSourceLead, naming WEATHER_PROVIDER, since it stays above the
select while a plugin is picked and only goes on a page with no select.
Clay ignores both, so the page is unchanged on a face without plugin sources. On a face built with
them, the weather, stock, and calendar features turn the marks into the Preferred Source option and hide
those rows while it is picked.
Top-level fields:
heading, intro page title and lead paragraph (both optional). The default title is
the app's displayName, or Settings where the build wrote none
introWithoutWeather the lead paragraph for a page left with no Weather section
Section objects (each section is customized through its own fields):
appearanceItems [ClayConfigItem] extra controls inside the Appearance section, which
shows when there is a theme, one of these, or quietTime
clockItems [ClayConfigItem] extra controls inside the Clock section
bluetooth { description? } always shown
date { label?, description?, default?, beats?, options? }
Optional sections (present = included, omitted = excluded):
steps { label?, description?, capabilities? } the steps control in the Health section
battery { label?, description? } the battery readout control in the Health section
goals { heartRate?, distanceUnit?, alerts? } the daily goals and the goal buzz in the
Health section. heartRate { description?,
capabilities? } adds the Heart Rate Limit.
distanceUnit { description? } and alerts
{ description?, vibePicks?, custom? } are on
unless set to false
theme { label?, description?, options?, previews? } the theme picker. options is the theme
list, and a picker given none has nothing to offer.
previews shows a picture beside each name, and
can be a function the page calls as it opens
clock { timeZone?, timeZonePlaceholder? } adds the alternate time zone picker to the Clock section
location { gpsDefault?, placeholder? } the GPS toggles and the manual city, which weather reads
weather {} marker, adds the provider picker to the Weather section
temperature {} marker, adds the unit dropdown to the Weather section
wind {} marker, adds the wind speed unit to the Weather section
calendar { description?, items? } the iCal link, then a face's own calendar controls
stocks { description?, items? } the data source, key, and tickers, then a face's own controls
Builds a Clay config array from a per-section description.
It is the section builders above in their usual order, for a face that wants the whole page. A face that needs its own sections in between calls the builders it wants and lays them out itself.
Some rows carry plugin source marks on every face. The
WEATHER_PROVIDERandSTOCK_PROVIDERselects carry apluginSourcemark. The weather's API key and unit rows, the Location Settings heading and its three rows, the stocks' lead line, API key, Paid Plan, and tickers, the iCal lead line, and the iCal link carrypluginSourceHides, namingWEATHER_PROVIDER,STOCK_PROVIDER, orCALENDAR_SOURCE. The weather lead line carriespluginSourceLead, namingWEATHER_PROVIDER, since it stays above the select while a plugin is picked and only goes on a page with no select. Clay ignores both, so the page is unchanged on a face without plugin sources. On a face built with them, the weather, stock, and calendar features turn the marks into the Preferred Source option and hide those rows while it is picked.Top-level fields: heading, intro page title and lead paragraph (both optional). The default title is the app's displayName, or Settings where the build wrote none introWithoutWeather the lead paragraph for a page left with no Weather section
Section objects (each section is customized through its own fields): appearanceItems [ClayConfigItem] extra controls inside the Appearance section, which shows when there is a theme, one of these, or quietTime clockItems [ClayConfigItem] extra controls inside the Clock section bluetooth { description? } always shown date { label?, description?, default?, beats?, options? }
Optional sections (present = included, omitted = excluded): steps { label?, description?, capabilities? } the steps control in the Health section battery { label?, description? } the battery readout control in the Health section goals { heartRate?, distanceUnit?, alerts? } the daily goals and the goal buzz in the Health section. heartRate { description?, capabilities? } adds the Heart Rate Limit. distanceUnit { description? } and alerts { description?, vibePicks?, custom? } are on unless set to false theme { label?, description?, options?, previews? } the theme picker. options is the theme list, and a picker given none has nothing to offer. previews shows a picture beside each name, and can be a function the page calls as it opens clock { timeZone?, timeZonePlaceholder? } adds the alternate time zone picker to the Clock section location { gpsDefault?, placeholder? } the GPS toggles and the manual city, which weather reads weather {} marker, adds the provider picker to the Weather section temperature {} marker, adds the unit dropdown to the Weather section wind {} marker, adds the wind speed unit to the Weather section calendar { description?, items? } the iCal link, then a face's own calendar controls stocks { description?, items? } the data source, key, and tickers, then a face's own controls