Skip to content

FOUR-26705 | The Copy Options Is Not Visible for a Flow Genie from the Recent Asset#8924

Open
mcraeteisha wants to merge 2 commits into
developfrom
bugfix/FOUR-26705
Open

FOUR-26705 | The Copy Options Is Not Visible for a Flow Genie from the Recent Asset#8924
mcraeteisha wants to merge 2 commits into
developfrom
bugfix/FOUR-26705

Conversation

@mcraeteisha

@mcraeteisha mcraeteisha commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Issue

Ticket: FOUR-26705

When a Flow Genie is added to a project and viewed from Designer → Recent Assets, the Genie options menu did not show "Copy", even though "Copy" is available on the main Flow Genie listing under the same permissions.

Solution

Aligned Designer Recent Assets with the main Flow Genie list copy behavior:

  • Added a "Copy" action to the shared Recent Assets Flow Genie menu (ellipsisMenuActions.js).
  • Handled copy-item in the Flow Genie navigation path (flowGenieNavigation.js).
  • Added a duplicate-only modal in core (CopyFlowGenieModal.vue), imported by RecentAssetsList.vue, that submits through PUT package-ai/flow_genies/{id}/duplicate.
  • Updated the package-ai duplicate endpoint to sync project associations and refresh the user project-assets cache so copied Genies appear correctly in project/recent-asset views.

How To Test

  1. Create and add a Flow Genie to a project.
  2. Go to Designer.
  3. View Recent Assets.
  4. Click on Genie options:
    • Ensure the "Copy" action is listed with the same permission rules used elsewhere (create-flow_genies / view-additional-asset-actions).
    • Ensure selecting Copy opens the expected copy flow (name, category, project, description).
    • Ensure submitting creates a new Genie copy successfully via the established duplicate API.
    • Ensure the copied Genie appears as a normal editable asset.
    • Ensure the existing Edit, Add to Project, and Delete actions are not regressed in Recent Assets or the main Flow Genie listing.

ci:package-ai:bugfix/FOUR-26705
ci:deploy

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

@processmaker-sonarqube

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@mcraeteisha
mcraeteisha requested a review from eiresendez July 22, 2026 17:11
@vladyrichter

Copy link
Copy Markdown

QA server K8S was successfully deployed https://ci-33860cfd0e.engk8s.processmaker.net

@eiresendez eiresendez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 👍 👍

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