Commit Graph

22 Commits

Author SHA1 Message Date
Emil Hellman 957650699c
Merge branch 'main' into feat/abscense-registration-hjarntorget 2021-12-15 09:48:00 +01:00
Emil Lindqvist de6aef638e Make registerAbscence work with Hjärntorget
This changes teh registerAbscence api to use DateTime instead of Date,
mainly to be consistent with getSchedule that already used DateTime.

The main fixes that was missing is properly formatting the start and end
dates sent to the server and ensuring a `Referer` header is included
similar to what is sent in the browser.
2021-12-15 09:43:04 +01:00
Kajetan Kazimierczak b7dbd356c6
feat: 🎸 Hämta lärare och skolkontakter från api-skolplattfomen och visa lärarens namn i schemat (#589)
* feat: 🎸 Get list of teachers from api-skolplattfomen

* feat: 🎸 teachers and school contacts in hooks

* style: 💄 lint

* chore: 🤖 fakeData for matching some lessons with teachers

* feat: 🎸 Teacher's names in timetable (where available)

* test: 💍 fix failing tests (add mocks for new calls)
2021-12-10 10:33:52 +01:00
Andreas Eriksson 933a8840a3
feat: 🎸 Fix image load and typescript errors (#570)
* Update Cocoapods version
* Use new api GetRequestHeaders to get headers
* Remove warnings of missing colors and brushes
* Fix typing errors
* Change affected main branch to main
* Remove unused feature toggle
* Add dummy login checker to remove using any
2021-12-02 15:34:15 +01:00
Viktor Sarström 411053c5d0 feat: 🎸 Abscense registration for HT and Skolplattformen 2021-12-02 09:54:04 +01:00
Viktor Sarström d26fd62e5c fix: 🐛 merge 2021-11-27 20:27:40 +01:00
Kajetan Kazimierczak 508b0792a1 fix: 🐛 error loading SKOLA24_CHILDREN SAML 2021-11-26 23:59:59 +01:00
Jonathan Edenström 97e131d30d fix: fetch typings 2021-11-24 07:17:37 +01:00
Andreas Eriksson d24347f272
refactor: Fix typescript build errors (#539) 2021-11-15 23:36:26 +01:00
Viktor Sarström 46632691bf fix: 🐛 Fixes TS config + lint etc 2021-11-12 13:46:25 +01:00
Viktor Sarström 9d213413be fix: 🐛 Merge with master 2021-11-09 10:53:07 +01:00
Emil Lindqvist 2162221322 Add interface for hjarntorget and skkolplattformen 2021-11-09 10:28:48 +01:00
Emil Lindqvist aeeab7feb6 Rename skolplattfomen api 2021-11-09 10:27:38 +01:00
Emil Lindqvist a9603422c8 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-11-09 10:25:31 +01:00
Andreas Eriksson beaf991342 Add check for correct set-cookie header in response
This way we can detect when the api returns data for the wrong child. We then throw an exception.
In the app the api-hooks library retires requests when errors occur so we try again and hope
that correct data is returned.
2021-10-30 15:23:40 +02:00
Emil Lindqvist 456e1a520c Make run scripts work with new structure 2021-10-11 10:50:23 +02:00
Emil Lindqvist 52c4c03665 Add interface for hjarntorget and skkolplattformen 2021-10-11 09:57:22 +02:00
Emil Lindqvist 85ffe3e40d Rename skolplattfomen api 2021-10-11 09:45:36 +02:00
Emil Lindqvist 214fa44bc6 Extract common code from api-skolplattformen
Common code consists of shared types, some helpers along with a few
common infrastructure code for fetching data and handling cookies etc.
Shortly a common `Api` interface will be introduced that  both
skolplattformen and hjarntorget will adhere to initially.
2021-10-10 21:09:14 +02:00
Jonathan Edenström 169b5365e9 fix: lint and prettier fixes 2021-10-06 22:47:50 +02:00
Jonathan Edenström 18ed8620af fix: rename and fix imports 2021-10-05 17:44:14 +02:00
Erik Hellman 8832990524 Moved to libs directory 2021-10-03 11:32:39 +02:00
Renamed from lib/api.ts (Browse further)