Skip to content

Conversation

@BSekula
Copy link
Contributor

@BSekula BSekula commented Oct 14, 2025

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

What is the new behaviour?

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

}
private readonly destroyRef = inject(DestroyRef);

createDynamicComponent() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This logic was moved to base screen

@BSekula BSekula requested a review from Copilot October 14, 2025 09:12
@BSekula BSekula force-pushed the feature/AAE-38328-support-screens-on-start-process-event branch from c6ec3b6 to c41a656 Compare October 14, 2025 09:13
Copy link
Contributor

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

This PR adds support for screens on start process events, expanding the existing functionality to handle screen-based start forms alongside traditional forms.

  • Refactored task type detection into a dedicated service for better code reusability
  • Created new screen components for start process events with base class architecture
  • Extended start process component to handle screen types and their specific behaviors

Reviewed Changes

Copilot reviewed 18 out of 20 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
start-process-screen-mock.component.ts Mock component for testing start process screens
user-task-cloud.component.ts Refactored to use new task type resolver service
user-task-cloud.component.spec.ts Updated test setup for improved mock data handling
task-type-resolver.service.ts New service to centralize task type detection logic
task-type-resolver.service.spec.ts Comprehensive tests for task type resolution
screen-cloud.component.ts Refactored to extend new base screen component
start-process-screen.model.ts Interface definitions for start process screen components
start-process-screen-cloud.component.ts New component for rendering start process screens
start-process-screen-cloud.component.spec.ts Tests for the start process screen component
start-process-screen-cloud.component.scss Styling for overlay screen display
start-process-screen-cloud.component.html Template with conditional button rendering
base-screen-cloud.component.ts Base class for screen components to reduce duplication
start-process.component.mock.ts Enhanced mock helper for test flexibility
start-process-cloud.component.ts Extended to support screen-based process starting
start-process-cloud.component.spec.ts Added comprehensive tests for screen functionality
start-process-cloud.component.html Template updated to render screens conditionally
public-api.ts Updated exports for new screen components

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

taskDetails: TaskDetailsCloudModel;
taskType: TaskTypesType;
taskTypeEnum = TaskTypes;
taskType: UserTaskType;
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer to keep properties in alphabetical order, it helps to find properties.

variables: this.variables ?? {}
})
);
let action: Observable<ProcessInstanceCloud>;
Copy link
Contributor

Choose a reason for hiding this comment

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

thank you for replacing that completely unreadable ternary

@sonarqubecloud
Copy link

@BSekula BSekula merged commit 124fd66 into develop Oct 14, 2025
18 checks passed
@BSekula BSekula deleted the feature/AAE-38328-support-screens-on-start-process-event branch October 14, 2025 11:39
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.

4 participants