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

HTML Reporter: Multi-select module dropdown replacing module selector #973

Closed

Conversation

mlato-yahoo
Copy link
Contributor

A multi-select module dropdown, in response to #953

@trentmwillis
Copy link
Member

Excited for this! I'll try to take a look sometime this weekend and mess around with it locally.

@Arkni
Copy link
Contributor

Arkni commented Mar 24, 2016

Nice, I'll try to test it locally and provide feedback :)

if ( modulesList[ i ].checked ) {
selectedModules.push( modulesList[ i ].id );
}
}
Copy link
Member

Choose a reason for hiding this comment

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

These changes should wait for gh-969 to land, and then rebase on top of it.

@trentmwillis
Copy link
Member

One general comment, take a look at the jQuery CSS Style Guide, you have some minor issues in the CSS. Such as units for 0 values and non-hex color values.

return false;
}

moduleFilter.setAttribute( "id", "qunit-modulefilter-container" );
moduleFilter.innerHTML = moduleFilterHtml;
moduleSearch.placeholder = "Select modules";
Copy link
Member

Choose a reason for hiding this comment

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

placeholder is not supported in our current browser policy. Another notch for waiting for 2.0.

Copy link
Contributor

Choose a reason for hiding this comment

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

this should just progressively fall back to not doing anything though right?

Copy link
Member

Choose a reason for hiding this comment

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

Next release will be 2.0, so that won't be an issue

@Arkni
Copy link
Contributor

Arkni commented Mar 25, 2016

Hi @mlato-yahoo

I tested your code locally and noticed that when using module in conjunction with moduleId non is run.
Note that this behaviour only happens when moduleId is not the same as the hash of module.

See bellow comments

@leobalter
Copy link
Member

I tested your code locally and noticed that when using module in conjunction with moduleId non is run.
Note that this behaviour only happens when moduleId is not the same as the hash of module.

This is a fair behavior.

The dropdown selector could replace the module param by a moduleId in case it gets any new selection.

@Arkni
Copy link
Contributor

Arkni commented Mar 25, 2016

I tested your code locally and noticed that when using module in conjunction with moduleId non is run.
Note that this behaviour only happens when moduleId is not the same as the hash of module.

This is a fair behavior.

The dropdown selector could replace the module param by a moduleId in case it gets any new selection.

Yeah, I forgot that any test passing all filters (moduleId, testId, module, filter) gets to run.

I was thinking that, it should run one module if moduleId is the same as the hash of module, and run the two, otherwise.

But the current behavior is OK. and seems legit.
Thanks :)

@stefanpenner
Copy link
Contributor

screenshot:

bea08d82-f1cb-11e5-8222-97285144ef3f


// Remove moduleId and testId filters
moduleId: undefined,
// Remove testId filter
Copy link
Member

Choose a reason for hiding this comment

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

The old code set module and filter, and cleared moduleId and testId. If we're now setting moduleId instead of module, we should clear module.

@mlato-yahoo mlato-yahoo force-pushed the multi-select-module-filter branch 5 times, most recently from 1afed93 to a2379b1 Compare April 5, 2016 04:09
@mlato-yahoo mlato-yahoo changed the title [WIP] HTML Reporter: Multi-select module dropdown replacing module selector HTML Reporter: Multi-select module dropdown replacing module selector Apr 5, 2016
@mlato-yahoo
Copy link
Contributor Author

I've fixed the major CSS issues and changed most units to use em instead of px.

@mlato-yahoo
Copy link
Contributor Author

The sizing should also be fixed - menus align properly on all browsers.

@leobalter
Copy link
Member

leobalter commented Apr 18, 2016

This looks good to go, but it doesn't need to come along with 2.0.0 or this means it doesn't bring any breaking change, am I right?

@trentmwillis
Copy link
Member

it doesn't bring any breaking change, am I right?

I guess that would depend on if we consider the DOM public API. If anyone has extended QUnit in a way that makes assumptions about the module filter's DOM, then they would break.

I wouldn't mind seeing this implemented in 2.0.

@leobalter
Copy link
Member

2.0 changes beyond deprecated methods should be minimal to avoid complex migrations. But that doesn't seem to go with 2.0 and cause problems.

@gibson042 @jzaefferer

@jzaefferer
Copy link
Member

We've made plenty of changes to the HTML reporter over the various 1.x releases, seems fine to land this in any release.

@trentmwillis
Copy link
Member

We've made plenty of changes to the HTML reporter over the various 1.x releases

Well that answers my question then. I'm good with this landing whenever it is ready then; let's not block 2.0 on it.

}

fn.call( elem, event );
} );
Copy link
Member

Choose a reason for hiding this comment

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

I'm removing this part

@leobalter leobalter closed this in 0780127 Apr 18, 2016
@leobalter
Copy link
Member

merged at 0780127, thanks!

flore77 pushed a commit to flore77/qunit that referenced this pull request Aug 10, 2016
Closes qunitjsgh-973

Replaces the old module selector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants