Skip to content

Conversation

jmazzah-coveo
Copy link
Contributor

βœ… Checklist

  • πŸ§ͺ The component is unit tested
  • πŸ§ͺ The component includes E2E tests*
  • πŸ—‘οΈ Old Cypress tests exclusive to the component are removed~ (N/A)
  • πŸ“– The component is documented in storybook with an .mdx file
  • β™Ώ The component complies with the Web Content Accessibility Guidelines.
  • 🌐 All strings intended for humans or assistive technology must be localized with i18n.
  • πŸ“¦ The Lit component is exported in the appropriate index.ts and lazy-index.ts files.
  • 🎨 CSS parts are documented still accessible.
  • πŸ¦₯ Slotted Content, public methods and properties are documented
  • πŸ”„ The component outputs the same Angular output as before with Stencil
  • 🏷️ The component declares the component type in the HTMLElementTagNameMap

https://coveord.atlassian.net/browse/KIT-4963

Note: This Pull Request contains files from the reactive controllers. You can ignore them as they have already been reviewed and are waiting for final approval to be merged.

Comment on lines 19 to 20
* @MapProp name: mustMatch;attr: must-match;docs: The field and values that must be matched by a result item for the template to apply. For example, a template with the following attribute only applies to result items whose `sourcetype` is `YouTube` or `Salesforce`: `must-match-sourcetype="YouTube,Salesforce"`;type: Record<string, string[]> ;default: {}
* @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that must not be matched by a result item for the template to apply. For example, a template with the following attribute only applies to result items whose `sourcetype` is not `YouTube`: `must-not-match-sourcetype="YouTube"`;type: Record<string, string[]> ;default: {}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is used in storybook. Also, it should probably be @mapProperty now?


## Template Conditions

You can use conditions to display different templates based on result properties:
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the order of "declaration" matter?

E.g., if the default template precedes the youtube template in the markup, will the default template apply even to youtube results?

Whether declaration order matters or not, we should document this behavior because right now it's not clear.

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