62 Commits

Author SHA1 Message Date
δυς
3efb984a35 fixing changed third parameter for busboy.on('file') 🌻 (#1289) 2022-06-07 13:20:36 -07:00
δυς
8eec746cbe Changing import location of isAddress function (closes #1274) 2022-05-31 07:13:41 -04:00
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
dan13ram
ca109f87ab feat: upgraded dependencies 2022-05-03 09:31:01 -06:00
vidvidvid
0c5e9d044b Name -> Username 2022-03-20 20:02:04 +01:00
vidvidvid
33a6e51bbc fix: name setup + icon 2022-03-20 20:02:04 +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
dan13ram
917160ecbd feat: updated dashboard layout styles 2022-03-02 11:21:28 +01: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
dan13ram
ac5f3fe98e fix: login issues 2022-02-18 15:37:28 +05:30
dan13ram
3c7c590dce feat: better error handling in opensea hook 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
f225de93c8 debugging authentication process 2022-02-16 20:17:48 +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
e3b5cff2e0 refactor: using next api for fetching metadata + eslint updates 2022-02-07 15:58:31 +01:00
dan13ram
df9899bd8c fix: fade animation in profile sections 2022-01-27 20:42:50 +05:30
dan13ram
a39c0c42c1 fix: review changes 2022-01-27 20:42:50 +05:30
δυς
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
63579d8495 fix: catch opensea errors + disable player achievements section 2022-01-13 15:57:01 +05:30
vidvidvid
7ee77db0ad Fix the rerender loop of profile hero data (#985)
* fix: fixed the hook to compare previous and current raw value

* refactor: implement the new hook in other profile sections

* fix: unnecessary useEffect

* refactor: remove the comparison of previous/current value

* fix: compare previous and current value
2021-12-24 22:24:54 +01:00
Firat Story
d652bf61a0 feature/add animation to profil box sections (#963)
* add animation

* Change animation
2021-12-14 15:50:31 +01:00
Udit Takkar
0519df0c9d chore: add export 2021-12-12 21:23:09 -07:00
vidvidvid
4b0d1964d4 fix: prevent rendering loop 2021-12-12 21:23:09 -07:00
Udit Takkar
d3a688eb77 Add XP Display to the Dashboard (#899)
Displays the total and seasonal XP accumulation on the new dashboard.
2021-12-07 09:26:21 -05:00
Alec LaLonde
5f60d4a2f5 Refactored GetPlayers graphql query to pass where clause as variable (#946) 2021-12-03 17:41:51 +01: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
vidvidvid
fb99fdbe4c fix the pr + fix the useUser redirect bug 2021-11-04 22:59:58 -06:00
Alec LaLonde
701d06134f Added requestPolicy option to useUser hook 2021-09-29 09:08:31 -06:00
Udit Takkar
c7f913dc0c added forLoginDisplay variable to reduce data returned for login display
Closes #738.
2021-09-16 10:15:57 -04:00
Alec LaLonde
b1927b8a40 Removed extraneous hook for fetching guild metadata 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
dan13ram
21e76b4cef fixed bug with incorrect sorting 2021-08-25 08:56:33 -06:00
dan13ram
1a371d929b better labels for sorting 2021-08-25 08:56:33 -06:00
dan13ram
1cd91bdc72 added sorting to the filters 2021-08-25 08:56:33 -06:00
Will Holcomb
6f4fdb650c removing favorite NFTs & stylis dependency ❇ 2021-07-28 06:38:25 +05:30
Will Holcomb
ce4d42b6d2 reviewing pull request 🇯🇲 2021-07-28 06:38:25 +05:30
Will Holcomb
d9876c563f standardizing the capitalization of URL 2021-07-28 06:38:25 +05:30
Will Holcomb
b6ad318965 frontend changes to use cached profile rather than remote schema 🍥 2021-07-28 06:38:25 +05:30
dan13ram
893e1b7a55 better messaging for no players found 2021-07-27 07:24:00 +05:30
dan13ram
24e7b166ba fixed useEffect called too many times 2021-07-27 07:24:00 +05:30
dan13ram
c41246bb4e showing adjacent timezones for players 2021-07-27 07:24:00 +05:30
dan13ram
d1ec0e8501 better search for timezone filter 2021-07-11 17:12:28 -06:00
dan13ram
1fa9085170 fixed glitches due to IntersectionObserver 2021-07-08 10:30:26 -06:00
dan13ram
2bd590c791 fixed glitch in loading players 2021-07-08 10:30:26 -06:00
dan13ram
354dc22228 fetching count and players simultaneously 2021-07-08 10:30:26 -06:00
dan13ram
11286feb44 only search filter used 2021-07-08 10:30:26 -06:00
dan13ram
9c2a11b993 added pagination for players page 2021-07-08 10:30:26 -06:00