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",
|
"id": "home",
|
||||||
"label": "Home",
|
"label": "Home",
|
||||||
"icon": "house.fill",
|
"icon": "utility:home",
|
||||||
"screenAPIName": "homeScreen"
|
"screenAPIName": "homeScreen"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "calendar",
|
"id": "calendar",
|
||||||
"label": "Calendar",
|
"label": "Calendar",
|
||||||
"icon": "calendar",
|
"icon": "utility:event",
|
||||||
"screenAPIName": "calendarScreen"
|
"screenAPIName": "calendarScreen"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -30,15 +30,26 @@
|
|||||||
"accent1": "#7526E3",
|
"accent1": "#7526E3",
|
||||||
"accent2": "#7526E3",
|
"accent2": "#7526E3",
|
||||||
"accentContainer1": "#7526E3",
|
"accentContainer1": "#7526E3",
|
||||||
"accentContainer2": "#1F1A30",
|
"accentContainer2": "#342761",
|
||||||
|
"border2": "#7526E3",
|
||||||
"onSurface1": "#181818",
|
"onSurface1": "#181818",
|
||||||
"onSurface2": "#444444",
|
"onSurface2": "#444444",
|
||||||
"onSurface3": "#747474"
|
"onSurface3": "#747474"
|
||||||
},
|
},
|
||||||
"cornerRadius": {
|
"dimensions": {
|
||||||
"radiusBorderCircle": 12
|
"spacing": {
|
||||||
}
|
"spacing5": 20
|
||||||
|
},
|
||||||
|
"sizing": {
|
||||||
|
"sizing3": 6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"urlName": "app-metadata"
|
"typography": {
|
||||||
|
"titlesScale5Regular": {
|
||||||
|
"fontSize": 28,
|
||||||
|
"lineHeight": 36
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
"title": "Build Metadata",
|
"title": "Build Metadata",
|
||||||
"contentBody": {
|
"contentBody": {
|
||||||
"BiometricOptIn": false,
|
"BiometricOptIn": false,
|
||||||
"NotificationOptIn": true
|
"NotificationOptIn": false
|
||||||
},
|
}
|
||||||
"urlName": "build-metadata"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "experience__camaECDefinition",
|
"type": "experience__camaECDefinition",
|
||||||
"title": "CAMA EC Definition",
|
"title": "CAMA EC Definition",
|
||||||
"contentBody": {},
|
"contentBody": {}
|
||||||
"urlName": "cama-ec-definition"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"type": "experience__camaScreen",
|
"type": "experience__camaScreen",
|
||||||
"title": "Calendar",
|
"title": "Calendar Screen",
|
||||||
"contentBody": {
|
"contentBody": {
|
||||||
"view": {
|
"view": {
|
||||||
"definition": "calendar/root",
|
"definition": "calendar/root",
|
||||||
@ -21,6 +21,5 @@
|
|||||||
"target": "native__calendar",
|
"target": "native__calendar",
|
||||||
"apiName": "calendarScreen",
|
"apiName": "calendarScreen",
|
||||||
"id": "calendar-001"
|
"id": "calendar-001"
|
||||||
},
|
}
|
||||||
"urlName": "calendar-screen"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,11 +43,11 @@
|
|||||||
"name": "components",
|
"name": "components",
|
||||||
"components": [
|
"components": [
|
||||||
{
|
{
|
||||||
"definition": "ui/text",
|
"definition": "data/label",
|
||||||
"properties": {
|
"properties": {
|
||||||
"text": "Good evening, Maria",
|
|
||||||
"style": "titlesFontScale4Regular",
|
"style": "titlesFontScale4Regular",
|
||||||
"color": "$colors.onSurfaceInverse1"
|
"color": "$colors.onSurfaceInverse1",
|
||||||
|
"key": "greeting"
|
||||||
},
|
},
|
||||||
"regions": {}
|
"regions": {}
|
||||||
}
|
}
|
||||||
@ -140,14 +140,12 @@
|
|||||||
"name": "components",
|
"name": "components",
|
||||||
"components": [
|
"components": [
|
||||||
{
|
{
|
||||||
"definition": "ui/image",
|
"definition": "data/image",
|
||||||
"properties": {
|
"properties": {
|
||||||
"source": {
|
|
||||||
"url": "https://picsum.photos/seed/community/220/140"
|
|
||||||
},
|
|
||||||
"alternativeText": "Community Park",
|
"alternativeText": "Community Park",
|
||||||
"width": "220",
|
"width": "220",
|
||||||
"height": "140"
|
"height": "140",
|
||||||
|
"key": "newsImage1"
|
||||||
},
|
},
|
||||||
"regions": {}
|
"regions": {}
|
||||||
}
|
}
|
||||||
@ -200,14 +198,12 @@
|
|||||||
"name": "components",
|
"name": "components",
|
||||||
"components": [
|
"components": [
|
||||||
{
|
{
|
||||||
"definition": "ui/image",
|
"definition": "data/image",
|
||||||
"properties": {
|
"properties": {
|
||||||
"source": {
|
|
||||||
"url": "https://picsum.photos/seed/treadmills/220/140"
|
|
||||||
},
|
|
||||||
"alternativeText": "New treadmills",
|
"alternativeText": "New treadmills",
|
||||||
"width": "220",
|
"width": "220",
|
||||||
"height": "140"
|
"height": "140",
|
||||||
|
"key": "newsImage2"
|
||||||
},
|
},
|
||||||
"regions": {}
|
"regions": {}
|
||||||
}
|
}
|
||||||
@ -260,14 +256,12 @@
|
|||||||
"name": "components",
|
"name": "components",
|
||||||
"components": [
|
"components": [
|
||||||
{
|
{
|
||||||
"definition": "ui/image",
|
"definition": "data/image",
|
||||||
"properties": {
|
"properties": {
|
||||||
"source": {
|
|
||||||
"url": "https://picsum.photos/seed/pool/220/140"
|
|
||||||
},
|
|
||||||
"alternativeText": "Pool hours extended",
|
"alternativeText": "Pool hours extended",
|
||||||
"width": "220",
|
"width": "220",
|
||||||
"height": "140"
|
"height": "140",
|
||||||
|
"key": "newsImage3"
|
||||||
},
|
},
|
||||||
"regions": {}
|
"regions": {}
|
||||||
}
|
}
|
||||||
@ -324,11 +318,11 @@
|
|||||||
"name": "components",
|
"name": "components",
|
||||||
"components": [
|
"components": [
|
||||||
{
|
{
|
||||||
"definition": "ui/progressRing",
|
"definition": "data/progressRing",
|
||||||
"properties": {
|
"properties": {
|
||||||
"value": 85,
|
|
||||||
"size": "large",
|
"size": "large",
|
||||||
"showProgressText": true
|
"showProgressText": true,
|
||||||
|
"key": "leaseProgress"
|
||||||
},
|
},
|
||||||
"regions": {}
|
"regions": {}
|
||||||
},
|
},
|
||||||
@ -736,7 +730,58 @@
|
|||||||
},
|
},
|
||||||
"target": "native__home",
|
"target": "native__home",
|
||||||
"apiName": "homeScreen",
|
"apiName": "homeScreen",
|
||||||
"id": "home-001"
|
"id": "home-001",
|
||||||
|
"dataProviders": [
|
||||||
|
{
|
||||||
|
"$id": "greeting",
|
||||||
|
"type": "apex",
|
||||||
|
"properties": {
|
||||||
|
"className": "CamaDataService",
|
||||||
|
"methodName": "getGreeting",
|
||||||
|
"namespace": "",
|
||||||
|
"params": {}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"urlName": "home-screen"
|
{
|
||||||
|
"$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"
|
"defaultLocale": "en_US"
|
||||||
},
|
}
|
||||||
"urlName": "languagecontent"
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user