# maskedtitan7/prudential-pru architecture

> Architecture diagram of the GitHub repository maskedtitan7/prudential-pru, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maskedtitan7/prudential-pru
- Repository: https://github.com/maskedtitan7/prudential-pru

## Overview

This Salesforce project contains a training-course Lightning feature alongside employee, enrollment, and course metadata. The visible user path is a Lightning user viewing the course list, whose LWC wires to an Apex controller method. The tree also shows a course trigger and handler, a defaults flow, and custom-object schemas; their detailed behavior and wiring were not sampled, so those links are omitted. The Apex controller’s data access is likewise unverified.

Main entry points: [`force-app/main/default/lwc/trainingCourseList/trainingCourseList.js`](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/lwc/trainingCourseList/trainingCourseList.js) (Course List), [`force-app/main/default/classes/TrainingCourseController.cls`](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/classes/TrainingCourseController.cls) (Course Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Lightning Experience"]
  node_course_list["Course List"]
end

subgraph group_apex["Apex Logic"]
  node_course_controller["Course Controller"]
  node_course_handler["Trigger Handler"]
end

subgraph group_automation["Course Automation"]
  node_course_trigger["Course Trigger"]
  node_course_defaults["Course Defaults"]
end

subgraph group_data["Training Data"]
  node_course_records[("Course Records")]
  node_enrollment_records[("Enrollment Records")]
  node_employee_records[("Employee Records")]
end

node_lightning_user(("Lightning User"))

node_lightning_user -->|"views"| node_course_list
node_course_list -->|"requests courses"| node_course_controller

click node_course_list "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/lwc/trainingCourseList/trainingCourseList.js"
click node_course_controller "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/classes/TrainingCourseController.cls"
click node_course_trigger "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/triggers/TrainingCourseTrigger.trigger"
click node_course_handler "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/classes/TrainingCourseTriggerHandler.cls"
click node_course_defaults "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/flows/Training_Course_Set_Defaults.flow-meta.xml"
click node_course_records "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/objects/Training_Course__c/Training_Course__c.object-meta.xml"
click node_enrollment_records "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/objects/Training_Enrollment__c/Training_Enrollment__c.object-meta.xml"
click node_employee_records "https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/objects/Employee__c/Employee__c.object-meta.xml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_course_list,node_lightning_user toneBlue
class node_course_controller,node_course_handler toneAmber
class node_course_trigger,node_course_defaults toneMint
class node_course_records,node_enrollment_records,node_employee_records toneRose
```

## Components

### Lightning Experience

- [Course List](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/lwc/trainingCourseList/trainingCourseList.js): `force-app/main/default/lwc/trainingCourseList/trainingCourseList.js`

### Apex Logic

- [Course Controller](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/classes/TrainingCourseController.cls): `force-app/main/default/classes/TrainingCourseController.cls`
- [Trigger Handler](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/classes/TrainingCourseTriggerHandler.cls): `force-app/main/default/classes/TrainingCourseTriggerHandler.cls`

### Course Automation

- [Course Trigger](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/triggers/TrainingCourseTrigger.trigger): `force-app/main/default/triggers/TrainingCourseTrigger.trigger`
- [Course Defaults](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/flows/Training_Course_Set_Defaults.flow-meta.xml): `force-app/main/default/flows/Training_Course_Set_Defaults.flow-meta.xml`

### Training Data

- [Course Records](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/objects/Training_Course__c/Training_Course__c.object-meta.xml): `force-app/main/default/objects/Training_Course__c/Training_Course__c.object-meta.xml`
- [Enrollment Records](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/objects/Training_Enrollment__c/Training_Enrollment__c.object-meta.xml): `force-app/main/default/objects/Training_Enrollment__c/Training_Enrollment__c.object-meta.xml`
- [Employee Records](https://github.com/maskedtitan7/prudential-pru/blob/main/force-app/main/default/objects/Employee__c/Employee__c.object-meta.xml): `force-app/main/default/objects/Employee__c/Employee__c.object-meta.xml`

### Other components

- **Lightning User**

## Connections

- Lightning User → Course List: views (evidence: `README.md`)
- Course List → Course Controller: requests courses (evidence: `force-app/main/default/lwc/trainingCourseList/trainingCourseList.js`)
