# KRB Two Column Text & Image alternation v1

Generated for Sylvain to run in the KRB Webflow Designer Code Lab / Design API Playground.

## File

- `krb-two-column-alternate-variants-v1.js`

## Scope

- Site: Kincoppal-Rose Bay rebuild (`6a1e37436b332da28ecc3001`)
- Static pages only when `CONFIG.runScope = 'all-static-pages'`
- Current open page only when `CONFIG.runScope = 'current-page'`
- Target component: `Section / Two Column Text & Image`

## Operation

For direct sibling runs of `Section / Two Column Text & Image`, the script writes variants so eligible components alternate:

1. first eligible instance = Image Right / default
2. second eligible instance = Image Left
3. third eligible instance = Image Right / default
4. fourth eligible instance = Image Left

Any instance currently set to Image Bottom is not changed and resets/breaks the alternating run.

## How to choose scope

At the top of the JS file, set:

```js
runScope: 'current-page'
```

or:

```js
runScope: 'all-static-pages'
```

There is intentionally no dry-run option, per request. The script writes immediately, returns a structured report, and does not publish.

## Verification output

Look for `KRB_TWO_COLUMN_ALTERNATION_V1_REPORT` in the console/result. Key fields:

- `totals.changed` — number of variant writes attempted
- `totals.alreadyCorrect` — instances already matching the alternation
- `totals.bottomResets` — Image Bottom instances skipped and used as resets
- `pages[...].changes[].verified` — per-write verification readback
- `pages[...].skipped` / `warnings` / `errors` — anything requiring manual review

## Safety notes

- No publish calls.
- No delete/remove calls.
- No global style/site/redirect operations.
- Uses only page navigation, readback, component prop discovery, and `setProps` on matching instances.
