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

[Experiment] New block implemented by cursor #412

Closed
wants to merge 2 commits into from
Closed

Conversation

Leksat
Copy link
Member

@Leksat Leksat commented Jan 31, 2025

I tried the Composer feature of the Cursor editor.

Initial prompt:

I have a task for you:

Create a new gutenberg block "PersonTeaser" that accepts an image, a name and a birthdate. It should also be added to the graphql schema and output in the frontend.

Before starting the task, find the locations of all files which might be affected. Also, a list of files which can be used as examples.

Ask me if you aren't sure.

It showed the relevant path, but thought that the block's .ts file is the frontend. So I added:

By frontend I meant the UI package.

Then it found all the things and I asked:

Okay, let's start the implementation

After that I simply clicked Accept all


Also interesting:

Cursor was able to find Page.gql. I added same change in BlockConditional.gql.
@chindris
Copy link
Contributor

chindris commented Feb 4, 2025

This is pretty impressive! I'll give Cursor a try this week as well.

@Leksat Leksat deleted the cursor-test branch February 10, 2025 13:07
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