Commit Graph

82 Commits

Author SHA1 Message Date
Seroxdesign
27b14241bb add ids to metagame render scripts 2023-06-21 09:25:07 -06:00
Seroxdesign
151e23de05 script stuff 2023-06-21 09:25:07 -06:00
δυς
2921a47ef0 Review: meTokens ₍wᵢₜₕ gᵣₐₙᵤₗₐᵣ 𝄴ₒₘₘᵢₜₛ₎ (#1552)
* linting 🃡

* removing MetaMask specificity 🃢

* moving `StrictMode` to Next.js 🃣

* compressing & commafying 🃤

* upgrading eslint 👘

* removing preface from guild name 🃥

* removing unnecessary ESLint `no-console` directives 🌂

* fixing a typo in a comment 🃦

* updating GraphQL codegen for paid subgraph 🦏

* replacing Discord invite link 📌

* passing through The Graph API token to Docker ♾

* setting Docker ARG to set ENV 📟

* missed a file rename in frontend Docker config 🦀

* adding ts-node to fix Docker build issue ⸙

* trying to narrow down the 500 error's source in the test instance 

* exposing The Graph API token on Cloud Run 🦃

* more logging to try & find server error 🐠

* more logging 🧱

* trying to run Node.js in development mode on Cloud Run 🎁

* reconfiguring frontend Dockerfile to also run the dev environment 🌿

* dev mode seems to function 🧨

* 768MiB wasn't enough memory 🍁

* 1GiB wasn't enough memory 🔱

* 1.5GiB was interpreted as 1GiB 🥃

* 1536MiB wasn't enough memory 👾

* 2GiB wasn't enough memory 🧲

* 3GiB wasn't enough memory 🆎

* 4GiB might have been enough, but it still doesn't load 🧻

* 5GiB requires two CPUs 📝

* giving up on dev server; unexplained HTTP 429s 🎨

* disabling Honeybadger in test instances 📮

* trying an `ErrorBoundary` to gather more info 🕷

* setting GraphQL endpoint 🇲🇰

* exposing environment variables ⛈

* trying to expose `` 📻

* the Next compiled version still references `node_modules` 🦢

* removing Alchemy API key from sources 

* trying a different Docker build action 💉

* removing logging 🍿

* switching to Docker Buildx 👠

* missed an escaped newline 🗿

* trying a newer gcloud setup action 🦝

* hopefully fixing authentication 📴

* bunch of changes to the meTokens profile section 🦜

* need credentials file 🐆

* hunting for layout load error & pushing debug statements to testing 🥁

* updating eslint 💓

* trying to debug the missing Breadchain Coop 🧀

* apparently chose the wrong changeset 🐚

* removing logging 🥀
2023-05-15 09:12:03 -06:00
Alec LaLonde
08bae099a9 Cache ENS lookup (#1542)
* Added usePlayerName and usePlayerURL

* Removed resize handler as it was always rendering regardless of edit status

* re-work player page to avoid duplicate player lookups

* Lint fixes

* Force 5.x version of ethers
2023-04-12 05:54:59 -04:00
Konrad Gnat
772507b9b5 remove logs, prep for cr 2023-02-21 09:39:39 -07:00
Konrad Gnat
6734fd9bee add photo to profile wizard, create the ui and display local preview 2023-02-21 09:39:39 -07:00
δυς
7cd6b90e37 Ceramic ModelManager → DataModel (#1453)
* updating frontend Ceramic ModelManager → DataModel 🚪

* adding DataModel to the backend 🎼

* fixing CAIP-10 lookup 🛎
2022-11-29 18:13:32 -05:00
δυς
9e37df6207 Update MyMeta to ECMAScript Modules + Switch to DID:PKH (#1429)
* beginning ESM transition: Ceramic libraries, Next.js, & TypeScript configuration 🇭🇰

* updating Chakra, React, & Next image `import`s 👔

* upgrading `@types/react`, import extensions for Node, & b64 SVG to PNG ⛹🏿‍♀️

* fixing relative import names & upddating @types packages 📻

* removoing WYSIWYG editor, draft-js, & updating express ⛹🏿‍♀️

* updating OpenSea 🚲

* ¡@metafam/utils is building! 📰

* ¡Discord bot is building! 👘

* ¡backend is building! 🛩

* fixed everything but Ceramic DID update 🏍

* switching to DID:PKH 📦

* fixing "only one child allowed" error 🙇🏿‍♀️

* importing `React` as required by tsc's `isolatedModules` 🇲🇰

* disabling testing rather than taking the time to fix jest ⚜

* removing set `types` from `tsconfig` to fix compilation error 🥦

* printing tests disabled warning, hopefully 🙀

* setting file to be copied to the new resolver 👁️‍🗨️

* "paths-resolver" not "paths-resolve" 🦴

* switching back to relative paths rather than trying to fix `paths` 

* `yarn backend:dev` not working, testing GitHub build 🎺

* removing design system build & fixing some images ✊🏿

* fixed "expected function got string" error & trying to address undefined HTMLElement 🐡

* fixing @emotion/react tree shaking by making external 🏏

* including eslint config in Dockerfile 🌾

* fixing more images 🎯

* updating DIDs & switching back to an updated DID:3 ❇

* switching to w3s.link gateway & fixing early termination of storage endpoint 🔭

* switching back to ipfs.io gateway b/c w3s.link serves SVGs as application/xml which are CORB blocked 🥾

* fixing node config name in eslint ignore & shortening some paths 🧰

* fixing ts-node not handling project references 🥁
2022-11-14 11:26:41 -05:00
luxumbra
2c1d450f02 Forgot to remove the Honeybadger imports from files after adding errorHandler 2022-10-21 13:21:38 -06:00
luxumbra
a53e450f81 addressing feedback from @alalonde
- Moved `Honeybadger.notify()` to `errorHandler.ts` and replaced instances.
- Removed module definitions from `env.d.ts`
2022-10-21 13:21:38 -06:00
luxumbra
a794355f44 Frontend Honeybadger integration
- See  #1414
- `trycatch` blocks should now have `Honeybadger.notify(error)` which will give us nice error/exception reports when stuff happens in the wild.
- Also have Clarity working again with a new projectId
- HotJar integration is working as well.
- env vars will need adding to test & prod for honeybadger, clarity and hotjar.
2022-10-21 13:21:38 -06:00
vidvidvid
ec8182d7da Role Onboarding using Quest Chains (#1150)
* feat: set up quests dashboard

move quest explorer to /quests/general

* feat: prepare containers for path-of-the-engaged and initiation quests

* chore(release): 0.2.0

* feat: add metacollab and web 3 onboarding categories

* feat: move initiation quests from notion -> metaOS

awyiss it's happening

* chore: lint quickfix

* feat: add descriptions, objectives, checkbox, collapse/expand

* add Dockerfile to .gitignore

* go

* quick fix

* upload proof modal

* config and install

* upload proof works

* show status of quests (pending, etc..)

* remove initiation & update engaged quests

* fix quest categories

add bridgebuilders, builders, patrons, fix icons

* typecheck fix

* fix address for bridgebuilders quests

* design of chain progress + small fix

* minor fixes

* using latest version of quest-chains sdk

* basic UI for quests

* using children for react-markdown

* better styling for quest tiles

* completed quest chain styling

* fixed toasts

* fixed imageLink

* added link to quest chains

* minor fixes

* added back to onboarding paths link

* fixed external link icon as absolute pos

* reduce gaps for mobile

Co-authored-by: Vid <vid@meisterlabs.com>
Co-authored-by: dan13ram <dan13ram@gmail.com>
2022-10-08 19:05:42 +01:00
dan13ram
33ec384f9c using editable grid layout for guild profile 2022-10-06 22:26:02 -06:00
dan13ram
1839059806 fixed bug in saving empty imageURL to jotaiState 2022-10-05 10:58:07 +05:30
dan13ram
a78d494d87 fix: remove images from ceramic profile 2022-10-05 10:58:07 +05:30
dan13ram
9ce5dc99ae feat: added support for removing banner / background image 2022-10-05 10:58:07 +05:30
dan13ram
0b086e4c6e fix: consolidated console logs + eslint fix 2022-10-01 23:21:03 +05:30
dan13ram
da5cafa05c fix: consolidated modal styles 2022-10-01 23:21:03 +05:30
dan13ram
c26e04bb7c feat(Dashboard): persisting dashboard changes to server + refactor/cleanup 2022-09-30 19:59:43 +02:00
Alec LaLonde
1b4efb4ec5 Refactoring, fixing eslint warnings 2022-09-29 08:25:43 -06:00
δυς
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