Commit Graph
445 Commits
Author SHA1 Message Date
Axel AdlercreutzandGitHub 60da905a97 fix build error (#138)
* fix build error

* rm slug
2025-03-06 15:09:57 +02:00
8f41938fd5 RedHat OpenShift deployment functionality (#137)
* Testing openshift setups

* husky caused some error in the redhatopenshift environement so I am trying to debugg that

* trying to debugg the deployment for openshift

* more debbugging for getting the app deployed on openshift

* more debugging for openshift deployment

* same as the other previous 2 commits

* continuing the debugg

* making a memory optimization to Dockerfile for getting this next.js app deployed

* made a : Deploy Dockerimage to github registry functionality

* fixed a syntax issue, regarding to this push

* added 2 missing lines of code for deploying docker image to Github registry

* added a new tag and deleted unused files

* tags? (#133)

* openshift deployment functionality

---------

Co-authored-by: Axel Adlercreutz <39679469+DoebelnAtz@users.noreply.github.com>
2025-03-06 15:03:25 +02:00
Vili-Ilari KaistoandGitHub 4f4121cb95 fix renaming migrate files (#136) 2025-03-06 12:51:39 +02:00
Vili-Ilari KaistoandGitHub 4ac9a8d17c Vili/username (#135)
* update db includes username

* add create username

* add username as login option

* update login test
2025-03-06 12:36:51 +02:00
Jukka KuustoandGitHub ddd404d3f8 Jukka/login refactor (#132)
* Refactor password verification logic into verifyPassword()

* Refactor: Move session.js to backend/auth and update imports and test mock paths
2025-03-06 10:32:11 +02:00
Axel AdlercreutzandGitHub 7d92d64278 do pgmigrate in docker (#131) 2025-03-03 13:43:18 +02:00
Mari LehtikariandGitHub 7660bb9d97 Updated front page and navigation (#129)
* Added how you learn and learn grammar buttons to front page

* updated forms link

* Removed unnecessary buttons from front page

* Updated front page UI and navigation
2025-02-27 19:55:30 +02:00
Jukka KuustoandGitHub 792f75ead9 Jukka/login db (#128)
* Add input email and password verification by comparing to db entry
2025-02-27 16:11:01 +02:00
a4fce8fce3 modified error and success messages (#127)
Co-authored-by: Visuri Emil A <evisuri@cubbli22-gold.local>
2025-02-27 15:33:04 +02:00
Axel AdlercreutzandGitHub 068435bf15 axel/user survey front (#104)
* migrate form schema

* refactored sidebar & init form frontend

* added radio button (that dont radio)

* wip

* add to user test

* added tests

* auth

* working answers

* previous & next logic

* custom radio button

* custom radio button

* fix render issue

* answer page

* fix style

* regen data

* fix teil

* cleanup

* generic placeholder user
2025-02-27 15:14:59 +02:00
e8639db6c0 Vili/routing register (#66)
* route to backend (hello world)

* add route for register

* fix lint

* fix routing

* connect to db

* add hashing with salt

* add error handling

* add unit tests for register

* fix errors

* axel/fix-import

* fix register

* update response to use error instead of message

* fix tests

* fix register

* testfactory user toLowerCase()

* fix migrate

* fix register style

* fix layout

---------

Co-authored-by: DoebelnAtz <axel.ej.adlercreutz@gmail.com>
2025-02-27 12:57:46 +02:00
4d34590cd6 Emil/auth (#103)
* Modified error and success messages on login and register pages

* deleted few old comments

* added prettier on devDependecies

* fixed bugs

* added username to users table

* deleted username from users table

* upgraded Zod

* fixed a few issues

---------

Co-authored-by: Visuri Emil A <evisuri@cubbli22-gold.local>
2025-02-27 12:28:48 +02:00
Mari LehtikariandGitHub ccb70241c2 Updated the header (#112)
* Added new placeholder logo and linked it to the front page

* Removed unnecessary link, linked Anmeldung to the Login page

* Added lock icon to the login link
2025-02-26 12:20:17 +02:00
8045cc4175 Created simple lesson and exercise pages (#91)
* Added basic lessons page. Added a logo placeholder.

* Added basic navigation bar

* Added styling to navigation bar

* Added sidebar navigation

* Added a drop-down menu, color corrections

* Fixed text wrapping issue

* Some fixes to lessons-page and cleaning the code

* Added grammar boxes and fixed ui

* Added two more grammatik boxes. Made show more -links to each box and some css-styling to links

* Changed Übung-texts to links and changed css styling for different links

* Changed the code so you don't have to do so much manual work when adding a new grammatik box. Still needs some styling though

* Fixed the h1-title bug so that it is not hidden underneath the sidebar anymore

* Made links from lessons-page to one exercise-page. Created a route to exercises, however, it still needs to be changed since one page isn't enough.

* Changed the ui for exercise-page

* Made changes based on the comments in PR draft

* Started implementing simple test

* Deleted the unnecessary test. Fixed lessons-page based on comments. Changed back filenames

* Changed button name to German

---------

Co-authored-by: Mari Lehtikari <mari.lehtikari@helsinki.fi>
2025-02-26 11:31:53 +02:00
Axel AdlercreutzandGitHub dea5aaf376 Axel/user survey (#92)
* config file

* init formcomponent

* form migration

* form migration

* init populate migration

* form route

* cleanup and test fixesgps

* cleanup

* cleanup

* button

* fix zod issue

* fix tests

* update tests to use mock requests
2025-02-19 17:57:59 +02:00
Axel AdlercreutzandGitHub 229f1a59c8 fix zod issue (#100) 2025-02-19 13:58:42 +02:00
Jukka KuustoandGitHub a5c58b10eb Jukka/session cookie (#96)
* Add session cookie creation

* Create logout function, create tests, refactoring, minor chores

* Fix logout api and test, some housekeeping
2025-02-19 10:55:02 +02:00
Axel AdlercreutzandGitHub 55a6070f50 axel/custom components (#98)
* button

* dropdown
2025-02-19 10:28:28 +02:00
Mari LehtikariandGitHub ccb75bb6b5 Added Radix UI Library (#94) 2025-02-18 14:02:38 +02:00
Vili-Ilari KaistoandGitHub 660d6e3de8 Update README.md (#51) 2025-02-13 12:17:01 +02:00
Axel AdlercreutzandGitHub e91c537976 axel/fix-script (#87) 2025-02-12 16:27:45 +00:00
Salla RautiainenandGitHub 485b6332bb Added priority to logo to fix a warning. (#80) 2025-02-11 10:53:08 +02:00
Axel AdlercreutzandGitHub 8a90a000c0 added test factory (#81)
* added test factory

* update comment
2025-02-11 09:30:27 +02:00
Axel AdlercreutzandGitHub c89b54d1d1 axel/fix nav styles (#75)
* fix formatting

* fixed styles
2025-02-06 15:52:51 +02:00
Axel AdlercreutzandGitHub 023a529e2e fix formatting (#71) 2025-02-06 15:22:15 +02:00
Jukka KuustoandGitHub ecb0457314 Add try-catch statement for upcoming login validation, globals.css support (#55) 2025-02-06 09:24:34 +02:00
Vili-Ilari KaistoandGitHub 88696d4f9b vili/register (#61)
* add register page

* update register

* fix register
2025-02-05 19:06:23 +02:00
a580bfb9e1 Basic navigation bars (#59)
* Basic navigation bar

* Added basic navigation bar

* Added styling to navigation bar

* Added sidebar navigation

* Added a dropdown menu, color corrections

* Fixed text wrapping issue

* Update gradesa/src/components/ui/sidenavigation.js

Co-authored-by: Axel Adlercreutz <39679469+DoebelnAtz@users.noreply.github.com>

* small fixes

* Fixed style issues in code with Prettier

---------

Co-authored-by: Salla Rautiainen <152855958+rautiais@users.noreply.github.com>
Co-authored-by: Axel Adlercreutz <39679469+DoebelnAtz@users.noreply.github.com>
2025-02-05 17:07:17 +02:00
84da650a8f Emil/db migrations (#58)
* Add users table migration

* Add users table migration and update schema

* Add users table migration

* updated schema, users table and .env.test

* added public.users table

* Add users table migration

* Add users table migration

* more fixing

* prettier, husky and editorconfig

* husky

* update actions

* Move deps

* fixed workflow

* regenerate schema

* fix generated schema

* move to dev dep

---------

Co-authored-by: Visuri Emil A <evisuri@cubbli22-gold.local>
Co-authored-by: DoebelnAtz <axel.ej.adlercreutz@gmail.com>
2025-02-05 16:20:18 +02:00
Jukka KuustoandGitHub 2d4ce31cdf Create route for Login page (#35)
* Create route for Login page

* Add login form and basic layout pattern for auth with placeholder styling

* Add basic event handling for form

* Add controlled inputs to form
2025-02-04 20:18:01 +02:00
Axel AdlercreutzandGitHub db2362d8cd add color variables (#43) 2025-02-03 21:05:19 +02:00
Axel AdlercreutzandGitHub 96ab39f77e accidentally made the hook a function call rather than having it return a fumnction... (#41) 2025-02-03 13:00:40 +02:00
Axel AdlercreutzandGitHub f68fd577ae axel/fetching logic (#39)
* simple implementation

* refetch, useRequest

* show error
2025-02-03 12:56:08 +02:00
Jukka KuustoandGitHub 24bfaa2841 Update README, create package-lock.json (#34) 2025-01-31 10:02:11 +02:00
Axel AdlercreutzandGitHub 21e465a002 axel/update port (#33)
* updated port

* updated port

* fix script ports
2025-01-30 14:44:28 +02:00
Salla RautiainenandGitHub 190fe5feb0 Update README.md (#32)
Delete duplication
2025-01-29 14:24:34 +02:00
Axel AdlercreutzandGitHub 72bddbb197 add bypass (#31)
* add bypass

* update readme
2025-01-29 11:43:13 +02:00
Axel AdlercreutzandGitHub 556a801ebf axel/setup test env (#30)
* setup db & migrations

* bugfixes

* README updates

* updates to readme

* not tracking .env.dev

* README update

* cleanup

* init tests

* updated db logic to allow for test db

* remove unnecessary await

* semi working tests

* rm jest

* init test environment

* cleanup

* github actions

* fix conflict

* force npm

* maybe fix pipeline?

* workflow debugging

* permission issue?

* more debug

* empty migration?

* fix

* include test env in repo

* more tests

* added logging

* bugfix

* comments
2025-01-26 19:16:02 +02:00
6ded19a4ec axel/setup db n migrations (#29)
* setup db & migrations

* bugfixes

* README updates

* updates to readme

* not tracking .env.dev

* README update

* cleanup

* updated db logic to allow for test db

* remove unnecessary await

---------

Co-authored-by: Jukka Kuusto <38991418+jkuusto@users.noreply.github.com>
2025-01-24 15:09:46 +02:00
Mari LehtikariandGitHub c0c4d96e0d Update new backlogs to README.md (#28) 2025-01-24 13:39:13 +02:00
rautiaisandGitHub 6cc2feaae6 Create README.md (#5) 2025-01-21 14:16:20 +02:00
Axel AdlercreutzandGitHub 27f218d9e9 6 setup nextjs (#7)
* yeet django & vite-react

* setup nextjs

* update workflow
2025-01-19 12:14:23 +02:00
Axel AdlercreutzandGitHub 97f4dc1abb add gh workflow (#1)
* add gh workflow

* cache node_modules

* cache subdir
2025-01-17 12:51:01 +02:00
DoebelnAtz 1e88b5065d compose 2025-01-14 19:58:04 +02:00
DoebelnAtz f535953a52 init django & react 2025-01-14 19:38:50 +02:00