Skip to content

feat(roadmap): add block - #9

Merged
mukto90 merged 4 commits into
codexpertio:masterfrom
michakrapp:roadmap-block
Sep 1, 2025
Merged

mukto90 merged 4 commits into
codexpertio:masterfrom
michakrapp:roadmap-block

Conversation

@michakrapp

@michakrapp michakrapp commented Jul 11, 2025 •

Copy link
Copy Markdown
Contributor

closes #8

First version without product setting.

Use the script npm run build:blocks to build the block.
The /build/ folder will be in root (can be adjusted of course).
Did not know if you want to have the build folder in the repo.

@mukto90

mukto90 commented Jul 12, 2025

Copy link
Copy Markdown
Member

Thanks for your contribution, @michakrapp. I really appreciate it.

Before considering merging your PR, I would like to request some changes to the file structure.

As you can see, the existing app/Controller actually contains hook definitions that don't align with app/Controller/Common/Roadmap.php, which is basically a sort of "model," right?

In that case, would you mind moving the Roadmap class to the app/Model/Roadmap.php file?

@mukto90

mukto90 commented Jul 12, 2025

Copy link
Copy Markdown
Member

Also, please take care of these warnings/notices
image

@michakrapp

Copy link
Copy Markdown
Contributor Author

Sure. Tried to replicate your code style and structure.
Happy if you point out things I got wrong or not fitting.

@michakrapp

Copy link
Copy Markdown
Contributor Author

Also, please take care of these warnings/notices

You probably have to create the manifest file first, was not sure if you want the build folder in the repo
npm run build:blocks

@michakrapp

Copy link
Copy Markdown
Contributor Author

which is basically a sort of "model," right?

Is it the code load the tasks and call the view. have just moved it to its own controller, so that the shortcode and the block both can use it. If you like to have it in app/Model/Roadmap.php I will move it.

@mukto90

mukto90 commented Jul 12, 2025

Copy link
Copy Markdown
Member

Please

  • move it to app/Model/Roadmap.php and use wherever needed
  • don't include build folder in the repo

@michakrapp

Copy link
Copy Markdown
Contributor Author

moved to Model and fixed the shortcode output

@mukto90

mukto90 commented Jul 12, 2025

Copy link
Copy Markdown
Member

Thanks. I'll review and merge soon.

Also, if merged and released to the WordPress.org repo, would you like to have your name as one of the contributors?

export default function Edit() {
return (
<p { ...useBlockProps() }>
{ __( 'Roadmap – choose a product in the settings if you want', 'easyroadmap' ) }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can also change the text, since you can not choose a product yet.

@michakrapp

Copy link
Copy Markdown
Contributor Author

would you like to have your name as one of the contributors

Would appreciate that. My wp.org name is mfgmicha

@mukto90

mukto90 commented Jul 12, 2025

Copy link
Copy Markdown
Member

Sure

This was referenced Jul 12, 2025
@michakrapp

Copy link
Copy Markdown
Contributor Author

hey 👋
you had the time to look over this (and the other) PRs?

@mukto90
mukto90 merged commit 0721a78 into codexpertio:master Sep 1, 2025
@michakrapp

Copy link
Copy Markdown
Contributor Author

@mukto90 commenting here, hope that's ok.

Since this and other PRs are merged, will you do a release with the new features and fixes?

If you want, I would be happy if you include me as contributor for wp.

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.

Roadmap block

2 participants