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 labels to management toolbar results bar | Fixes #1112 #1130

Merged
merged 21 commits into from
Aug 31, 2018
Merged

Add labels to management toolbar results bar | Fixes #1112 #1130

merged 21 commits into from
Aug 31, 2018

Conversation

carloslancha
Copy link
Contributor

No description provided.

@carloslancha carloslancha changed the title Regen snapshots | Fixes #1112 Add labels to management toolbar results bar | Fixes #1112 Aug 30, 2018
@coveralls
Copy link

coveralls commented Aug 30, 2018

Pull Request Test Coverage Report for Build 1137

  • 6 of 7 (85.71%) changed or added relevant lines in 3 files are covered.
  • 69 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.3%) to 81.249%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/clay-management-toolbar/src/ClayManagementToolbar.js 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
packages/clay-dataset-display/src/ClayDatasetDisplay.soy.js 7 79.4%
packages/clay-management-toolbar/src/ClayManagementToolbar.soy.js 7 87.17%
packages/clay-card/src/ClayCardBase.soy.js 8 78.23%
packages/clay-card-grid/src/ClayCardGrid.soy.js 47 61.49%
Totals Coverage Status
Change from base Build 1110: 0.3%
Covered Lines: 5231
Relevant Lines: 5607

💛 - Coveralls

@matuzalemsteles
Copy link
Member

Just started reviewing :)

:octocat: Sent from GH.

<div class="tbar-section">
{foreach $filterLabel in $filterLabels}
{call ClayLabel.render}
{param closeable: $filterLabel.closeable == false ? false : true /}
Copy link
Member

Choose a reason for hiding this comment

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

Could this be summed up like this?

{param closeable: $filterLabel.closeable ?: true /}

const filterLabelsValidator = Config.arrayOf(
Config.shapeOf({
closeable: Config.bool().value(true),
label: Config.string(),
Copy link
Member

Choose a reason for hiding this comment

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

hey @carloslancha maybe we have to add in ClayLabel to support HTML in the label API so you can customize it as defined below.

screen shot 2018-08-30 at 21 20 45

/**
* This renders de clear results button or link
*/
{template .clearResults}
Copy link
Member

Choose a reason for hiding this comment

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

I think we should make this a deltemplate so this can make it an extension point so people can cover cases like this:

screen shot 2018-08-30 at 21 20 24

Maybe rename it to something more general, something like ResultsAction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If this is a need please open an issue and we can add it later, I prefer do not mix issues here :)

Copy link
Member

Choose a reason for hiding this comment

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

Oh okay, no problem.

@matuzalemsteles
Copy link
Member

hey @carloslancha is this ready to be merged or are you waiting for Patrick to make markup corrections?

@carloslancha
Copy link
Contributor Author

Hey @matuzalemsteles we can merge this and update the markup once Patrick has made it. Thx!

@matuzalemsteles matuzalemsteles merged commit 137c094 into liferay:develop Aug 31, 2018
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.

3 participants