From fcfc213a2157f8d7018ae3d536ab61085f3fdc75 Mon Sep 17 00:00:00 2001 From: Marten Schiwek Date: Tue, 25 Nov 2025 13:53:20 +0100 Subject: [PATCH] Improved UI config --- app/admin-authors/webapp/Component.js | 2 +- app/admin-authors/webapp/manifest.json | 17 +++----- app/admin-books/webapp/Component.js | 2 +- app/admin-books/webapp/manifest.json | 54 ++++++++------------------ app/appconfig/fioriSandboxConfig.json | 8 ++-- app/browse/webapp/Component.js | 2 +- app/browse/webapp/manifest.json | 27 +++++-------- app/genres/webapp/Component.js | 2 +- app/genres/webapp/manifest.json | 20 +++++----- 9 files changed, 50 insertions(+), 84 deletions(-) diff --git a/app/admin-authors/webapp/Component.js b/app/admin-authors/webapp/Component.js index 05638a7..753a230 100644 --- a/app/admin-authors/webapp/Component.js +++ b/app/admin-authors/webapp/Component.js @@ -1,6 +1,6 @@ sap.ui.define(["sap/fe/core/AppComponent"], function (AppComponent) { "use strict"; - return AppComponent.extend("authors.Component", { + return AppComponent.extend("capire.authors.Component", { metadata: { manifest: "json" }, }); }); diff --git a/app/admin-authors/webapp/manifest.json b/app/admin-authors/webapp/manifest.json index d0cf57c..c4b8708 100644 --- a/app/admin-authors/webapp/manifest.json +++ b/app/admin-authors/webapp/manifest.json @@ -1,7 +1,7 @@ { "_version": "1.28.0", "sap.app": { - "id": "authors", + "id": "capire.authors", "type": "application", "title": "Manage Authors", "description": "Sample Application", @@ -20,7 +20,6 @@ }, "sourceTemplate": { "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", "version": "1.40.12" }, "crossNavigation": { @@ -67,12 +66,7 @@ "synchronizationMode": "None", "operationMode": "Server", "autoExpandSelect": true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } + "earlyRequests": true } } }, @@ -96,8 +90,8 @@ "name": "sap.fe.templates.ListReport", "options": { "settings": { - "entitySet": "Authors", - "initialLoad": true, + "contextPath": "/Authors", + "liveMode": true, "navigation": { "Authors": { "detail": { @@ -114,7 +108,7 @@ "name": "sap.fe.templates.ObjectPage", "options": { "settings": { - "entitySet": "Authors" + "contextPath": "/Authors" } } } @@ -127,7 +121,6 @@ }, "sap.ui": { "technology": "UI5", - "fullWidth": false, "deviceTypes":{ "desktop": true, "tablet": true, diff --git a/app/admin-books/webapp/Component.js b/app/admin-books/webapp/Component.js index d4bc732..80c9d76 100644 --- a/app/admin-books/webapp/Component.js +++ b/app/admin-books/webapp/Component.js @@ -1,6 +1,6 @@ sap.ui.define(["sap/fe/core/AppComponent"], function(AppComponent) { "use strict"; - return AppComponent.extend("books.Component", { + return AppComponent.extend("capire.books.Component", { metadata: { manifest: "json" } }); }); diff --git a/app/admin-books/webapp/manifest.json b/app/admin-books/webapp/manifest.json index 2c8c7b6..937ed90 100644 --- a/app/admin-books/webapp/manifest.json +++ b/app/admin-books/webapp/manifest.json @@ -1,11 +1,14 @@ { - "_version": "1.8.0", + "_version": "1.28.0", "sap.app": { - "id": "books", + "id": "capire.books", "type": "application", "title": "Manage Books", "description": "Sample Application", "i18n": "i18n/i18n.properties", + "applicationVersion": { + "version": "1.0.0" + }, "dataSources": { "AdminService": { "uri": "admin/", @@ -15,10 +18,9 @@ } } }, - "-sourceTemplate": { + "sourceTemplate": { "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", - "-version": "1.40.12" + "version": "1.40.12" }, "crossNavigation": { "inbounds": { @@ -39,6 +41,7 @@ }, "sap.ui5": { "dependencies": { + "minUI5Version": "1.136.1", "libs": { "sap.fe.templates": {} } @@ -54,12 +57,7 @@ "synchronizationMode": "None", "operationMode": "Server", "autoExpandSelect" : true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } + "earlyRequests": true } } }, @@ -74,11 +72,6 @@ "pattern": "Books({key}):?query:", "name": "BooksDetails", "target": "BooksDetails" - }, - { - "pattern": "Books({key}/author({key2}):?query:", - "name": "AuthorsDetails", - "target": "AuthorsDetails" } ], "targets": { @@ -88,8 +81,8 @@ "name": "sap.fe.templates.ListReport", "options": { "settings" : { - "entitySet" : "Books", - "initialLoad": true, + "contextPath" : "/Books", + "liveMode": true, "navigation" : { "Books" : { "detail" : { @@ -106,24 +99,7 @@ "name": "sap.fe.templates.ObjectPage", "options": { "settings" : { - "entitySet" : "Books", - "navigation" : { - "Authors" : { - "detail" : { - "route" : "AuthorsDetails" - } - } - } - } - } - }, - "AuthorsDetails": { - "type": "Component", - "id": "AuthorsDetailsList", - "name": "sap.fe.templates.ObjectPage", - "options": { - "settings" : { - "entitySet" : "Authors" + "contextPath" : "/Books" } } } @@ -136,7 +112,11 @@ }, "sap.ui": { "technology": "UI5", - "fullWidth": false + "deviceTypes": { + "desktop": true, + "phone": true, + "tablet": true + } }, "sap.fiori": { "registrationIds": [], diff --git a/app/appconfig/fioriSandboxConfig.json b/app/appconfig/fioriSandboxConfig.json index aae8e77..ecca9d5 100644 --- a/app/appconfig/fioriSandboxConfig.json +++ b/app/appconfig/fioriSandboxConfig.json @@ -92,7 +92,7 @@ }, "resolutionResult": { "applicationType": "SAPUI5", - "additionalInformation": "SAPUI5.Component=bookshop", + "additionalInformation": "SAPUI5.Component=capire.bookshop", "url": "/browse/webapp" } }, @@ -110,7 +110,7 @@ }, "resolutionResult": { "applicationType": "SAPUI5", - "additionalInformation": "SAPUI5.Component=authors", + "additionalInformation": "SAPUI5.Component=capire.authors", "url": "/admin-authors/webapp" } }, @@ -128,7 +128,7 @@ }, "resolutionResult": { "applicationType": "SAPUI5", - "additionalInformation": "SAPUI5.Component=genres", + "additionalInformation": "SAPUI5.Component=capire.genres", "url": "/genres/webapp" } }, @@ -142,7 +142,7 @@ }, "resolutionResult": { "applicationType": "SAPUI5", - "additionalInformation": "SAPUI5.Component=books", + "additionalInformation": "SAPUI5.Component=capire.books", "url": "/admin-books/webapp" } }, diff --git a/app/browse/webapp/Component.js b/app/browse/webapp/Component.js index 7914d29..cd2121f 100644 --- a/app/browse/webapp/Component.js +++ b/app/browse/webapp/Component.js @@ -1,6 +1,6 @@ sap.ui.define(["sap/fe/core/AppComponent"], function(AppComponent) { "use strict"; - return AppComponent.extend("bookshop.Component", { + return AppComponent.extend("capire.bookshop.Component", { metadata: { manifest: "json" } }); }); diff --git a/app/browse/webapp/manifest.json b/app/browse/webapp/manifest.json index 2fcf767..60ea4e8 100644 --- a/app/browse/webapp/manifest.json +++ b/app/browse/webapp/manifest.json @@ -1,7 +1,7 @@ { "_version": "1.28.0", "sap.app": { - "id": "bookshop", + "id": "capire.bookshop", "type": "application", "title": "Browse Books", "description": "Sample Application", @@ -20,7 +20,6 @@ }, "sourceTemplate": { "id": "ui5template.basicSAPUI5ApplicationProject", - "-id": "ui5template.smartTemplate", "version": "1.40.12" }, "crossNavigation": { @@ -28,7 +27,7 @@ "intent1": { "signature": { "parameters": { - "Books.ID":{ + "Books.ID": { "renameTo": "ID" }, "Authors.books.ID": { @@ -70,12 +69,7 @@ "synchronizationMode": "None", "operationMode": "Server", "autoExpandSelect": true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } + "earlyRequests": true } } }, @@ -99,8 +93,8 @@ "name": "sap.fe.templates.ListReport", "options": { "settings": { - "entitySet": "Books", - "initialLoad": true, + "contextPath": "/Books", + "liveMode": true, "navigation": { "Books": { "detail": { @@ -117,7 +111,7 @@ "name": "sap.fe.templates.ObjectPage", "options": { "settings": { - "entitySet": "Books" + "contextPath": "/Books" } } } @@ -130,15 +124,14 @@ }, "sap.ui": { "technology": "UI5", - "fullWidth": false, - "deviceTypes":{ + "deviceTypes": { "desktop": true, - "tablet": true, - "phone": true + "phone": true, + "tablet": true } }, "sap.fiori": { "registrationIds": [], "archeType": "transactional" } -} +} \ No newline at end of file diff --git a/app/genres/webapp/Component.js b/app/genres/webapp/Component.js index 63ffcef..4eefdbc 100644 --- a/app/genres/webapp/Component.js +++ b/app/genres/webapp/Component.js @@ -1,3 +1,3 @@ -sap.ui.define(["sap/fe/core/AppComponent"], ac => ac.extend("genres.Component", { +sap.ui.define(["sap/fe/core/AppComponent"], ac => ac.extend("capire.genres.Component", { metadata:{ manifest:'json' } })) diff --git a/app/genres/webapp/manifest.json b/app/genres/webapp/manifest.json index 857a420..24b7cb2 100644 --- a/app/genres/webapp/manifest.json +++ b/app/genres/webapp/manifest.json @@ -1,7 +1,7 @@ { "_version": "1.8.0", "sap.app": { - "id": "genres", + "id": "capire.genres", "type": "application", "title": "{{appTitle}}", "description": "{{appDescription}}", @@ -48,12 +48,7 @@ "synchronizationMode": "None", "operationMode": "Server", "autoExpandSelect": true, - "earlyRequests": true, - "groupProperties": { - "default": { - "submit": "Auto" - } - } + "earlyRequests": true } } }, @@ -78,6 +73,7 @@ "options": { "settings": { "contextPath": "/Genres", + "liveMode": true, "navigation": { "Genres": { "detail": { @@ -114,9 +110,13 @@ } }, "sap.ui": { - "technology": "UI5", - "fullWidth": false - }, + "technology": "UI5", + "deviceTypes": { + "desktop": true, + "phone": true, + "tablet": true + } + }, "sap.fiori": { "registrationIds": [], "archeType": "transactional"