@smartkomm/plexus-cli 0.1.61 → 0.1.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/cli.mjs +186 -174
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +1 -1
- package/dist/skill/references/commands.md +12 -0
- package/dist/skill/references/config/set-tenant-branding.md +27 -0
- package/dist/spec.snapshot.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
29c49041eb22f87cde551bef7f774dcc6ec8cc845720fdc17befa1d4e4e0aabf
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -174,7 +174,7 @@ whole is the operator's (ask them; do not try).
|
|
|
174
174
|
| [config/platform-setup-export.md](references/config/platform-setup-export.md) | Plattform | Export the platform's own setup (the contract input registry) and restore it before a tenant whose setup names its keys. |
|
|
175
175
|
| [config/restore-tenant-setup.md](references/config/restore-tenant-setup.md) | Plattform | Preview and apply a setup export directory onto its tenant, part by part. |
|
|
176
176
|
| [config/list-setup-exports.md](references/config/list-setup-exports.md) | Plattform | List a tenant's nightly and manual setup exports and show what changed between two of them. |
|
|
177
|
-
| [config/set-tenant-branding.md](references/config/set-tenant-branding.md) | Mandant | Give the application portal colours, radius and fonts; upload logo and WOFF2 fonts (`branding …` needs `administration.config.manage`). |
|
|
177
|
+
| [config/set-tenant-branding.md](references/config/set-tenant-branding.md) | Mandant | Give the application portal colours, radius and fonts; upload logo and WOFF2 fonts, also per Träger with `--legal-entity` (`branding …` needs `administration.config.manage`). |
|
|
178
178
|
| [config/set-tenant-terms.md](references/config/set-tenant-terms.md) | Plattform | Switch a school from „Bewerbung" to „Anmeldung" throughout with one setting — or per Träger. |
|
|
179
179
|
| [config/set-external-sign-in.md](references/config/set-external-sign-in.md) | Plattform | Choose how long the sign-in link in a school's letters works — once, N days, or without end. |
|
|
180
180
|
| [config/set-up-billing-catalog.md](references/config/set-up-billing-catalog.md) | Mandant + Plattform | Load articles, packages, reduction tiers and Word templates by stable keys (catalog plan/apply). |
|
|
@@ -239,6 +239,7 @@ Remove a tenant's portal font file for a slot (the family stays)
|
|
|
239
239
|
| Option | Description |
|
|
240
240
|
|---|---|
|
|
241
241
|
| `--slot <value>` (required) | heading \| body |
|
|
242
|
+
| `--legal-entity <value>` | A legal entity's config key — its own brand, which overrides the tenant's for its units |
|
|
242
243
|
|
|
243
244
|
### `branding clear-logo`
|
|
244
245
|
|
|
@@ -247,6 +248,10 @@ Remove a tenant's portal logo
|
|
|
247
248
|
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
248
249
|
- **Effect:** write — needs `--env`; on production also `--allow-prod`
|
|
249
250
|
|
|
251
|
+
| Option | Description |
|
|
252
|
+
|---|---|
|
|
253
|
+
| `--legal-entity <value>` | A legal entity's config key — its own brand, which overrides the tenant's for its units |
|
|
254
|
+
|
|
250
255
|
### `branding set-font`
|
|
251
256
|
|
|
252
257
|
Upload a tenant's portal font file (WOFF2) for a slot
|
|
@@ -258,6 +263,7 @@ Upload a tenant's portal font file (WOFF2) for a slot
|
|
|
258
263
|
|---|---|
|
|
259
264
|
| `--slot <value>` (required) | heading \| body |
|
|
260
265
|
| `--file <value>` (required) | Local .woff2 file |
|
|
266
|
+
| `--legal-entity <value>` | A legal entity's config key — its own brand, which overrides the tenant's for its units |
|
|
261
267
|
|
|
262
268
|
### `branding set-logo`
|
|
263
269
|
|
|
@@ -270,6 +276,7 @@ Upload a tenant's portal logo
|
|
|
270
276
|
|---|---|
|
|
271
277
|
| `--file <value>` | Local image file to upload |
|
|
272
278
|
| `--url <value>` | Fetch the logo image from this URL |
|
|
279
|
+
| `--legal-entity <value>` | A legal entity's config key — its own brand, which overrides the tenant's for its units |
|
|
273
280
|
|
|
274
281
|
### `branding set-theme`
|
|
275
282
|
|
|
@@ -281,6 +288,7 @@ Set a tenant's portal theme tokens from a JSON file
|
|
|
281
288
|
| Option | Description |
|
|
282
289
|
|---|---|
|
|
283
290
|
| `--file <value>` (required) | Branding theme JSON |
|
|
291
|
+
| `--legal-entity <value>` | A legal entity's config key — its own brand, which overrides the tenant's for its units |
|
|
284
292
|
|
|
285
293
|
### `branding show`
|
|
286
294
|
|
|
@@ -289,6 +297,10 @@ Show a tenant's current branding + resolved logo and font-file URLs
|
|
|
289
297
|
- **Right:** school token — a module permission inside one school (the school's own administrator runs it)
|
|
290
298
|
- **Effect:** read — changes nothing on the deployment
|
|
291
299
|
|
|
300
|
+
| Option | Description |
|
|
301
|
+
|---|---|
|
|
302
|
+
| `--legal-entity <value>` | A legal entity's config key — its own brand, which overrides the tenant's for its units |
|
|
303
|
+
|
|
292
304
|
## Config (offline)
|
|
293
305
|
|
|
294
306
|
### `config init`
|
|
@@ -121,6 +121,33 @@ plexus-cli --env prod --tenant <slug> branding show
|
|
|
121
121
|
row live under **Administration → Branding**. Use it for quick per-tenant tweaks; use the CLI
|
|
122
122
|
for reproducible, cross-env rollout.
|
|
123
123
|
|
|
124
|
+
## Per Träger (legal entity)
|
|
125
|
+
|
|
126
|
+
A legal entity can carry its **own** brand: it replaces the tenant's brand **as a
|
|
127
|
+
block** — theme, logo and fonts together — on the portal pages of every unit below it
|
|
128
|
+
(`/e/units/<slug>/**`, header included) and in the letters about those units'
|
|
129
|
+
applications. The nearest legal entity up the unit's chain that has a brand wins (a
|
|
130
|
+
`school_group` counts); without one the tenant's applies. Pages without a unit (portal
|
|
131
|
+
start page, school list, login, „Meine Bewerbungen", an application's form and documents)
|
|
132
|
+
and letters about no application keep the tenant's brand — the same split as the terms
|
|
133
|
+
(`set-tenant-terms.md`).
|
|
134
|
+
|
|
135
|
+
Every `branding` verb takes `--legal-entity <key>` (the entity's
|
|
136
|
+
`foundation.legalEntities[].key`); the gate is the same school config right:
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
plexus-cli --env staging --tenant test branding set-theme --legal-entity test_seminare --file seminare.json
|
|
140
|
+
plexus-cli --env staging --tenant test branding set-logo --legal-entity test_seminare --file seminare.png
|
|
141
|
+
plexus-cli --env staging --tenant test branding show --legal-entity test_seminare
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
In config the block is `foundation.legalEntities[].branding` (same shape as
|
|
145
|
+
`tenant.branding`) with its files in `.brandingAssets` (snapshot `branding/<key>/<slot>.<ext>`).
|
|
146
|
+
An entity that declares **neither** has no brand of its own: an apply deletes a row left
|
|
147
|
+
from earlier (`branding: {}` keeps a logo-only brand). An unknown key is refused
|
|
148
|
+
(`[branding/unknownLegalEntity]`). Verify: `branding show --legal-entity <key>`, then open
|
|
149
|
+
`/<tenant>/e/units/<unit-slug>` of a unit below it.
|
|
150
|
+
|
|
124
151
|
## Gotchas
|
|
125
152
|
|
|
126
153
|
- **Release gate:** a brand-new `plexus-cli branding` verb (or a new theme field) must be
|