Spaces:
Running
Running
Commit ·
295a30c
1
Parent(s): e44f847
feat: integrate sketchy brain logo branding and add workspace agent guidelines
Browse filesFiles changed (11)
12345678910111213141516171819202122232425262728# Antigravity Agent Guidelines for TaskFlow Workspace
Welcome, Agent! You are working on the TaskFlow project, which consists of two main repositories:- **FlowWeb** (Vite React frontend in `./FlowWeb`)- **FlowAPI** (.NET C# backend in `./FlowAPI`)
## 🚀 Critical Deployment Rule: Git Auto-Commit & Push
This project uses an automated deployment pipeline. To ensure all updates are built and deployed continuously, you **MUST** adhere to the following workflow:
1. **Verify Your Changes**: - For **FlowWeb**: Before finishing, run `npm run build` in the `./FlowWeb` directory to verify there are no typescript/es/compilation errors. - For **FlowAPI**: Ensure the backend compiles successfully.
2. **Commit and Push to Remote**: - Once all edits are complete and verified, you **MUST** automatically commit and push the changes to the Git repository. - Do **NOT** wait for the user to ask you to commit. Proactively prepare the commit and push. - Use the following command sequences: ```powershell git add . git commit -m "feat/fix: descriptive message of the exact modifications made" git push ```
3. **Confirm Status**: - Provide the git commit hash or push confirmation in your final summary to the developer so they know the pipeline has started.
Thank you for maintaining the continuous deployment pipeline!32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text
1 unmodified line23456781 unmodified line<html lang="en"><head><meta charset="UTF-8" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="referrer" content="strict-origin-when-cross-origin" /><title>TaskFlow - Digital Sketchbook</title>1 unmodified line23456781 unmodified line<html lang="en"><head><meta charset="UTF-8" /><link rel="icon" type="image/png" href="/logo.png" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="referrer" content="strict-origin-when-cross-origin" /><title>TaskFlow - Digital Sketchbook</title>
12345652 unmodified lines59606162636465666761 unmodified lines1291301311321331341355 unmodified lines1411421431441451461471481496 unmodified lines15615715815916016116216316416516626 unmodified lines19319419519619719877 unmodified lines276277278279280281282import React, { createContext, useContext, useState, useEffect, useRef } from 'react';import axios from 'axios';import { motion, AnimatePresence } from 'framer-motion';import { useAuth } from './AuthContext';import {Trophy,52 unmodified linesexport const AchievementNotificationProvider = ({ children }) => {const { user } = useAuth();const [activeNotification, setActiveNotification] = useState(null);const knownUnlockedIds = useRef(new Set());const isInitialized = useRef(false);const API_URL = import.meta.env.VITE_API_URL;const fetchCurrentAchievements = async () => {61 unmodified linesif (ach.unlocked && !knownUnlockedIds.current.has(ach.id)) {console.log('[Achievements] Newly Unlocked Achievement Detected:', ach.title);knownUnlockedIds.current.add(ach.id);triggerNotification(ach);}}};5 unmodified linesconst desktopNotifEnabled = localStorage.getItem('desktop_notifications') === 'true';if (desktopNotifEnabled && 'Notification' in window && Notification.permission === 'granted') {try {new Notification(`🏆 Achievement Unlocked: ${achievement.title}`, {body: achievement.desc,icon: '/favicon.ico'});} catch (e) {console.warn('[Notifications] Failed to display native desktop notification:', e);6 unmodified lines}, 6000);};// Reset initialization status if user logs out or changesuseEffect(() => {isInitialized.current = false;knownUnlockedIds.current.clear();if (user) {checkAchievements();}}, [user]);26 unmodified lines// High-fidelity, sketchy hand-drawn animated toast with procedural paper particlesconst AchievementToast = ({ achievement, onClose }) => {const Icon = iconMap[achievement.icon] || Star;// Pre-generate 30 vector particles for a sketchy paper-confetti explosion77 unmodified lines{/* Description & Congratulations */}<div className="flex-grow flex flex-col gap-1"><div className="text-[10px] font-bold uppercase tracking-[0.2em] text-secondary font-display-lg">Achievement Unlocked!</div><h4 className="text-2xl font-display-lg text-primary leading-tight">{achievement.title}123456752 unmodified lines606162636465666768697061 unmodified lines1321331341351361371385 unmodified lines1441451461471481491501511521531541556 unmodified lines16216316416516616716816917017117217317417517617717817918018118218318426 unmodified lines21121221321421521621777 unmodified lines295296297298299300301302303import React, { createContext, useContext, useState, useEffect, useRef } from 'react';import axios from 'axios';import { motion, AnimatePresence } from 'framer-motion';import { useTranslation } from 'react-i18next';import { useAuth } from './AuthContext';import {Trophy,52 unmodified linesexport const AchievementNotificationProvider = ({ children }) => {const { user } = useAuth();const { t } = useTranslation();const [activeNotification, setActiveNotification] = useState(null);const knownUnlockedIds = useRef(new Set());const isInitialized = useRef(false);const lastUserId = useRef(null);const API_URL = import.meta.env.VITE_API_URL;const fetchCurrentAchievements = async () => {61 unmodified linesif (ach.unlocked && !knownUnlockedIds.current.has(ach.id)) {console.log('[Achievements] Newly Unlocked Achievement Detected:', ach.title);knownUnlockedIds.current.add(ach.id);triggerNotification({ ...ach, isAchievement: true });}}};5 unmodified linesconst desktopNotifEnabled = localStorage.getItem('desktop_notifications') === 'true';if (desktopNotifEnabled && 'Notification' in window && Notification.permission === 'granted') {try {const titleText = achievement.isAchievement? `🏆 ${t('achievements.unlocked_header', 'Achievement Unlocked!')}: ${achievement.title}`: `${achievement.title}`;new Notification(titleText, {body: achievement.desc,icon: '/logo.png'});} catch (e) {console.warn('[Notifications] Failed to display native desktop notification:', e);6 unmodified lines}, 6000);};// Reset cache only if user logs out or switches to a different user accountuseEffect(() => {if (!user) {isInitialized.current = false;knownUnlockedIds.current.clear();lastUserId.current = null;return;}if (user.id !== lastUserId.current) {console.log('[Achievements] User changed. Resetting unlocked achievements cache.');isInitialized.current = false;knownUnlockedIds.current.clear();lastUserId.current = user.id;checkAchievements();} else {// Same user updated (e.g. profile updated). Keep cache, just check for new achievements!checkAchievements();}}, [user]);26 unmodified lines// High-fidelity, sketchy hand-drawn animated toast with procedural paper particlesconst AchievementToast = ({ achievement, onClose }) => {const { t } = useTranslation();const Icon = iconMap[achievement.icon] || Star;// Pre-generate 30 vector particles for a sketchy paper-confetti explosion77 unmodified lines{/* Description & Congratulations */}<div className="flex-grow flex flex-col gap-1"><div className="text-[10px] font-bold uppercase tracking-[0.2em] text-secondary font-display-lg">{achievement.isAchievement? t('achievements.unlocked_header', 'Achievement Unlocked!'): (achievement.headerText || t('achievements.notification_header', 'Notification'))}</div><h4 className="text-2xl font-display-lg text-primary leading-tight">{achievement.title}
1 unmodified line23456718 unmodified lines262728293031323334105 unmodified lines1401411421431441451461471 unmodified lineimport { motion, AnimatePresence } from 'framer-motion';import { Link, useLocation } from 'react-router-dom';import { useAuth } from '../context/AuthContext';const Layout = ({ children }) => {const { user } = useAuth();18 unmodified lines<motion.divinitial={{ opacity: 0, x: -20 }}animate={{ opacity: 1, x: 0 }}className="font-display-lg text-4xl text-primary tracking-tight cursor-pointer">TaskFlow</motion.div></Link>105 unmodified lines<footer className="bg-surface-container-lowest w-full border-t-4 border-primary mt-20"><div className="grid grid-cols-1 md:grid-cols-2 gap-gutter px-margin_edge py-16 w-full max-w-screen-2xl mx-auto"><div className="flex flex-col gap-6"><div className="text-5xl font-display-lg text-primary">TaskFlow</div><div className="text-xl text-on-surface-variant">© 2026 TaskFlow. Designed for focus, built for resilience.1 unmodified line234567818 unmodified lines27282930313233343536105 unmodified lines1421431441451461471481491501 unmodified lineimport { motion, AnimatePresence } from 'framer-motion';import { Link, useLocation } from 'react-router-dom';import { useAuth } from '../context/AuthContext';import logo from '../assets/logo.png';const Layout = ({ children }) => {const { user } = useAuth();18 unmodified lines<motion.divinitial={{ opacity: 0, x: -20 }}animate={{ opacity: 1, x: 0 }}className="font-display-lg text-4xl text-primary tracking-tight cursor-pointer flex items-center gap-3"><img src={logo} alt="TaskFlow Logo" className="w-10 h-10 object-contain" /><span>TaskFlow</span></motion.div></Link>105 unmodified lines<footer className="bg-surface-container-lowest w-full border-t-4 border-primary mt-20"><div className="grid grid-cols-1 md:grid-cols-2 gap-gutter px-margin_edge py-16 w-full max-w-screen-2xl mx-auto"><div className="flex flex-col gap-6"><div className="text-5xl font-display-lg text-primary flex items-center gap-3"><img src={logo} alt="TaskFlow Logo" className="w-12 h-12 object-contain" /><span>TaskFlow</span></div><div className="text-xl text-on-surface-variant">© 2026 TaskFlow. Designed for focus, built for resilience.
335 unmodified lines336337338339340341335 unmodified lines}},"achievements": {"blank_canvas": {"title": "Blank Canvas","description": "Create your first project (Graph)."335 unmodified lines336337338339340341342343335 unmodified lines}},"achievements": {"unlocked_header": "Achievement Unlocked!","notification_header": "Notification","blank_canvas": {"title": "Blank Canvas","description": "Create your first project (Graph)."
335 unmodified lines336337338339340341335 unmodified lines}},"achievements": {"blank_canvas": {"title": "Чисте полотно","description": "Створіть свій перший проект (граф)."335 unmodified lines336337338339340341342343335 unmodified lines}},"achievements": {"unlocked_header": "Досягнення розблоковано!","notification_header": "Сповіщення","blank_canvas": {"title": "Чисте полотно","description": "Створіть свій перший проект (граф)."
65 unmodified lines6667686970717265 unmodified linestry {new Notification(t('notifications.enabled_title', 'Desktop Notifications Enabled'), {body: t('notifications.enabled_body', 'You will now receive alerts for task deadlines and habits!'),icon: '/favicon.ico'});} catch (e) {console.warn('[Notifications] Failed to display test notification:', e);65 unmodified lines6667686970717265 unmodified linestry {new Notification(t('notifications.enabled_title', 'Desktop Notifications Enabled'), {body: t('notifications.enabled_body', 'You will now receive alerts for task deadlines and habits!'),icon: '/logo.png'});} catch (e) {console.warn('[Notifications] Failed to display test notification:', e);
.cursorrulesAdded+28
.gitattributes+1
index.html+1-1
public/logo.pngAdded

Large File Pointer Details
- SHA256: 9c34b40eb6730c5b24e7ec6744b2d51bc290ee53e946d511c64142cb4bbbf33b
- Pointer size: 131 Bytes
- Size of remote file: 713 kB
src/assets/hero.png


src/assets/logo.pngAdded

Large File Pointer Details
- SHA256: 9c34b40eb6730c5b24e7ec6744b2d51bc290ee53e946d511c64142cb4bbbf33b
- Pointer size: 131 Bytes
- Size of remote file: 713 kB
src/context/AchievementNotificationContext.jsx+29-8
src/layouts/Layout.jsx+7-4
src/locales/en.json+2
src/locales/uk.json+2
src/pages/SettingsPage.jsx+1-1