Add plugin development workbench#3970
Draft
f wants to merge 4 commits into
Draft
Conversation
| return `Using \`${ name }\`.`; | ||
| } | ||
|
|
||
| return `Using \`${ name }\` with \`${ args.replace( /`/g, '\\`' ) }\`.`; |
| } | ||
|
|
||
| function escapeMarkdownInlineCode( value: string ): string { | ||
| return value.replace( /`/g, '\\`' ); |
|
|
||
| function accountFromCookies( cookies: Array< Pick< Cookie, 'domain' | 'name' | 'value' > > ) { | ||
| const loggedInCookie = cookies.find( | ||
| ( cookie ) => cookie.domain?.endsWith( 'wordpress.org' ) && /logged_in/i.test( cookie.name ) |
|
|
||
| function isWordPressOrgCookie( cookie: Cookie ): boolean { | ||
| return ( | ||
| cookie.domain?.endsWith( 'wordpress.org' ) || |
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.
Related issues
How AI was used in this PR
This prototype was built collaboratively with AI assistance across planning, implementation, refactoring, and test coverage. I reviewed the generated changes while iterating locally and used the running Studio app to check the main user-facing flows during development.
Proposed Changes
This is intentionally a draft PoC. Before this could land, I expect the team will want to revisit product scope, architecture boundaries, naming, polish, and what belongs in core Studio versus later extension points.
Testing Instructions
npm startand open a plugin project from the Plugins area./fix-plugin, and confirm proposed file changes can be reviewed by chunk/file.Validation I ran locally:
npx eslint --fix ...on the modified files. CSS/package files produced expected “file ignored” warnings from the eslint config.npm test -- apps/studio/src/modules/plugin-development/lib/tests apps/studio/src/modules/plugin-development/components/project-workbench apps/studio/src/components/studio-code-session/composer apps/studio/src/tests/show-site-context-menu.test.ts tools/common/lib/tests/html-entities.test.tsnpm run typecheckgit diff --checkPre-merge Checklist