Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: coveo/ui-kit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @coveo/headless@3.15.1
Choose a base ref
...
head repository: coveo/ui-kit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @coveo/headless@3.16.0
Choose a head ref
  • 7 commits
  • 75 files changed
  • 6 contributors

Commits on Feb 12, 2025

  1. fix(atomic): don't redirect when hovering a instant result & pressing…

    … Enter (#4938)
    
    https://coveord.atlassian.net/browse/KIT-3910
    
    We now have a new variable in suggestions-manager that tracks they
    keyboard use. When someone press Enter when having a
    suggestion/result/recent query selected with the keyboard, it will
    trigger it's onClick event.
    Whenever we stop using the keyboard and using the mouse it resets again
    which will make the Enter event trigger the query in the search box
    instead.
     
     I added a lot of tests to write in vitest.
    alexprudhomme authored Feb 12, 2025
    Copy the full SHA
    eea90a2 View commit details

Commits on Feb 13, 2025

  1. docs(headless-react): add strings stating the beta status of ssr comm…

    …erce (#4960)
    
    https://coveord.atlassian.net/browse/DOC-16522
    
    The `(Open Beta)` string will appear in titles for everything under `SSR
    Commerce`.
    
    ![Screenshot 2025-02-12 at 9 32
    43 AM](https://github.com/user-attachments/assets/8ae91295-7421-4f7f-a022-4c854e197563)
    jpmarceau authored Feb 13, 2025
    Copy the full SHA
    ce3f9c2 View commit details
  2. Copy the full SHA
    73341a3 View commit details
  3. fix(atomic): using _blank target on custom recommendation link temp…

    …late opens two tabs on click (#4953)
    
    [SVCC-4611](https://coveord.atlassian.net/browse/SVCC-4611)
    
    When a recommendation list uses a custom link template to open
    recommendations in a new tab, clicking the recommendation opens two tabs
    instead of one.
    
    **How to reproduce the issue**
    
    1. Override the `atomic-recs-result-template` as [per
    documentation](https://docs.coveo.com/en/atomic/latest/reference/result-template-components/atomic-result-link/#slots).
    
    ```html
    <atomic-recs-result-template>
      <template slot="link">
        <atomic-result-link>
          <a slot="attributes" target="_blank"></a>
        </atomic-result-link>
      </template>
      <template>... recommendation content is there ...</template>
    </atomic-recs-result-template>
    ```
    2. If you click the content of the recommendation, it open two tabs. If
    you click the margin (between the border and the content), then it opens
    a single tab.
    
    **Problem**
    
    The recommendation list components rely on
    [DisplayGrid](https://github.com/coveo/ui-kit/blob/master/packages/atomic/src/components/common/item-list/display-grid.tsx)
    for their rendering. The problem is related to [this
    line](https://github.com/coveo/ui-kit/blob/master/packages/atomic/src/components/common/item-list/display-grid.tsx#L26)
    where `DisplayGrid` forces a click on the recommendation content. When
    the recommendation content overrides the `link` slot, it already has an
    event handler for the `click`. It means that, when clicking the
    recommendation content, its `click` handler is invoked (opening the
    first tab). Then, the event propagates to the parent (`DisplayGrid`)
    which forces a `click` event on the content, causing another tab to
    open.
    
    **Proposed solution**
    
    The proposed solution is to modify the recommendation lists to detect
    whether the `link` slot is modified. If it is, then the
    `stopPropagation` property is set on the child `atomic-recs-result`
    component. It prevents the `click` event from being propagated to the
    parent when clicking a recommendation content. However, when outside the
    recommendation content (i.e., the margin), `DisplayGrid` still forces
    the `click` on the content, opening a single tab.
    
    [SVCC-4611]:
    https://coveord.atlassian.net/browse/SVCC-4611?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
    lbergeron authored Feb 13, 2025
    Copy the full SHA
    de34ef6 View commit details

Commits on Feb 14, 2025

  1. docs(headless,headless-react): typedoc styling update and link fix (#…

    …4963)
    
    https://coveord.atlassian.net/browse/KIT-3960
    
    I had handled the "light" and "dark" tables, but had forgotten about the
    basic "OS" theme.
    
    Before:
    ![Screenshot 2025-02-13 at 12 44
    55 PM](https://github.com/user-attachments/assets/008dd019-beba-4f2f-911e-896f29f2b99a)
    
    After:
    ![Screenshot 2025-02-13 at 12 45
    05 PM](https://github.com/user-attachments/assets/86553039-af65-4083-b9b7-28289d465439)
    
    Also added support for favicon.
    
    Before:
    ![Screenshot 2025-02-13 at 1 04
    51 PM](https://github.com/user-attachments/assets/06a80eba-af32-4e66-a5f2-8aefeb102eb4)
    
    After:
    
    ![Screenshot 2025-02-13 at 1 04
    31 PM](https://github.com/user-attachments/assets/69d01bd5-499a-4178-9b2d-0e51bcaeefc5)
    
    Finally, fixed some broken links referring to the old POC branch.
    jpmarceau authored Feb 14, 2025
    Copy the full SHA
    22a8bea View commit details
  2. feat(headless): add has no answer state to crga state (#4961)

    [SVCC-4651](https://coveord.atlassian.net/browse/SVCC-4651)
    
    - Introduce a new state `hasNoAnswer` in order to tell if an answer was
    generated with no answer.
    - This state will be used to add a customizable sorry message slot when
    no answer was generated for some clients.
    - The logic was implemented to work when using `answerapi` or `searchui`
    
    
    <img width="655" alt="Screenshot 2025-02-13 at 3 00 58 PM"
    src="https://github.com/user-attachments/assets/99c287c5-fd0f-490f-b78f-7302619f718f"
    />
    
    
    
    
    https://github.com/user-attachments/assets/066f7e5a-2c31-42f0-a8a8-445567ce4a18
    
    
    
    
    
    [SVCC-4651]:
    https://coveord.atlassian.net/browse/SVCC-4651?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
    jelmedini authored Feb 14, 2025
    Copy the full SHA
    d1f0e7b View commit details

Commits on Feb 17, 2025

  1. [Version Bump][skip ci]: ui-kit publish

    @coveo/headless@3.16.0
    @coveo/atomic@3.19.1
    @coveo/headless-react@2.4.7
    @coveo/atomic-react@3.2.19
    @coveo/atomic-angular@3.3.9
    @coveo/atomic-hosted-page@1.1.2
    @coveo/quantic@3.14.2
    
    **/CHANGELOG.md
    **/package.json
    CHANGELOG.md
    package.json
    package-lock.json
    developer-experience-bot[bot] authored Feb 17, 2025
    Copy the full SHA
    139be4c View commit details
Loading