Commit Graph

57 Commits

Author SHA1 Message Date
Alec LaLonde
936a63d411 Start using daohaus metadata when populating DAO information 2022-02-19 11:23:03 -07:00
δυς
81883f940e Miscellaneous changes pulled from #1078 (#1115)
​#1078 is at about 4,000 lines changed and includes both code implementing features and unrelated functional and stylistic changes. This set of changes is about ⅓ of the total and should be largely independent.

These changes include:

* have Dependabot ignore `patch` version changes
* switch the cache invalidation Hasura action to asynchronous
* add a uniqueness constraint on the combination of player and skill ids
* print a comprehensible error message in the db seeding script on network errors
* add a mutex on the account creation process & allow it to happen only once *(subsequent runs were failing b/c of the uniqueness constraint on the ETH address & returning `null` (closes #1098))
* adds some more profile editing related types
* renames `HighLow7dType` to `HighLowType`
* refactors the `ColorBar` component to include links to a color explanation
* replaces `fake-tag`'s `gql` string identifier with the dependency-free `/* GraphQL */`
* rename `lib/hooks/useUserXp.ts` to `useUserXP.ts`
* fixed some typings to remove `any`s
* bumped some library versions & fixed the version numbers of some others
2022-02-08 06:01:06 -05:00
vidvidvid
c368bbeb28 Completed quests widget (#1085)
* quest-roles-demo init

feat: backend changes

* fix: more lint

* fix: even more lint

* fix: add field to update quest

* chore: consolidate migrations

* chore: rename

* chore: update schema

* quest-roles-demo init

* feat: add role selector to create quest form

* fix: after rebase

* fix: bug when clicking the only selected value in filter

* feat: save roles to backend

* feat: display roles on /quest/id card

* feat: add megamenu demo link

* feat: add additional roles: Bridgebuilding, Rainmaking, Videomaking

* feat: support for editing roles on quests

* chore: revert changes that allowed me to bypass creating quests

* fix: hide quests demo app link

* fix: alec's corrections

* chore: roles_id -> roleIds

* quest-roles-demo init

* feat: save roles to backend

* feat: add additional roles: Bridgebuilding, Rainmaking, Videomaking

* feat: support for editing roles on quests

* chore: revert changes that allowed me to bypass creating quests

* feat: completed quests section

* feat: display completed quest name + link

* fix: rebasing changes

submitted_at -> submittedAt, etc...

* style: add proof link and style

* style: all quests content and subheader

* style: all quests modal footer

* chore: remove mock data

* fix: schema

* fix: schema

* chore: delete console.log

* chore: dysbulic's suggestions

* fix: final fixes

Co-authored-by: dan13ram <dan13ram@gmail.com>
2022-02-03 10:02:39 +01:00
vidvidvid
debeb0f0d4 chore: roles_id -> roleIds 2022-02-02 10:49:59 -07:00
vidvidvid
8aacd3e979 chore: update schema 2022-02-02 10:49:59 -07:00
vidvidvid
f323729161 fix: even more lint 2022-02-02 10:49:59 -07:00
vidvidvid
5259841bfa chore: roles_id -> roleIds 2022-02-02 09:54:12 -07:00
vidvidvid
7aa0df3b10 chore: update schema 2022-02-02 09:54:12 -07:00
vidvidvid
a3aa2d4eb2 fix: even more lint 2022-02-02 09:54:12 -07:00
vidvidvid
b0efb56ed2 chore: add createQuest changes 2022-02-02 09:54:12 -07:00
vidvidvid
4840b7dfd6 fix: update schema 2022-02-02 09:54:12 -07:00
vidvidvid
a822e25839 quest-roles-demo init
feat: backend changes
2022-02-02 09:54:12 -07:00
δυς
f5295c3242 Reading and Writing Profile Info From Ceramic (#943)
This is being merged for further testing so as to not block the progress of `develop` & not require more rebases.
2022-01-25 16:51:53 -05:00
Alec LaLonde
925e3511fb For existing guilds, create a metadata table after the discord auth callback 2022-01-09 14:51:58 -07:00
dan13ram
b00fc2a7e8 feat: persisting profile layout changes in hasura 2022-01-09 15:36:17 +05:30
vidvidvid
42aba14546 fix: revert formatting changes 2021-11-04 22:59:58 -06:00
Guilherme Jabur
6c4c73a685 allow a player to store their pronouns as part of their profile 2021-11-04 22:59:58 -06:00
Alec LaLonde
45b3b3f362 First pass at desktop select-roles UI 2021-10-15 21:24:33 -06:00
Alec LaLonde
89fe2b4db6 Stubbed out SetupRoles step 2021-10-15 21:24:33 -06:00
Alec LaLonde
5eafa1359e Standardized player relationship names 2021-09-10 11:25:58 -06:00
Istvan Richter
a38769c4b9 Add id and rank field to player_skill 2021-09-07 11:34:03 -06:00
Alec LaLonde
29abec059d Added guild_players remote relationship to fetch discord member roles 2021-09-02 15:34:33 -06:00
Alec LaLonde
be16175a04 Moved membership_through_discord to guild table from guild_metadata 2021-09-02 15:34:33 -06:00
Alec LaLonde
dcdd58d4e0 Implemented state check in discord auth, added twitter/github URLs to guild form 2021-09-02 15:34:33 -06:00
Alec LaLonde
891e2975a9 Added trigger to sync GuildPlayers with Discord 2021-09-02 15:34:33 -06:00
Alec LaLonde
7a86124e97 Fixed a couple migrations 2021-08-26 10:10:01 -06:00
Alec LaLonde
86bd86ba34 Added saveGuildInformation action 2021-08-26 10:10:01 -06:00
Alec LaLonde
30dbc737a8 Added guild_metadata table to hold admin-only guild information 2021-08-26 10:10:01 -06:00
Alec LaLonde
270bfa88e3 Added separate guild metadata table with different permissions 2021-08-26 10:10:01 -06:00
Michiel Quellhorst
2778f14fd6 Add internal / external position property to guilds (closes #489) 2021-08-10 17:11:59 -04:00
Will Holcomb
9d6dc90df5 rebasing & regenerating schema 🥘 2021-07-28 06:38:25 +05:30
Will Holcomb
b377f71f4c missing CacheProcessOutput 🐥 2021-07-28 06:38:25 +05:30
Will Holcomb
9fdc2747e6 configuring Hasura actions and triggers to cache profiles 🎡 2021-07-28 06:38:25 +05:30
dan13ram
265ad06772 support select of season_xp by players & public 2021-07-27 10:28:06 +05:30
dan13ram
6810e573b7 added season_xp to db 2021-07-22 12:21:04 +05:30
Hammad Jutt
142aa8a9a3 Allow users to force-update their linked ETH address
Removed sc_identity_id from Player table because it enforces ETH addresses to be used as the single source of truth for users and prevents conflicts when users update their ETH address in the ledger. sc_identity_id is not needing anywhere in our backend / data model.
2021-07-05 21:44:14 -06:00
Matthew Cantelon
b2d53b06b6 feat: add polygon and xdai chains when pulling DAO membership
This uses two new subgraphs to pull DAO memberships for Ethereum, xDai,
and Polygon mainnets. The pulls are in parallel. The underlying data is
structured the same way but seems to be missing some information, see
https://github.com/HausDAO/daohaus-supergraph/issues/44
2021-06-13 23:57:34 -06:00
mquellhorst
05bf6fd9cf guild pages implemented 2021-05-01 23:50:28 -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
Alec LaLonde
b29e629082 Added status to guild table 2021-03-28 22:08:25 -06:00
Alec LaLonde
27985422e6 Tweaked sourcecred migrator to use new player.discord_id column 2021-03-28 22:08:25 -06:00
Will Holcomb
2fa256d23e removin' vistiges of Enneagram ✴ 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
cf89c01642 updated schema 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
f9e1b14631 Added status to guild table 2021-03-26 21:17:15 -06:00
Alec LaLonde
647fe8e550 Tweaked sourcecred migrator to use new player.discord_id column 2021-03-26 21:17:15 -06:00
Pacien Boisson
b5ee57abc9 squash backend changes (#438) 2021-03-26 11:23:59 +04:00
dan13ram
ba35ff0cb7 added seed-graph as a new remote schema (#410)
* added seed-graph as a new remote schema

* removed unwanted remote schema and added a query
2021-03-15 16:48:49 +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