Repository navigation
Rename to CreatePress, add About, new icon, fix blank New Post pane - #3
Merged
Merged
Conversation
- Fix: New Post / New Page opened a blank pane. Tauri's app-wide freezePrototype option is injected into every webview, including the site's wp-admin, where freezing Object.prototype breaks WordPress's own scripts (moment, @wordpress/components). Turn it off and freeze the prototype in the shell webview only. - Rename the app to CreatePress everywhere: product name, binary, bundle identifier (net.realact.createpress), window titles, menus, keychain service, sign-in callback scheme, docs. The companion plugin becomes CreatePress Bridge (createpress-bridge, REST namespace createpress/v1). - Add an About CreatePress sheet (sidebar, Help menu, macOS app menu) crediting Eli Linares with a link to realact.net. The editor pane is hidden while it is open. - New full-bleed icon with a larger page and pencil; SVG source added and all platform sizes regenerated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HV1v7f4dNux4ZFfcMJhosY
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HV1v7f4dNux4ZFfcMJhosY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Eli · project thread
Before: clicking New Post or New Page showed a blank white pane on macOS and Linux. The app was called "WordPress Remote Editor", had no About screen, and its icon was a small page and pencil on a blue tile with a transparent margin.
After: the site's block editor loads and works. The app is called CreatePress everywhere. An About CreatePress sheet credits Eli Linares and links to realact.net. The new icon is full-bleed blue with a larger page and pencil.
The blank pane came from Tauri's app-wide
freezePrototypeoption. Tauri injects it into every webview, including the site's wp-admin, and freezingObject.prototypebreaks WordPress's own scripts (moment,@wordpress/componentsthrow "Cannot assign to read only property"). This affected Windows too.How
tauri.conf.json:freezePrototypeis now off. The shell webview freezes its own prototype through an initialization script, so the shell keeps the same protection. A regression test checks this.createpress, bundle idnet.realact.createpress, window titles, menus, keychain service, thecreatepress://sign-in callback, README and docs. The plugin is now CreatePress Bridge (plugin/createpress-bridge, RESTcreatepress/v1). Because the bundle id changed, sites added in 0.1.0 have to be added again, and the plugin must be reinstalled from the new zip.editor_set_hiddencommand hides the editor pane while the sheet is open.src-tauri/icons/icon.svg, and every size is regenerated withtauri icon.Tested on Linux against WordPress 6.5 with full Gutenberg assets. With the old setting, New Post gives "The editor has encountered an unexpected error". With this change the editor loads, typing works, the toolbar tracks state, and About opens over the editor and closes back to it. Checks run:
npm test,npm run build,cargo clippy -D warnings,cargo test, andphpcs.🤖 Generated with Claude Code
https://claude.ai/code/session_01HV1v7f4dNux4ZFfcMJhosY
Generated by Claude Code