Commit Graph

62 Commits

Author SHA1 Message Date
fecb654b82 docs(01-01): complete plugin structure plan
Tasks completed: 2/2
- Create main plugin file with header
- Create main plugin class with activation/deactivation

SUMMARY: .planning/phases/01-foundation-setup/01-01-SUMMARY.md
2026-01-14 19:07:48 +09:00
d41fd500d5 docs(01-03): complete roles and fields plan
Tasks completed: 2/2
- Register ddhh_provider role with restricted capabilities
- Register ACF field group for job_offer metadata

SUMMARY: .planning/phases/01-foundation-setup/01-03-SUMMARY.md
2026-01-14 19:02:58 +09:00
c8fdf39f37 feat(01-03): register ACF field group for job_offer metadata
- Add DDHH_JM_ACF_Fields class with register_fields() method
- Field group 'Job Details' for post_type job_offer
- 6 fields: job_location (text, required), job_type (select, required),
  job_deadline (date_picker), job_contact_email (email, required),
  job_logo (image), job_deactivation_reason (textarea, conditional)
- German labels: Standort, Art, Bewerbungsfrist, Kontakt-E-Mail, Logo
- Logo returns ID for media library integration
- Deactivation reason field shows only when status != publish
- Hooked to 'acf/init' action
2026-01-14 19:01:25 +09:00
79b13895fc feat(01-03): register ddhh_provider role with restricted capabilities
- Add DDHH_JM_Roles class with add_roles() and remove_roles() methods
- Role 'ddhh_provider' (Anbieter) can edit/delete own job_offers only
- Jobs go to pending status (publish_job_offers: false)
- No access to regular posts/pages (edit_posts/edit_pages: false)
- Can upload files for logos
- Integrated with Activator and Deactivator hooks
2026-01-14 19:00:50 +09:00
8df0569159 docs(01-02): complete custom post type plan
Tasks completed: 2/2
- Register job_offer custom post type
- Add capability mapping filter for ownership enforcement

SUMMARY: .planning/phases/01-foundation-setup/01-02-SUMMARY.md
2026-01-14 18:58:45 +09:00
693974b561 feat(01-02): register job_offer CPT with ownership-enforced capabilities
- Register job_offer custom post type with German labels
- Custom capability_type 'job_offer' prevents access to regular posts
- map_meta_cap filter enforces per-post ownership
- Elementor support via show_in_rest
- Menu icon: dashicons-businessperson at position 5
- Supports: title, editor, author, thumbnail
- Archive slug: jobangebote
- Custom capabilities prevent providers from editing others' posts

Tasks completed:
- Task 1: Register job_offer custom post type
- Task 2: Add capability mapping filter for ownership enforcement

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 18:57:29 +09:00
7722848ef9 chore(01-02): add prerequisite plugin structure
- Create main singleton class
- Create activator with version checks
- Create deactivator with rewrite flush
- Update main file to include core classes

This is a blocking fix (Rule 3) - Plan 01-01 was not completed but
these files are required for Plan 01-02 to execute.
2026-01-14 18:56:38 +09:00
2471c7f7e8 feat(01-01): create main plugin class with activation/deactivation
- Add main singleton class DDHH_JM_Job_Manager
- Implement activation handler with WP/PHP version checks
- Implement deactivation handler with rewrite flush
- Use transient-based rewrite flush to avoid multiple flushes
- Add comprehensive security checks and documentation

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 18:56:02 +09:00
5b74a4f2b9 feat(01-01): create main plugin file with header
- Add WordPress plugin header with metadata
- Define plugin constants (VERSION, PLUGIN_DIR, PLUGIN_URL, PLUGIN_FILE)
- Add security check for direct access
- Include main class file
- Initialize plugin on plugins_loaded hook

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 18:55:23 +09:00
8b296cefbe docs(01): create phase 1 plans
Phase 01: Foundation & Setup
- 3 plans created (all independent, can run parallel)
- 7 total tasks defined
- Ready for execution

Plans:
- 01-01: Plugin structure and activation hooks
- 01-02: Register job_offer CPT with capabilities
- 01-03: Register ddhh_provider role and ACF fields

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 18:47:23 +09:00
806c329345 docs: initialize ddhh-job-manager (7 phases)
Closed job board for digital dabei Hamburg with provider self-registration, admin moderation, and mentor access.

Phases:
1. Foundation & Setup: Plugin structure, CPT registration, custom role
2. Provider Registration & Auth: Registration form, login system, dashboard foundation
3. Job Management Core: Job submission, editing, moderation workflow
4. Job Deactivation System: Deactivation workflow with reason capture
5. Mentor Job Board: Protected archive, detail pages, apply system
6. Email Notifications: Admin alerts and mentor opt-in notifications
7. Testing & Polish: End-to-end testing, UI refinement, deployment prep

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 18:44:16 +09:00
4d462c60b1 docs: initialize ddhh-job-manager
Closed job board for digital dabei Hamburg with provider self-registration, admin moderation, and mentor access.

Creates PROJECT.md with requirements and constraints.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 18:39:06 +09:00