26 Commits

Author SHA1 Message Date
9c8ddc555c feat: add core implementation files for phases 4-6
Add missing implementation files and planning docs:
- Phase 04: Shortcode handler and date helpers for form rendering
- Phase 05: Planning documentation for volume calculations
- Phase 06: Email generator for legacy HTML table format

These complete the form rendering, calculation, and email system.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 23:06:23 +09:00
82e856e098 docs(07-01): complete captcha & validation plan
Phase 7 implementation complete:
- Created captcha verification class
- Added inline form validation
- Integrated captcha with form
- Added error styling
- Updated all documentation

All 7 phases now complete! Plugin ready for testing.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:33:10 +09:00
7967756a68 feat(07-01): load captcha class
- Add class-captcha.php to dependencies
- Load before form renderer for availability

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:53 +09:00
363bf2f9fc feat(07-01): add error styling
- Red border and background for invalid fields
- Error message styling (red text)
- Validation summary box with red border
- Captcha widget margin spacing
- Consistent error color (#d32f2f)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:49 +09:00
d1d71a5e4e feat(07-01): integrate captcha verification in form handler
- Verify captcha after nonce check
- Support all three providers
- Store captcha errors in transient
- Redirect back to form on verification failure
- German error message for failed captcha

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:42 +09:00
64f25041ad feat(07-01): add captcha widget and error display
- Render validation errors from transient at form top
- Display error summary with red border
- Integrate captcha widget in submit section
- Position captcha above submit button
- Delete transient after displaying errors

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:35 +09:00
78102c0ab4 feat(07-01): add inline form validation
- Client-side validation on blur and submit
- Email format validation
- Required field validation
- Furniture items validation (at least one)
- Date field validation
- Inline error messages (no JavaScript alerts)
- Auto-scroll to first error
- Error clearing on field input

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:26 +09:00
486d88e5b1 feat(07-01): create captcha verification class
- Support for reCAPTCHA v2, v3, and hCaptcha
- Server-side verification with wp_remote_post
- Automatic script enqueuing based on provider
- Widget rendering for all three providers
- reCAPTCHA v3 score checking (>= 0.5)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 12:30:18 +09:00
17cc2db0a0 docs(03-01): complete settings system plan
Tasks completed: 3/3
- Settings class with WordPress Settings API
- Settings sections and fields with German labels
- Settings save confirmation

SUMMARY: .planning/phases/03-settings/03-01-SUMMARY.md
2026-01-16 11:47:46 +09:00
dca1cf7f37 feat(03-01): add settings save confirmation
- Added settings_errors() call to display WordPress admin notices
- get_option() helper method already implemented for clean API access
- Settings now show success message after save
- All settings validated and persisted via WordPress Settings API
2026-01-16 11:46:23 +09:00
6cfa6e2451 feat(03-01): add settings sections and fields with German labels
- Three sections: Email, Captcha, Form settings
- Email: receiver address field with validation
- Captcha: provider dropdown (none/reCAPTCHA v2/v3/hCaptcha) with dynamic key fields
- Form: thank you URL field
- JavaScript to show/hide captcha keys based on provider selection
- All labels and descriptions in German
2026-01-16 11:46:08 +09:00
e87d974f71 feat(03-01): create settings class with WordPress Settings API
- Settings class with singleton pattern
- Registered 5 settings: receiver_email, captcha_provider, captcha_site_key, captcha_secret_key, thankyou_url
- Proper sanitization callbacks for each setting type
- Helper method get_option() for clean API access
- Integrated with admin menu structure
2026-01-16 11:45:16 +09:00
b62b3467ca docs(03): create phase plan
Phase 03: Settings System
- 1 plan created
- 3 tasks defined
- Ready for execution
2026-01-16 11:38:01 +09:00
4ba0fed007 docs(02-01): complete legacy data extraction plan
- Created 02-01-SUMMARY.md with accomplishments and data breakdown
- Updated STATE.md: Phase 2 complete, progress 29%
- Updated ROADMAP.md: Phase 2 marked complete (1/1 plans)
- All 118 furniture items + 32 additional work fields extracted

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 11:34:18 +09:00
4d2a584e08 feat(02-01): extract additional work sections from legacy
- Added 6 additional work sections: Montage, Schrank, Elektriker, Dübelarbeiten, Packarbeiten, Anfahrt
- Each section includes label, fields with type information
- Field types: checkbox, abbau_aufbau, checkbox_anzahl, text
- Total: 32 additional work fields across 6 sections
- Preserves exact field names and structure from legacy

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 11:32:56 +09:00
5bb324c4c3 feat(02-01): extract furniture data from legacy into structured class
- Created Umzugsliste_Furniture_Data class with singleton pattern
- Extracted all 118 furniture items from 7 rooms with exact cbm values
- Preserved exact item names and order from legacy liste.php
- Room structure: wohnzimmer (32), schlafzimmer (15), arbeitszimmer (11), bad (3), kueche_esszimmer (18), kinderzimmer (18), keller (21)
- All items have name, cbm (float), and montage (boolean) properties

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 11:30:51 +09:00
c4a4727123 docs(02): create phase plan
Phase 02: Legacy Data Extraction
- 1 plan created
- 3 total tasks defined
- Ready for execution
2026-01-16 11:14:19 +09:00
28bcc2b5e2 docs(01-01): complete foundation plan with bug fix
Tasks completed: 3/3 + 1 bug fix
- Create main plugin file with bootstrap code
- Register Custom Post Type for form submissions
- Create admin menu structure
- Fix CPT registration hook timing (bug)

SUMMARY: .planning/phases/01-foundation/01-01-SUMMARY.md
2026-01-16 11:10:10 +09:00
cd9b6a6891 fix(01-01): correct CPT registration hook timing
- CPT init hook was being added from within parent init hook
- Changed to call register_post_type() directly from main init
- Removed redundant hook from CPT constructor
- Fixes CPT not registering on plugin activation
2026-01-16 11:10:01 +09:00
d1f265c96c docs(01-01): complete foundation plan
Tasks completed: 3/3
- Create main plugin file with bootstrap code
- Register Custom Post Type for form submissions
- Create admin menu structure

SUMMARY: .planning/phases/01-foundation/01-01-SUMMARY.md
2026-01-16 11:04:01 +09:00
253129cfca feat(01-01): create admin menu structure
- Created Umzugsliste_Admin_Menu class with singleton pattern
- Top-level menu 'Umzugsliste' with dashicons-list-view icon
- Position 25 (below Comments, above Appearance)
- Capability: edit_posts (editors and above)
- Submenu 'Einträge' links to CPT list view
- Submenu 'Einstellungen' shows placeholder (Phase 3)
- Removed duplicate top-level menu item
2026-01-16 11:02:32 +09:00
59acfaee51 feat(01-01): register custom post type for form submissions
- Created Umzugsliste_CPT class with singleton pattern
- Registered umzugsliste_entry post type
- German labels (Einträge, Eintrag)
- Settings: public=false, show_ui=true, show_in_menu=false
- Supports title field only (custom fields in Phase 6)
- Registered on init hook
2026-01-16 11:02:21 +09:00
bdf02a2740 feat(01-01): create main plugin file with bootstrap code
- WordPress plugin header with proper metadata
- Plugin version constants and paths
- Main Umzugsliste class with singleton pattern
- Activation/deactivation hooks with flush_rewrite_rules
- Autoloader for includes/ directory
- Init hook to initialize plugin components
2026-01-16 11:02:11 +09:00
504ae784f1 docs(01): create phase plan
Phase 01: Foundation
- 1 plan created
- 3 total tasks defined
- Ready for execution

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 11:00:17 +09:00
7ecff08b83 docs: initialize Umzugsliste roadmap (7 phases)
WordPress plugin for digital moving list form with legacy email format preservation.

Phases:
1. Foundation: Plugin infrastructure, CPT, admin menu
2. Legacy Data Extraction: Extract furniture data from legacy PHP
3. Settings System: Admin settings with email and captcha config
4. Form Rendering: Shortcode and form frontend matching legacy
5. Volume Calculations: cbm calculations matching legacy logic
6. Email System: Legacy HTML table format and wp_mail()
7. Captcha & Validation: reCAPTCHA v2/v3, hCaptcha, i18n

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 10:56:58 +09:00
e860f47d35 docs: initialize umzugsliste
WordPress plugin for Siegel Umzüge moving list form.

Creates PROJECT.md with requirements and constraints.
2026-01-16 10:53:00 +09:00