Skip to content

Add a screenshot and remove the functions.php file#13

Merged
scruffian merged 1 commit into
trunkfrom
add/screenshot
Nov 17, 2021
Merged

Add a screenshot and remove the functions.php file#13
scruffian merged 1 commit into
trunkfrom
add/screenshot

Conversation

@scruffian
Copy link
Copy Markdown
Contributor

This adds a blank screenshot to the child theme and removes the functions.php file.

@scruffian scruffian requested a review from a team November 17, 2021 20:25
@scruffian scruffian self-assigned this Nov 17, 2021
Copy link
Copy Markdown
Contributor

@pbking pbking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How cool is that?
Loving how super-small these child themes are able to get!

@scruffian scruffian merged commit a8496df into trunk Nov 17, 2021
@scruffian scruffian deleted the add/screenshot branch November 17, 2021 20:32
bph added a commit that referenced this pull request May 22, 2026
Bugs / correctness:

- addColor: derive next index from the max existing `new-color-N` suffix
  instead of `value.length + 1`. Add → Remove → Add no longer produces
  duplicate slugs (P1).
- Palette rows: assign a stable client-only `__cbtRowId` at creation
  time and use it as the React key, so removing a middle row no longer
  leaks Dropdown/ColorPicker state to subsequent rows. The ID is
  stripped from the payload before posting.
- Update button: disable when any palette row has an empty slug; show
  a tooltip explaining why. Prevents the modal from POSTing an entry
  with `slug: ""`.

Concurrent edits / lost updates (Codex P2, reviewer #12, #13):

- Build a minimal patch on save: only the color-settings keys that
  differ from the snapshot, and the palette only if the user touched
  it. Stops unrelated toggles from clobbering a concurrent palette
  edit (RFC 7396 list-replacement) made elsewhere.
- Skip the post-refresh reseed effect while the user has unsaved
  edits, so a mid-flight cache invalidation doesn't silently wipe
  in-progress work.
- changeCount now reports `dirtyColorKeys.length + (paletteDirty ? 1
  : 0)` — toggles count individually, palette counts as one unit.
  Documented in the PR description.

i18n:

- Update label uses `_n( 'Update (%d change)', 'Update (%d changes)',
  count )` so single-change pluralization is correct.
- Section list in the warning notice uses `Intl.ListFormat` for
  locale-aware joining instead of a hard-coded English comma, with a
  plain `, `.join() fallback for environments without it.

SCSS / observability:

- Replace hard-coded `#757575`, `#ddd`, `#fff` with `$gray-700`,
  `$gray-300`, `$white` from `@wordpress/base-styles/_colors`.
- json-editor-modal: log fetch failures via `console.error` instead
  of swallowing them silently.

Refs #838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants