Skip to content

feature/design-tokens-module#997

Draft
d4mation wants to merge 122 commits into
masterfrom
feature/design-tokens-module
Draft

feature/design-tokens-module#997
d4mation wants to merge 122 commits into
masterfrom
feature/design-tokens-module

Conversation

@d4mation
Copy link
Copy Markdown
Contributor

@d4mation d4mation commented Jun 1, 2026

🎫 https://linear.app/nexcess/project/design-system-7186b33eeebd/overview

...

Checklist

  • I have performed a self-review.
  • No unrelated files are modified.
  • No debugging statements exist (Ex: console.log, error_log).
  • There are no warnings or notices in the wordpress error log.
  • Passes all tests (linting, acceptance, & unit)

Block specific checklist (where relevant)

  • Tested with an existing instance of this block .
  • Tested creating a new instance of this block.
  • Tested with Dynamic content & Elements.

dave-green-uk and others added 3 commits June 1, 2026 15:45
Stand up a dedicated Codeception 'snapshot' suite so snapshot tests can be written for generated DTCG documents as part
of the Kadence AI -> Design System project.

- Add dev dependency lucatume/wp-snaphot-assertions (spatie snapshot assertions)
- Add tests/snapshot.suite.yml + tests/snapshot/_bootstrap.php (--debug ->
  --update-snapshots glue)
- Add SnapshotTester actor and Helper/Snapshot module
- Add Tests\Support\Classes\SnapshotTestCase base class with an
  assertMatchesJsonSnapshot() override that snapshots pretty-printed JSON via
  the text driver (avoids spatie's lossy JSON round-trip that coerces {} to [])
- Run the snapshot suite in CI
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

🎉 Zip build complete

Build timestamp

d4mation and others added 26 commits June 1, 2026 12:36
…ethod

Spatie's MatchesSnapshots declares assertMatchesJsonSnapshot() as
public; overriding it with the same visibility keeps it a clean
drop-in and avoids narrowing the contract.
The StellarWP DB layer throws DatabaseQueryException on a write error rather
than returning false, so the previous '=== false' guards were unreachable and
the bool return types implied a failure signal that can never occur.

- Revert save_document() and bump_version() to void; document that a failed
  write throws, so the change action only fires on success.
- Replace the mock-based tests (which failed because Token_Store is final and
  cannot be doubled) with one test that triggers a real DatabaseQueryException
  and asserts the change action does not fire.

Fixes the wpunit CI failures.
[DTM] Token Registry + register_design_token() helper
pauloiankoski and others added 30 commits June 3, 2026 21:01
[DTM] Token Resolver — effective-document merge, alias flattening, CSS renderers
…ry-table

[DTM] Record previous document on token save in kb_design_tokens_history
[DTM] Resolver caching — wp_cache L2 layer for Token_Resolver
- Add abstract Rest\V1\Controller base (kb-design-tokens/v1 namespace, edit_theme_options capability gate behind the kadence_blocks_design_tokens_capability filter)
- Add versioned REST providers: Rest\Provider boots version sub-providers, Rest\V1\Provider registers controllers on rest_api_init
- Register Rest\Provider in Design_Tokens_Provider
- Add wpunit coverage for the base controller's namespace, capability, and permission gate
- Relocate abstract Controller to Rest\V1\Contracts
- Import the contract in Rest\V1\Provider and mirror the test path
Describe the class instead of the design rationale.
permission_check() is the only caller and WP always supplies a
WP_REST_Request, so drop the speculative nullable default.
Now extending classes don't have to check for it being non-falsy
…ller-skeleton

feat: Design Tokens REST controller skeleton (SOFT-3387)
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.

3 participants