Commit Graph

57 Commits

Author SHA1 Message Date
John Wu
e51450426e Merge Development to Main (#36)
* Fix sign up form bug

* Add run.sh to run setup and run web app

* Output node version

* Update readme with run.sh

* Fix file upload form to handle ota_update service

* Enable file upload form

Enable error boundary to catch React errors (#7)
Fix warning for link noreferrer
Include authorization header with file upload

* Remove default localhost settings (#8)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix json link format and remove localhost default settings (#10)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix link data format

* Fix link json again (#12)

Use id token instead of access token

* nginx things

* Web Worker Sign Out and Use Go API (#13)

* Calculate checksum and send with file upload

* Limit file upload and display rejected file error

* Add sign in timeout

* Check auth token structure before setting
Clean up

* Use web worker timer to sign out
Remove checksum
Point to Go ota update

* Remove checksum dependency

* Use compute auth service and fix static code analyzer warnings (#15)

* Clean up formatting

* Use new compute_auth service
Implment SSO
Implement token refresh
Clean up unit tests

* Fix unit tests

* Fix auth test
Fix warnings

* Update default settings for compute_auth

* Change main UI layout and add VINs to add and upload forms (#16)

* Add new upload update package form
Add new add vehicle form
Add new side menu layout
Add new toolbar layout
Update and add unit tests

* Enable add get and add vehicles

* Integration issues with ota_update service

* Update get vehicle JSON format

* Fix related unit test
Add release notes field

* Add StatusContext to display error and status messages

* Handle api error json (#18)

* Handle api error json

* Fix get vehicles error handling
Update .env.template

* Fix signout refresh (#20)

* Merge to main (#17)

* Fix sign up form bug

* Add run.sh to run setup and run web app

* Output node version

* Update readme with run.sh

* Fix file upload form to handle ota_update service

* Enable file upload form

Enable error boundary to catch React errors (#7)
Fix warning for link noreferrer
Include authorization header with file upload

* Remove default localhost settings (#8)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix json link format and remove localhost default settings (#10)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix link data format

* Fix link json again (#12)

Use id token instead of access token

* nginx things

* Web Worker Sign Out and Use Go API (#13)

* Calculate checksum and send with file upload

* Limit file upload and display rejected file error

* Add sign in timeout

* Check auth token structure before setting
Clean up

* Use web worker timer to sign out
Remove checksum
Point to Go ota update

* Remove checksum dependency

* Use compute auth service and fix static code analyzer warnings (#15)

* Clean up formatting

* Use new compute_auth service
Implment SSO
Implement token refresh
Clean up unit tests

* Fix unit tests

* Fix auth test
Fix warnings

* Update default settings for compute_auth

* Change main UI layout and add VINs to add and upload forms (#16)

* Add new upload update package form
Add new add vehicle form
Add new side menu layout
Add new toolbar layout
Update and add unit tests

* Enable add get and add vehicles

* Integration issues with ota_update service

* Update get vehicle JSON format

* Fix related unit test
Add release notes field

* Add StatusContext to display error and status messages

* Handle api error json (#18)

* Handle api error json

* Fix get vehicles error handling
Update .env.template

Co-authored-by: Rafi Greenberg <rgreenberg@fiskerinc.com>

* Fix sign out and refresh

* Check for bad json

Co-authored-by: Rafi Greenberg <rgreenberg@fiskerinc.com>

* Add role checks (#21)

* Add role checks

* Remove moved Roles enum

* Add package updates, car updates, and vehicle screens (#25)

* Car table update (#27)

* Add Datadog RUM (#28)

* fix run.sh

* Add updates by car screen and modal popup (#29)

* CEC-180 Cache Control (#30)

* Set cache expire to 1 day
Add snapshot tests for new screens

* Fix table pagniation random ids for snapshot tests

* Auto reload on chunk load error

* OTA Admin Portal => Admin Portal

* CEC-179 Car download progress (#32)

* Display download progress

* Change default

* Fix

* Fix

* Update readme

* Update readme and defaults
Fix Dockerfile

* CEC-179 Car update progress build fix (#33)

* Display download progress

* Change default

* Fix

* Fix

* Update readme

* Update readme and defaults
Fix Dockerfile

* Fix build

* Undo Docker changes (#34)

Co-authored-by: Rafi Greenberg <rgreenberg@fiskerinc.com>
Co-authored-by: Roger Standridge <rstandridge@fiskerinc.com>
2021-04-30 15:55:27 -07:00
John Wu
bf81903ecd Sync development into main (#31)
* Sync development into main

* Fix
2021-04-22 17:25:46 -07:00
John Wu
0f19a62b32 Sync to main (#26)
* Fix sign up form bug

* Add run.sh to run setup and run web app

* Output node version

* Update readme with run.sh

* Fix file upload form to handle ota_update service

* Enable file upload form

Enable error boundary to catch React errors (#7)
Fix warning for link noreferrer
Include authorization header with file upload

* Remove default localhost settings (#8)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix json link format and remove localhost default settings (#10)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix link data format

* Fix link json again (#12)

Use id token instead of access token

* nginx things

* Web Worker Sign Out and Use Go API (#13)

* Calculate checksum and send with file upload

* Limit file upload and display rejected file error

* Add sign in timeout

* Check auth token structure before setting
Clean up

* Use web worker timer to sign out
Remove checksum
Point to Go ota update

* Remove checksum dependency

* Use compute auth service and fix static code analyzer warnings (#15)

* Clean up formatting

* Use new compute_auth service
Implment SSO
Implement token refresh
Clean up unit tests

* Fix unit tests

* Fix auth test
Fix warnings

* Update default settings for compute_auth

* Change main UI layout and add VINs to add and upload forms (#16)

* Add new upload update package form
Add new add vehicle form
Add new side menu layout
Add new toolbar layout
Update and add unit tests

* Enable add get and add vehicles

* Integration issues with ota_update service

* Update get vehicle JSON format

* Fix related unit test
Add release notes field

* Add StatusContext to display error and status messages

* Handle api error json (#18)

* Handle api error json

* Fix get vehicles error handling
Update .env.template

* Fix signout refresh (#20)

* Merge to main (#17)

* Fix sign up form bug

* Add run.sh to run setup and run web app

* Output node version

* Update readme with run.sh

* Fix file upload form to handle ota_update service

* Enable file upload form

Enable error boundary to catch React errors (#7)
Fix warning for link noreferrer
Include authorization header with file upload

* Remove default localhost settings (#8)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix json link format and remove localhost default settings (#10)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix link data format

* Fix link json again (#12)

Use id token instead of access token

* nginx things

* Web Worker Sign Out and Use Go API (#13)

* Calculate checksum and send with file upload

* Limit file upload and display rejected file error

* Add sign in timeout

* Check auth token structure before setting
Clean up

* Use web worker timer to sign out
Remove checksum
Point to Go ota update

* Remove checksum dependency

* Use compute auth service and fix static code analyzer warnings (#15)

* Clean up formatting

* Use new compute_auth service
Implment SSO
Implement token refresh
Clean up unit tests

* Fix unit tests

* Fix auth test
Fix warnings

* Update default settings for compute_auth

* Change main UI layout and add VINs to add and upload forms (#16)

* Add new upload update package form
Add new add vehicle form
Add new side menu layout
Add new toolbar layout
Update and add unit tests

* Enable add get and add vehicles

* Integration issues with ota_update service

* Update get vehicle JSON format

* Fix related unit test
Add release notes field

* Add StatusContext to display error and status messages

* Handle api error json (#18)

* Handle api error json

* Fix get vehicles error handling
Update .env.template

Co-authored-by: Rafi Greenberg <rgreenberg@fiskerinc.com>

* Fix sign out and refresh

* Check for bad json

Co-authored-by: Rafi Greenberg <rgreenberg@fiskerinc.com>

* Add role checks (#21)

* Add role checks

* Remove moved Roles enum

* Add package updates, car updates, and vehicle screens (#25)

Co-authored-by: Rafi Greenberg <rgreenberg@fiskerinc.com>
2021-04-01 09:16:38 -07:00
John Wu
30155887cb Merge to main (#17)
* Fix sign up form bug

* Add run.sh to run setup and run web app

* Output node version

* Update readme with run.sh

* Fix file upload form to handle ota_update service

* Enable file upload form

Enable error boundary to catch React errors (#7)
Fix warning for link noreferrer
Include authorization header with file upload

* Remove default localhost settings (#8)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix json link format and remove localhost default settings (#10)

* Remove default localhost settings
Replace with deployment settings

* Fix for upload data format

* Fix test data for last commit

* Fix link data format

* Fix link json again (#12)

Use id token instead of access token

* nginx things

* Web Worker Sign Out and Use Go API (#13)

* Calculate checksum and send with file upload

* Limit file upload and display rejected file error

* Add sign in timeout

* Check auth token structure before setting
Clean up

* Use web worker timer to sign out
Remove checksum
Point to Go ota update

* Remove checksum dependency

* Use compute auth service and fix static code analyzer warnings (#15)

* Clean up formatting

* Use new compute_auth service
Implment SSO
Implement token refresh
Clean up unit tests

* Fix unit tests

* Fix auth test
Fix warnings

* Update default settings for compute_auth

* Change main UI layout and add VINs to add and upload forms (#16)

* Add new upload update package form
Add new add vehicle form
Add new side menu layout
Add new toolbar layout
Update and add unit tests

* Enable add get and add vehicles

* Integration issues with ota_update service

* Update get vehicle JSON format

* Fix related unit test
Add release notes field

* Add StatusContext to display error and status messages

* Handle api error json (#18)

* Handle api error json

* Fix get vehicles error handling
Update .env.template

Co-authored-by: Rafi Greenberg <rgreenberg@fiskerinc.com>
2021-03-17 15:16:08 -07:00
jwu-fisker
c51199111f Rename contexts to Contexts 2021-01-08 09:38:43 -08:00
jwu-fisker
f91aef7f4a Step 1 of fixing folder 2021-01-08 09:38:10 -08:00
jwu-fisker
ab0453c09b Add 404 page 2021-01-07 21:34:39 -08:00
jwu-fisker
d2d7638e81 Use localStorage instead 2021-01-07 21:26:17 -08:00
jwu-fisker
64590934b6 Remove jwt references 2021-01-07 18:57:41 -08:00
jwu-fisker
efa9d8917b Clear console.logs 2021-01-07 18:01:16 -08:00
jwu-fisker
130e40f0a1 Remove unused setter and getter 2021-01-07 17:02:17 -08:00
jwu-fisker
2d4e446a6f Move URL settings into .env file 2021-01-07 17:01:24 -08:00
jwu-fisker
1ed43fa2a0 Add file upload tests 2021-01-07 16:50:30 -08:00
jwu-fisker
8546234b4c File upload is done at 100 2021-01-07 16:22:13 -08:00
jwu-fisker
30408840e9 Fix waitFor in some tests 2021-01-07 16:21:42 -08:00
jwu-fisker
116581c7dd Update snapshot for mock FileUploadProvider 2021-01-07 15:25:01 -08:00
jwu-fisker
a2e27ca6a1 Update Upload form tests with mocked provider 2021-01-07 15:19:08 -08:00
jwu-fisker
0ae42bf51d Wire up file upload form 2021-01-07 14:10:58 -08:00
jwu-fisker
8fc6b3b6d8 Clean up 2021-01-07 08:11:37 -08:00
jwu-fisker
bd7d15721d Refactor rendering 2021-01-07 08:10:09 -08:00
jwu-fisker
812b91ee74 Fix build warnings 2021-01-06 22:00:23 -08:00
jwu-fisker
75eeb0e4e9 Update app routes test 2021-01-06 21:54:09 -08:00
jwu-fisker
85ec4d5728 Clean up 2021-01-06 20:58:45 -08:00
jwu-fisker
87e673576d Clean up 2021-01-06 20:20:11 -08:00
jwu-fisker
0454317ece Update imports 2021-01-06 20:17:52 -08:00
jwu-fisker
4abeb0e9a0 Rearrange mocks 2021-01-06 20:12:15 -08:00
jwu-fisker
527c7c2b7b Disable console log 2021-01-06 20:07:38 -08:00
jwu-fisker
c098538b9e Add File upload form snapshot test 2021-01-06 20:05:16 -08:00
jwu-fisker
d2a8d74dd0 Add sign out link 2021-01-06 20:05:00 -08:00
jwu-fisker
243c70e4d5 Update sign in form snapshot 2021-01-06 19:56:57 -08:00
jwu-fisker
a5515798d4 Add sign up form snapshot test 2021-01-06 19:56:46 -08:00
jwu-fisker
388ea68400 Update sign in form test 2021-01-06 19:55:57 -08:00
jwu-fisker
518c98444b Add SIgn in form snapshot test 2021-01-06 19:50:13 -08:00
jwu-fisker
59e3339d46 Add UserContext signin and signout tests 2021-01-06 18:53:17 -08:00
jwu-fisker
c96d6ec751 Only save access token if accessToken property exists 2021-01-06 18:52:45 -08:00
jwu-fisker
31c33447fb Refactor UserContext more async
Separate signup and signin
2021-01-06 18:23:38 -08:00
jwu-fisker
d812daa1ea Add UserContext unit test for signup 2021-01-06 18:22:33 -08:00
jwu-fisker
e9e2195b14 Remove debugger 2021-01-06 11:16:06 -08:00
jwu-fisker
d7616ca577 Sign up should also sign in 2021-01-06 11:07:19 -08:00
jwu-fisker
70c0714559 Wire up sign out 2021-01-06 11:01:31 -08:00
jwu-fisker
f2deb29ad8 Fix async warning 2021-01-06 10:42:04 -08:00
jwu-fisker
c9e4d26702 Clean up debugger 2021-01-06 10:36:39 -08:00
jwu-fisker
3d50e8c45a Fix authenticated routing issues 2021-01-06 10:35:30 -08:00
jwu-fisker
44c56df2c0 Change to jsx 2021-01-06 09:31:44 -08:00
jwu-fisker
002bad0a91 Move api calls into services 2021-01-06 09:23:19 -08:00
jwu-fisker
db75494dd8 Fix auth verify on page load 2021-01-06 09:11:39 -08:00
jwu-fisker
c129d6ac1d Use token var instead of signedIn or user 2021-01-05 19:11:38 -08:00
jwu-fisker
1b39027209 Wire up auth api calls 2021-01-05 19:10:47 -08:00
jwu-fisker
2e7a241d6d Add submit handler 2021-01-05 17:31:40 -08:00
jwu-fisker
508c41373e Add Protected Routes 2021-01-05 17:31:10 -08:00