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

[#225] Add sp-search #235

Merged
merged 22 commits into from
Oct 10, 2019
Merged

[#225] Add sp-search #235

merged 22 commits into from
Oct 10, 2019

Conversation

Westbrook
Copy link
Contributor

@Westbrook Westbrook commented Oct 4, 2019

Description

Add the sp-search element.

To-do:

Related Issue

Fixes #225

How Has This Been Tested?

  • Storybook stories have been added.
  • Unit tests are TK

Screenshots (if appropriate):

image
localhost_8080_components_search_examples

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@Westbrook Westbrook added the WIP label Oct 4, 2019
@Westbrook Westbrook force-pushed the westbrook/225/search branch from 01d90f9 to dcf7767 Compare October 7, 2019 17:56
@Westbrook Westbrook removed the WIP label Oct 7, 2019
@Westbrook Westbrook changed the title [WIP] [#225] Add sp-search [#225] Add sp-search Oct 7, 2019
@Westbrook Westbrook requested a review from msdewey October 7, 2019 21:20
@@ -7,7 +7,7 @@ export const ComponentApiDocs = new Map<string, TemplateResult>();

for (const key of componentApiDocs.keys()) {
const componentName = /([a-zA-Z-]+)\.html$/.exec(key)![1];
const templateString = toHtmlTemplateString(componentApiDocs(key));
const templateString = toHtmlTemplateString(componentApiDocs(key).default);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure when this broke, but without it we get [object Module] instead of API docs...

@@ -9,6 +9,9 @@ for (const key of componentDocs.keys()) {
if (!/node_modules/.test(key)) {
let componentName = key.split('/')[1];
const fileName = /([a-zA-Z-]+)\.md$/.exec(key)![0];
if (fileName === 'CHANGELOG.md') {
continue;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We now get automatic CHANGELOG.md generation, and they shouldn't be added to the docs site.

@@ -53,5 +53,250 @@ module.exports = {
},
],
},
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The following adds all of the UIIcon CSS to the icon package.

Copy link
Collaborator

@msdewey msdewey 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! nice to see get all these icons in here. just one minor thing:

}}
></sp-search>
<sp-search disabled></sp-search>
`
Copy link
Collaborator

Choose a reason for hiding this comment

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

would it be possible to also get the quiet version in storybook?

const applyDefault = this.dispatchEvent(
new Event('submit', {
cancelable: true,
bubbles: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

msdewey
msdewey previously approved these changes Oct 9, 2019
Copy link
Collaborator

@msdewey msdewey left a comment

Choose a reason for hiding this comment

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

lgtm!

[#156] Add UIIcons styling from Spectrum CSS
@Westbrook Westbrook requested a review from msdewey October 10, 2019 00:10
@Westbrook
Copy link
Contributor Author

Merged down into the branch, so it wants another review to "be sure..."

Copy link
Collaborator

@msdewey msdewey left a comment

Choose a reason for hiding this comment

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

👍

@Westbrook Westbrook merged commit ec1d79c into master Oct 10, 2019
@Westbrook Westbrook deleted the westbrook/225/search branch October 10, 2019 00:37
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.

Implement sp-search
2 participants