Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/admin-shell/scripts/admin-shell-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ module.exports = {
'featureFlags',
'petoberfest',
'channels',
'channel-collections'
'channel-collections',
'channel-topic-map'
],

//
Expand Down Expand Up @@ -169,7 +170,8 @@ module.exports = {
featureFlags: 'ffl',
petoberfest: 'pb',
channels: 'ch',
'channel-collections': 'cc'
'channel-collections': 'cc',
'channel-topic-map': 'ctm'
},

//
Expand Down
6 changes: 4 additions & 2 deletions app/admin-shell/webapp/controller/Shell.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ sap.ui.define([
petoberfestContests: "petoberfestContests",
topicClusters: "topicClusters",
channels: "channels",
channelCollections: "channelCollections"
channelCollections: "channelCollections",
channelTopicMap: "channelTopicMap"
};

var NAV_KEY_TO_TITLE = {
Expand Down Expand Up @@ -125,7 +126,8 @@ sap.ui.define([
petoberfestContests: "Petoberfest Contests",
topicClusters: "Topic Clusters",
channels: "Channels",
channelCollections: "Channel Collections"
channelCollections: "Channel Collections",
channelTopicMap: "Channel Topic Map"
};

return Controller.extend("sap.tutorials.admin.shell.controller.Shell", {
Expand Down
26 changes: 25 additions & 1 deletion app/admin-shell/webapp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
"sap.tutorials.admin.featureFlags": "./components/featureFlags",
"sap.tutorials.admin.petoberfest": "./components/petoberfest",
"sap.tutorials.admin.channels": "./components/channels",
"sap.tutorials.admin.channelCollections": "./components/channel-collections"
"sap.tutorials.admin.channelCollections": "./components/channel-collections",
"sap.tutorials.admin.channelTopicMap": "./components/channel-topic-map"
},
"models": {
"admin": {
Expand Down Expand Up @@ -407,6 +408,12 @@
"settings": {},
"componentData": {},
"lazy": true
},
"channelTopicMapComponent": {
"name": "sap.tutorials.admin.channelTopicMap",
"settings": {},
"componentData": {},
"lazy": true
}
},
"services": {
Expand Down Expand Up @@ -957,6 +964,16 @@
}
]
},
{
"name": "channelTopicMap",
"pattern": "channel-topic-map",
"target": [
{
"name": "channelTopicMapTarget",
"prefix": "ctm"
}
]
},
{
"name": "feedbackDashboard",
"pattern": "feedback/dashboard",
Expand Down Expand Up @@ -1328,6 +1345,13 @@
"viewLevel": 1,
"prefix": "cc"
},
"channelTopicMapTarget": {
"type": "Component",
"usage": "channelTopicMapComponent",
"id": "channelTopicMapTarget",
"viewLevel": 1,
"prefix": "ctm"
},
"feedbackDashboardTarget": {
"viewName": "TutorialFeedbackDashboard",
"viewLevel": 1
Expand Down
1 change: 1 addition & 0 deletions app/admin-shell/webapp/model/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
{ "key": "alerts", "title": "Alerts" },
{ "key": "channels", "title": "Channels" },
{ "key": "channelCollections", "title": "Channel Collections" },
{ "key": "channelTopicMap", "title": "Channel Topic Map" },
{ "key": "operations", "title": "Featured Tasks" }
]
},
Expand Down
15 changes: 15 additions & 0 deletions app/admin/channel-topic-map/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "channel-topic-map-admin",
"version": "0.0.1",
"private": true,
"description": "Channel Topic Map - Admin Fiori Elements",
"sapux": true,
"scripts": {
"start": "fiori run --open index.html",
"build": "ui5 build --clean-dest"
},
"devDependencies": {
"@sap/ux-specification": "latest",
"@ui5/cli": "^4.0.0"
}
}
12 changes: 12 additions & 0 deletions app/admin/channel-topic-map/ui5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
specVersion: "4.0"
metadata:
name: sap.tutorials.admin.channelTopicMap
type: application
framework:
name: SAPUI5
version: "1.136.0"
libraries:
- name: sap.m
- name: sap.ui.core
- name: sap.ushell
- name: sap.fe.templates
4 changes: 4 additions & 0 deletions app/admin/channel-topic-map/webapp/Component.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sap.ui.define(["sap/fe/core/AppComponent"], function (AppComponent) {
"use strict";
return AppComponent.extend("sap.tutorials.admin.channelTopicMap.Component", { metadata: { manifest: "json" } });
});
2 changes: 2 additions & 0 deletions app/admin/channel-topic-map/webapp/i18n/i18n.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
appTitle=Channel Topic Map
appDescription=Review and promote the channel-to-topic crosswalk
79 changes: 79 additions & 0 deletions app/admin/channel-topic-map/webapp/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"_version": "1.65.0",
"sap.app": {
"id": "sap.tutorials.admin.channelTopicMap",
"type": "application",
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"applicationVersion": { "version": "0.0.1" },
"i18n": "i18n/i18n.properties",
"dataSources": {
"mainService": {
"uri": "/admin/",
"type": "OData",
"settings": { "odataVersion": "4.0" }
}
},
"crossNavigation": {
"inbounds": {
"ChannelTopicMap-manage": {
"semanticObject": "ChannelTopicMap",
"action": "manage",
"title": "{{appTitle}}",
"signature": { "parameters": {}, "additionalParameters": "allowed" }
}
}
}
},
"sap.ui5": {
"dependencies": {
"minUI5Version": "1.136.0",
"libs": { "sap.fe.templates": {} }
},
"models": {
"": {
"dataSource": "mainService",
"preload": true,
"settings": {
"synchronizationMode": "None",
"operationMode": "Server",
"autoExpandSelect": true,
"earlyRequests": true
}
},
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": { "bundleName": "sap.tutorials.admin.channelTopicMap.i18n.i18n" }
}
},
"routing": {
"routes": [
{ "name": "ChannelTopicMapList", "pattern": ":?query:", "target": "ChannelTopicMapList" },
{ "name": "ChannelTopicMapObject", "pattern": "ChannelTopicMap({key}):?query:", "target": "ChannelTopicMapObject" }
],
"targets": {
"ChannelTopicMapList": {
"type": "Component",
"id": "ChannelTopicMapList",
"name": "sap.fe.templates.ListReport",
"options": {
"settings": {
"contextPath": "/ChannelTopicMap",
"initialLoad": "Enabled"
}
}
},
"ChannelTopicMapObject": {
"type": "Component",
"id": "ChannelTopicMapObject",
"name": "sap.fe.templates.ObjectPage",
"options": {
"settings": {
"contextPath": "/ChannelTopicMap"
}
}
}
}
}
}
}
9 changes: 9 additions & 0 deletions db/channels.cds
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@ entity ChannelCollectionItems : cuid {
sortOrder : Integer default 100;
blurb : String(280);
}

