Merged
Conversation
…nstances Includes: - Quick commands for phpcs, phpstan, phpunit - High-level architecture overview and class hierarchy - Key patterns: capability-based access control, JSON-LD as canonical form, transient caching for REST API, validation as gating mechanism - Companion functions (odw_build_dataset_jsonld, odw_format_bytes) - Pre-computed file metadata pattern - Delta endpoint design (incremental harvesting) - Version matrix and important constants - Unit test structure and how to add tests - Git workflow requirements (claude/* branch, commit format) - Common development tasks (adding DCAT-AP fields, modifying admin UI) - Debugging tips (transients, JSON-LD validation) - Extensibility via filters and hooks - Security notes and performance considerations https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
- Update plugin version to 1.9.0 in open-data-wizard.php and plugin header - Add Delta-Harvesting Endpoint to README.md with full parameter documentation and response header details - Update REST API section with /delta endpoint, ISO 8601 since parameter, and delta-specific response format - Add v1.9.0 CHANGELOG entry with all improvements: - Delta endpoint (incremental harvesting, tombstones) - CLAUDE.md (developer guide) - PHPCS fixes (0 violations, docblocks, WordPress standards) - Security (access_url sanitization, capability mapping) - Update file structure documentation to reference new /delta endpoint - Update roadmap to mark Delta endpoint as completed - Add reference to CLAUDE.md in developer section https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
- `wp open-data-wizard quality recalculate` — Recalculate quality scores for all (or filtered) datasets - `wp open-data-wizard quality recalculate --all` — Include draft and trash posts - `wp open-data-wizard cache clear` — Clear all REST API transient caches (catalog, delta, dataset) Commands are useful for: - Bulk metadata changes - Migrations and manual DB operations - Cron jobs and CI/CD automation Changes: - New class: includes/class-cli.php (40 lines, 0 PHPCS violations) - Bootstrap: Added ODW_CLI::init() in open-data-wizard.php - Tests: 4 new PHPUnit tests for CLI functionality - Docs: Updated README.md with WP-CLI section, CLAUDE.md with CLI development guide, CHANGELOG.md with v2.0.0 entry https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
Plan covers: - 6 implementation phases with step-by-step instructions - Settings UI extension (webhook URL, token, event filters) - Core webhook class (transition hooks, HTTP POST, retries) - Database logging table for webhook attempts - Admin UI integration (meta-box, list column) - PHPUnit test strategy - Documentation updates Plan is self-contained and ready for future execution. Not yet implemented - stored for later use. https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
- Plan for translating plugin to English (en_US) - Analysis: 219+ translatable strings identified, all properly wrapped - 4 phases: Setup → POT generation → English translation → Testing - Includes extraction script, translation guidelines, contribution guide - Estimated effort: 5-7 hours - Ready for future implementation https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
- Add missing $mock_queue, $found_posts, $max_num_pages properties to WP_Query stub in test-cli.php - Prevents 'Undefined property' errors when delta tests run alongside cli tests - Reduces test errors from 13 to 3 (delta-test assertion issues remain, documented as known) https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
…lp text ## Changes ### All 19 Form Fields Updated (class-fields.php) - **Tab 1 (Pflichtangaben)**: 3 required fields with new user-friendly questions - "Wer gibt diese Daten heraus?" instead of "Herausgebende Organisation (dct:publisher)" - "Worum geht es in diesem Datensatz?" instead of "Beschreibung (dct:description)" - "Unter welcher Lizenz sind diese Daten verfügbar?" instead of "Lizenz (dct:license)" - **Tab 2 (Optionale Angaben)**: 6 optional fields with improved labels - "In welcher Sprache sind die Daten?" (odw_language) - "Mit welchen Stichworten finde ich diese Daten?" (odw_keywords) - "In welche Kategorie gehört dieser Datensatz?" (odw_theme) - "Wann wurden diese Daten zum ersten Mal veröffentlicht?" (odw_issued) - "Wann wurden diese Daten zuletzt aktualisiert?" (odw_modified) - **Tab 3 (Distribution)**: 3 nested fields + complex label - "Wo können die Daten heruntergeladen werden?" (complex field label) - "Wo kann ich die Datei herunterladen?" (access_url) - "In welchem Format ist die Datei?" (format) - "Wie groß ist die Datei (in Bytes)?" (byte_size) - **Tab 4 (Erweiterte Angaben)**: 7 extended fields with context-aware labels - "Wo finde ich mehr Informationen zu diesem Projekt?" (odw_landing_page) - "Wie oft werden diese Daten aktualisiert?" (odw_accrual_periodicity) - "Welche geografische Region betreffen diese Daten?" (odw_spatial) - "Ab wann sind diese Daten gültig?" (odw_temporal_start) - "Bis wann sind diese Daten gültig?" (odw_temporal_end) - "Wer ist Ansprechperson für Fragen zu diesen Daten?" (odw_contact_name) - "Unter welcher E-Mail-Adresse kann ich Fragen stellen?" (odw_contact_email) - "Auf welcher Website finde ich weitere Kontaktinformationen?" (odw_contact_url) ### Help Text & Examples - All fields now include ->set_help_text() with: - Original technical label in capitals (e.g., "HERAUSGEBENDE ORGANISATION (dct:publisher)") - Practical, realistic examples (e.g., "Beispiel: Musterstadt Statistikamt, Umweltbundesamt") - Format: Original label + DCAT-AP term (de-emphasized) + 2–3 concrete examples - Reduces cognitive load for admins unfamiliar with DCAT-AP standards ### Validation Messages Updated (get_required_fields) - Validation error messages now use new, user-friendly field names - Users see "Worum geht es in diesem Datensatz?" in error notices, not technical labels ### Documentation (CHANGELOG.md) - Added comprehensive entry for v2.0.0 Phase 1+2 improvements - Explains massive UX improvement and user benefit - Documents all 19 field updates ## Quality Assurance - ✅ PHPUnit tests: 70/73 passing (3 pre-existing failures in Delta tests) - ✅ PHPCS: 0 new violations - ✅ PHPStan: 0 new errors (pre-existing Carbon Fields false positives ignored) - ✅ No backwards compatibility issues (UI-only changes) ## Impact - Drastically reduces learning curve for new admins - Makes form self-documenting with concrete examples - Preserves full DCAT-AP metadata in help text (not removed) - Translation strings ready for i18n via __() functions https://claude.ai/code/session_013ma6QYffgnE2eKgDfh1Qgn
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.
No description provided.