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
4c54283bfd
Finalized students app
2025-01-28 10:03:20 +01:00
Kevin FEDYNA
e88045c952
Refactored students
2025-01-27 13:11:13 +01:00
Kevin FEDYNA
4ff76fdf6f
Added hidden admin only page prop effect
2025-01-27 10:39:42 +01:00
Kevin FEDYNA
1f3a723dbe
Merge branch 'main' into PMPR-27
2025-01-25 10:48:41 +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
Kevin FEDYNA
8a5461827e
Optimized code and wrote documentation
2025-01-22 11:15:43 +01:00
Clayzxr
d767cb0898
Minor fix for DB (working)
2025-01-22 11:00:18 +01:00
Kevin FEDYNA
3ce1273455
Started documenting code
2025-01-22 00:54:43 +01:00
Kevin FEDYNA
596ee0536a
formatted code
2025-01-21 23:53:43 +01:00
Kevin FEDYNA
5e75c688c8
Added layer of abstraction for database connection
2025-01-21 23:49:52 +01:00
Kevin FEDYNA
85766ffeed
changed login and logout to adapt to domain and added ToU
2025-01-21 22:31:36 +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
Kevin FEDYNA
b1aa4064b1
Merge pull request #25 from fedyna-k/PMPR-22
...
Pmpr 22
2025-01-21 16:11:56 +01:00
Kevin FEDYNA
fa66621abc
Fixed partial handling and added cookies
2025-01-21 16:09:36 +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
fedyna-k
46a417f411
Added auto database creation based on sql scripts and jwt key cache
2025-01-16 23:13:58 +01:00
fedyna-k
b9094fce01
CSS patch for better pages
2025-01-16 20:52:22 +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
fedyna-k
7036e907d7
Changed website style
2025-01-15 22:11:56 +01:00
Kevin FEDYNA
b894930e12
Fix after MR
2025-01-15 15:57:08 +01:00
Kevin FEDYNA
3f3c7be1f9
Merge branch 'main' into PMPR-3
2025-01-15 15:48:50 +01:00
Clayzxr
8cee593d33
Adding cards for modules and creating mobility module
2025-01-15 15:44:52 +01:00