Skip to content

feat: add core user admin preferences fields to User type#3571

Merged
jasonbahl merged 2 commits into
mainfrom
feat/user-admin-preferences-fields-v2-main
Feb 10, 2026
Merged

feat: add core user admin preferences fields to User type#3571
jasonbahl merged 2 commits into
mainfrom
feat/user-admin-preferences-fields-v2-main

Conversation

@jasonbahl

Copy link
Copy Markdown
Collaborator

Addresses Issue #479

Cherry-picked from PR #3551 to target main instead of develop.

izzygld and others added 2 commits February 10, 2026 13:41
This adds the following fields to the User type that were previously missing
from the core WordPress user meta:

- adminColor: The admin color scheme preference (fresh, midnight, etc.)
- hasRichEditingEnabled: Whether the visual editor is enabled
- hasSyntaxHighlightingEnabled: Whether code syntax highlighting is enabled
- hasCommentShortcutsEnabled: Whether comment moderation shortcuts are enabled

These fields follow the declarative naming convention suggested in #479.

Closes #479
@vercel

vercel Bot commented Feb 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
wpgraphql-com Skipped Skipped Feb 10, 2026 8:42pm

@codecov

codecov Bot commented Feb 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.2%. Comparing base (e81142e) to head (9a517de).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
plugins/wp-graphql/src/Model/User.php 93.3% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##              main   #3571   +/-   ##
=======================================
  Coverage     83.2%   83.2%           
- Complexity    4232    4239    +7     
=======================================
  Files          221     221           
  Lines        19128   19174   +46     
=======================================
+ Hits         15917   15960   +43     
- Misses        3211    3214    +3     
Flag Coverage Δ
wp-graphql-wpunit-twentytwentyfive-multisite 83.2% <96.7%> (+<0.1%) ⬆️
wp-graphql-wpunit-twentytwentyfive-single 83.2% <96.7%> (+<0.1%) ⬆️
wp-graphql-wpunit-twentytwentyone-multisite 83.2% <96.7%> (+<0.1%) ⬆️
wp-graphql-wpunit-twentytwentyone-single 83.2% <96.7%> (+<0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
plugins/wp-graphql/src/Type/ObjectType/User.php 99.2% <100.0%> (+0.1%) ⬆️
plugins/wp-graphql/src/Model/User.php 98.1% <93.3%> (-1.9%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jasonbahl jasonbahl merged commit 2ee4e9b into main Feb 10, 2026
64 of 68 checks passed
@jasonbahl jasonbahl deleted the feat/user-admin-preferences-fields-v2-main branch February 10, 2026 21:00
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