Commit Graph

85 Commits

Author SHA1 Message Date
HHH-GH
71c3fa3a9a Edit button visible only to Quest owner
Was visible to all during design feedback phase
2023-06-28 09:56:59 -06:00
HHH-GH
4245d5cee1 Take out the 'more' in the +X skills tag 2023-06-28 09:56:59 -06:00
HHH-GH
1df7d94464 Default maxSkills set to 5 to try to keep the skills list to two lines in the QuestTile 2023-06-28 09:56:59 -06:00
HHH-GH
37ce27f7f5 Add tooltip that lists the names of the skills that didn't fit in the list in QuestTile 2023-06-28 09:56:59 -06:00
HHH-GH
cbfcd9ba03 Add zIndex to WrapItem to lift it over the LinkOverlay that makes the whole tile a click target
This allows the Tooltip to display when hovered
2023-06-28 09:56:59 -06:00
HHH-GH
825d492992 The tag for extra skills says +5 *more* instead of just +5 2023-06-28 09:56:59 -06:00
HHH-GH
90b3f3370b Up to 6 skills are shown in each tile on the Quest Explorer page 2023-06-28 09:56:59 -06:00
HHH-GH
cba294ebd2 The full list of skills are shown on the Quest view page
Previously limited to 4 skills, with no way to view any skills past that limit
2023-06-28 09:56:59 -06:00
HHH-GH
a08e8d1115 Preview of edit and delete buttons
(Neither button does anything right now, design preview only)
2023-06-28 09:56:59 -06:00
HHH-GH
73ea119ec2 Preview of edit and delete buttons in layout
(The buttons don't do anything right now)
2023-06-28 09:56:59 -06:00
HHH-GH
626f6217f5 ...and they're saying :first-of-type is better than :first-child with static rendering 2023-06-28 09:56:59 -06:00
HHH-GH
3bb9ee49f0 Roles tags are not shown in the Quest tile
Because it makes the tile look too tall
2023-06-28 09:56:59 -06:00
HHH-GH
2ce0533e22 Add examples of edit and delete buttons
Clicking the buttons doesn't do anything
2023-06-28 09:56:59 -06:00
HHH-GH
7e12a3d1d1 Update Rewards text 2023-06-28 09:56:59 -06:00
HHH-GH
949451240a Add the Quest Status and Repetition tags to the Quest Details page
Changed the border radius and font size of the tags to better match the new design
2023-06-28 09:56:59 -06:00
HHH-GH
6be230c608 Fixes in Quest tiles: the text in the heading is clipped properly if it is longer than two lines, the quest image has a border radius on the top corners only, the Quest description is clipped to 3 lines 2023-06-28 09:56:59 -06:00
HHH-GH
f28c62b383 Add CSS rules to de-format the descriptions in the quest tiles in the Quests list
Because the descriptions are added by users and can have HTML and Markdown, and for e.g. if someone put in three headings right at the start of the description the description text would be huge and card would be really tall with the font size and margins and all that
2023-06-28 09:56:59 -06:00
HHH-GH
1d6059ce3d Use the new default quest image in the create and edit flows 2023-06-28 09:56:59 -06:00
HHH-GH
d2f11051a8 Border radius on Requirements and Rewards boxes matches the the Quest Image at 10px 2023-06-28 09:56:59 -06:00
HHH-GH
3c59194e5d The main image on the quest details is 1/1 ratio til md size, then 4/3 ratio after that 2023-06-28 09:56:59 -06:00
HHH-GH
062b27b225 A component to use Chakra AspectRatio for the Quest Tile image
Plus rounded corners for the Quest Images to match the Figma design
2023-06-28 09:56:59 -06:00
HHH-GH
aaaf14d373 Change the default quest image to match the Figma design 2023-06-28 09:56:59 -06:00
HHH-GH
5135022592 Fix alignment and grammar for the 'no proposals' message 2023-06-28 09:56:59 -06:00
HHH-GH
8981b73702 Typography for the Quest description matches the new design
Ref: https://www.figma.com/file/2yEeQUrgPOrLOq6DpC6Mb7/Quests-UI?node-id=519-2199&t=f7ABDY7Dw2Yxtrsc-0
2023-06-28 09:56:59 -06:00
HHH-GH
a758606bc6 Make the sub-titles into headings again
Ref: https://github.com/MetaFam/TheGame/pull/1461#issuecomment-1337893636
2023-06-28 09:56:59 -06:00
HHH-GH
7ec0d8a56b Quest Details page split into components, layout is finished
TODO(HHH-GH): some CSS rules to make the description match the new design, then remove the test text
2023-06-28 09:56:59 -06:00
HHH-GH
e30b2db8b6 Quest Explorer list shows 50 quests by default
TODO(HHH-GH): test this in an environment where there are more than 10 quests
2023-06-28 09:56:59 -06:00
HHH-GH
151ab18109 Remove the check for having a description
Placeholder text is added if there's no quest description, so there's always going to be a description
2023-06-28 09:56:59 -06:00
HHH-GH
0e5135257e Border radius on tags matches new design, skills and roles tags are both md size 2023-06-28 09:56:59 -06:00
HHH-GH
850df45f17 Put back the LinkOverlay so the whole card is a link target
BUT there needs to be a LinkOverlay for MetaTileHeader and MetaTileBody so that links inside the Quest Description don't cause hydration errors
2023-06-28 09:56:59 -06:00
HHH-GH
20660aed9e Update Quest Tiles layout
Change LinkOverlay to link
Pass a size to SquareImage
Style of heading matches new design
Take out the read more button and related code
Alignment of description, roles tags, and skills tags
TODO(HHH-GH): the hydration error, look at why a description can be blank
2023-06-28 09:56:59 -06:00
HHH-GH
b16f45d8d6 Tidy up the basic layout of the Quest Explorer page
Spacings, font sizes/weights, widths, etc
2023-06-28 09:56:59 -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
dysbulic
769f60195d repeated p weirdness 🐥 2023-03-13 10:19:16 -06:00
dysbulic
3029a6818b converting PNGs to WebPs 🇲🇦 2023-03-13 10:19:16 -06:00
Sero
b30267941b Resolve ENS
* moving pr over to fresh branch

* fixes

* update migrate

* pulling in files for rename of `migrate` to `sync` for SourceCred 🔖

* fix

* prevent lack of data

* formatAddress

* tile

* fixes

* switch rpc

* refactor and remove maps, clean up set

---------

Co-authored-by: dysbulic <dys@dhappy.org>
2023-03-02 15:36:34 -05:00
W.J. “dysbulic” H
ec11e39fca increasing z-index to prevent title blurring by backdrop-filter 🚞 2022-12-13 00:02:16 +01:00
δυς
b67025fd60 Adding of an Image to Quests & Other Fixes (#1461)
* squashing @thebeyondr's adding an image to quests 🧣

* cleaning, conglomerating, & standardizing 

* properly spreading arguments & restructuring forms 🥴

* setting required pSEED to 0 in testing & switching the IPFS gateway ⛑

* printing `NODE_ENV` to double check testing setting 🔩

* `connecting` needs to be initially false to avoid a hydration error 🛶

* testing if setting `$NODE_ENV` is sufficient for configuration 🦋

* seeing if "development" works as a `NODE_ENV` for Next.js 

* adding graphql retry on empty response 🥁

* consuming `NODE_ENV` in Dockerfile 🥺

* going to `APP_ENV` b/c `NODE_ENV` is unsettable 🎺

* removing printing `NEXT_PUBLIC_APP_ENV` 🦷

* making entire quest tile a link

* aligned rank tag in quest details page

* fix: 🐛 Add a `minWidth` to `PlayerTile`

* feat:  Add more accurate image preview for quests

* feat:  Add image to `QuestDetail`

* refactor: 💬 Update `Raid/Phase III` description

* UI & semantics tweaks from @luxumbra 🧞‍♀️

* centering short quest titles 🇪🇺

* borked the quest title centering 👹

Co-authored-by: Scott Stevenson <scott@1box.onmicrosoft.com>
Co-authored-by: thebeyondr <beyondr42@gmail.com>
2022-12-06 17:02:08 -05:00
W.J. “dysbulic” H
8c3b0b734a fixes #1468 by setting overflow visible 🛸 2022-12-06 14:58:22 +01:00
vidvidvid
bded039b4b final changes 2022-11-23 22:08:07 -07:00
vidvidvid
d966f51850 revert the current background to the original one 2022-11-23 22:08:07 -07:00
vidvidvid
4bd1026ab3 rebasing fix 2022-11-23 22:08:07 -07:00
vidvidvid
bc2f174078 remove quest status and repetition 2022-11-23 22:08:07 -07:00
vidvidvid
a61ab67cd7 make all card images square & clickable 2022-11-23 22:08:07 -07:00
vidvidvid
818e1cbe2c fix QuestDetails page 2022-11-23 22:08:07 -07:00
vidvidvid
cbd0b5e2b2 QuestTile 2022-11-23 22:08:07 -07:00
vidvidvid
d6f543bdbd redesign of the cards #2 2022-11-23 22:08:07 -07:00
vidvidvid
4d308d5b1a redesign of the cards #1 2022-11-23 22:08:07 -07: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
3ee733dd6a adding prose & parsing for cases of HTML in the quest tiles 2022-10-11 11:36:26 +05:30