Skip to content

Conversation

@iAdramelk
Copy link
Contributor

@iAdramelk iAdramelk commented Dec 18, 2019

Strongly under development. PR only to check on Heroku.

Purpose:

  • Provide an overview of what's going on with the project on the community side.
  • For everyone who is meeting DVC for the first time.
  • Help ppl find all the resources that might be useful to community members in one place.
  • Emphasize that we are supporting "ambasssadors" among community members: ppl who give talks, want to organize meetup, etc.
  • Remove some of the scattered mentions/links to community resources – which exact ones? We'll see.

Motivation:

  • Most of the community page content was already there but scattered over the website and sometimes hard to find: "resources, channels of communication being pretty disorganized and mentioned both in the top menu, in the "support" section, in the "help" section, etc."

From #874 (comment).

@shcheklein shcheklein temporarily deployed to dvc-landing-community-p-pa6w0l December 18, 2019 00:44 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-pa6w0l December 18, 2019 01:59 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-pa6w0l December 18, 2019 12:22 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-pa6w0l December 18, 2019 12:42 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-pa6w0l December 19, 2019 14:56 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-pa6w0l December 23, 2019 10:15 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-pa6w0l December 23, 2019 14:29 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-f0q8rx February 11, 2020 07:17 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-f0q8rx February 11, 2020 07:33 Inactive
@shcheklein shcheklein temporarily deployed to dvc-landing-community-p-f0q8rx February 11, 2020 07:39 Inactive
@shcheklein shcheklein changed the title [WIP] Community page Community page Feb 11, 2020
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-f0q8rx February 11, 2020 08:22 Inactive
Copy link
Contributor

@fabiosantoscode fabiosantoscode left a comment

Choose a reason for hiding this comment

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

Looks great in general!

Don't feel obligated to change stuff marked as a nitpick.


res.status(200).json(data)
} catch {
res.status(404)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the appropriate status code? Maybe 503/502 is better since it's an upstream error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, will change.

/>
<title>Community | {META_BASE_TITLE}</title>
</Head>
)
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: this could be a head and used below as {head} since it's static.

Don't feel obligated to change this if you feel like this is a better solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually moved it inside the component on the other pages already, so probably I'll do it here too.

// eslint-disable-next-line react/display-name
export default React.forwardRef((props, ref) => (
<BareButton {...props} forwardedRef={ref} />
))
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 you can make the BareButton a wrappee of React.forwardRef itself, instead of adding an extra component around it. It should work fine even if you add hooks to the component eventually.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's mostly done this way to let the button have a readable name to show in dev tools, bow I start to think that I can do both without separate component, but I need to experiment some more.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tried, didn't work (you can't default export consts, only functions). But I renamed BareButton to CommunityButton for consistency.

<CommunityButton
theme={theme}
href="mailto:info@dvc.org?subject=I want to write a blogpost!"
target="_blank"
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: the only way of making mailto links open in a new tab is using window.open.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's ok not to open new page if the user use external email app. We need it only for browser email client like gmail.

@shcheklein can you check if the links are now opened in the new tab in your case please?

@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-f0q8rx February 11, 2020 13:10 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-f0q8rx February 12, 2020 12:24 Inactive
@iAdramelk iAdramelk temporarily deployed to dvc-landing-community-p-f0q8rx February 12, 2020 14:44 Inactive
@shcheklein shcheklein merged commit c32e687 into master Feb 12, 2020
Copy link
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

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

From #874 (comment) I still have these 2 Qs:

  • Is removing the GitHub link from the top nav a good idea?
  • The Be an Ambassador block may need more emphasis, maybe a special color and/or being on top of its section.

Elle's copy edits which I moved to #874 (review) seem to all be pending still.

My own #874 (review) on src/Community/data.json also seems pending still.

@shcheklein
Copy link
Contributor

shcheklein commented Feb 12, 2020

@iAdramelk looks like a lot of good reviews and suggestions were lost due to a lot of changes. @SvetaGr @jorgeorpinel @andronovhopf could you summarize in one page, please, what copy updates do you suggest to make?

@jorgeorpinel if you have anything related to code - could you please make a separate issue with checkboxes to discuss and fix them?

Thanks!

@jorgeorpinel
Copy link
Contributor

I'll just apply the copy edits in a regular update PR soon, so don't worry about my #874 (review) above Alex.

Sorry, I didn't really get a chance to review the JS code here Ivan, my review on src/Community/data.json is also on content (will include in my regular updates ASAP).

Thanks

@shcheklein
Copy link
Contributor

@jorgeorpinel in this specific case, let's create a list of changes please since @andronovhopf and @SvetaGr had some changes in mind as well. I would like to consolidate this and do at once.

@jorgeorpinel
Copy link
Contributor

OK let's use #996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants