Skip to content

[Icons] ux:icon:warm-cache interprets close:prevent (a live_action) as an icon during warmup, causing failure #2493

@jvancoillie

Description

@jvancoillie

Summary

Error during the ux:icon:warm-cache process when encountering live_action('close:prevent') in a UX Live Component. The issue occurs in environments where access to Iconify is blocked or misconfigured, such as in a CI pipeline or local development setup.

Description

When using the live_action function in a UX Live Component, such as:

<a href="#" {{ live_action('close:prevent') }} >Close</a>

The warmup process attempts to resolve an icon named prevent from the close collection. This causes a failure because close:prevent is not an icon definition but a Live Action attribute.

The issue was initially discovered in a CI pipeline behind a proxy that blocks access to Iconify, but it can also be reproduced in a local development environment with restricted access to the Iconify endpoint.

Steps to Reproduce

  1. Add a live_action('close:prevent') call in a UX Live Component.
  2. Test in an environment with one of the following conditions:
    • A CI pipeline behind a proxy that blocks access to Iconify.
    • A local development environment where access to the Iconify endpoint is restricted or misconfigured.
  3. Run the warmup process.
  4. Observe the error.

Expected Behavior

The warmup process should ignore or properly handle live_action calls, ensuring they are not mistakenly interpreted as icon definitions. Additionally, it should handle restricted or misconfigured network environments gracefully.

Actual Behavior

The process attempts to resolve prevent as an icon from the close collection. In environments where Iconify is inaccessible or misconfigured, this results in a failure during warmup.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions