Skip to content

Commit 3d72e63

Browse files
authored
Merge branch 'main' into feature/edit-streak-date
2 parents 0193b58 + ec115da commit 3d72e63

25 files changed

+3175
-635
lines changed

.github/workflows/greetings.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: "Welcome to the repo! Thanks for stopping by 🚀🚀🚀"
16+
pr-message: "Almost at your first merged PR here! Super exciting 🥳🥳🥳"

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,21 @@ This project is built with modern web technologies:
2525

2626
- 🔒 **Secure Authentication**: User account creation and login
2727
- 📊 **Progress Analytics**: Track your journey with visual analytics
28-
- 🧘 **Guided Meditations**: Access specialized meditations
28+
- 🧘 **Guided Meditations**: Access specialized meditations and journal prompts
2929
- 🆘 **Emergency Support**: Panic button for immediate help
3030
- 🌍 **Global Community**: Connect with others on the same journey
31-
- 🔐 **Privacy-Focused**: All data is private and anonymized
31+
32+
33+
## Contributing
34+
35+
Contributions are welcome! Please feel free to submit a Pull Request.
36+
37+
1. Fork the repository
38+
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
39+
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
40+
4. Push to the branch (`git push origin feature/amazing-feature`)
41+
5. Open a Pull Request
42+
3243

3344
## Getting Started
3445

@@ -72,8 +83,10 @@ This project is built with modern web technologies:
7283
```
7384

7485
You can use the `.env.sample` file as a template.
86+
**Note: Enable email/pwd authentication in your firebase console.**
7587

76-
5. Start the development server:
88+
89+
6. Start the development server:
7790
```bash
7891
npm run dev
7992
# or
@@ -82,7 +95,7 @@ This project is built with modern web technologies:
8295
pnpm dev
8396
```
8497

85-
6. Open your browser and navigate to `http://localhost:8080`
98+
7. Open your browser and navigate to `http://localhost:8080`
8699

87100
### Building for Production
88101

@@ -119,13 +132,3 @@ This application uses Firebase Authentication for user management. Users can:
119132
- Log in with existing credentials
120133
- Access protected routes (dashboard, profile, etc.)
121134
- Admin users have access to additional
122-
123-
## Contributing
124-
125-
Contributions are welcome! Please feel free to submit a Pull Request.
126-
127-
1. Fork the repository
128-
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
129-
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
130-
4. Push to the branch (`git push origin feature/amazing-feature`)
131-
5. Open a Pull Request

package-lock.json

Lines changed: 40 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@tanstack/react-query": "^5.56.2",
4343
"@types/leaflet": "^1.9.8",
4444
"@vercel/analytics": "^1.5.0",
45+
"@vercel/speed-insights": "^1.2.0",
4546
"class-variance-authority": "^0.7.1",
4647
"clsx": "^2.1.1",
4748
"cmdk": "^1.0.0",
@@ -72,7 +73,7 @@
7273
"@eslint/js": "^9.9.0",
7374
"@tailwindcss/typography": "^0.5.15",
7475
"@types/node": "^22.5.5",
75-
"@types/react": "^18.3.3",
76+
"@types/react": "^18.3.19",
7677
"@types/react-dom": "^18.3.0",
7778
"@vitejs/plugin-react-swc": "^3.5.0",
7879
"autoprefixer": "^10.4.20",

src/App.tsx

Lines changed: 47 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import { Toaster } from "@/components/ui/toaster";
33
import { Toaster as Sonner } from "@/components/ui/sonner";
44
import { TooltipProvider } from "@/components/ui/tooltip";
55
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
6-
import { BrowserRouter, Routes, Route, Navigate } from "react-router-dom";
6+
import { BrowserRouter, Routes, Route } from "react-router-dom";
77
import { AuthProvider } from "./utils/auth";
88
import AuthWrapper from "./components/AuthWrapper";
99

1010
// Pages
1111
import Index from "./pages/Index";
1212
import Login from "./pages/Login";
1313
import Register from "./pages/Register";
14+
import ForgotPassword from "./pages/ForgotPassword";
1415
import Dashboard from "./pages/Dashboard";
1516
import Community from "./pages/Community";
1617
import Meditations from "./pages/Meditations";
@@ -21,6 +22,8 @@ import NotFound from "./pages/NotFound";
2122
import Navbar from "./components/Navbar";
2223
import Profile from "./pages/Profile";
2324
import Goodbye from "./pages/Goodbye";
25+
import Journal from "./pages/Journal";
26+
import JournalEntries from "./pages/JournalEntries";
2427

2528
const queryClient = new QueryClient();
2629

@@ -39,76 +42,93 @@ const App = () => (
3942
<Route path="/" element={<Index />} />
4043
<Route path="/login" element={<Login />} />
4144
<Route path="/register" element={<Register />} />
45+
<Route path="/forgot-password" element={<ForgotPassword />} />
4246

4347
{/* Protected member routes */}
44-
<Route
45-
path="/dashboard"
48+
<Route
49+
path="/dashboard"
4650
element={
4751
<AuthWrapper requireAuth>
4852
<Dashboard />
4953
</AuthWrapper>
50-
}
54+
}
5155
/>
52-
<Route
53-
path="/profile"
56+
<Route
57+
path="/profile"
5458
element={
5559
<AuthWrapper requireAuth>
5660
<Profile />
5761
</AuthWrapper>
58-
}
62+
}
5963
/>
60-
<Route
61-
path="/community"
64+
<Route
65+
path="/community"
6266
element={
6367
<AuthWrapper requireAuth>
6468
<Community />
6569
</AuthWrapper>
66-
}
70+
}
6771
/>
68-
<Route
69-
path="/meditations"
72+
<Route
73+
path="/meditations"
7074
element={
7175
<AuthWrapper requireAuth>
7276
<Meditations />
7377
</AuthWrapper>
74-
}
78+
}
7579
/>
76-
<Route
77-
path="/analytics"
80+
<Route
81+
path="/analytics"
7882
element={
7983
<AuthWrapper requireAuth>
8084
<Analytics />
8185
</AuthWrapper>
82-
}
86+
}
8387
/>
84-
<Route
85-
path="/map"
88+
<Route
89+
path="/map"
8690
element={
8791
<AuthWrapper requireAuth>
8892
<Map />
8993
</AuthWrapper>
90-
}
94+
}
95+
/>
96+
<Route
97+
path="/journal"
98+
element={
99+
<AuthWrapper requireAuth>
100+
<Journal />
101+
</AuthWrapper>
102+
}
103+
/>
104+
<Route
105+
path="/journal-entries"
106+
element={
107+
<AuthWrapper requireAuth>
108+
<JournalEntries />
109+
</AuthWrapper>
110+
}
91111
/>
92112

93113
{/* Admin routes */}
94-
<Route
95-
path="/admin"
114+
<Route
115+
path="/admin"
96116
element={
97117
<AuthWrapper requireAuth requireAdmin>
98118
<Admin />
99119
</AuthWrapper>
100-
}
120+
}
101121
/>
102122

103-
<Route
104-
path="/goodbye"
123+
<Route
124+
path="/goodbye"
105125
element={
106126
<AuthWrapper requireAuth>
107127
<Goodbye />
108128
</AuthWrapper>
109-
}
129+
}
110130
/>
111-
131+
112132
{/* Catch-all route */}
113133
<Route path="*" element={<NotFound />} />
114134
</Routes>
@@ -120,4 +140,4 @@ const App = () => (
120140
</QueryClientProvider>
121141
);
122142

123-
export default App;
143+
export default App;

0 commit comments

Comments
 (0)