Getting started (4.15.2)
It replaces the Home list. includes/modules/class-builder-os-setup-guide.php (Builder_OS_Setup_Guide), with admin/css/builder-os-setup-guide.css and admin/js/builder-os-setup-guide.js, only on BuilderOS screens (Builder_OS_Admin::is_plugin_screen(), outside the first run) and for manage_options.
- Pill in the top bar, before the tools: “Getting started”, ring and “N of M” (required steps done or skipped). Server-side figure, tabular numbers and reserved width (zero CLS). On mobile (≤600 px) it becomes a round button with the ring; the figure goes in its
aria-label.aria-expandedandaria-controls="bos-sg-panel". - Panel floating at the bottom right (named region, not modal); on mobile (≤600 px), a bottom sheet. Collapsible groups (buttons with
aria-expanded): the first one with something required pending opens. Each step: title, a line on what it is for, action button, “How does it work?” if it has a guide and the checkmark if done. Footer: “See the full guide” (?tab=setup&view=all, painted from the same registry). Closing (×) or Esc only minimizes it to the pill and returns focus. - When it shows. The pill stays on every BuilderOS screen until all required steps are done; optional ones don’t keep it. It cannot be dismissed. Help → “Getting started” (formerly “Setup guide”) also opens the panel while anything remains; once finished, it leads to the full guide. It is not a notice: it does not go to the bell.
- Per-user preferences: meta
bos_setup_guide={ view: open|min, groups: [ids abiertos] }, saved throughadmin-ajax.php?action=bos_setup_guide(POST, noncebos_setup_guide,manage_options; otherwise 403).op=refreshrecalculates and returnssig, figures and the groups’ HTML; the JS only changes the content if the signature changed. - Cost.
Builder_OS_Setup::summary()stores the summary for 5 minutes in the transientbos_setup_summary(one per language). It is recalculated when the panel opens, when the guide state is saved, after eachbos_setupaction and when painting the full guide (Builder_OS_Setup::flush()).
Groups (Builder_OS_Setup::groups(), filter builder_os_setup_groups, id => title, in order): base First things first (identity, front page, email, license, clean URLs) · build Build the site · crm From lead to sale (the steps are added by the CRM) · measure Measurement and SEO · shop Store (only with WooCommerce) · protect Security and backups · launch Go live. A group with no visible steps doesn’t show.
Add steps from another module (without touching class-builder-os-setup.php):
add_action( 'builder_os_setup_register', function () {
Builder_OS_Setup::register_steps( 'crm', array(
'crm_sender' => array(
'title' => __( 'Remitente de los correos', 'builder-os' ),
'why' => __( 'Para que tus correos lleguen con tu nombre y no a spam.', 'builder-os' ),
'label' => __( 'Configurar', 'builder-os' ),
'url' => admin_url( 'admin.php?page=builder-os-crm-settings' ),
'check' => array( 'Mi_Clase', 'check_sender' ), // array( 'done'|'todo'|'warn'|'na', 'detalle' ) o solo el estado.
'optional' => false,
'howto' => 'crm-automations', // Builder_OS_Board::register_howto().
'module' => 'crm',
),
) );
} );- The action fires once, the first time the steps are requested;
register_steps()can also be called directly. An existing id is replaced (that’s how the CRM replaces the corecrmstep). - Fields:
title(required),why(one line),text(the full guide; defaults towhy),label+url(withouturl, the full guide at that step),check,optional,howto,module,route('',ai,nocode). - Statuses:
done,todo,warn(shown with its detail) andna(hidden). A check that fails givesna. - Modules:
Builder_OS_Setup::module_active( $module )(WooCommerce and the CRM are looked at there; filterbuilder_os_setup_module_active). With the module off, the step isn’t checked and doesn’t show. The CRM adds its own (Builder_OS_CRM_Setup::register_setup(), idscrm_<key>) in thecrmgroup. builder_os_setup_stepsstays the same (all the steps already checked); half-defined steps you add are completed with the defaults.
Account menu (4.15.2). The theme (Light, Dark, System: menuitemradio with aria-checked, data-bos-theme-set, saved in bos_theme with BOS.theme.set()) and “Settings” (data-bos-settings-btn, aria-current on its screen) are no longer bar icons: they go in the avatar menu, under the name. The bar keeps Getting started, Clear cache, Search, the bell and the account.