40 Commits

Author SHA1 Message Date
djalim 49bcc3083a fix: faculty users are now recognized as employees
Check Deno code / Check Deno code (push) Has been cancelled
Tests / Unit tests (push) Has been cancelled
Tests / Integration tests (push) Has been cancelled
2026-05-05 15:29:02 +02:00
djalim ed2fe69f54 refactor(props): comment out my-mobility page until student page is fixed
Check Deno code / Check Deno code (pull_request) Successful in 7s
Tests / Unit tests (pull_request) Successful in 13s
Tests / Integration tests (pull_request) Successful in 1m47s
Build and push image / Check Deno code (push) Successful in 5s
Check Deno code / Check Deno code (push) Successful in 7s
Tests / Unit tests (push) Successful in 12s
Tests / Integration tests (push) Successful in 1m49s
Build and push image / Build Docker image (push) Successful in 3m13s
2026-05-01 19:09:31 +02:00
djalim f409d9e5e8 refactor: add employeeOnly flag to mobility props and drop debug log 2026-05-01 19:07:37 +02:00
djalim b6586f7715 feat: made stuff 2026-05-01 14:14:33 +02:00
djalim 9a4c6863d1 feat: stages module, mobility frontend, theme toggle, employeeOnly access control
- Add stages module with full CRUD API and admin overview island
- Add mobility overview island (Liste, Kanban, Detail CRUD views)
- Add contract PDF upload/download endpoints for mobilites
- Add light/dark theme toggle in header
- Add employeeOnly flag to hide entire modules from students (admin, students, stages)
- Add read-only GET endpoints for modules/ues/ue-modules in notes module
- Add [slug].tsx catch-all routes for direct URL navigation
- Replace old mobility table with mobilites + stages schema (migration 0004)
- Allow students to create mobilites and upload contracts
- Redirect authenticated users from / to /apps catalog
2026-05-01 12:47:23 +02:00
djalim 6c18189d9f chore(deps): update drizzle-orm to 0.45.2 and pg to 8.20.0 2026-04-22 14:40:19 +02:00
djalim 9636242b42 refactor(mobility): switch to Drizzle ORM and remove raw SQLite usage
- replace Database with db instance
- use schema imports for tables
- use db.select, db.insert, onConflictDoUpdate
- remove manual connection handling and console logs
- improve type safety and maintainability

refactor(students): migrate to Drizzle ORM and async queries

Replace raw sqlite queries with Drizzle ORM. Remove the connect helper and use the
shared db instance and schema definitions. Convert getItself, getAll and
addStudents to async functions, use eq and lt helpers, and simplify promotion
handling. This improves type safety, maintainability, and allows non‑blocking
database access.
2026-04-03 10:43:29 +02:00
djalim 58c8ff56ba 🐛(components): add missing button types and keys
Check Deno code / Check Deno code (pull_request) Successful in 40s
Add type="button" to the EditMobility and UploadStudents buttons
to prevent default form submission behavior.
Include a key prop on Student components in Promotion for stable list rendering.
2026-01-09 12:41:51 +01:00
Kevin FEDYNA 6d4d36e089 Fixed linting and formatting errors 2025-01-25 10:48:04 +01:00
Clayzxr 16b7579e10 Trying to make EditStudents works 2025-01-24 21:38:53 +01:00
Clayzxr fcc0a4413c Update student to have an ID 2025-01-24 20:48:33 +01:00
Clayzxr c3d3354537 Trying to make EditMobility works 2025-01-24 19:46:53 +01:00
Clayzxr f07b4dc616 Consult mobility working 2025-01-24 17:09:51 +01:00
Clayzxr 575f0df4bc Fixing bugs 2025-01-24 16:23:47 +01:00
Clayzxr a867f67fd9 Trying to fix DB mobility 2025-01-24 16:17:51 +01:00
Clayzxr cc26ec9445 Trying to make mobility works 2025-01-22 22:45:34 +01:00
Clayzxr b835495e15 Consult mobility (not working yet) 2025-01-22 17:06:42 +01:00
Clayzxr 4abf540558 Init mobility DB 2025-01-22 15:09:22 +01:00
Clayzxr 36c5c9cf39 Test to access student DB in other apps (working) 2025-01-22 11:35:47 +01:00
Clayzxr b5fedbb425 Moved all student management tools into student app for global uses (working) 2025-01-21 17:29:59 +01:00
Clayzxr c04505e95d Working DB with table promotions 2025-01-21 16:46:19 +01:00
Clayzxr 661b59645b Minor fix 2025-01-21 16:32:00 +01:00
Clayzxr db6669901b Adding table promotion (consult not working yet) 2025-01-21 16:31:08 +01:00
Kevin FEDYNA 6b8966c5ca Linted and formatted 2025-01-21 16:13:50 +01:00
Clayzxr 9d4183f8b3 Consult students from DB 2025-01-21 15:54:38 +01:00
Clayzxr e049056295 Working DB for students insertion 2025-01-21 15:45:38 +01:00
Clayzxr 0672666bd3 CDN working with Docker 2025-01-21 15:17:47 +01:00
Clayzxr 07148f16b2 pushed changes 2025-01-20 17:33:07 +01:00
Clayzxr a49683c10e Use api for DB 2025-01-20 16:33:06 +01:00
Clayzxr 4057bb488c Trying to use the DB (not working) 2025-01-18 23:38:29 +01:00
Clayzxr 30ffc90b69 pushed changes 2025-01-18 23:26:28 +01:00
Clayzxr 3036f1a1bb pushed changes 2025-01-18 23:10:28 +01:00
Clayzxr 6df75e0604 Use the DB instead of a .csv (not working) 2025-01-17 15:37:27 +01:00
Clayzxr 416aad06ea Temporary student manager 2025-01-17 10:43:39 +01:00
Clayzxr 3987d76d59 Init module PolyMobility & creating pages 2025-01-17 10:43:39 +01:00
Clayzxr a24f8b35c2 Temporary student manager 2025-01-17 10:40:49 +01:00
Clayzxr 7c91f6c69b Init module PolyMobility & creating pages 2025-01-16 14:51:53 +01:00
fedyna-k ce944c8d92 Fixed card CSS and hint 2025-01-15 23:51:54 +01:00
Kevin FEDYNA b894930e12 Fix after MR 2025-01-15 15:57:08 +01:00
Clayzxr 8cee593d33 Adding cards for modules and creating mobility module 2025-01-15 15:44:52 +01:00