Skip to content

Commit ea456bd

Browse files
committed
Merge branch 'main' into mohanraj-r/npm-publish
2 parents 4b3e6e3 + eb5662a commit ea456bd

27 files changed

Lines changed: 2165 additions & 263 deletions

File tree

samples/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ Source is synced from the npm package [@salesforce/webapp-template-app-react-sam
4141
### Version tracking
4242

4343
The file `samples/webapp-template-app-react-sample-b2x-experimental/.version` stores the last-synced npm version. The Action compares it to the latest on npm and only creates a PR when they differ.
44+
45+
## native-mobile-rental-tenant-app
46+
47+
A sample Custom Agentic Mobile App (CAMA) for rental property tenants. This sample is maintained directly in this repository (not synced from npm). It includes:
48+
49+
- **digitalExperiences** metadata: CAMA app config (`experience__camaAppMetadata`), build metadata (`experience__camaBuildMetadata`), EC definition (`experience__camaECDefinition`), and screens (`experience__camaScreen`) with tabs (Home, Tenants, Properties), theme, and toolbar settings
50+
- **Source**: Synced from [cama-mcp-server](https://git.soma.salesforce.com/khawkins/cama-mcp-server) (branch `apply_metadata_updates`)
51+
52+
### How it's used
53+
54+
The sample appears on the Agentforce Vibes welcome page under the **Mobile** app type. Users can clone it via the welcome page wizard or directly from this repo.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
2+
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
3+
#
4+
5+
package.xml
6+
7+
# LWC configuration files
8+
**/jsconfig.json
9+
**/.eslintrc.json
10+
11+
# LWC Jest
12+
**/__tests__/**
13+
14+
node_modules/
15+
.DS_Store
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Salesforce
5+
.sfdx/
6+
.localdevserver/
7+
8+
# IDE
9+
.idea/
10+
.vscode/
11+
*.swp
12+
*.swo
13+
14+
# OS
15+
.DS_Store
16+
Thumbs.db
17+
18+
# Logs
19+
*.log
20+
npm-debug.log*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Native Mobile Rental Tenant App
2+
3+
A sample Custom Agentic Mobile App (CAMA) for property managers and tenants. Use this as a starting point for building native mobile apps with Salesforce Mobile Publisher, MCF (Mobile Component Framework), and SharedUI.
4+
5+
## Overview
6+
7+
This sample demonstrates a rental tenant experience—browse properties, submit maintenance requests, pay rent, and communicate with property management—all from a native iOS or Android app.
8+
9+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"orgName": "Rental Tenant Dev",
3+
"edition": "Developer",
4+
"features": [],
5+
"settings": {
6+
"mobileSettings": {
7+
"enableS1EncryptedStoragePref2": false
8+
}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"apiName": "appMetadata",
3+
"type": "experience__camaAppMetadata",
4+
"path": "appMetadata"
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"type": "experience__camaAppMetadata",
3+
"title": "App Metadata",
4+
"contentBody": {
5+
"name": "Homestead",
6+
"description": "Mobile application for managing property rentals, tenant information, lease agreements, and maintenance requests.",
7+
"version": "1.0.0",
8+
"url": "http://login.test1.pc-rnd.salesforce.com/",
9+
"templateID": "1",
10+
"tabs": [
11+
{
12+
"id": "home",
13+
"label": "Home",
14+
"icon": "house.fill",
15+
"screen": "homeScreen"
16+
},
17+
{
18+
"id": "tenants",
19+
"label": "Tenants",
20+
"icon": "person.2.fill",
21+
"screen": "tenantsScreen"
22+
},
23+
{
24+
"id": "properties",
25+
"label": "Properties",
26+
"icon": "building.2.fill",
27+
"screen": "propertiesScreen"
28+
}
29+
],
30+
"toolbarActions": {
31+
"notifications": false,
32+
"search": false,
33+
"agentforce": false
34+
},
35+
"theme": {
36+
"accentColor": "#9400D3",
37+
"primaryColor": "#000000",
38+
"secondaryColor": "#B3B3B3"
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"apiName": "buildMetadata",
3+
"type": "experience__camaBuildMetadata",
4+
"path": "buildMetadata"
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"type": "experience__camaBuildMetadata",
3+
"title": "Build Metadata",
4+
"contentBody": {
5+
"BiometricOptIn": false,
6+
"NotificationOptIn": false
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"apiName": "rentalApp",
3+
"type": "experience__camaECDefinition",
4+
"path": "rentalApp"
5+
}

0 commit comments

Comments
 (0)