103 Commits

Author SHA1 Message Date
Arsenije Savic
ea42bea2c0 Dashboard fixes; closes #1209, #1210, #1223, & #1224
* Remove connect to progress if the network is not mainnet

* Move xpHelpers to the utils

* Add tests to the utils package

* Add xpHelpers test

* Add convertToRoman util function

* Display current season label dynamically

* Add onboarding text if player does not have xp

* Remove ConnectToProgress import

* Add connect to progress if the network is not mainnet

* Show edit button if network is not main

* Refactor xp helper season start

* displaying modal when chain change is needed 🛬

* using Unicode Roman numerals Ⅲ

* slight formatting fixes 🗯
2022-05-18 01:48:07 -04:00
Alec LaLonde
341961e581 Fix XP sync for players with multiple linked eth addresses in SC (#1266)
* Use latest eth address rather than the first when migrating XP data

* Changed imports from ethers package
2022-05-11 10:24:52 -04:00
Ramon Canales
b5de4950b3 finished integration 2022-05-07 15:20:30 -06:00
dan13ram
ca109f87ab feat: upgraded dependencies 2022-05-03 09:31:01 -06:00
Jack Clarke
221efb1fac Move players to /players (#1220) & fix some links 2022-03-30 08:43:54 -04:00
vidvidvid
97ae0a5e6a fix: remove shadows, remove membership step, rename stuff 2022-03-20 20:02:04 +01:00
vidvidvid
f5796a9345 fix: replace the welcome to metagame description 2022-03-20 20:02:04 +01:00
vidvidvid
7bd02d78a5 chore: Description -> Bio + username -> name 2022-03-20 20:02:04 +01:00
vidvidvid
21d863cd90 feat: add description step 2022-03-20 20:02:04 +01:00
vidvidvid
7d2c57a306 chore: remove playerType from onboarding flow 2022-03-20 20:02:04 +01:00
vidvidvid
d3f94c5260 chore: remove pronouns step 2022-03-20 20:02:04 +01:00
vidvidvid
c049914030 fix: color disposition 2022-03-20 20:02:04 +01:00
vidvidvid
33a6e51bbc fix: name setup + icon 2022-03-20 20:02:04 +01:00
dan13ram
81590f452a feat: metamask switch network support + fixed dependancy cycle 2022-03-17 23:09:32 +05:30
dan13ram
8a0139e107 feat: onboarding flow v2 2022-03-14 16:04:20 +01:00
dan13ram
7bc99d4b45 Fix Onboarding + A Bunch of Other Issues (#1181)
* feat: metamask switch network support + fixed dependancy cycle

* feat: moved landing to index

* feat: updated favicon

* fix: fixed landing page issues + scrollSnap

* feat: join button

* fix: fixed seed script with new prod schema

* feat: join button redirects based on user creation date

* fix: minor ui bug fixes

* feat: connect to mainnet to continue with switch network on metamask

* fix: uniform setup screens

* fix: fixed XP on dashboard

* feat: added start page

* fix: fixed issues on landing page

* fix: fixed minor issues on dashboard

* fix: update idx profile in auth webhook for new players

* fix: minor fixes in seed page

* fix: player avatar & type

* fix: incorporated review comments from @dysbulic & @vidvidvid

* fix: more review comments
2022-03-07 10:20:26 -05:00
δυς
317ba7c9e5 Refactor Setup Wizard & Profile Modal Configuration Panes (#1127)
* incorporating configuration panes from #1078

* standardizing player hero subcomponents & removing `owner` var from `useProfileField` 🚪

* switching box type, ambiguating overly-specific names, & massaging heights 📱

* reordering profile details sections, updating deployment environment, & conditionally wrapping the hero elements 🎬

* fixing render of color disposition selector 🕍

* self code review changes: removed some `;`s 🎋

* getting yarn typecheck && yarn lint to pass post rebase 🏇🏾

* handling "missing <div> in <button>" error with mounted check & setting HTTP return codes for OpenSea API endpoint 🕺

* `ProfileWizard` extends `Wizard`, roles display better on mobile, & pronouns use `ProfileWizardPane` 🍊

* properly encapsulating ETH address regex 🚲

* adding some tasks 🏥

* fixed skills layou

* handling default values? 

* corrections for revision comments from @dan13ram (UI bugs to follow) 🌋

* cleaning up memberships & explorer type 🧫

* refactoring player roles configuration and display to use `WizardPane` 🔮

* bunches of mobile fixes & repairing the display of deserialized skills 📟

* removing redirect in static props & formatting memberships display for responsiveness 🪆

* improving comprehensability of `/me` & more mobile tweaking 🍦

* various spacing fixes & a “try again” button for connecting 🫕

* maybe fixed issue with saving images for fields with default values 🇩🇿

* switched roles selection to a bounded `SimpleGrid` to fix sizing weirdness 🧰

* fix: removed verify on brightId button

* fix: clean up username page

* formatting & fixing skills issues 🥩

* reformatting NFT display 🚂

* adding `/join` 🚉

* style: peth's suggestions

* added mainnet required message

* style: slight tweak of megamenu item positions

* chore(release): 0.2.0

Co-authored-by: tenfinney <scott@1box.onmicrosoft.com>
Co-authored-by: dan13ram <dan13ram@gmail.com>
Co-authored-by: vidvidvid <weetopol@gmail.com>
2022-02-28 14:06:16 -05:00
vidvidvid
1021cf2bd7 fix: alec's corrections pt. 1 2022-02-22 22:11:42 -07:00
vidvidvid
912d68dc6f chore: rebase fixes 2022-02-22 22:11:42 -07:00
vidvidvid
c4a06b04fa chore: remove unused icons 2022-02-22 22:11:42 -07:00
vidvidvid
006087bf9d feat: remove old seeds pages, set up new page 2022-02-22 22:11:42 -07:00
Alec LaLonde
c7263d0aa4 Added chain icon to DAO listings 2022-02-19 11:23:03 -07:00
Alec LaLonde
936a63d411 Start using daohaus metadata when populating DAO information 2022-02-19 11:23:03 -07:00
dan13ram
eac99b1251 refactor: cleaned up MegaMenu components 2022-02-18 15:37:28 +05:30
dan13ram
40e65d75d1 review changes from @dysbulic 2022-02-17 11:49:52 +05:30
dan13ram
c36c67504f fix: moved opensea to api & fixed env var 2022-02-17 11:49:52 +05:30
W.J. “dysbulic” H
dc5eb4db5f 75 of 100 files from #1078 have been added; need to rebase the parent branch 🚲 2022-02-16 20:17:48 +05:30
δυς
0af87e965d Clean Up & Simplify the Type System (#1116) 2022-02-08 13:13:28 -05: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
dan13ram
84c707c4c0 feat: show reset to default button only when changed 2022-02-07 16:48:38 +01: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
16ee3246fb fix: alec's corrections 2022-02-02 10:49:59 -07:00
vidvidvid
e7d9dc73b4 fix: hide quests demo app link 2022-02-02 10:49:59 -07:00
vidvidvid
2d9669a5b5 feat: support for editing roles on quests 2022-02-02 10:49:59 -07:00
vidvidvid
c8b1b04ff8 feat: add megamenu demo link 2022-02-02 10:49:59 -07:00
vidvidvid
a74c059bb7 feat: add role selector to create quest form 2022-02-02 10:49:59 -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
dan13ram
fe03537e8e feat: embedded url profile section 2022-01-13 15:57:01 +05:30
dan13ram
c76839f056 feat: profile layout edit + section add/remove 2022-01-13 15:57:01 +05:30
vidvidvid
d0f7abbaa8 style: change the default guild cover image 2022-01-09 14:48:37 -07:00
vidvidvid
afb54fb31a feat: set default cover image for guild 2022-01-09 14:48:37 -07:00
vidvidvid
4a8a6f1d2c feat: add guild box types and refactor player box types 2022-01-09 14:48:37 -07:00
vidvidvid
3a9d8e37d1 feat: iframes for invest section items 2021-12-20 07:31:14 -07:00
vidvidvid
b49d0ee24a feat: iframes for the all possible learn section items 2021-12-20 07:31:14 -07:00
vidvidvid
fbbc1da0f4 feat: organise the pages structure 2021-12-20 07:31:14 -07:00
vidvidvid
278dc9394a feat: implement opening of events in iframe 2021-12-20 07:31:14 -07:00
Alec LaLonde
cced2a46c4 First pass at mobile version of role select 2021-12-19 15:36:29 -07:00
Udit Takkar
835819a412 feat: google data api imported
rebased
2021-12-15 19:15:23 -07:00
Michiel Quellhorst
1d74d7beea Quest Editor Implemented (#760)
* added WYSIWYG Editor for quest description
rebased

* remove console output

* completed quest editor

* removed html-to-draftjs

* fix: file directory updates

* feat: js-dom added
rebase

* fix: fixed UI bugs

* fix: toast error message added for insufficient pSEED

* fix: replaced text with Box

* fix: limit description to 4 lines

* fix: removed incorrect condition from useUser hook

* fix: webpack 5 added in next.config

* fix: next.config webpack bug and rebased

* chore: remove comment

Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
2021-12-01 15:57:32 -05:00
luxumbra
078316b793 Refactor: Improvements & cleanup
- Moved some constans (grid config, etc) out to `config.ts`
- renamed the dashboard helper and moved the util functions to there.
- Removed the static props and placed api calls into a `useEffect`
2021-11-29 19:50:39 -07:00