Skip to content

Add Gutenberg block editor with Leaflet map preview and dev environment#18

Open
techtimo wants to merge 63 commits intomasterfrom
claude/check-todo-zTi2F
Open

Add Gutenberg block editor with Leaflet map preview and dev environment#18
techtimo wants to merge 63 commits intomasterfrom
claude/check-todo-zTi2F

Conversation

@techtimo
Copy link
Copy Markdown
Owner

  • Add spotmap block with edit.jsx (React/Leaflet preview), block.json, and dynamic server-side rendering
  • Set up @wordpress/scripts build system and wp-env dev environment
  • Add sample data import scripts for development
  • Update public class for block registration and script enqueuing

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

timogiese-ads and others added 30 commits March 11, 2026 17:23
- Add spotmap block with edit.jsx (React/Leaflet preview), block.json, and dynamic server-side rendering
- Set up @wordpress/scripts build system and wp-env dev environment
- Add sample data import scripts for development
- Update public class for block registration and script enqueuing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…tions

Explains prerequisites (Node.js, Docker), step-by-step first-time setup,
WordPress admin URL/credentials, and a table of all useful dev commands.

https://claude.ai/code/session_011oX5Jy4B5HqCagguMsDsxV
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ove()

Prevents stale map callbacks after React effect re-runs by using a
_destroyed flag instead of checking internal Leaflet properties.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- copy-deps copies .map files in dev, strips sourceMappingURL in production
- npm run start now runs copy-deps (dev) before watch
- npm run build uses copy-deps:prod (--strip-maps)
- plugin-zip now runs build first

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Overrides core.autocrlf=true so working tree files are written as LF
on checkout. Re-normalizes previously CRLF files in the index.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add sanitize_text_field callback when registering the password setting
- Remove commented-out error_log calls that would have exposed passwords and feed URLs in logs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

3 participants