Skip to content

Fix plugin native issues#148

Merged
AllTerrainDeveloper merged 5 commits into
trunkfrom
fix-plugin-native-issues
May 11, 2026
Merged

Fix plugin native issues#148
AllTerrainDeveloper merged 5 commits into
trunkfrom
fix-plugin-native-issues

Conversation

@AllTerrainDeveloper
Copy link
Copy Markdown
Collaborator

@AllTerrainDeveloper AllTerrainDeveloper commented May 11, 2026

Closes #145

Open WordPress Playground Preview
- Import `setUserEditTarget` synchronously in `desktop.ts` to ensure the user-edit window reads the correct target immediately after a row click, preventing fallback to the viewer's ID.
- Update `index.ts` to re-pin the active window ID before re-mounting the user-edit form, ensuring the correct configuration is used and preventing stale subscriptions from clearing the target.
- Refactor `user-edit-render.ts` to merge configuration from both the user-edit and users windows, ensuring that role and color scheme options are available even if the active window ID has drifted.
- Implement a new `resolveProfileConfig` function to layer user-edit window configuration under the active configuration, providing necessary keys for rendering.
- Add tests to verify the correct behavior of the user-edit window, including role assignment, color scheme selection, and ensuring the UI reflects changes after updates.
- Ensure that the role select remains hidden when the viewer is editing their own profile, matching core behavior.
- Updated the `mountProfileForm` function to ensure that boolean values from checkbox inputs are converted to their corresponding string representations ('true'/'false') before being sent in the REST API request. This prevents schema validation errors related to the `meta.rich_editing` field.
- Added a regression test to verify that all meta checkbox values are saved as strings, ensuring compliance with the WP REST schema and preventing silent failures during user role changes.
… edit save confirmation

- Updated the notification mechanism to use `wp.desktop.showToast` for displaying save success messages.
- Introduced `ShellToastApi` interface to define the new toast API.
- Modified `notifyToast` function to handle different durations for success and error messages.
- Adjusted the profile header update logic to minimize DOM manipulation during user profile updates.
- Added tests to ensure the new toast notification is triggered correctly on successful save.
@github-actions
Copy link
Copy Markdown
Contributor

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@AllTerrainDeveloper AllTerrainDeveloper merged commit a453fec into trunk May 11, 2026
5 checks passed
@AllTerrainDeveloper AllTerrainDeveloper deleted the fix-plugin-native-issues branch May 11, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant