Skip to content

CFG-124: Upgrade PrimeVue to 4.5.5 and port Patchman PrimeVue patch#3

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/cfg-124-update-primevue-to-latest-version
Draft

CFG-124: Upgrade PrimeVue to 4.5.5 and port Patchman PrimeVue patch#3
Copilot wants to merge 2 commits intomainfrom
copilot/cfg-124-update-primevue-to-latest-version

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 23, 2026

This updates PrimeVue to the latest version and reworks Patchman’s PrimeVue patch so it still applies cleanly on v4.5.5. It preserves the two required behaviors: global portal target override and toast hover pause for auto-close.

  • Scope

    • Upgrade primevue from 3.49.1 to 4.5.5.
    • Replace patches/primevue@3.49.1.patch with patches/primevue@4.5.5.patch.
    • Update patched dependency wiring in package.json and lockfile.
  • Patch port: Portal behavior

    • Reintroduced global portal override in v4 by exporting globalAppendTo from primevue/portal.
    • Portal now resolves appendTo="body" through globalAppendTo when provided.
  • Patch port: Toast hover behavior

    • Kept hover-to-pause semantics for toast life timeout.
    • handleMouseEnter/handleMouseLeave now apply timeout pause/resume regardless of whether external mouse handlers are passed, while still honoring event.preventDefault().
  • PrimeVue v4 migration notes identified

    • Theming/styled mode changed substantially; legacy primevue/resources theme path is removed.
    • primevue/api relocates to @primevue/core/api.
    • Several component rename/deprecation paths should be reviewed downstream (e.g. Calendar→DatePicker, Dropdown→Select, OverlayPanel→Popover).
  • Example (global portal target override)

    import { globalAppendTo } from "primevue/portal";
    
    // Redirect all default appendTo="body" portals to a host element
    globalAppendTo.value = document.getElementById("my-host") as HTMLElement;

Issue: https://macs-holding.atlassian.net/browse/CFG-124

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • primevue.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

You have been mentioned in a comment on a work item "Update PrimeVue to the latest version". Analyze the details of the work item and get started.
Summary: Update PrimeVue to the latest version
Description: Double check the patches

Comment: @unknown try updating primevue to the latest version and make sure the primevue patch still applies - update it accordingly.
Also investigate what kind of migrations are required.

The branch name and pull request title should include the identifier: CFG-124
Include a link to the original issue in the pull request description: https://macs-holding.atlassian.net/browse/CFG-124

Copilot AI changed the title [WIP] [CFG-124] Update PrimeVue to the latest version CFG-124: Upgrade PrimeVue to 4.5.5 and port Patchman PrimeVue patch Apr 23, 2026
Copilot AI requested a review from patroza April 23, 2026 11:04
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.

2 participants