Skip to content

Commit 3f6b120

Browse files
committed
merged dev to local
1 parent 1cf7588 commit 3f6b120

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

  • src/components/ApplicationTimeChart
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Helper function to generate dates relative to now
2+
const generateTimestamp = (daysAgo, hoursAgo = 0) => {
3+
const date = new Date();
4+
date.setDate(date.getDate() - daysAgo);
5+
date.setHours(date.getHours() - hoursAgo);
6+
return date.toISOString();
7+
};
8+
9+
const sampleData = [
10+
// Recent applications (last 7 days) - Always fresh dates
11+
{ role: 'Software Developer', timeToApply: 8, timestamp: generateTimestamp(0, 2) }, // 2 hours ago
12+
{ role: 'Software Developer', timeToApply: 12, timestamp: generateTimestamp(1, 1) }, // 1 day, 1 hour ago
13+
{ role: 'Software Developer', timeToApply: 9, timestamp: generateTimestamp(2, 3) }, // 2 days, 3 hours ago
14+
{ role: 'Architect', timeToApply: 15, timestamp: generateTimestamp(1, 5) }, // 1 day, 5 hours ago
15+
{ role: 'Architect', timeToApply: 18, timestamp: generateTimestamp(3, 2) }, // 3 days, 2 hours ago
16+
{ role: 'Master Electrician', timeToApply: 25, timestamp: generateTimestamp(2, 8) }, // 2 days, 8 hours ago
17+
{ role: 'Master Electrician', timeToApply: 22, timestamp: generateTimestamp(4, 1) }, // 4 days, 1 hour ago
18+
{ role: 'Product Manager', timeToApply: 6, timestamp: generateTimestamp(3, 4) }, // 3 days, 4 hours ago
19+
{ role: 'Product Manager', timeToApply: 9, timestamp: generateTimestamp(5, 2) }, // 5 days, 2 hours ago
20+
{ role: 'Data Scientist', timeToApply: 13, timestamp: generateTimestamp(4, 6) }, // 4 days, 6 hours ago
21+
{ role: 'Data Scientist', timeToApply: 11, timestamp: generateTimestamp(6, 3) }, // 6 days, 3 hours ago
22+
{ role: 'UX Designer', timeToApply: 14, timestamp: generateTimestamp(5, 7) }, // 5 days, 7 hours ago
23+
{ role: 'UX Designer', timeToApply: 16, timestamp: generateTimestamp(6, 4) }, // 6 days, 4 hours ago
24+
25+
// Monthly data (8-30 days ago)
26+
{ role: 'Project Manager', timeToApply: 7, timestamp: generateTimestamp(8) }, // 8 days ago
27+
{ role: 'Project Manager', timeToApply: 11, timestamp: generateTimestamp(11) }, // 11 days ago
28+
{ role: 'Plumber', timeToApply: 20, timestamp: generateTimestamp(12) }, // 12 days ago
29+
{ role: 'Plumber', timeToApply: 24, timestamp: generateTimestamp(16) }, // 16 days ago
30+
{ role: 'Software Developer', timeToApply: 10, timestamp: generateTimestamp(18) }, // 18 days ago
31+
{ role: 'Architect', timeToApply: 16, timestamp: generateTimestamp(21) }, // 21 days ago
32+
{ role: 'Master Electrician', timeToApply: 28, timestamp: generateTimestamp(24) }, // 24 days ago
33+
{ role: 'Data Scientist', timeToApply: 15, timestamp: generateTimestamp(26) }, // 26 days ago
34+
{ role: 'UX Designer', timeToApply: 12, timestamp: generateTimestamp(28) }, // 28 days ago
35+
{ role: 'Product Manager', timeToApply: 8, timestamp: generateTimestamp(30) }, // 30 days ago
36+
37+
// Older data (31-365 days ago)
38+
{ role: 'UX Designer', timeToApply: 12, timestamp: generateTimestamp(50) }, // ~50 days ago
39+
{ role: 'Product Manager', timeToApply: 8, timestamp: generateTimestamp(75) }, // ~75 days ago
40+
{ role: 'Plumber', timeToApply: 26, timestamp: generateTimestamp(115) }, // ~115 days ago
41+
{ role: 'Software Developer', timeToApply: 7, timestamp: generateTimestamp(180) }, // ~180 days ago
42+
{ role: 'Architect', timeToApply: 14, timestamp: generateTimestamp(205) }, // ~205 days ago
43+
{ role: 'Master Electrician', timeToApply: 24, timestamp: generateTimestamp(230) }, // ~230 days ago
44+
{ role: 'Data Scientist', timeToApply: 16, timestamp: generateTimestamp(255) }, // ~255 days ago
45+
{ role: 'Project Manager', timeToApply: 9, timestamp: generateTimestamp(295) }, // ~295 days ago
46+
47+
// Outliers (these will be filtered out as they're > 30 minutes)
48+
{ role: 'Software Developer', timeToApply: 45, timestamp: generateTimestamp(3) }, // Tab left open
49+
{ role: 'Product Manager', timeToApply: 120, timestamp: generateTimestamp(8) }, // 2 hours - outlier
50+
{ role: 'UX Designer', timeToApply: 90, timestamp: generateTimestamp(11) }, // 1.5 hours - outlier
51+
];
52+
53+
export default sampleData;

0 commit comments

Comments
 (0)