diff --git a/.agent/skills/close_feature.json b/.agent/skills/close_feature.json deleted file mode 100644 index 5840243..0000000 --- a/.agent/skills/close_feature.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "close_feature", - "description": "Closes a feature branch by merging it into main, verifying functionality with the user, and then pushing and deleting the branch.", - "instructions": "When the user invokes this skill to close a feature branch, execute the following workflow:\n\n1. Identify the current feature branch using `git branch --show-current`. If the user is currently on `main`, ask them to specify which feature branch they want to close.\n2. Use the `run_command` tool to execute `git checkout main` and `git pull origin main`.\n3. Use the `run_command` tool to execute `git merge `.\n4. STOP execution and ask the user to verify that the code/application still works correctly (Control Flow). Ask them to reply with 'approved' or 'yes' when they are ready to proceed.\n5. Once the user confirms, use the `run_command` tool to execute `git push origin main` and `git branch -d `.\n6. Notify the user that the feature branch has been successfully closed." -} diff --git a/DESIGN_GUIDE.md b/.agents/DESIGN_GUIDE.md similarity index 100% rename from DESIGN_GUIDE.md rename to .agents/DESIGN_GUIDE.md diff --git a/TODO.md b/.agents/TODO.md similarity index 100% rename from TODO.md rename to .agents/TODO.md diff --git a/.agents/brain.md b/.agents/brain.md new file mode 100644 index 0000000..e00adc1 --- /dev/null +++ b/.agents/brain.md @@ -0,0 +1,31 @@ +# FlixCooks Project Brain + +This document summarizes the architectural knowledge, conventions, and learnings accumulated during our session. + +## 1. Project Architecture & Stack +- **Backend:** Vanilla PHP. The project intentionally avoids heavy frameworks. +- **Database:** Flat-file JSON database (`data/recipes.json`). Data is loaded and saved via utility functions in `helpers.php`. +- **Admin Panel (`admin.php`):** Acts as a lightweight CMS. It uses simple textareas where each line maps to an array element (e.g., for `ingredients`, `steps`, `step_videos`, `step_timers`). This keeps the JSON structure clean and parsing straightforward. +- **Frontend:** Server-rendered PHP templates (`index.php`, `recipe.php`) with Vanilla JavaScript and Vanilla CSS. No Tailwind or heavy component libraries. + +## 2. Design & Aesthetics +- **CSS:** Highly customized CSS with modern design tokens (e.g., `var(--ease-out-expo)`, `var(--surface-1)`). +- **Animations:** Employs sophisticated micro-animations, glassmorphism (`backdrop-filter: blur`), and dynamic layouts (e.g., `clip-path` for overlays). +- **Smooth Scrolling:** Uses **Lenis** (`LenisSmoothScroll`). + - *Crucial Rule:* Whenever a fullscreen overlay (like the Cooking Mode) is opened, `lenis.stop()` must be called to prevent background scrolling. When closed, call `lenis.start()`. +- **Preloader:** A custom `CapitoliumPreloader` runs on the homepage. It is cached in `sessionStorage('flixcooks_preloader_seen')` so it only fires once per browsing session. + +## 3. Antigravity Agent Configuration +- **Workspace Rules:** Best placed in `.agents/rules/` (e.g., `AGENT.md`). To ensure they are always active, the frontmatter must include: + ```yaml + always_on: true + glob: "*" + ``` +- **Custom Skills:** Can be defined as JSON files in `.agents/skills/`. We successfully created `close_feature.json` to automate the Git workflow of checking out `main`, merging a feature branch, verifying functionality, and deleting the branch. + +## 4. Completed Milestones +- **Phase 3 (Nutrition):** Implemented. Recipes now store `calories`, `protein`, `carbs`, and `fat`. Admin panel handles inputs, and the UI displays them beautifully. +- **Phase 4 (Interactive Cooking Mode):** Implemented. Recipes now support step-by-step looping background videos and interactive timers (`step_videos`, `step_timers`). The UI utilizes a fullscreen overlay slider with Vanilla JS logic. + +## 5. Next Steps +According to `TODO.md`, the next major feature block is **Phase 5 (PWA & Offline Support)**, which involves service workers, manifest files, and enabling the app to be installable on mobile devices. diff --git a/error.log.20260313.gz b/error.log.20260313.gz deleted file mode 100644 index a669362..0000000 Binary files a/error.log.20260313.gz and /dev/null differ