Commit Graph

55 Commits

Author SHA1 Message Date
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
dan13ram
591b7d1e9f updated filters with new design 2021-06-14 14:01:24 +05:30
dan13ram
c2e3782d28 added filters for /players page (#566)
* player filters for type and skills

* fetching multiple players in parallel

* removed tile fragment

* search by username or address

* better spacing

* availability filter

* timezone filter

* passing tests in ds

* submit form in search bar

* added better labels for timezone

* fixed test issue

* searching only if search >= 2 char

* meta select ds

* updated metabutton bg color

* parallel for > 50 only

* fix reset search filter
2021-05-19 20:49:06 +05:30
dan13ram
8517a26048 Upgrade dependencies (#486)
* upgraded storybook dependencies

* upgraded web dependencies

* updated timezone selector

* upgrade chakra in metamaps

* upgraded react-dnd in metamaps

* upgraded framer-motion

* fixed types in metamaps

* upgraded eslint

* upgraded lerna, husky and graphql

* upgraded node version

* removed metamaps package

* fixed all eslint issues

* ran yarn format to prettier format all files

* updated lint-staged & husky scripts

* add executable perms to pre-push scripts

* updated yarn.lock

* fixed eslint and moved chakra icons to ds

* fixed emotion errors

* removed extra useContext

* update yarn.lock

* upgraded more packages

* removed unnecessary .huskyrc.json

* lint fix
2021-05-01 12:46:48 +05:30
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
Pacien Boisson
a02d864c9e Support connection from smart wallets (#416)
* Support connection from smart wallets

* Fix unreachable code
2021-03-16 17:42:07 +04:00
Pacien Boisson
0e3cc277f7 Fix mobile connect (#360)
* Tweak login flow

* Add connecting state and fix signing

* Fix URQL cache when switching account

* Lint
2021-03-15 21:16:47 +04:00
dan13ram
4d59ac3f1b moved brightId verified tag to contacts (#388)
* moved brightId verified tag to contacts

* empty commit
2021-03-08 20:17:57 +05:30