Skip to content

[EPIC] Work Instructions Management (Dienstanweisungen) #101

@kevalyq

Description

@kevalyq

🎯 Vision

Implement a comprehensive Work Instructions (Dienstanweisungen) management system that enables managers to create, publish, and track acknowledgment of legally compliant work instructions for security personnel.


📋 Sub-Issues & Work Plan

Implementation Phases


📋 Phases Details

✅ Phase 1: Backend API Foundation

Status: In Progress (Issue #102)

Core API endpoints for work instructions CRUD operations, template management, and acknowledgment tracking.

Deliverables:

  • Database schema (work_instructions, templates, acknowledgments)
  • REST API endpoints (11 routes)
  • Authorization (RBAC integration)
  • Multi-language support (German/English)
  • Tests (≥80% coverage)

Phase 2: Frontend Editor Implementation

Status: Planned (References: SecPal/frontend#32)

React-based work instruction builder with drag-and-drop interface and template library.

Deliverables:

  • Drag-and-drop section editor (React DnD or @dnd-kit)
  • Template selector sidebar
  • Standard text blocks library
  • Real-time preview pane
  • Save as draft functionality
  • Publish workflow
  • API integration with Phase 1 endpoints

Phase 3: Acknowledgment Workflow

Status: Planned

Employee acknowledgment tracking and reporting.

Deliverables:

  • Acknowledgment dashboard for employees
  • Email notifications for new instructions
  • Deadline tracking and reminders
  • Manager reporting (who acknowledged, who pending)
  • Export acknowledgment records (GDPR compliance)
  • Multi-language notification emails

Phase 4: Advanced Features

Status: Planned

Version history, approval workflows, and Works Council integration.

Deliverables:

  • Version history and diff view
  • Works Council approval workflow (if applicable)
  • Scope-based distribution (role, location, branch)
  • Bulk acknowledgment import (for paper-based signatures)
  • Analytics (average acknowledgment time, compliance rate)
  • PDF export with signature fields

🎯 Success Criteria

  • API Complete: All CRUD endpoints functional with tests
  • Editor Functional: Drag-and-drop works, templates loadable
  • Acknowledgment: Employees can acknowledge instructions
  • Tracking: Managers can see acknowledgment status
  • Compliance: System meets German labor law requirements (Nachweispflicht)
  • Multi-Language: German and English UI + content

📚 Legal Requirements (Germany)

Nachweispflicht (Proof of Acknowledgment)

  • Employees MUST acknowledge receipt of work instructions
  • Records MUST be stored for audit purposes (6-10 years depending on content)
  • Signature/acknowledgment MUST be timestamped and attributable

GDPR Compliance

  • Acknowledgment records contain personal data
  • Employees have right to access their acknowledgments
  • Data retention policies must be documented

Works Council Rights

  • If Works Council exists, they MAY have co-determination rights on certain instructions
  • System should support approval workflow (Phase 4)

🔗 Related


🔗 Dependencies

Cross-Repository

  • Phase 2 depends on: Phase 1 (API must be implemented first)
  • Phase 3 depends on: Phase 1 + Phase 2
  • Phase 4 depends on: Phase 3

Internal


🚫 Non-Goals (Not in this Epic)

  • Document management system (file storage for attachments - separate epic)
  • E-learning modules (training content - separate epic)
  • Video embedding (media management - separate epic)
  • Mobile app native features (push notifications - PWA epic)

Type: Epic
Priority: High (Core Business Feature)
Estimated Timeline: 6-8 weeks (phased rollout)
Target Milestone: v0.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    💡 Ideas

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions