Commit 3c51c55
Feat: post api boxes (#616)
* feat: add draft for port of user registration to resource route
* feat: partly implement refresh token
* docs: simplify contributing and add info about api routes and shared logic
* feat(api): finalize user registration endpoint
* fix(tests): get the tests to run be reconfiguring build steps
* docs(db): readd db setup and seed scripts with README info for it
* fix: wrong import of utils
* refactor: remove leftover custom server stuff
* fix(tests): add missing refresh token table
* fix(tests): reenable remaining tests for registration
* fix(ci): remove playwright and use correct node version
* fix(ci): run the tests with a postgres container
* feat(tests): add coverage report
* fix(build): reorganize server modules to correctly split client/ server
* fix(build): miss an import
* fix(build): remove leftovers from custom server implementation
* chore(deps): bump react-router dependencies
* chore(deps): update react-router
* feat/user me api (#559)
* feat(api): add api routes for /users/me
* fix(tests): api me PUT
* feat(api): add delete me endpoint
* feat(api): add root route (#560)
* start
* new commit
* tested docs
* added a route
* Added API Docs
* modified
* removed unsupported packages
* updated
* Modified
* script generation without using ts-node.
* modified
* fix: update package-lock.json
* Updated (#575)
* Updated README
* Updated README
* feat: add command for drizzle studio
* feat: devices loader
* feat: load single device
* feat: uncomment get boxes, delete box path
* feat(wip): add boxes test suite
* feat: add devices service
* fix: some types, formatting
* Removed duplicate Documentation section (#576)
* Updated README
* Updated README
* Removed duplicate section.
* Update README.md
* Feat/api email and password (#561)
* feat(api): add email-confirmation endpoint
* feat(api): add request password reset
* feat(api): add password reset
* feat(api): implement resend email confirmation (without sending yet)
* feat/api auth (#562)
* feat(api): add email-confirmation endpoint
* feat(api): add request password reset
* feat(api): add password reset
* feat(api): implement resend email confirmation (without sending yet)
* feat(api): add sign-in, sign-out and refresh-routes to api
* feat(api): implement refresh endpoint
---------
Co-authored-by: jona159 <[email protected]>
* feat(api): boxes for user endpoints (#573)
* feat/api misc (#571)
* feat(api): boxes for user endpoints
* feat(api): add tags and stats route scaffold
* feat(api): implement tags route
* refactor: remove unnecessary imports
* feat(api): implement statistics route
---------
Co-authored-by: jona159 <[email protected]>
* feat(api): add route and test files
* feat: add test code
* feat: add dummy sensors to devices and implement getting them back
* feat: prefer dev server in no production envs and hide dev in prod
* feat(docs): start adding docs to route
* feat: wip devices api
* feat: finish up to the point where we need measurements
* fix: api routes without need for measurements
* fix: stats call
* fix: remaining tests
* fix: frontend issue from changing the service implementation
* fix: tests
* refactor: use modern syntax for assertion
* feat: adjust for zod schema
* feat: add drizzle check
* feat: add phenomenon and dates to where clause
* feat: update returned data format of users/me/boxes endpoint to match old data format
* feat: expose additional device attributes
* fix: return jwt token as access_token
* feat: add post and get /boxes
* refactor: move CreateBoxSchema to devices-service.server.ts
* fix: comment get /boxes route since this functionality is not implemented
* fix: linting errors
* fix: failing tests
* feat: add type check
* feat: add check for authHeader for GET /users/me/boxes
* refactor: return box with sensor data from createDevice
* test: createDevice
* test: post /boxes
* fix: return last measurements as string
* fix: lastMeasurements types
* fix: linter warnings
* refactor: device.server.ts
* fix: linter warnings
* doc: udpate post api documentation
* fix: after merging dev into current branch.
* refactor: remove access_token mentions from api responses
* refactor: add check for request type for api/boxes endpoint
* doc: update api/boxes documentation after allowing different request types
* refactor: remove unused code and fix linter errors
* fix: linting issues
---------
Co-authored-by: David Scheidt <[email protected]>
Co-authored-by: David Scheidt <[email protected]>
Co-authored-by: JerryVincent <[email protected]>
Co-authored-by: Jerry Vincent <[email protected]>
Co-authored-by: jona159 <[email protected]>
Co-authored-by: jona159 <[email protected]>1 parent 829659e commit 3c51c55
File tree
13 files changed
+1678
-280
lines changed- app
- lib
- models
- routes
- schema
- tests
- lib
- models
- routes
13 files changed
+1678
-280
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
7 | 22 | | |
8 | 23 | | |
9 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
7 | 32 | | |
8 | 33 | | |
9 | 34 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
109 | 118 | | |
110 | 119 | | |
111 | 120 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
359 | | - | |
360 | 362 | | |
361 | | - | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
391 | 395 | | |
| 396 | + | |
392 | 397 | | |
393 | 398 | | |
394 | 399 | | |
| |||
400 | 405 | | |
401 | 406 | | |
402 | 407 | | |
403 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
404 | 411 | | |
405 | 412 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
412 | 425 | | |
413 | 426 | | |
414 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
415 | 433 | | |
416 | 434 | | |
417 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
0 commit comments