# sakshiprogram/warranty-claim-assistant architecture

> Architecture diagram of the GitHub repository sakshiprogram/warranty-claim-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sakshiprogram/warranty-claim-assistant
- Repository: https://github.com/sakshiprogram/warranty-claim-assistant

## Overview

This Salesforce DX repository appears to provide backend capabilities for a Salesforce community/site: account access and registration, profile and case operations, warranty claims, and WhatsApp/image handling. The class names also indicate a microbatch registration path and a tool-generation utility. The README is a generic Salesforce DX starter guide, and no Apex source was excerpted, so runtime relationships below are cautious, dashed inferences rather than verified calls.

Main entry points: [`force-app/main/default/classes/CommunitiesSelfRegController.cls`](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesSelfRegController.cls) (Community Registration), [`force-app/main/default/classes/WarrantyClaimAction.cls`](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WarrantyClaimAction.cls) (Warranty Claim Action), [`force-app/main/default/classes/WhatsAppImageToFile.cls`](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WhatsAppImageToFile.cls) (Image to File), [`force-app/main/default/classes/WhatsAppWebhook.cls`](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WhatsAppWebhook.cls) (WhatsApp Webhook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Registration"]
  node_communities_login["Community Login"]
  node_lightning_login["Lightning Login"]
  node_site_login["Site Login"]
  node_forgot_password["Password Reset"]
  node_lightning_forgot["Lightning Reset"]
  node_change_password["Change Password"]
  node_communities_register["Community Registration"]
  node_lightning_register["Lightning Registration"]
  node_site_register["Site Registration"]
  node_microbatch_register["Microbatch Registration"]
  node_reg_confirmation["Registration Confirmation"]
  node_landing["Community Landing"]
end

subgraph group_portal["Portal Operations"]
  node_profile["Profile Management"]
  node_case_details["Case Details<br/>[GetCaseDetails.cls]"]
  node_wto_extension["WTO Extension<br/>[New_Wto_Ext.cls]"]
  node_te_generator["TE Generator"]
  node_confirmation_controller["Community Login Landing"]
end

subgraph group_claims["Warranty Claims"]
  node_warranty_action["Warranty Claim Action"]
  node_warranty_validator["Claim Validation"]
end

subgraph group_messaging["Messaging and Vision"]
  node_whatsapp_webhook["WhatsApp Webhook"]
  node_whatsapp_file["Image to File"]
  node_vision["Google Vision Service"]
end

node_site_user(("Site User"))

node_site_user -.->|"starts login"| node_communities_login
node_site_user -.->|"starts login"| node_lightning_login
node_site_user -.->|"starts login"| node_site_login
node_site_user -.->|"requests reset"| node_forgot_password
node_site_user -.->|"requests reset"| node_lightning_forgot
node_site_user -.->|"changes password"| node_change_password
node_site_user -.->|"registers"| node_communities_register
node_site_user -.->|"registers"| node_lightning_register
node_site_user -.->|"registers"| node_site_register
node_site_user -.->|"registers"| node_microbatch_register
node_communities_register -.->|"may confirm"| node_reg_confirmation
node_site_user -.->|"opens community"| node_landing
node_site_user -.->|"manages profile"| node_profile
node_site_user -.->|"views case"| node_case_details
node_site_user -.->|"submits claim"| node_warranty_action
node_warranty_action -.->|"may validate"| node_warranty_validator
node_whatsapp_webhook -.->|"may process image"| node_whatsapp_file
node_whatsapp_file -.->|"may analyze image"| node_vision
node_site_user -.->|"uses extension"| node_wto_extension
node_site_user -.->|"uses generator"| node_te_generator

click node_communities_login "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesLoginController.cls"
click node_lightning_login "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/LightningLoginFormController.cls"
click node_site_login "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/SiteLoginController.cls"
click node_forgot_password "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/ForgotPasswordController.cls"
click node_lightning_forgot "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/LightningForgotPasswordController.cls"
click node_change_password "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/ChangePasswordController.cls"
click node_communities_register "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesSelfRegController.cls"
click node_lightning_register "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/LightningSelfRegisterController.cls"
click node_site_register "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/SiteRegisterController.cls"
click node_microbatch_register "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/MicrobatchSelfRegController.cls"
click node_reg_confirmation "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls"
click node_landing "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesLandingController.cls"
click node_profile "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/MyProfilePageController.cls"
click node_case_details "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/GetCaseDetails.cls"
click node_warranty_action "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WarrantyClaimAction.cls"
click node_warranty_validator "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WarrantyClaimValidator.cls"
click node_whatsapp_webhook "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WhatsAppWebhook.cls"
click node_whatsapp_file "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WhatsAppImageToFile.cls"
click node_vision "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/GoogleVisionService.cls"
click node_wto_extension "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/New_Wto_Ext.cls"
click node_te_generator "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/SDO_Tool_TEGenController.cls"
click node_confirmation_controller "https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesLandingController.cls"

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_communities_login,node_lightning_login,node_site_login,node_forgot_password,node_lightning_forgot,node_change_password,node_communities_register,node_lightning_register,node_site_register,node_microbatch_register,node_reg_confirmation,node_landing,node_site_user toneBlue
class node_profile,node_case_details,node_wto_extension,node_te_generator,node_confirmation_controller toneAmber
class node_warranty_action,node_warranty_validator toneMint
class node_whatsapp_webhook,node_whatsapp_file,node_vision toneRose
```

## Components

### Access and Registration

- [Community Login](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesLoginController.cls): `force-app/main/default/classes/CommunitiesLoginController.cls`
- [Lightning Login](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/LightningLoginFormController.cls): `force-app/main/default/classes/LightningLoginFormController.cls`
- [Site Login](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/SiteLoginController.cls): `force-app/main/default/classes/SiteLoginController.cls`
- [Password Reset](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/ForgotPasswordController.cls): `force-app/main/default/classes/ForgotPasswordController.cls`
- [Lightning Reset](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/LightningForgotPasswordController.cls): `force-app/main/default/classes/LightningForgotPasswordController.cls`
- [Change Password](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/ChangePasswordController.cls): `force-app/main/default/classes/ChangePasswordController.cls`
- [Community Registration](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesSelfRegController.cls): `force-app/main/default/classes/CommunitiesSelfRegController.cls`
- [Lightning Registration](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/LightningSelfRegisterController.cls): `force-app/main/default/classes/LightningSelfRegisterController.cls`
- [Site Registration](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/SiteRegisterController.cls): `force-app/main/default/classes/SiteRegisterController.cls`
- [Microbatch Registration](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/MicrobatchSelfRegController.cls): `force-app/main/default/classes/MicrobatchSelfRegController.cls`
- [Registration Confirmation](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls): `force-app/main/default/classes/CommunitiesSelfRegConfirmController.cls`
- [Community Landing](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesLandingController.cls): `force-app/main/default/classes/CommunitiesLandingController.cls`

### Portal Operations

- [Profile Management](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/MyProfilePageController.cls): `force-app/main/default/classes/MyProfilePageController.cls`
- [Case Details](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/GetCaseDetails.cls): `force-app/main/default/classes/GetCaseDetails.cls`
- [WTO Extension](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/New_Wto_Ext.cls): `force-app/main/default/classes/New_Wto_Ext.cls`
- [TE Generator](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/SDO_Tool_TEGenController.cls): `force-app/main/default/classes/SDO_Tool_TEGenController.cls`
- [Community Login Landing](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/CommunitiesLandingController.cls): `force-app/main/default/classes/CommunitiesLandingController.cls`

### Warranty Claims

- [Warranty Claim Action](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WarrantyClaimAction.cls): `force-app/main/default/classes/WarrantyClaimAction.cls`
- [Claim Validation](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WarrantyClaimValidator.cls): `force-app/main/default/classes/WarrantyClaimValidator.cls`

### Messaging and Vision

- [WhatsApp Webhook](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WhatsAppWebhook.cls): `force-app/main/default/classes/WhatsAppWebhook.cls`
- [Image to File](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/WhatsAppImageToFile.cls): `force-app/main/default/classes/WhatsAppImageToFile.cls`
- [Google Vision Service](https://github.com/sakshiprogram/warranty-claim-assistant/blob/main/force-app/main/default/classes/GoogleVisionService.cls): `force-app/main/default/classes/GoogleVisionService.cls`

### Other components

- **Site User**

## Connections

- Site User → Community Login: starts login
- Site User → Lightning Login: starts login
- Site User → Site Login: starts login
- Site User → Password Reset: requests reset
- Site User → Lightning Reset: requests reset
- Site User → Change Password: changes password
- Site User → Community Registration: registers
- Site User → Lightning Registration: registers
- Site User → Site Registration: registers
- Site User → Microbatch Registration: registers
- Community Registration → Registration Confirmation: may confirm
- Site User → Community Landing: opens community
- Site User → Profile Management: manages profile
- Site User → Case Details: views case
- Site User → Warranty Claim Action: submits claim
- Warranty Claim Action → Claim Validation: may validate
- WhatsApp Webhook → Image to File: may process image
- Image to File → Google Vision Service: may analyze image
- Site User → WTO Extension: uses extension
- Site User → TE Generator: uses generator
