Skip to content

Conversation

@georgewrmarshall
Copy link
Contributor

@georgewrmarshall georgewrmarshall commented Jun 28, 2022

Explanation

Some UI updates

Screenshots

Before

Screen Shot 2022-06-28 at 2 29 48 PM

After

Screen Shot 2022-06-28 at 2 22 08 PM

Also updating and adding some stories
Screen Shot 2022-06-28 at 2 19 31 PM
Screen Shot 2022-06-28 at 2 20 09 PM
Screen Shot 2022-06-28 at 2 21 07 PM

@georgewrmarshall georgewrmarshall added the area-UI Relating to the user interface. label Jun 28, 2022
@georgewrmarshall georgewrmarshall self-assigned this Jun 28, 2022
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

'collectible-default__clickable': handleImageClick,
className={classnames('collectible-default', {
'collectible-default--clickable': handleImageClick,
})}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating classes here to follow BEM naming convention

})}
onClick={handleImageClick}
>
<Typography variant={TYPOGRAPHY.H7} className="collectible-default__text">
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Jun 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing click handler from text as unneeded. Clicking text still fires event

click.mov

handleImageClick.args = {
// eslint-disable-next-line no-alert
handleImageClick: () => window.alert('CollectibleDefaultImage clicked!'),
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding story for empty image card

overflowWrap={OVERFLOW_WRAP.BREAK_WORD}
boxProps={{ margin: 0, marginBottom: 4 }}
>
{description}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When there is a long word or id in the description the layout breaks. This fixes that.

...collectible,
image: undefined,
},
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding another story to display the collectible details story when there is no image

padding={0}
justifyContent={JUSTIFY_CONTENT.CENTER}
className="collectibles-items__item-wrapper__card"
>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding overflow hidden to the card so the image being contained doesn't overlap the border.

@georgewrmarshall georgewrmarshall marked this pull request as ready for review June 28, 2022 21:31
@georgewrmarshall georgewrmarshall requested a review from a team as a code owner June 28, 2022 21:31
Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the only thing I think we ought to do is line break the collection name -> tokenId so that you can atleast see the beginning of the tokenId in the card:
Screen Shot 2022-06-28 at 4 59 16 PM

@metamaskbot
Copy link
Collaborator

@georgewrmarshall
Copy link
Contributor Author

georgewrmarshall commented Jun 29, 2022

@adonesky1 I have added a <br /> so the tokenId is always visible bc25abd

Screen Shot 2022-06-29 at 8 26 11 AM

@adonesky1 adonesky1 merged commit a83bcd3 into add-fallback-collectible-card Jun 29, 2022
@adonesky1 adonesky1 deleted the add-fallback-collectible-george-updates branch June 29, 2022 16:05
@github-actions github-actions bot locked and limited conversation to collaborators Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-UI Relating to the user interface.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants