Skip to content

HephtronCode/syncro_wfm

Repository files navigation

🌌 SYNCRO WFM: Tactical Workforce Management

Version: 6.0.0-SOVEREIGN-APEX
Architecture: P.H.A.N.T.O.M.-W.E.B. OS
Status: Phase 2 Complete (Matrix Stability & UX)


🚀 Mission Overview

Syncro WFM is an enterprise-grade Workforce Management platform designed for high-density operational environments. It features a "Draft-to-Publish" state machine, real-time adherence tracking, and an algorithmic constraint engine for automated scheduling.

🛠️ Tactical Stack

  • Frontend: React 19 + TypeScript + Vite + Tailwind CSS 4.0
  • State: Zustand (Optimistic UI) + TanStack Virtual (High-performance Grid)
  • Backend: Node.js (Express) + TypeScript
  • Infrastructure: Supabase (PostgreSQL 15 + RLS + Realtime)
  • Design System: "Tactical Nebula" (Deep Space aesthetics with high-density data ergonomics)

📊 Completed Phases

Phase 1: Foundation & Hardening (Infrastructure)

  • Database Schema: Finalized teams, profiles, and schedules with foreign key constraints.
  • Security: Implemented granular Row Level Security (RLS) policies for multi-tenant data protection.
  • Identity Sync: PL/pgSQL trigger on_auth_user_created for automatic profile provisioning.
  • Admin Access: Provisioned admin@syncro.io with full tactical overrides.

Phase 2: Matrix Stability & UX (Frontend)

  • Optimistic UI: Zero-latency shift assignments with background synchronization and automatic rollback.
  • Performance: Virtualized grid rendering supports 100+ concurrent staff with smooth 60fps scrolling.
  • Operational Controls: Integrated Clear Matrix and Unpublish protocols for bulk state management.
  • Theme: Full implementation of the "Tactical Nebula" semantic palette (Cerulean, Tropical Teal, Vibrant Coral).

🧭 Getting Started

1. Environment Setup

Create .env files in both /client and /server directories using the provided tactical credentials.

2. Installation

npm run install:all

3. Execution (Development)

npm run dev
  • Client: http://localhost:5174
  • Server: http://localhost:5000

📡 API & State Machine

  • GET /api/schedules: Fetch team deployment for date range.
  • POST /api/schedules/upsert: Atomic shift update (Optimistic).
  • POST /api/schedules/publish: Transition range to published state.
  • POST /api/schedules/unpublish: Revert range to draft state.
  • POST /api/schedules/clear: Purge matrix range (Nuclear).

🔮 Future Ingress (Roadmap)

  • Phase 3: Constraint Satisfaction Engine (Node.js Solver).
  • Phase 4: Request Pipeline & Leave Management Marketplace.
  • Phase 5: Real-Time Adherence (RTA) with Supabase Realtime Channels.
  • Phase 6: Intelligence Analytics & Payroll Export Vectors.

[CONTRACT_BLOCK]

  • mission_identity: SYNCRO_EVOLVE_2026
  • network_status: STABLE
  • last_checkpoint: PHASE_2_MERGE_READY

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors