afv-library/samples
Haifeng Li d69306bd89
@W-21672186: Update native mobile rental tenant app sample (#84)
* @W-21672186@ Update native mobile rental tenant app sample

Replace screen definitions (homeScreen, propertiesScreen, tenantsScreen)
with updated screens (home, calendar). Remove experience__camaECDefinition,
add sfdc_cms__languageSettings, and update app metadata and build metadata.

* @W-21672186@ Revert app metadata URL to generic login endpoint
2026-03-23 13:53:19 -04:00
..
native-mobile-rental-tenant-app @W-21672186: Update native mobile rental tenant app sample (#84) 2026-03-23 13:53:19 -04:00
webapp-template-app-react-sample-b2e-experimental chore: sync React B2E (1.107.0) & B2X (1.107.0) samples from npm (#65) 2026-03-17 22:59:19 -05:00
webapp-template-app-react-sample-b2x-experimental chore: sync React B2E (1.107.0) & B2X (1.107.0) samples from npm (#65) 2026-03-17 22:59:19 -05:00
README.md @ W-21164311 Mobile sample app (#39) 2026-03-12 10:46:22 -05:00

Samples

Sample apps and templates synced into this repo for reference and reuse.

webapp-template-app-react-sample-b2e-experimental

Source is synced from the npm package @salesforce/webapp-template-app-react-sample-b2e-experimental. Only the package's source (no node_modules) is copied into samples/webapp-template-app-react-sample-b2e-experimental/.

How it's updated

  • GitHub Action: Runs nightly and can be triggered manually from the Actions tab ("Sync React samples from npm"). The workflow runs the same steps as below and opens a PR against main only when the npm package version has changed.

  • Local: From the repo root you can run the same sync anytime:

    npm install
    npm run sync-react-b2e-sample
    

    This installs the package into root node_modules and copies its source into samples/webapp-template-app-react-sample-b2e-experimental/, and updates .version in that folder.

Version tracking

The file samples/webapp-template-app-react-sample-b2e-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.

webapp-template-app-react-sample-b2x-experimental

Source is synced from the npm package @salesforce/webapp-template-app-react-sample-b2x-experimental. Only the package's source (no node_modules) is copied into samples/webapp-template-app-react-sample-b2x-experimental/.

How it's updated

  • GitHub Action: Runs nightly and can be triggered manually from the Actions tab ("Sync React samples from npm"). The workflow runs the same steps as below and opens a PR against main only when the npm package version has changed.

  • Local: From the repo root you can run the same sync anytime:

    npm install
    npm run sync-react-b2x-sample
    

    This installs the package into root node_modules and copies its source into samples/webapp-template-app-react-sample-b2x-experimental/, and updates .version in that folder.

Version tracking

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.

native-mobile-rental-tenant-app

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:

  • 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
  • Source: Synced from cama-mcp-server (branch apply_metadata_updates)

How it's used

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.