Skip to content

Feat/cat icon registry factory#976

Open
glushkova91 wants to merge 13 commits intomainfrom
feat/cat-icon-registry-factory
Open

Feat/cat icon registry factory#976
glushkova91 wants to merge 13 commits intomainfrom
feat/cat-icon-registry-factory

Conversation

@glushkova91
Copy link
Copy Markdown
Collaborator

@glushkova91 glushkova91 commented Apr 25, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an event-driven, scopeable icon resolution mechanism to cat-icon/CatIconRegistry (inspired by the Context Protocol proposal) to better support micro-frontend use cases and avoid cross-app icon registry conflicts.

Changes:

  • cat-icon now dispatches a cat-icon-request event to let an ancestor registry resolve SVGs, with a fallback to the global registry.
  • CatIconRegistry gains createInstance() and attachTo() for isolated, subtree-scoped icon provisioning.
  • Tests/mocks updated and a new CatIconRequestDetail type exported from the package entrypoint.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pnpm-lock.yaml Adds new importer entries for Angular dist packages.
core/src/index.ts Exports the new CatIconRequestDetail type.
core/src/components/cat-icon/cat-icon.tsx Dispatches cat-icon-request and renders resolved SVG from provider/global fallback.
core/src/components/cat-icon/cat-icon.spec.tsx Expands unit tests around event dispatch and icon resolution behavior.
core/src/components/cat-icon/cat-icon-request.ts Introduces the event detail contract type and documentation.
core/src/components/cat-icon/cat-icon-registry.ts Adds isolated registry creation and DOM-subtree attachment provider logic.
core/src/components/cat-icon/mocks/cat-icon-registry.ts Extends Jest mock to cover the new registry APIs.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/src/components/cat-icon/cat-icon.spec.tsx Outdated
Comment thread core/src/components/cat-icon/cat-icon.tsx Outdated
Comment thread core/src/components/cat-icon/cat-icon-request.ts Outdated
Comment thread core/src/components/cat-icon/cat-icon-registry.ts Outdated
Comment thread core/src/components/cat-icon/cat-icon-registry.ts Outdated
glushkova91 and others added 3 commits May 10, 2026 21:46
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…istener leaks

Agent-Logs-Url: https://github.com/haiilo/catalyst/sessions/67b1e587-7be6-4ea6-87cc-af76ee4fa30d

Co-authored-by: glushkova91 <13402897+glushkova91@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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