Commit Graph

37 Commits

Author SHA1 Message Date
Hammad Jutt
91b94c48fe Implement User Auth on Web (#145)
* Create "me" view for logged in user

* Implement user auth on web

* Fix type errors

* Setup static regeneration

* Disable next export

* Address PR feedback
2020-10-11 11:33:16 -06:00
dependabot[bot]
2892778bc7 Bump @testing-library/react from 9.5.0 to 11.0.2 (#111) 2020-09-21 18:33:17 +10:00
dependabot[bot]
3bf3a2d0f2 Bump @types/jest from 24.9.1 to 26.0.13 (#115)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.9.1 to 26.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-10 16:50:27 -06:00
Hammad Jutt
e8f1a1628d Update TS, setup SourceCred SDK, and add helpers to utils (#107)
* Update TS version and setup SourceCred API in backend

* Fix typeError in Player.tsx

* Update yarn.lock

* Update yarn.lock and fix type errors
2020-09-06 18:50:22 -06:00
dependabot[bot]
88553140e6 Bump react-scripts from 3.4.1 to 3.4.3 (#91) 2020-08-24 18:41:23 +10:00
dependabot[bot]
6c9c239c4c Bump @testing-library/jest-dom from 4.2.4 to 5.11.3
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 4.2.4 to 5.11.3.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v4.2.4...v5.11.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-17 14:26:17 -06:00
Hammad Jutt
dbe4f046d8 Update dependencies and fix updateBoxProfile handler.ts 2020-08-05 01:45:56 -06:00
Hammad Jutt
d26150e90d Reformat files and update yarn.lock 2020-08-04 21:09:51 -06:00
Pacien Boisson
790a0cc78c using a remote schema instead of an action for getBoxProfile 2020-08-04 21:09:51 -06:00
Hammad Jutt
c2b8ad307e Refromat files and fix config 2020-08-04 20:29:08 -06:00
Pacien Boisson
1be652efe4 lint 2020-08-04 20:29:08 -06:00
Pacien Boisson
5e578ef987 fetch box profile from hasura 2020-08-04 20:29:08 -06:00
Pacien Boisson
84a76ad2fe Correct authentication webhook and frontend with ethereum_address in Player 2020-08-04 20:29:08 -06:00
Pacien Boisson
6e0f0c9b66 using a remote schema instead of an action for getBoxProfile 2020-08-04 20:29:08 -06:00
Hammad Jutt
85f3e59ceb Consolidate more package.json entries into root package.json 2020-07-27 12:23:29 -06:00
Hammad Jutt
71c70ac4f0 Centralize more of eslint config, gitignore, and tsconfig 2020-07-27 12:23:29 -06:00
Hammad Jutt
c7f74aa211 Setup CI to run linting / typechecking / unit testing with Github Actions 2020-07-26 10:52:22 -06:00
Hammad Jutt
c273196658 Cleanup Monorepo Build and packaging 2020-07-24 10:01:25 -06:00
Hammad Jutt
3c961052a1 Setup NextJS App with URQL and dummy pokemon data 2020-07-23 22:30:57 -06:00
Hammad Jutt
1a679cbc45 Fix type errors 2020-07-13 11:19:48 -06:00
Hammad Jutt
30c9ee5e19 Fix all linting errors 2020-07-13 11:19:48 -06:00
Hammad Jutt
b106992d31 Reuse base tsconfig in all packages 2020-07-13 11:19:48 -06:00
Hammad Jutt
18adfa46d2 Reformat all existing code 2020-07-13 11:11:04 -06:00
Hammad Jutt
33e079c2ce Centralize gitignore file 2020-07-13 11:06:24 -06:00
Hammad Jutt
26c9bfa134 Cleanup / simplify package.json scripts and names 2020-07-13 11:06:24 -06:00
Hammad Jutt
914908813f remove extra yarn.lock and type definitions 2020-07-13 11:06:24 -06:00
Hammad Jutt
209f5df23d Centralize typescript package to root package.json 2020-07-13 11:06:24 -06:00
Hammad Jutt
5de1a5eba5 Simplify Render config 2020-07-12 11:41:52 -06:00
Hammad Jutt
c063c3c41a Setup explicit ports to prevent broken deployment on Render
https://github.com/hasura/graphql-engine/issues/3904
2020-07-12 11:41:52 -06:00
Hammad Jutt
aa22456bfb Fix type errors in app 2020-07-12 11:41:52 -06:00
Hammad Jutt
063c8f91db Setup deployment config for Render 2020-07-12 11:41:52 -06:00
Pacien Boisson
899335594a [WIP] Fix docker with lerna (#8)
* trying to fix Backend docker image with lerna

* fix dockerfile CMD

* Fix Dockerfile build

* Fix 3box types

Co-authored-by: Hammad Jutt <jutt@ualberta.ca>
2020-06-08 00:49:39 -06:00
Pacien Boisson
214f3f65c2 3box profiles (#9)
* Fix auth

* Added 3box profile info

* Added player names in list

* Added hasura action to fetch verified accounts on 3Box

* Added usernames

* fix router
2020-05-13 02:02:21 -06:00
Pacien Boisson
7747ff69d0 Architecture update (#7)
* Fix errors with profile_rank ENUM

* Upgrade to Hasura 1.2.1

* Rename Profile to Account

* Common JS package

* rm app-react/lib/did

* Better login management
2020-05-08 21:54:00 +02:00
Hammad Jutt
4c3ff4934f Update imports to use non-default exports 2020-04-18 11:39:01 -06:00
Hammad Jutt
995778c29e Use strict typesafety and fix type errors 2020-04-18 00:42:19 -06:00
Pacien Boisson
c684b9d836 Base architecture (#1)
* Hasura and base models

* Added role public SELECT permissions

* Added role player UPDATE permissions

* basic backend api

* Added SELECT permissions for player

* Update backend to typescript

* init app-react

* Add apollo

* graphql-codegen not working well...

* Added web3 to web app

* connecting frontend with web3

* Auth webhook verifies eth signature

* Update frontend to fetch player_id
2020-04-16 10:20:15 +02:00