// --- P3: per-topic crosswalk (Surface C; LLM-drafted, human-reviewed) --------
@assert.unique.pair: [ channel, topicTag ]
entity ChannelTopicMap : cuid, managed {
channel : Association to Channels @mandatory;
topicTag : String(140) @mandatory; // mdFormat tag, e.g. "software-product>sap-hana-cloud"
relevance : Integer default 50; // 0-100; orders the per-topic band, desc
authoringStatus : AuthoringStatus default 'AI_SEEDED' @assert.range;
}
85 changes: 85 additions & 0 deletions db/last-dev/csn.json
Original file line number Diff line number Diff line change
Expand Up @@ -2346,6 +2346,91 @@
},
"@cds.persistence.name": "COM_SAP_DEVELOPERS_IMS_CHANNELCOLLECTIONITEMS"
},
"com.sap.developers.ims.ChannelTopicMap": {
"kind": "entity",
"@assert.unique.pair": [
{
"=": "channel"
},
{
"=": "topicTag"
}
],
"@cds.persistence.journal": true,
"elements": {
"ID": {
"key": true,
"type": "cds.String",
"length": 36,
"@cds.persistence.name": "ID"
},
"createdAt": {
"type": "cds.Timestamp",
"@cds.persistence.name": "CREATEDAT"
},
"createdBy": {
"type": "cds.String",
"length": 255,
"@cds.persistence.name": "CREATEDBY"
},
"modifiedAt": {
"type": "cds.Timestamp",
"@cds.persistence.name": "MODIFIEDAT"
},
"modifiedBy": {
"type": "cds.String",
"length": 255,
"@cds.persistence.name": "MODIFIEDBY"
},
"channel_ID": {
"type": "cds.String",
"length": 36,
"@odata.foreignKey4": "channel",
"@cds.persistence.name": "CHANNEL_ID"
},
"topicTag": {
"type": "cds.String",
"length": 140,
"@cds.persistence.name": "TOPICTAG"
},
"relevance": {
"type": "cds.Integer",
"default": {
"val": 50
},
"@cds.persistence.name": "RELEVANCE"
},
"authoringStatus": {
"type": "cds.String",
"default": {
"val": "AI_SEEDED"
},
"length": 5000,
"@cds.persistence.name": "AUTHORINGSTATUS"
}
},
"$tableConstraints": {
"unique": {
"pair": {
"paths": [
{
"ref": [
"channel_ID"
]
},
{
"ref": [
"topicTag"
],
"isChecked": true
}
],
"parentTable": "com.sap.developers.ims.ChannelTopicMap"
}
}
},
"@cds.persistence.name": "COM_SAP_DEVELOPERS_IMS_CHANNELTOPICMAP"
},
"com.sap.developers.ims.FailedEmails": {
"kind": "entity",
"@cds.persistence.journal": true,
Expand Down
1 change: 1 addition & 0 deletions db/persistence.cds
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ annotate ims.TutorialValidationRules with @cds.persistence.journal;
annotate ims.Channels with @cds.persistence.journal;
annotate ims.ChannelCollections with @cds.persistence.journal;
annotate ims.ChannelCollectionItems with @cds.persistence.journal;
annotate ims.ChannelTopicMap with @cds.persistence.journal;
13 changes: 13 additions & 0 deletions db/src/com.sap.developers.ims.ChannelTopicMap.hdbmigrationtable
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
== version=1
COLUMN TABLE com_sap_developers_ims_ChannelTopicMap (
ID NVARCHAR(36) NOT NULL,
createdAt TIMESTAMP,
createdBy NVARCHAR(255),
modifiedAt TIMESTAMP,
modifiedBy NVARCHAR(255),
channel_ID NVARCHAR(36),
topicTag NVARCHAR(140),
relevance INTEGER DEFAULT 50,
authoringStatus NVARCHAR(5000) DEFAULT 'AI_SEEDED',
PRIMARY KEY(ID)
)
Loading
Loading