|
1 | | -# React + TypeScript + Vite |
| 1 | +# 🗓️ Deeeep: A Calendar-View Producticity Tracker |
2 | 2 |
|
3 | | -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. |
| 3 | +A modern web application designed to help you visualize and optimize your **deep work** sessions. |
| 4 | +Track your focused work time with real-time timers, and manage your sessions using two powerful productivity views: |
4 | 5 |
|
5 | | -Currently, two official plugins are available: |
| 6 | +- **🧠 Work Log Calendar** – displays detailed logs grouped by hour with a daily timeline for reflection and analysis |
| 7 | +- **⏰ Time Calendar** – an interactive scheduling interface to plan and edit events in your day |
6 | 8 |
|
7 | | -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh |
8 | | -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh |
| 9 | +Stay focused. Stay intentional. Build better habits for productive work. |
9 | 10 |
|
10 | | -## Expanding the ESLint configuration |
| 11 | +## 🔧 Tech Stack |
11 | 12 |
|
12 | | -If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: |
| 13 | +- **React + TypeScript** |
| 14 | +- **FullCalendar.js** for scheduling and day view UI |
| 15 | +- **Tailwind CSS** for styling |
| 16 | +- **LocalStorage** |
| 17 | +- **Custom React Hooks** |
13 | 18 |
|
14 | | -- Configure the top-level `parserOptions` property like this: |
| 19 | +--- |
15 | 20 |
|
16 | | -```js |
17 | | -export default tseslint.config({ |
18 | | - languageOptions: { |
19 | | - // other options... |
20 | | - parserOptions: { |
21 | | - project: ['./tsconfig.node.json', './tsconfig.app.json'], |
22 | | - tsconfigRootDir: import.meta.dirname, |
23 | | - }, |
24 | | - }, |
25 | | -}) |
| 21 | +## ✨ Features |
| 22 | + |
| 23 | +### 🕒 Work Log Timer |
| 24 | +- Start/stop a timer to track your current work session |
| 25 | +- Real-time elapsed time display |
| 26 | +- Automatic log saving with `start` and `end` timestamps |
| 27 | +- Summary of total work time for each day |
| 28 | + |
| 29 | +### 📅 Interactive Calendar |
| 30 | +- View, create, edit, and delete work events |
| 31 | +- Drag-and-drop and resize events in the calendar |
| 32 | +- Timeline grouping by hour |
| 33 | +- Form modal to edit event details |
| 34 | + |
| 35 | +### 📂 LocalStorage Persistence |
| 36 | +- Events and logs are saved locally |
| 37 | +- Mocked API services abstract localStorage access (`eventService.ts`, `workLogService.ts`) |
| 38 | + |
| 39 | +--- |
| 40 | + |
| 41 | +## 🚀 Getting Started |
| 42 | + |
| 43 | +### 1. Clone the Repository |
| 44 | + |
| 45 | +``` |
| 46 | +git clone https://github.com/your-username/work-log-tracker.git |
| 47 | +cd work-log-tracker |
| 48 | +``` |
| 49 | + |
| 50 | +### 2. Install Dependencies |
| 51 | +``` |
| 52 | +npm install |
26 | 53 | ``` |
27 | 54 |
|
28 | | -- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` |
29 | | -- Optionally add `...tseslint.configs.stylisticTypeChecked` |
30 | | -- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: |
| 55 | +### 3. Run the App |
| 56 | +``` |
| 57 | +npm run dev |
| 58 | +``` |
| 59 | +The app will be available at http://localhost:5173/ (Vite default). |
31 | 60 |
|
32 | | -```js |
33 | | -// eslint.config.js |
34 | | -import react from 'eslint-plugin-react' |
| 61 | +## 📁 Project Structure |
| 62 | +``` |
| 63 | +src/ |
| 64 | +├── components/ |
| 65 | +│ ├── calendar/ |
| 66 | +│ ├── event/ |
| 67 | +│ └── timer/ |
| 68 | +├── hooks/ |
| 69 | +│ ├── useCalendarEvents.ts |
| 70 | +│ ├── useTimer.ts |
| 71 | +│ └── useWorkLog.ts |
| 72 | +├── api/ |
| 73 | +│ ├── eventService.ts |
| 74 | +│ └── workLogService.ts |
| 75 | +├── types/ |
| 76 | +│ └── workLog.type.ts |
| 77 | +🧠 Future Improvements |
| 78 | +Backend integration (Node.js + DB) |
35 | 79 |
|
36 | | -export default tseslint.config({ |
37 | | - // Set the react version |
38 | | - settings: { react: { version: '18.3' } }, |
39 | | - plugins: { |
40 | | - // Add the react plugin |
41 | | - react, |
42 | | - }, |
43 | | - rules: { |
44 | | - // other rules... |
45 | | - // Enable its recommended rules |
46 | | - ...react.configs.recommended.rules, |
47 | | - ...react.configs['jsx-runtime'].rules, |
48 | | - }, |
49 | | -}) |
| 80 | +User authentication |
| 81 | +
|
| 82 | +Export logs as CSV/PDF |
| 83 | +
|
| 84 | +Tagging or categorization for work sessions |
| 85 | +
|
| 86 | +Analytics dashboard |
50 | 87 | ``` |
| 88 | + |
| 89 | +## 🙌 Contributing |
| 90 | +Contributions are welcome! |
| 91 | +Please open an issue or submit a pull request. |
0 commit comments