Commit Graph

49 Commits

Author SHA1 Message Date
Hammad Jutt
b20c1fea27 Remove unused codegen stuff and update Hasura to latest version (#314) 2021-01-29 13:02:33 -07:00
Hammad Jutt
0dabebbe04 Add case in SC migration script where user doesnt already have a SC identityID (#296) 2021-01-21 20:05:49 -07:00
Alec LaLonde
5534ff1a45 Renamed player columns to be consistent snake_case (#262) 2021-01-06 22:08:58 -07:00
Alec LaLonde
c4a2b38484 Renamed table names to be consistent snake_case (#255) 2021-01-04 23:18:29 -07:00
Hammad Jutt
9bf127bfbd Add permissions to select guilds 2020-12-20 01:14:21 -07:00
Hammad Jutt
7cefb64cbe Add guildname field to uniquely identify guilds with friendly id
basically guild version of username
2020-12-20 01:14:21 -07:00
Hammad Jutt
6c44896b27 Squash Migrations for updating guild table 2020-12-19 20:19:12 -07:00
Pacien Boisson
0b45267732 Added some relationships:
- GuildType => Guilds
- guild_account > AccountType, Guild
2020-12-19 20:19:12 -07:00
Hammad Jutt
2b61060369 Setup Guilds table 2020-12-19 20:19:12 -07:00
Hammad Jutt
8f4db81181 Create Player Guilds Table 2020-12-19 20:19:12 -07:00
Alec LaLonde
63a357c498 Feature/add timezone backend (#230)
* Added tz column

* Updated hasura permissions on new table
2020-12-19 17:54:32 -07:00
Hammad Jutt
63ab1cd0ea Setup Player Skills and complete setup flow (#161) 2020-10-16 11:04:22 -06:00
Hammad Jutt
4e1b434cce Setup Mutations on web app (#158)
* create useSetupFlow hook

* Add availability hours and fix permissions in Hasura

* Implement mutation for About You section of profile setup
2020-10-16 00:11:07 -06:00
Hammad Jutt
1950a67bac Setup PlayerTypes in backend (#157) 2020-10-15 19:02:08 -06:00
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
Hammad Jutt
31f80171e2 Update skills and simplify skill categories (#144) 2020-10-11 00:39:20 -06:00
Hammad Jutt
de71feadde Update backend to use enum tables + fix migration trigger (#141)
* Setup prettier-ignore and add more instructions on running backend

* Dont throw error when updating verified accounts

* Migrate account-type to use tables instead of native enum

* Migrate enneagram_type to use table instead of native enum

* Update schema and front end for new enum tables

* Fix type errors
2020-10-09 22:16:15 -06:00
Hammad Jutt
ab8782cf28 Fix handler for SourceCred migration (#108)
Was breaking before due to unique key conflicts because sourceCredIdentity IDs have potential to change around.
2020-09-06 18:59:48 -06:00
Hammad Jutt
6a569429d9 Remove incorrect migration 2020-08-26 02:52:05 -06:00
Hammad Jutt
025d612502 Create migration to add skills 2020-08-26 00:29:27 -06:00
Hammad Jutt
9cc01623d8 Add skill categories enum 2020-08-26 00:29:27 -06:00
Hammad Jutt
13ab1eef2f Setup Trigger to fetch verified accounts from 3box when ETH address gets updated or user gets inserted 2020-08-21 23:04:26 -06:00
Hammad Jutt
caca26b1ce Add Remote Schema for DAOHaus / Moloch Dao memberships
Uses the ethereum address of a specific player to fetch the Moloch DAOs that player is a member of
2020-08-21 10:57:31 -06:00
Hammad Jutt
a44fa49cfd Remove constraint on Account, allowing a Player to have multiple identifiers of the same type 2020-08-21 10:57:31 -06:00
Hammad Jutt
f05f69ddc2 Add rank to publicly exposed fields on Player object 2020-08-17 01:40:03 -06:00
Hammad Jutt
59a0e8f627 Hotfix migration 2020-08-16 01:52:54 -06:00
Hammad Jutt
e39aa189e3 Implement Player Ranks 2020-08-16 01:52:20 -06:00
Hammad Jutt
1840efc886 Setup Cron trigger to handle sourceCred Migration 2020-08-16 01:45:27 -06:00
Hammad Jutt
c27c77eb74 Setup handler to migrate SC ledger accounts to Database Players 2020-08-16 01:45:27 -06:00
Hammad Jutt
9b83f0c70d Update Hasura to 1.3.0 2020-08-04 21:09:51 -06:00
Hammad Jutt
bf8489f1b4 Remove unused remote relationship 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
Pacien Boisson
a60aa62a94 add ethereumAddress to getBoxProfile 2020-08-04 21:09:51 -06:00
Pacien Boisson
51a4eddbbd added getBoxProfile action 2020-08-04 21:09:51 -06:00
Pacien Boisson
7b3b6c2f82 Add ethereum_address to Player model in order to get the box profile 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
Pacien Boisson
af728ac53d add ethereumAddress to getBoxProfile 2020-08-04 20:29:08 -06:00
Pacien Boisson
f79e8cd261 added getBoxProfile action 2020-08-04 20:29:08 -06:00
Pacien Boisson
08a4b90d95 Update models (#33)
* Remove unused models

* add new props into Player model

* Added props to Guild

* Setting guild type as a foreign-key reference

* Use foreign table for skills

* Seed data

* prettier
2020-07-27 10:08:48 +02:00
Hammad Jutt
18adfa46d2 Reformat all existing code 2020-07-13 11:11:04 -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
063c8f91db Setup deployment config for Render 2020-07-12 11:41:52 -06:00
Hammad Jutt
675c0e0046 Update Hasura to 1.3 beta and setup actions codegen 2020-07-06 01:55:27 -06:00
Hammad Jutt
d76fb891f1 Allow overriding HASURA_GRAPHQL_ENABLE_CONSOLE 2020-07-06 01:55:27 -06:00
Pacien Boisson
d7713f983b Finish docker/lerna (#13)
* Fix console output with lerna for backend

* fix app start command

* Hasura waits that databse is up

* Update readme
2020-06-26 18:22:37 -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
1c5955ce32 Update Hasura to latest version 2020-04-18 11:39:01 -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