feat: ProCanvas refinements, gamification hooks, a11y updates, index.css polish, gitignore cleanup, and profile asset addition
This commit is contained in:
@@ -65,27 +65,43 @@ export const useGamification = (user, role = 'FIELD_AGENT') => {
|
||||
STAGES = [
|
||||
{
|
||||
id: 1,
|
||||
title: "Stage 1: Groundwork",
|
||||
requirement: { type: "doorsKnocked", amount: 20 },
|
||||
reward: { type: "coupon", name: "$25 Uber Eats Card", icon: "uber" },
|
||||
progress: Math.min((user.doorsKnocked || 0), 20),
|
||||
goal: 20
|
||||
title: "Daily Grind",
|
||||
requirement: { type: "dailyQuests", amount: 5 },
|
||||
reward: { type: "xp", name: "+500 XP Boost", icon: "zap" },
|
||||
progress: 5,
|
||||
goal: 5
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Stage 2: Connections",
|
||||
requirement: { type: "appointmentsSet", amount: 10 },
|
||||
reward: { type: "giftcard", name: "$50 Amazon Card", icon: "amazon" },
|
||||
progress: Math.min((user.appointmentsSet || 0), 10),
|
||||
goal: 10
|
||||
title: "Door Warrior",
|
||||
requirement: { type: "doorsKnocked", amount: 40 },
|
||||
reward: { type: "coupon", name: "$25 Gift Card", icon: "gift" },
|
||||
progress: 40,
|
||||
goal: 40
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Stage 3: Rainmaker",
|
||||
requirement: { type: "leadsGained", amount: 25 },
|
||||
reward: { type: "cash", name: "$150 Performance Bonus", icon: "cash" },
|
||||
progress: Math.min((user.leadsGained || 0), 25),
|
||||
goal: 25
|
||||
title: "Lead Machine",
|
||||
requirement: { type: "leadsGained", amount: 10 },
|
||||
reward: { type: "cash", name: "$50 Cash Bonus", icon: "cash" },
|
||||
progress: 4,
|
||||
goal: 10
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Closer Mode",
|
||||
requirement: { type: "appointmentsSet", amount: 5 },
|
||||
reward: { type: "giftcard", name: "$100 Amazon", icon: "amazon" },
|
||||
progress: 0,
|
||||
goal: 5
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: "Legend Run",
|
||||
requirement: { type: "deals", amount: 3 },
|
||||
reward: { type: "cash", name: "$250 Bonus", icon: "cash" },
|
||||
progress: 0,
|
||||
goal: 3
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user