Skip to content

Conversation

@benjiwheeler
Copy link
Contributor

(Needs scratchfoundation/scratch-www#2289 before it will work)

Resolves

Proposed Changes

uses author id and author username to create a display of info about the project's creator:

screen shot 2018-11-07 at 1 15 25 pm

Reason for Changes

Display info on the creator! And, have a place to show the title.

Copy link
Contributor

@rschamp rschamp left a comment

Choose a reason for hiding this comment

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

This looks pretty good, thank you for extracting the avatar into its own component. I think the only things I'm really concerned about changing is how the author thumbnail url is constructed, and the localization of the author byline.

>
<UserAvatar
className={styles.avatar}
userId={userId}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should be passing a full url as src from the outside rather than constructing the url from a userId here. The details of the path, and even the host are outside the responsibility of GUI. It's possible eventually an environment (offline?) would pass in a dataURI, for instance. And in the immediate, we would want to use a different thumbnail hosts in local development, on staging, and in production.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want this to link to the author's profile? @carljbowman?

If so, we should accomplish it with an onAuthorClick (or something) prop, since we'd want that to be handled differently in the desktop editor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could also circle back to this.

rschamp
rschamp previously approved these changes Nov 11, 2018
Copy link
Contributor

@rschamp rschamp left a comment

Choose a reason for hiding this comment

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

Looks good, although the bool or string types seem unnecessary.

rschamp
rschamp previously approved these changes Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants