Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFest Hackathon overview issue #124

Closed
adamziel opened this issue Feb 2, 2023 · 8 comments
Closed

CloudFest Hackathon overview issue #124

adamziel opened this issue Feb 2, 2023 · 8 comments

Comments

@adamziel
Copy link
Collaborator

adamziel commented Feb 2, 2023

This issue lists ideas relevant to the In-browser WordPress development environment project that will be pursued at CloudFest Hackaton 2023.

Most relevant:

Less relevant:

Let's use it to coordinate any ideas, required pre-work, and the project itself.

cc @schlessera @swissspidy @gziolo @danielbachhuber

@danielbachhuber
Copy link
Member

danielbachhuber commented Feb 2, 2023

Thanks for putting together these issues, @adamziel !

I haven't touched the codebase at all, so I'll spend some time with it in the next couple of weeks and report my findings on the various issues.

@gziolo
Copy link
Member

gziolo commented Feb 3, 2023

That's a solid list of tasks to hack on 🔥

I'm wondering why you included #14 (setup code linters in the repo) on the most relevant list. It doesn't seem to be something that would appeal to folks watching the demo at the end of hackathon 😄

@adamziel
Copy link
Collaborator Author

adamziel commented Feb 3, 2023

@gziolo that particular one I meant more as a pre-work – I'd love folk to clone the repo and have the linter already there, I remember it took us a while to get there last year.

@gziolo
Copy link
Member

gziolo commented Feb 6, 2023

There is another exciting idea we could attack. I know @adamziel started exploring possibilities for using WordPress Playground for testing pull requests from the Gutenberg repository. At the moment a different solution exists gutenberg.run available at http://gutenberg.run that uses a much more complex stack that could be replaced with WordPress Playground that only needs a copy of the plugin with changes applied in PR that is prepared for usage in the browser.

Finally, it could become a general-purpose solution for any WordPress plugin or theme, as outlined by @fabiankaegy in https://github.com/fabiankaegy/wp-wasm-deploy-preview-example.

@adamziel
Copy link
Collaborator Author

adamziel commented Feb 6, 2023

I got Proof of Concept of the Gutenberg previewer to work in #126

The biggest technical limitation is the incomplete SQLite support.

What we could explore in Rust:

  • Show the PR code in a code editor, allow reviewing inline and fixing small bugs with real git commits
  • Preview WordPress Pull Requests, not just Gutenberg Pull Requests
  • Attach a test database to the PR and have the Playground automatically load it
  • Add UI controls to switch WordPress and PHP versions – it's already possible via query parameters (?wp=6.0, ?php=7.3)

@artemiomorales artemiomorales changed the title CloudFest Hackaton overview issue CloudFest Hackathon overview issue Feb 6, 2023
@danielbachhuber
Copy link
Member

Here's a classic WP-CLI contributor workflow gap I'd love to see solved (wp-cli/i18n-command#351 (comment))

image

Essentially, the contributor was able to grok the codebase well enough to submit their change, but including tests has the appearance of being too daunting.

It would be really cool if WordPress Playground could provide them an environment and user experience for adding the tests:

  1. Click 'Launch WordPress Playground' button.
  2. Two-pane window opens with a code editor on the left and CLI on the right.
  3. It's possible to make changes to the repository files on the left, and then run composer behat in the CLI.

@adamziel
Copy link
Collaborator Author

adamziel commented Feb 8, 2023

@danielbachhuber I don't see any technical blockers 🎉 putting these pieces together will take work, but technically everything is already supported.

@adamziel
Copy link
Collaborator Author

adamziel commented Mar 24, 2023

Closing this since the Hackaton is now over. Thank you everyone!

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

No branches or pull requests

4 participants