Commit Graph

94 Commits

Author SHA1 Message Date
Alec LaLonde
63628fb55e Added twitter_url and github_url to guild 2021-05-01 23:50:28 -06:00
mquellhorst
05bf6fd9cf guild pages implemented 2021-05-01 23:50:28 -06:00
Alec LaLonde
18a7eb2499 Re-added guild discord_invite_url column as it should be public 2021-04-21 10:07:34 -06:00
Alec LaLonde
6e3fe89744 Changed oauth handler to use a web URL that calls the backend to exchange the given code 2021-04-21 10:07:34 -06:00
Pacien Boisson
dfff04ebaa [Quests] Frontend (#437)
* squash frontend changes

* Style quest explorer

* Style quest page

* Dates

* Dates

* Typecheck

* Prettier

* Fix create page layout

* Update only OPEN quests

* Repetition info

* Fix create quest errors

* Quest form Textarea

* Quest form Textarea

* Truncate texts

* Redirect if user not logged in

* Tooltips

* Factorize skills tags

* fix username in completions

* Metafam as default guild on creation

* Layouts

* Remove todo

* cooldown

* Rename to "claim quest"

* squash frontend changes

* Style quest explorer

* Style quest page

* Dates

* Dates

* Typecheck

* Prettier

* Fix create page layout

* Update only OPEN quests

* Repetition info

* Fix create quest errors

* Quest form Textarea

* Quest form Textarea

* Truncate texts

* Redirect if user not logged in

* Tooltips

* Factorize skills tags

* fix username in completions

* Metafam as default guild on creation

* Layouts

* Remove todo

* cooldown

* Rename to "claim quest"

* Move ConfirmModal in ds

* Extract pSeed balance

* Fix "created by me" switch

* Reword complete quest

* Style quest form

* prettier

* lint
2021-04-08 15:32:27 +04:00
Alec LaLonde
b29e629082 Added status to guild table 2021-03-28 22:08:25 -06:00
Will Holcomb
ab76a94859 removin' Enneagram table 🏓 2021-03-28 22:08:25 -06:00
Will Holcomb
f00bee9b41 ~ minimum code to add color chooser 🔦 2021-03-28 22:08:25 -06:00
Alec LaLonde
264cd692fc Added migration to populate metafam discord_id, using that in updateDiscordRole action 2021-03-26 21:17:15 -06:00
Alec LaLonde
04503aff17 Added migration for metafam rank discord role IDs 2021-03-26 21:17:15 -06:00
Alec LaLonde
d7cd91de8e Added discord_metadata column to guild, moved inviteUrl there 2021-03-26 21:17:15 -06:00
Alec LaLonde
b959e664f1 Added permissions for new guild columns 2021-03-26 21:17:15 -06:00
Alec LaLonde
f9e1b14631 Added status to guild table 2021-03-26 21:17:15 -06:00
Alec LaLonde
ca98e8539a Added down migration for metafam/discord account 2021-03-26 21:17:15 -06:00
Alec LaLonde
aceb4113ca Added migration to move discord_id fields to guild and player 2021-03-26 21:17:15 -06:00
Pacien Boisson
b5ee57abc9 squash backend changes (#438) 2021-03-26 11:23:59 +04:00
dan13ram
1c6e19b6a7 fixed constraints 2021-03-12 22:12:23 -07:00
dan13ram
7827a216c7 Revert "Revert ethereum address lowercase (#407)"
This reverts commit 2f4987f491.
2021-03-12 22:12:23 -07:00
dan13ram
2f4987f491 Revert ethereum address lowercase (#407)
* Revert "add if not null check to ethereum address (#406)"

This reverts commit c6364bd4f6.

* Revert "make ethereum_address lowercase in backend (#405)"

This reverts commit 3cee60e30d.
2021-03-12 21:33:50 +05:30
dan13ram
c6364bd4f6 add if not null check to ethereum address (#406) 2021-03-12 20:09:33 +05:30
dan13ram
3cee60e30d make ethereum_address lowercase in backend (#405) 2021-03-12 18:41:47 +05:30
dan13ram
bac9f7fa92 [MyMeta] updated seed-balances remote schema logic (#399)
* updated seed-balances remote schema logic

* updated schema

* added plurality to variable names

* fixed schema
2021-03-11 18:45:27 +05:30
Alec LaLonde
d0d558dc33 Added missing guild INSERT script, discord env placeholder 2021-03-10 07:55:45 -07:00
Alec LaLonde
5eb8850849 Revert "Revert "Added player username regex check constraint""
This reverts commit 3447ac8026.
2021-03-09 11:52:01 -07:00
Alec LaLonde
b501a2be87 Revert "Revert "Add username lowercase mutation""
This reverts commit 76e963473c.
2021-03-09 11:52:01 -07:00
Alec LaLonde
7003f50dbb Call discord REST API directly from backend instead 2021-03-09 10:54:23 -07:00
Alec LaLonde
4f020fe0c3 Added trigger for player.rank update 2021-03-09 10:54:23 -07:00
Alec LaLonde
76e963473c Revert "Add username lowercase mutation"
This reverts commit 18d52cf5bf.
2021-03-04 16:47:38 -07:00
Alec LaLonde
3447ac8026 Revert "Added player username regex check constraint"
This reverts commit c21562203b.
2021-03-04 16:47:38 -07:00
Alec LaLonde
c21562203b Added player username regex check constraint 2021-03-04 14:49:28 -07:00
Alec LaLonde
18d52cf5bf Add username lowercase mutation 2021-03-04 14:49:28 -07:00
dan13ram
a997dd8bbe added token balance from seed-graph (#380) 2021-03-05 00:03:46 +05:30
dan13ram
b0ab6f1e2d updated backend for brightId (#362)
* updated backend for brightId

* updated schema

* removed unwanted console logs

* made brightId context constant
2021-03-01 12:06:52 +05:30
Pacien Boisson
d094e1c4ba Quest create handlers (#340)
* create quest handler

* Updating action schema and removing backend-only insert permissions

* Better handle auth bearer token

* Basic tests for creating quests

* Check if player has > 100 pSEED to allow creating a quest

* move quests actions into its own router

* create quest completion

* updateCompletion handler

* update types

* Improving handler input types

* Improve types and logic

* Removing types file and using autogenerated ones

* Reject other submissions when accepting a unique quest completion

* Fix linting errors

* Fix CreateQuestCompletionInput maybe

* error messages

* Puttin pSEED contractnaddress in config file

Co-authored-by: Hammad Jutt <jutt@ualberta.ca>
2021-02-22 12:58:31 +04:00
Pacien Boisson
8e461d5b5b removing backend-only permissions and changing permissions for quest_completion updates 2021-02-18 21:00:43 -07:00
Pacien Boisson
0054ed6e3b Fix repetition default value 2021-02-18 21:00:43 -07:00
Pacien Boisson
2bd0f12dcb Fixing down migration 2021-02-18 21:00:43 -07:00
Pacien Boisson
bba8a7fd5d Adding id field in quest_completion 2021-02-18 21:00:43 -07:00
Pacien Boisson
c0cb56be0a change quest repetition to PERSONAL, RECURRING, UNIQUE 2021-02-18 21:00:43 -07:00
Pacien Boisson
dac85d32db Use timestamptz instead of date 2021-02-18 21:00:43 -07:00
Pacien Boisson
ab6137ad0b Permissions 2021-02-18 21:00:43 -07:00
Pacien Boisson
40118f6d75 Status defaults 2021-02-18 21:00:43 -07:00
Pacien Boisson
231ba8d479 Tracks 2021-02-18 21:00:43 -07:00
Pacien Boisson
f9f5a05b6a Squash migrations 2021-02-18 21:00:43 -07:00
Pacien Boisson
a439bb44e1 Quest models 2021-02-18 21:00:43 -07:00
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