diff --git a/frontend/src/pages/Welcome.tsx b/frontend/src/pages/Welcome.tsx
index f8e8426..c0bcc62 100644
--- a/frontend/src/pages/Welcome.tsx
+++ b/frontend/src/pages/Welcome.tsx
@@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom';
import { motion } from 'framer-motion';
import { GoogleLogin } from '@react-oauth/google';
import { jwtDecode } from 'jwt-decode';
-import { Sword, Target, Zap, Trophy } from 'lucide-react';
+import { Target, Zap, Trophy } from 'lucide-react';
import { FloatingOrbs } from '@/components/FloatingOrbs';
import { useUserStore } from '@/store/userStore';
import { toast } from 'sonner';
@@ -73,8 +73,8 @@ export default function Welcome() {
},
{
icon: Zap,
- title: 'Earn XP',
- description: 'Gain experience points for every completed quest',
+ title: 'Earn AP',
+ description: 'Gain aura points for every completed quest',
gradient: 'from-purple-500 to-pink-500',
},
{
@@ -99,31 +99,37 @@ export default function Welcome() {
>
{/* Hero Icon */}
-
+
{/* Title */}
- QUEST
+ PHOENIX
- LEVELING SYSTEM
+ AURA FARMING
{/* Subtitle */}
- Transform your daily tasks into epic quests. Earn XP, level up, and achieve your goals with an anime-inspired productivity system.
+ Transform your daily tasks into epic quests. Aura farm, and achieve your goals with an anime-inspired productivity system.
diff --git a/frontend/src/store/userStore.ts b/frontend/src/store/userStore.ts
index 6bfd704..7d0aa42 100644
--- a/frontend/src/store/userStore.ts
+++ b/frontend/src/store/userStore.ts
@@ -147,7 +147,7 @@ export const useUserStore = create((set, get) => ({
: q
);
- // Add XP
+ // Add AP
const newTotalXP = totalXP + quest.xp;
const newLevel = calculateLevel(newTotalXP);
const oldLevel = calculateLevel(totalXP);
@@ -184,7 +184,7 @@ export const useUserStore = create((set, get) => ({
return { leveledUp, newLevel };
},
- // Add XP (for future use)
+ // Add AP (for future use)
addXP: (amount) => {
const { user, totalXP } = get();
if (!user) return;
diff --git a/frontend/src/types/quest.ts b/frontend/src/types/quest.ts
index 5ec61eb..5e92453 100644
--- a/frontend/src/types/quest.ts
+++ b/frontend/src/types/quest.ts
@@ -8,7 +8,7 @@ export type QuestType = 'daily_task' | 'email_based';
export type QuestCategory = 'daily' | 'work' | 'personal' | 'education' | 'health' | 'general';
export type QuestImportance = 'daily' | 'weekly' | 'main_quest' | 'side_quest';
export type QuestUrgency = 'low' | 'medium' | 'high' | 'critical';
-export type QuestStatus = 'pending' | 'in_progress' | 'completed';
+export type QuestStatus = 'pending' | 'completed';
// API Quest interface (matches backend)
export interface ApiQuest {
@@ -33,7 +33,7 @@ export interface Quest {
title: string;
description: string;
rank: QuestRank;
- xp: number;
+ xp: number; // Using xp internally but displayed as AP
status: QuestStatus;
focusArea: FocusArea;
difficulty: Difficulty;
diff --git a/frontend/src/utils/questGenerator.ts b/frontend/src/utils/questGenerator.ts
index 1c43730..8f14ed2 100644
--- a/frontend/src/utils/questGenerator.ts
+++ b/frontend/src/utils/questGenerator.ts
@@ -25,7 +25,7 @@ export function generateQuests(
description: template.description,
rank: template.rank,
xp: template.xp,
- status: 'active' as const,
+ status: 'pending' as const,
focusArea: template.focusArea,
difficulty: template.difficulty,
createdAt: new Date(),
@@ -48,3 +48,13 @@ export function getXPPercentage(totalXP: number): number {
const currentLevelXP = getCurrentLevelXP(totalXP);
return (currentLevelXP / 100) * 100;
}
+
+// AP versions (same implementation, different names for display purposes)
+export function getCurrentLevelAP(totalAP: number): number {
+ return totalAP % 100;
+}
+
+export function getAPPercentage(totalAP: number): number {
+ const currentLevelAP = getCurrentLevelAP(totalAP);
+ return (currentLevelAP / 100) * 100;
+}