Skip to content

Commit bc0f6b8

Browse files
committed
feat(dashboard): Fixes #138 - Dashboard membres et teams
1 parent 5872255 commit bc0f6b8

7 files changed

Lines changed: 40 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
-
2727
---
2828

29+
## [0.3.0] - 2026-04-05
30+
31+
### Ajouté
32+
- Login User
33+
- Dashboard admin : gestion des membres par équipe et saison
34+
- Dashboard admin : page utilisateurs avec création/modification/vérification
35+
- Gestion des rôles par subdocument (roleId)
36+
- Photo par assignation équipe/saison
37+
- Bénévoles sans équipe
38+
39+
### Corrigé
40+
- Email SMTP fixe au lieu de compte Ethereal recréé à chaque restart
41+
- Upload URL relative via NEXT_PUBLIC_API_URL
42+
43+
### Infrastructure
44+
- Dockerfiles backend et frontend
45+
- GitHub Actions : lint, tests, audit, deploy
46+
47+
---
48+
2949
## [0.2.0] - 2026-02-11
3050
### Ajouté
3151

saintBarthVolleyApp/backend/server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const PORT = process.env.PORT || 5000;
99
const MONGO_URI = process.env.MONGO_URI || 'mongodb://127.0.0.1:27017/saintbarthvolley';
1010

1111
// Connexion MongoDB
12-
mongoose.connect(MONGO_URI)
12+
mongoose
13+
.connect(MONGO_URI)
1314
.then(() => {
1415
console.log('MongoDB connected');
1516

@@ -18,4 +19,4 @@ mongoose.connect(MONGO_URI)
1819
console.log(`Server launched on http://localhost:${PORT}`);
1920
});
2021
})
21-
.catch(err => console.error('Error MongoDB:', err));
22+
.catch((err) => console.error('Error MongoDB:', err));
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// const path = require('path')
2-
2+
33
// const buildEslintCommand = (filenames) =>
44
// `eslint --fix ${filenames
55
// .map((f) => `"${path.relative(process.cwd(), f)}"`)
66
// .join(' ')}`
7-
7+
88
// module.exports = {
99
// '*.{js,jsx,ts,tsx}': [buildEslintCommand],
10-
// }
10+
// }
Binary file not shown.

saintBarthVolleyApp/frontend/.next/dev/cache/turbopack/0c06f068/LOG

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12411,3 +12411,15 @@ FAM | META SEQ | SST SEQ | RANGE
1241112411
0 | 00009243 | 00009242 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
1241212412
1 | 00009244 | 00009241 SST | [==================================================================================================] | 0062025520cc5c4c-ffc2b864b4ce0290 (2 MiB, fresh)
1241312413
2 | 00009245 | 00009240 SST | [=================================================================================================] | 00bc9fb3e020309a-fd04f6de9ca28eef (0 MiB, fresh)
12414+
Time 2026-04-05T18:31:59.435054952Z
12415+
Commit 00009251 439 keys in 14ms 113µs 501ns
12416+
FAM | META SEQ | SST SEQ | RANGE
12417+
0 | 00009249 | 00009248 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
12418+
1 | 00009250 | 00009247 SST | [==================================================================================================] | 0062025520cc5c4c-ffc2b864b4ce0290 (0 MiB, fresh)
12419+
2 | 00009251 | 00009246 SST | [=============================================================================================] | 0b9cb4f74c19b653-fcfd802d776dbd81 (0 MiB, fresh)
12420+
Time 2026-04-05T18:36:34.857588126Z
12421+
Commit 00009257 634 keys in 9ms 996µs 771ns
12422+
FAM | META SEQ | SST SEQ | RANGE
12423+
0 | 00009255 | 00009254 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
12424+
1 | 00009256 | 00009253 SST | [==================================================================================================] | 00451748c51e234a-ffc2b864b4ce0290 (0 MiB, fresh)
12425+
2 | 00009257 | 00009252 SST | [=================================================================================================] | 01620da624ee84ac-fcb9152771937266 (1 MiB, fresh)

saintBarthVolleyApp/frontend/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export function middleware(req: NextRequest) {
1717

1818
export const config = {
1919
matcher: ["/admin/:path*"],
20-
};
20+
};

saintBarthVolleyApp/frontend/src/app/admin/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function AdminDashboardPage() {
6363
const [loading, setLoading] = React.useState(true);
6464

6565
React.useEffect(() => {
66-
apiFetch("/api/stats")
66+
apiFetch<Stats>("/api/stats")
6767
.then(setStats)
6868
.catch(console.error)
6969
.finally(() => setLoading(false));

0 commit comments

Comments
 (0)