Skip to content

Lager Guru v3.9.0 — Enterprise Safety Workflows

Release date: 2025-01-26
Git tag: v3.9.0

🔥 Summary

Enterprise-grade Safety Workflows with visual drag-and-drop builder, role-based approvals, and full audit trail. This release establishes Lager Guru as a production-ready enterprise safety platform.

✨ Added / Updated

Visual Safety Workflow Builder

  • Drag-and-drop workflow editor with ReactFlow canvas
  • Node types: Start, Approval, Task, Condition, End
  • Visual configuration: Role selection, SLA/timeout, escalation rules
  • Validation: Real-time warnings for missing start/end, unreachable nodes, cycles
  • Draft/Published workflow versioning: Save drafts, publish when ready, rollback if needed
  • Dark theme compatible: Full support for dark mode UI

Configurable Approval Flows

  • Role-based approvals: Admin, Safety Officer, Worker role assignments per step
  • SLA/timeout management: Automatic escalation on timeout
  • Entity type support: Workflows for Incidents, Risk Assessments, Permit to Work, Audits
  • Optional workflows: Existing processes continue to work without workflows
  • Workflow instances: Track active workflow executions per entity

Enterprise-Grade Safety Foundation

  • Full audit trail: Complete workflow action logging
  • Tenant isolation: Workflows scoped per tenant
  • Multi-version support: Draft and published versions coexist
  • Default workflows: Set default workflow per entity type
  • Workflow state management: Active/inactive, draft/published states

UI/UX Improvements

  • Standalone workflow editor page: /safety/workflows/:workflowId/editor
  • Node palette sidebar: Quick access to workflow node types
  • Configuration panel: Inline node configuration with role, SLA, notifications
  • Validation warnings panel: Clear feedback on workflow issues
  • Grid background: Professional canvas appearance
  • Zoom/pan controls: Full canvas navigation

Performance & Stability

  • Optimized React Query caching: Efficient workflow data fetching
  • Idempotent database migrations: Safe schema updates
  • Backward compatibility: No breaking changes to existing safety features
  • Error handling: Graceful degradation when workflows are disabled

🔧 Technical Details

Database Schema (Additive Only)

  • safety_workflows: Workflow definitions with draft/published versions
  • workflow_instances: Active workflow executions
  • workflow_audit_log: Complete audit trail

API Enhancements

  • Workflow CRUD operations
  • Draft save/publish/rollback
  • Workflow instance management
  • Role-based action permissions

Frontend Architecture

  • ReactFlow-based visual editor
  • Standalone editor route
  • Workflow manager integration
  • Node configuration components

📚 Documentation

  • Updated Safety Pro documentation with Workflows section
  • Visual editor usage guide
  • Workflow configuration best practices
  • Role-based approval patterns

🔒 Security & Permissions

  • Admin/Safety Officer only: Workflow creation/editing restricted
  • Tenant-scoped: Full tenant isolation
  • RLS policies: Row-Level Security for all workflow tables
  • Audit logging: Complete action history

🚀 Migration Notes

  • Additive only: No breaking changes
  • Optional feature: Workflows are opt-in per tenant
  • Existing processes: Continue to work without workflows
  • Backward compatible: All existing safety features unchanged

📦 Download

🎯 Enterprise Readiness

This release establishes Lager Guru as a production-ready enterprise safety platform suitable for:

  • Self-hosting deployments
  • Enterprise onboarding
  • Multi-tenant SaaS operations
  • Compliance-driven organizations

Released under Commercial License