-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonboarding.html
More file actions
147 lines (141 loc) · 10.6 KB
/
onboarding.html
File metadata and controls
147 lines (141 loc) · 10.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Onboarding — Simpatico HR</title>
<link rel="stylesheet" href="/hr-modules.css">
<style>
.onboard-card { background:var(--hr-bg-card); border:1px solid var(--hr-border); border-radius:var(--hr-radius-lg); padding:20px; display:flex; gap:16px; align-items:flex-start; transition:var(--hr-transition); cursor:pointer; margin-bottom:10px; }
.onboard-card:hover { border-color:var(--hr-border-light); transform:translateY(-1px); }
.onboard-card .emp-info { flex:1; }
.onboard-card .emp-info h4 { font-family:var(--hr-font-display); font-size:15px; font-weight:600; }
.onboard-card .emp-info .sub { font-size:12.5px; color:var(--hr-text-muted); margin-top:3px; }
.onboard-card .pct { font-family:var(--hr-font-display); font-size:22px; font-weight:700; color:var(--hr-primary); text-align:right; min-width:50px; }
.stage-label { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--hr-text-muted); padding:6px 0 4px; }
</style>
<script>
// Hide shell when loaded inside dashboard iframe
if (window.self !== window.top) {
document.addEventListener("DOMContentLoaded", function() {
var shell = document.querySelector(".hr-shell");
if (shell) {
shell.style.gridTemplateColumns = "1fr";
shell.style.gridTemplateRows = "1fr";
}
var topbar = document.querySelector(".hr-topbar");
if (topbar) topbar.style.display = "none";
var sidebar = document.querySelector(".hr-sidebar");
if (sidebar) sidebar.style.display = "none";
var main = document.querySelector(".hr-main");
if (main) {
main.style.gridColumn = "1";
main.style.padding = "20px";
}
});
}
</script></head>
<body class="hr-module">
<div class="hr-shell">
<header class="hr-topbar">
<a href="/dashboard/hr.html" class="hr-topbar-brand">
<img src="favicon-96x96.png" style="width:24px;height:24px;margin-right:10px;border-radius:4px">Simpatico<span>HR</span>
</a>
<div class="hr-topbar-right"><div class="hr-avatar" id="user-avatar">U</div></div>
</header>
<nav class="hr-sidebar">
<div class="hr-nav-section">Core HR</div>
<a class="hr-nav-item" href="/employees.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/></svg>Employees</a>
<a class="hr-nav-item active" href="/onboarding.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/></svg>Onboarding</a>
<a class="hr-nav-item" href="/training.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg>Training</a>
<a class="hr-nav-item" href="/performance.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>Performance</a>
<div class="hr-nav-section" style="margin-top:8px">Operations</div>
<a class="hr-nav-item" href="/hr-ops.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2"/></svg>HR Ops</a>
<a class="hr-nav-item" href="/payroll.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>Payroll</a>
<div class="hr-nav-section" style="margin-top:8px">Intelligence</div>
<a class="hr-nav-item" href="/analytics.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>Analytics</a>
<a class="hr-nav-item" href="/ai-assistant.html"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/></svg>AI Assistant</a>
<div class="hr-nav-section" style="margin-top:8px">Automation</div>
<a class="hr-nav-item" href="hr-automation.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>
HR Rules
</a>
<a class="hr-nav-item" href="ats-automation.html">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 8v4l3 3"/></svg>
ATS Engine
</a>
</nav>
<main class="hr-main">
<div class="hr-page-header">
<div class="hr-page-title">Onboarding <small>Track new hire journeys from offer to fully productive</small></div>
<div class="hr-page-actions">
<button class="hr-btn hr-btn-secondary" onclick="openTemplateModal()">Manage Templates</button>
<button class="hr-btn hr-btn-primary" onclick="openStartModal()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:15px;height:15px"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
Start Onboarding
</button>
</div>
</div>
<div class="hr-stats-grid">
<div class="hr-stat-card" style="--card-accent:#00c4ff"><div class="label">In Progress</div><div class="value" id="stat-progress"></div><div class="trend neutral">Active onboardees</div><div class="icon" style="--icon-bg:rgba(0,196,255,.1)"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg></div></div>
<div class="hr-stat-card" style="--card-accent:#10b981"><div class="label">Completed (30d)</div><div class="value" id="stat-completed"></div><div class="trend up">This month</div><div class="icon" style="--icon-bg:rgba(16,185,129,.1)"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg></div></div>
<div class="hr-stat-card" style="--card-accent:#f59e0b"><div class="label">Overdue Tasks</div><div class="value" id="stat-overdue"></div><div class="trend down">Need attention</div><div class="icon" style="--icon-bg:rgba(245,158,11,.1)"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg></div></div>
<div class="hr-stat-card" style="--card-accent:#a78bfa"><div class="label">Avg. Completion</div><div class="value" id="stat-avg"><span style="font-size:18px">%</span></div><div class="trend neutral">Average progress</div><div class="icon" style="--icon-bg:rgba(167,139,250,.1)"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg></div></div>
</div>
<div style="display:grid;grid-template-columns:repeat(4,1fr);gap:16px" id="pipeline">
<div class="pipeline-col"><div class="stage-label">Not Started</div><div id="cards-not_started"></div></div>
<div class="pipeline-col"><div class="stage-label">Week 1</div><div id="cards-week_1"></div></div>
<div class="pipeline-col"><div class="stage-label">In Progress</div><div id="cards-in_progress"></div></div>
<div class="pipeline-col"><div class="stage-label">Completed</div><div id="cards-completed"></div></div>
</div>
</main>
</div>
<div class="hr-modal-overlay" id="start-modal">
<div class="hr-modal">
<div class="hr-modal-head">
<h2>Start Onboarding</h2>
<button class="hr-modal-close" onclick="closeModal('start-modal')"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button>
</div>
<div class="hr-form-group"><label class="hr-label">Employee</label><select class="hr-select" id="ob-employee"></select></div>
<div class="hr-form-group"><label class="hr-label">Template</label><select class="hr-select" id="ob-template"><option value="">Default Template</option></select></div>
<div class="hr-form-group"><label class="hr-label">Start Date</label><input class="hr-input" type="date" id="ob-start"></div>
<div class="hr-form-group"><label class="hr-label">Buddy / Mentor</label><select class="hr-select" id="ob-buddy"><option value="">No buddy assigned</option></select></div>
<div style="display:flex;justify-content:flex-end;gap:10px;margin-top:8px">
<button class="hr-btn hr-btn-ghost" onclick="closeModal('start-modal')">Cancel</button>
<button class="hr-btn hr-btn-primary" onclick="startOnboarding()">Start Onboarding</button>
</div>
</div>
</div>
<div class="hr-modal-overlay" id="template-modal">
<div class="hr-modal">
<div class="hr-modal-head">
<h2>Manage Templates</h2>
<button class="hr-modal-close" onclick="closeModal('template-modal')">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</div>
<div class="hr-form-group">
<label class="hr-label">Template Title</label>
<input type="text" class="hr-input" id="new-template-name" placeholder="e.g. Engineering Onboarding">
</div>
<div class="hr-form-group">
<label class="hr-label">Automated Tasks</label>
<textarea class="hr-textarea" id="new-template-tasks" placeholder="List tasks (one per line)" style="min-height:120px"></textarea>
</div>
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:8px">
<button class="hr-btn hr-btn-secondary" onclick="generateTemplateTasksWithAI()"><i class="fas fa-magic"></i> Auto-Generate via AI</button>
<div style="display:flex;gap:10px">
<button class="hr-btn hr-btn-ghost" onclick="closeModal('template-modal')">Cancel</button>
<button class="hr-btn hr-btn-primary" onclick="saveTemplate()">Save Template</button>
</div>
</div>
</div>
</div>
<div class="hr-toast-container" id="toasts"></div>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="/js/hr-config.js"></script>
<script src="/js/shared-utils.js"></script>
<script src="/js/supabase-client.js"></script>
<script src="/js/onboarding.js"></script>
</body>
</html>