Skip to content

Add Screen Templates Section in Screen Builder #1690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 5, 2024

Conversation

sanjacornelius
Copy link
Contributor

@sanjacornelius sanjacornelius commented Sep 5, 2024

This PR adds a new section in the screen builder that dynamically populates with templates when the 'Templates' button is selected. It fetches both user-specific and shared templates via API calls and displays the results in the right panel of the screen builder.

Changes

  • Implemented API calls to retrieve both "My Templates" and "Shared Templates" data from the backend.
  • Added a new section in the right panel of the screen builder to display the retrieved templates when the 'Templates' button is clicked.

How to Test

  1. Navigate to the screen builder interface.
  2. In the screen builder navigation menu, click the 'Templates' button to trigger the template loading process.
  3. Ensure that API calls are made to fetch "My Templates" and "Shared Templates" correctly.
  4. Once the templates are retrieved, confirm they are displayed in the right panel under appropriate categories (e.g., "My Templates" and "Shared Templates").

Related Tickets & Packages

FOUR-18286
CORE PR

ci:next
ci:processmaker:subtask/FOUR-18286

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.

Copy link

cypress bot commented Sep 5, 2024

screen-builder    Run #1273

Run Properties:  status check passed Passed #1273  •  git commit 724f53f691: Add Screen Templates Section in Screen Builder
Project screen-builder
Branch Review subtask/FOUR-18286
Run status status check passed Passed #1273
Run duration 07m 25s
Commit git commit 724f53f691: Add Screen Templates Section in Screen Builder
Committer Sanja
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 296
View all changes introduced in this branch ↗︎

@sanjacornelius sanjacornelius merged commit 2bf7af4 into epic/FOUR-18012 Sep 5, 2024
21 of 24 checks passed
@sanjacornelius sanjacornelius deleted the subtask/FOUR-18286 branch September 5, 2024 17:44
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