mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 03:09:50 +08:00
W-21672186: Migrate mobile rental app to data providers and design tokens (#132)
* W-21672186: Migrate mobile rental app to data providers and design tokens * Update rental app home screen to use CamaDataService Replace PortalService with CamaDataService and remove cama_dev namespace for all data providers in the home screen. --------- Co-authored-by: gbockus-sf <76090802+gbockus-sf@users.noreply.github.com>
This commit is contained in:
parent
907e5bc505
commit
e125e92ae5
@ -11,13 +11,13 @@
|
||||
{
|
||||
"id": "home",
|
||||
"label": "Home",
|
||||
"icon": "house.fill",
|
||||
"icon": "utility:home",
|
||||
"screenAPIName": "homeScreen"
|
||||
},
|
||||
{
|
||||
"id": "calendar",
|
||||
"label": "Calendar",
|
||||
"icon": "calendar",
|
||||
"icon": "utility:event",
|
||||
"screenAPIName": "calendarScreen"
|
||||
}
|
||||
],
|
||||
@ -30,15 +30,26 @@
|
||||
"accent1": "#7526E3",
|
||||
"accent2": "#7526E3",
|
||||
"accentContainer1": "#7526E3",
|
||||
"accentContainer2": "#1F1A30",
|
||||
"accentContainer2": "#342761",
|
||||
"border2": "#7526E3",
|
||||
"onSurface1": "#181818",
|
||||
"onSurface2": "#444444",
|
||||
"onSurface3": "#747474"
|
||||
},
|
||||
"cornerRadius": {
|
||||
"radiusBorderCircle": 12
|
||||
"dimensions": {
|
||||
"spacing": {
|
||||
"spacing5": 20
|
||||
},
|
||||
"sizing": {
|
||||
"sizing3": 6
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
"titlesScale5Regular": {
|
||||
"fontSize": 28,
|
||||
"lineHeight": 36
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"urlName": "app-metadata"
|
||||
}
|
||||
}
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
"title": "Build Metadata",
|
||||
"contentBody": {
|
||||
"BiometricOptIn": false,
|
||||
"NotificationOptIn": true
|
||||
},
|
||||
"urlName": "build-metadata"
|
||||
"NotificationOptIn": false
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
{
|
||||
"type": "experience__camaECDefinition",
|
||||
"title": "CAMA EC Definition",
|
||||
"contentBody": {},
|
||||
"urlName": "cama-ec-definition"
|
||||
"contentBody": {}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"type": "experience__camaScreen",
|
||||
"title": "Calendar",
|
||||
"title": "Calendar Screen",
|
||||
"contentBody": {
|
||||
"view": {
|
||||
"definition": "calendar/root",
|
||||
@ -21,6 +21,5 @@
|
||||
"target": "native__calendar",
|
||||
"apiName": "calendarScreen",
|
||||
"id": "calendar-001"
|
||||
},
|
||||
"urlName": "calendar-screen"
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,11 +43,11 @@
|
||||
"name": "components",
|
||||
"components": [
|
||||
{
|
||||
"definition": "ui/text",
|
||||
"definition": "data/label",
|
||||
"properties": {
|
||||
"text": "Good evening, Maria",
|
||||
"style": "titlesFontScale4Regular",
|
||||
"color": "$colors.onSurfaceInverse1"
|
||||
"color": "$colors.onSurfaceInverse1",
|
||||
"key": "greeting"
|
||||
},
|
||||
"regions": {}
|
||||
}
|
||||
@ -140,14 +140,12 @@
|
||||
"name": "components",
|
||||
"components": [
|
||||
{
|
||||
"definition": "ui/image",
|
||||
"definition": "data/image",
|
||||
"properties": {
|
||||
"source": {
|
||||
"url": "https://picsum.photos/seed/community/220/140"
|
||||
},
|
||||
"alternativeText": "Community Park",
|
||||
"width": "220",
|
||||
"height": "140"
|
||||
"height": "140",
|
||||
"key": "newsImage1"
|
||||
},
|
||||
"regions": {}
|
||||
}
|
||||
@ -200,14 +198,12 @@
|
||||
"name": "components",
|
||||
"components": [
|
||||
{
|
||||
"definition": "ui/image",
|
||||
"definition": "data/image",
|
||||
"properties": {
|
||||
"source": {
|
||||
"url": "https://picsum.photos/seed/treadmills/220/140"
|
||||
},
|
||||
"alternativeText": "New treadmills",
|
||||
"width": "220",
|
||||
"height": "140"
|
||||
"height": "140",
|
||||
"key": "newsImage2"
|
||||
},
|
||||
"regions": {}
|
||||
}
|
||||
@ -260,14 +256,12 @@
|
||||
"name": "components",
|
||||
"components": [
|
||||
{
|
||||
"definition": "ui/image",
|
||||
"definition": "data/image",
|
||||
"properties": {
|
||||
"source": {
|
||||
"url": "https://picsum.photos/seed/pool/220/140"
|
||||
},
|
||||
"alternativeText": "Pool hours extended",
|
||||
"width": "220",
|
||||
"height": "140"
|
||||
"height": "140",
|
||||
"key": "newsImage3"
|
||||
},
|
||||
"regions": {}
|
||||
}
|
||||
@ -324,11 +318,11 @@
|
||||
"name": "components",
|
||||
"components": [
|
||||
{
|
||||
"definition": "ui/progressRing",
|
||||
"definition": "data/progressRing",
|
||||
"properties": {
|
||||
"value": 85,
|
||||
"size": "large",
|
||||
"showProgressText": true
|
||||
"showProgressText": true,
|
||||
"key": "leaseProgress"
|
||||
},
|
||||
"regions": {}
|
||||
},
|
||||
@ -736,7 +730,58 @@
|
||||
},
|
||||
"target": "native__home",
|
||||
"apiName": "homeScreen",
|
||||
"id": "home-001"
|
||||
},
|
||||
"urlName": "home-screen"
|
||||
"id": "home-001",
|
||||
"dataProviders": [
|
||||
{
|
||||
"$id": "greeting",
|
||||
"type": "apex",
|
||||
"properties": {
|
||||
"className": "CamaDataService",
|
||||
"methodName": "getGreeting",
|
||||
"namespace": "",
|
||||
"params": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$id": "leaseProgress",
|
||||
"type": "apex",
|
||||
"properties": {
|
||||
"className": "CamaDataService",
|
||||
"methodName": "getLeaseProgress",
|
||||
"namespace": "",
|
||||
"params": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$id": "newsImage1",
|
||||
"type": "apex",
|
||||
"properties": {
|
||||
"className": "CamaDataService",
|
||||
"methodName": "getNewsImage1",
|
||||
"namespace": "",
|
||||
"params": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$id": "newsImage2",
|
||||
"type": "apex",
|
||||
"properties": {
|
||||
"className": "CamaDataService",
|
||||
"methodName": "getNewsImage2",
|
||||
"namespace": "",
|
||||
"params": {}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$id": "newsImage3",
|
||||
"type": "apex",
|
||||
"properties": {
|
||||
"className": "CamaDataService",
|
||||
"methodName": "getNewsImage3",
|
||||
"namespace": "",
|
||||
"params": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,5 @@
|
||||
}
|
||||
],
|
||||
"defaultLocale": "en_US"
|
||||
},
|
||||
"urlName": "languagecontent"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user