Closed tomer-shvadron closed 1 month ago
Latest commit: 383449955baa274ee0e39cbc74b33378d47842b8
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent updates primarily focus on enhancing the roles and business positions functionality across multiple services. Key changes include modifying the roles
property to support multiple roles, updating role display logic, and refining the handling of business positions in workflows and case management. These improvements aim to provide more flexibility and accuracy in role assignments and representations.
Files | Change Summaries |
---|---|
apps/backoffice-v2/src/domains/profiles/fetchers.ts |
Modified roles property to an optional array of strings in IndividualProfileSchema . |
apps/backoffice-v2/src/pages/Profiles/Individuals/components/ProfilesTable/columns.tsx |
Updated role names to lowercase, added "Representative" role, and modified display names accordingly. |
services/workflows-service/src/case-management/controllers/case-management.controller.ts |
Added endUsersOnBusinesses selection, updated typedEndUsers and formattedEndUsers structures to include businesses and roles. |
services/workflows-service/src/end-user/end-user.service.ts |
Updated create method to optionally accept a position parameter of type BusinessPosition . |
services/workflows-service/src/workflow/workflow.service.ts |
Introduced BusinessPosition enum and added position parameter in method signatures to handle business positions. |
sequenceDiagram
participant User
participant Frontend as Frontend App
participant BackofficeAPI as Backoffice API
participant WorkflowService as Workflow Service
participant CaseManagement as Case Management Controller
User->>Frontend: Request to view profiles
Frontend->>BackofficeAPI: Fetch profiles data
BackofficeAPI->>WorkflowService: Request roles and positions
WorkflowService->>CaseManagement: Fetch endUsersOnBusinesses
CaseManagement-->>WorkflowService: Return businesses and roles
WorkflowService-->>BackofficeAPI: Return roles and positions
BackofficeAPI-->>Frontend: Return profiles data
Frontend-->>User: Display profiles with updated roles and positions
In the code where roles now play,
Multiple strings have found their way.
With lowercase names and new roles in sight,
"Representative" joins the digital light.
Business positions refined with care,
Our workflows now are more aware.
🌟🌐✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Improvements