Salesforce-native animal welfare operations and welfare evidence management.
Track animals, episodes, housing, welfare assessments, clinical follow-up, and care-plan automation in a single Salesforce DX application.
animal360 combines two major delivery layers:
- Phase I operations
- animal and episode records
- housing and location-stay tracking
- intake, move, and closeout workflows
- shared current-state rollups
- Phase II welfare evidence
- metadata-driven assessment template configuration
- runtime welfare assessment capture
Welfare_Assessment__c,Welfare_Domain_Summary__c, andWelfare_Observation__cCare_Plan__c,Care_Plan_Action__c,Clinical_Event__c, andHuman_Animal_Interaction__c- risk evaluation, care-plan auto-create, and review reminders
- Phase II reporting and permission-set model
force-app/main/default: primary Salesforce metadata and sourcedocs: implementation assumptions, delivery backlog, and audit inventoryscripts: metadata generation helpers and support assetsmanifest/package.xml: deployable package manifestconfig/project-scratch-def.json: scratch-org definition baseline
Primary flow entry points:
A360_Intake_FlowA360_Move_Animal_FlowA360_Close_Episode_FlowA360_Welfare_Assessment_FlowA360_Animal_Current_State_Rollup_FlowA360_Assessment_Risk_Evaluation_FlowA360_Create_Care_Plan_FlowA360_Care_Plan_Auto_Create_FlowA360_Review_Due_Reminder_Flow
Primary Apex services:
A360AssessmentTemplateServiceA360AssessmentPersistenceServiceA360AssessmentRiskServiceA360CarePlanServiceA360ReviewReminderServiceA360AnimalRollupService
- Salesforce CLI with
sf - access to a Salesforce org for deployment
- Node.js and npm for local tooling
The project is configured as:
- single-package Salesforce DX
- package root:
force-app - namespace: empty
- source API version:
66.0
git clone https://github.com/sergiopesch/animal360.git
cd animal360
npm install
sf org login web -a animal360
sf project deploy start -o animal360 -x manifest/package.xmlAfter the first Phase II deployment, seed the packaged assessment template defaults into runtime records:
A360AssessmentTemplateService.SeedResult result =
A360AssessmentTemplateService.seedTemplates(true);
System.debug(JSON.serializePretty(result));This materializes packaged defaults into:
Assessment_Template__cTemplate_Domain_Definition__cTemplate_Indicator_Assignment__c
Review reminders are intentionally packaged as reusable automation rather than as a hardcoded org schedule. To schedule reminder generation, invoke A360_Review_Due_Reminder_Flow from your org-specific automation strategy.
Local repo checks:
npm run lint
npm test
npm run prettier:verifyFocused Phase II Apex regression:
sf apex run test -o animal360 --tests A360Phase2ServiceTest --result-format human --code-coverage --wait 30Example narrow deploy during development:
sf project deploy start -o animal360 --source-dir force-app/main/default/lwc/a360WelfareAssessmentEntryCurrent repository workflow notes:
- formatting is enforced through
prettier - LWC JavaScript is enforced through
eslint - staged LWC changes run related Jest checks through
lint-staged - GitHub Actions runs formatting verification, lint, and LWC unit tests on pushes and pull requests
- org-backed deployment validation remains CLI/org-driven because the repository does not commit org credentials or a CI auth flow
The repository includes script-backed metadata generation:
scripts/generate-phase1-metadata.mjsscripts/generate-phase2-metadata.mjsscripts/generate-phase2-security-reporting.mjs
If you rerun these scripts, review the generated metadata before deploying or committing.
Start here for implementation context:
docs/phase1-implementation-assumptions.mddocs/phase2-implementation-assumptions.mddocs/phase2-build-backlog.mddocs/application-inventory.md
Before opening a pull request:
- run formatting, lint, and targeted validation for your change
- review generated metadata if any generator script was used
- confirm the target org deploys cleanly for the changed metadata scope
This repository does not currently include a license file. Add one if you want to define reuse terms.