Add Gutenberg block editor with Leaflet map preview and dev environment#18
Open
Add Gutenberg block editor with Leaflet map preview and dev environment#18
Conversation
- 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>
Fix class-spotmap-admin.php
…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>
Rename wp_ajax_get_positions to wp_ajax_spotmap_get_positions to avoid collisions with other plugins and follow WP naming conventions. https://claude.ai/code/session_01VwBw3gjzVsEKjqG3ZwC6GQ
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.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com