Show in the ONCOnnect portal¶
The ONCOnnect portal (https://portal.ccc-onconnect.de) shows applications as
tiles. The tiles are not maintained in the portal but on the platform: your
component carries the portal-advertisement trait, and the portal reads it. No
change to the portal is needed.
The portal-advertisement trait¶
spec:
traits:
- kind: ClusterTrait
name: portal-advertisement
instanceName: portal
parameters:
title: Survalytix
description: Kaplan-Meier-Kurven berechnen und vergleichen.
descriptionEn: Calculate and compare Kaplan-Meier curves.
category: apps_doctors
icon: /icons/onconnect-logo.svg
public: true
In the platform portal the trait is called "Portal tile"; attach it to the component there.
| Parameter | Meaning |
|---|---|
title |
Tile title (required), in German. Also used in the English portal unless titleEn is set. |
description |
One or two sentences in German, addressing users formally ("Sie"). |
titleEn, descriptionEn |
English versions, optional. |
category |
Portal section: apps_doctors (for clinicians), apps_patients (for patients), apps_developers (for developers), oncoverse (ONCOverse), onconnect_internal (ONCOnnect internal). |
icon |
Tile image, see Icon. Defaults to the ONCOnnect logo. |
url |
Target of the tile. Defaults to the component's public production address (https://<project>.app.ccc-onconnect.de/…). Set it for an additional hostname. |
openInApp |
In the installed portal, open in the app window instead of a new browser tab. Default true; see Opening in the installed portal. |
public |
true: visible without signing in. Leave groups and roles empty then. |
groups |
Visible only to members of one of these Keycloak groups, full paths (/apps/kma). |
roles |
… or to holders of one of these Keycloak roles (realm role by name, client role as <client>:<role>). Currently has no effect, see below. |
order |
Sort order within the category, lower numbers first (default 100), then by title. |
Roles are not evaluated at the moment
The portal knows the signed-in person's groups, not their Keycloak roles.
A tile restricted by roles alone is therefore shown to nobody. Use
groups — or leave both empty to show the tile to everyone signed in.
Who sees the tile¶
| Setting | Visible to |
|---|---|
public: true |
everyone, signed in or not |
public: false, groups and roles empty |
everyone signed in |
groups or roles set |
signed-in users with any of the groups or any of the roles |
This is the same rule as for the oauth2-proxy trait. The tile
only decides what is shown, not who gets in: protect the application itself with
oauth2-proxy or its own login. If the application sits behind oauth2-proxy,
give the tile the same audience — otherwise it leads people to a
"403 · access denied" page.
Filtering happens in the portal's backend; the browser only receives the tiles the signed-in person may see.
When the tile appears¶
Only production counts. The tile appears once the component is deployed to production and disappears when the production deployment is removed. Deployments in development and staging are never listed.
The trait creates nothing in the cluster; the portal reads it straight from the component. Changes to title, text or visibility therefore take effect without a new release or promotion — within a minute (the portal's cache).
To take a tile down, remove the trait.
Icon¶
Three forms are accepted:
- a path in the portal, e.g.
/icons/onconnect-logo.svg(the available images are in the portal repository underpublic/icons/); - an
https://address; - the image itself as a data URI, e.g.
data:image/png;base64,iVBORw0…— SVG, PNG, WebP and JPEG, at most 48 KB.
To create a data URI:
Keep icons small (e.g. 128 × 128 px): the image is stored in the component and loaded with every request.
Opening in the installed portal¶
The portal can be installed as an app ("Add to Home Screen" on a phone, the
install icon in the address bar on a computer). openInApp decides how a tile
opens there:
openInApp |
In the installed portal | In a normal browser |
|---|---|---|
true |
in the app window — going back returns to the portal | new tab |
false |
new browser tab — this leaves the app | new tab |
In a normal browser the option changes nothing.
Only for ccc-onconnect.de. Only addresses under ccc-onconnect.de (e.g.
https://kma.app.ccc-onconnect.de) open in the app window. For any other
target the portal ignores openInApp: true and opens a new tab — an app cannot
pass off other websites as part of itself.
What it looks like depends on the device:
- Android and computers (Chrome, Edge): the page appears in the portal's window, depending on the version with a narrow bar showing the address.
- iPhone and iPad: the page opens as a layer over the portal; "Done" leads back.
When to use false: when the application needs a window of its own — for
instance to keep it open next to the portal, or because it is installed as an
app itself. For portal-link, false is the default, since its targets are
usually services of their own.
Links that are not components¶
For targets outside the platform — Nextcloud, chat, partner websites — there is
the portal-link resource type with the same fields; url is required and
openInApp defaults to false.
apiVersion: openchoreo.dev/v1alpha1
kind: Resource
metadata:
name: link-nextcloud
namespace: onconnect
spec:
owner:
projectName: portal
type:
kind: ClusterResourceType
name: portal-link
parameters:
title: Nextcloud
description: Dateien, Kontakte und Kalender
url: https://cloud.ccc-onconnect.de/
category: onconnect_internal
icon: /icons/nextcloud_128x128.png
groups: [/onconnect]
A portal-link appears as soon as the Resource exists — no binding, no
promotion. The platform-wide links are maintained by the platform team in the
kite/flux/onconnect repository under apps/portal-links/; changes there go
through a merge request.