Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markdown support to OperatorHub and InstalledOperators pages #5827

Merged
merged 1 commit into from Jul 1, 2020

Conversation

jhadvig
Copy link
Member

@jhadvig jhadvig commented Jun 25, 2020

Adding support for markdown based on jira story specification. First I wanted to truncate the blocks using CSS but then Ive realised that its a bit tricky since we are creating multiple paragraph blocks so figured our that best would be to truncated text itself.

/assign @spadgett

@openshift-ci-robot openshift-ci-robot added component/olm Related to OLM approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 25, 2020
@jhadvig
Copy link
Member Author

jhadvig commented Jun 25, 2020

Screens:

  • Screenshot 2020-06-25 at 20 11 37
  • Screenshot 2020-06-25 at 20 11 03
  • Screenshot 2020-06-25 at 20 11 13

@@ -89,13 +89,19 @@ export class SyncMarkdownView extends React.Component<
<link rel="stylesheet" href="${link.href}">`,
'',
);
const content = this.props.truncateContent
? _.truncate(this.props.content, {
length: 100,
Copy link
Member

Choose a reason for hiding this comment

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

100 feels a little too short. Maybe 256?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to leave it to approx. 3 lines, which is about 100+- chars

Copy link
Member

Choose a reason for hiding this comment

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

I wanted to leave it to approx. 3 lines, which is about 100+- chars

I don't think it's enough content to describe some resources. We're really trying to catch the extreme cases where there are paragraphs of text.

@jhadvig
Copy link
Member Author

jhadvig commented Jun 29, 2020

@spadgett comments addressed. PTAL

@jhadvig
Copy link
Member Author

jhadvig commented Jun 29, 2020

/test e2e-gcp-console

@jhadvig
Copy link
Member Author

jhadvig commented Jun 30, 2020

@spadgett I think we are good to go here :)

Copy link
Member

@spadgett spadgett left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 1, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhadvig, spadgett

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit e6f25ab into openshift:master Jul 1, 2020
@spadgett spadgett added this to the v4.6 milestone Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/olm Related to OLM lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants