@smartkomm/plexus-cli 0.1.80 → 0.1.81

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.
@@ -1 +1 @@
1
- ce2de206277140c6f8822e31eff2be7aee6a4c42da9893b3f395debf3f24143f
1
+ 083f8f43389acf5562214396dc63283433b74ab80693a0321a950c23bc495f7f
@@ -220,7 +220,6 @@ whole is the operator's (ask them; do not try).
220
220
  | [offer/staff-input-if-node.md](references/offer/staff-input-if-node.md) | Mandant | A staff input plus an if node that branches on it. |
221
221
  | [offer/task-appointment-result.md](references/offer/task-appointment-result.md) | Mandant | A task that ends with an appointment (mail with .ics to the family). |
222
222
  | [offer/task-family-request.md](references/offer/task-family-request.md) | Mandant | A task asks the family for data and closes itself on the answer. |
223
- | [offer/task-result-files.md](references/offer/task-result-files.md) | Mandant | A task result with up to 20 files. |
224
223
  | [offer/template-document-node.md](references/offer/template-document-node.md) | Mandant | Produce a letter from a Word template with a template node. |
225
224
  | [offer/upgrade-bundle.md](references/offer/upgrade-bundle.md) | Mandant | Upgrade a bundle exported in an older format, answering what it will not guess. |
226
225
  | [offer/wire-contract-generator.md](references/offer/wire-contract-generator.md) | Mandant + Plattform | Pin a contract generator or package, cockpit fields, export form fields, re-stamp formExports, test the new version. |
@@ -2439,7 +2439,6 @@ Add one composed task to a workflow node (result, blocks, condition, description
2439
2439
  | `--item <value>` | pricedItem only: the article it prices — its catalog key (billing_item_definitions.configKey, e.g. tuition) |
2440
2440
  | `--result-label <value>` | choice/pricedItem/reduction: the name of the result's value (German; without --result-label-en it stands in for English too) |
2441
2441
  | `--result-label-en <value>` | English name of the result's value |
2442
- | `--files` | freetext/recommendation/choice without --writes: the person may attach files to the result — text and files become one chat message (--no-files removes it) |
2443
2442
  | `--optional <value>` | OPTIONAL task: nothing waits for it; its holder may close it without a result with this button (German, e.g. „Keine Einschätzung abgeben“; without --optional-en it stands in for English too) |
2444
2443
  | `--optional-en <value>` | English words of the skip button |
2445
2444
  | `--clear-optional` | The task is owed again (removes optional) |
@@ -2508,7 +2507,6 @@ Change the given fields of one composed task; validate before write
2508
2507
  | `--item <value>` | pricedItem only: the article it prices — its catalog key (billing_item_definitions.configKey, e.g. tuition) |
2509
2508
  | `--result-label <value>` | choice/pricedItem/reduction: the name of the result's value (German; without --result-label-en it stands in for English too) |
2510
2509
  | `--result-label-en <value>` | English name of the result's value |
2511
- | `--files` | freetext/recommendation/choice without --writes: the person may attach files to the result — text and files become one chat message (--no-files removes it) |
2512
2510
  | `--optional <value>` | OPTIONAL task: nothing waits for it; its holder may close it without a result with this button (German, e.g. „Keine Einschätzung abgeben“; without --optional-en it stands in for English too) |
2513
2511
  | `--optional-en <value>` | English words of the skip button |
2514
2512
  | `--clear-optional` | The task is owed again (removes optional) |
@@ -12,7 +12,7 @@ The **Terminaufgabe** is an ordinary task of the same node with
12
12
  and waits („Wartet auf: <booking task>") until the booking binds it: its holder is the
13
13
  appointment's **host** (a person of the task's team, or that team's owner on the
14
14
  application), its due day the appointment's end + N. It closes with its result — the
15
- feedback, a recommendation / choice / free text with `files: true` — and holds whatever
15
+ feedback, a recommendation / choice / free text (with files, like every result) — and holds whatever
16
16
  it `blocks` until then.
17
17
 
18
18
  ## Prerequisites
@@ -31,11 +31,11 @@ it `blocks` until then.
31
31
  ```bash
32
32
  # 1. The booking task no longer blocks the follow-up — the hold is derived.
33
33
  plexus-cli offer workflow node task set --dir $WORK/$S --node decision --key tasterDayTermin --clear-blocks
34
- # 2. The Terminaufgabe: team, link, due rule, feedback with files.
34
+ # 2. The Terminaufgabe: team, link, due rule, feedback.
35
35
  plexus-cli offer workflow node task add --dir $WORK/$S --node decision --key tasterDayDurchfuehren \
36
36
  --title 'Taster Day durchführen' --title-en 'Hold the taster day' --team teachers \
37
37
  --appointment-of tasterDayTermin --due-days-after-end 2 \
38
- --result recommendation --chat all --files
38
+ --result recommendation --chat all
39
39
  # 3. If the booking task is part of an optional action, the Terminaufgabe joins it —
40
40
  # and the action is repeatable: a cancelled appointment ends the round.
41
41
  plexus-cli offer workflow node optional-action set --dir $WORK/$S --node decision --key tasterDay \
@@ -76,4 +76,3 @@ until every row is `same`.
76
76
  ## Related
77
77
 
78
78
  - [Make a task close with an appointment](./task-appointment-result.md)
79
- - [Files on a task result](./task-result-files.md)
@@ -15,11 +15,10 @@ assessment from the „Weiteres" menu — without a letter to the family.
15
15
  The result must be prose: free text, a recommendation, or a choice without `writes`
16
16
  (`[workItems/optionalNeedsProseResult]`). A task of an action listed in `requiresOneOf`
17
17
  is never optional (`[workItems/optionalInRequiresOneOf]`).
18
- - **Files** (`result.files: true`): the person attaches up to 20 files next to the text.
18
+ - **Files**: every result takes up to 20 files next to its text (no switch).
19
19
  Text and files go into the result's chat as one message. Find them later in the cockpit
20
20
  under Verlauf/Aktivitäten (tab of the chat the result names), shown only to people who
21
- read that chat — never under „Dokumente"
22
- ([task-result-files.md](./task-result-files.md)).
21
+ read that chat — never under „Dokumente".
23
22
  - **„Einschätzung einholen"** is a `spawnTasks` optional action that references an optional
24
23
  task assigned to a role (`--team geschaeftsfuehrung`). Pressing the action spawns that
25
24
  task. A triggered optional task does not hold the decision. An internal task never
@@ -35,13 +34,10 @@ Use a scratch dir for a real tenant
35
34
  plexus-cli offer workflow node task set --dir <dir> --node aufnahme --key oeaEinschaetzung \
36
35
  --clear-blocks --optional "Keine Einschätzung abgeben" --optional-en "No assessment"
37
36
 
38
- # 2. The Schulleitung's assessment takes files (it may stay owed — keep its blocks)
39
- plexus-cli offer workflow node task set --dir <dir> --node aufnahme --key schulleitungPruefung --files
40
-
41
- # 3. The task the action spawns, then the action
37
+ # 2. The task the action spawns, then the action
42
38
  plexus-cli offer workflow node task add --dir <dir> --node aufnahme --key gfEinschaetzung \
43
39
  --title "Einschätzung Geschäftsführung" --title-en "Management assessment" \
44
- --team geschaeftsfuehrung --due-in-days 3 --result freetext --chat all --files \
40
+ --team geschaeftsfuehrung --due-in-days 3 --result freetext --chat all \
45
41
  --optional "Keine Einschätzung abgeben" --optional-en "No assessment"
46
42
  plexus-cli offer workflow node optional-action set --dir <dir> --node aufnahme --key einschaetzung \
47
43
  --label "Einschätzung einholen" --label-en "Request an assessment" \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartkomm/plexus-cli",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "description": "Unified Plexus admin + admission-offer config CLI (Convex backend).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,52 +0,0 @@
1
- # Let a task's result carry files
2
-
3
- **Use it to** let the person who completes a task attach files to their answer. Example: the
4
- teacher's trial-day feedback with an English and a maths placement sheet, as PDF or photo.
5
-
6
- ## The model
7
-
8
- - **One switch on the task:** `result.files: true`. It is allowed only on prose results:
9
- `freetext`, `recommendation`, or a `choice` without `writes`. Publish refuses it anywhere
10
- else (`[taskResult/filesOnKind]`).
11
- - **Text and files are ONE message** in the chat the result names (`result.chat`). The row
12
- keeps no text, and the chat keeps, shows and erases the files (GDPR erasure included).
13
- - **Up to 20 files per result**.
14
- A normal chat message takes 5. Each file may be PDF, JPEG, PNG or WebP of up to 25 MB;
15
- an iPhone HEIC photo is converted to JPEG in the browser.
16
- - **Where the files show:** in the result's message — cockpit → Verlauf/Aktivitäten (the
17
- chat's tab); a click opens the file in the viewer. The task itself shows at most how
18
- many files its result carries. Never in the „Dokumente" rail:
19
- that lists the application's documents, not task attachments. Nothing is
20
- copied, so deleting the message removes its files.
21
- - **Who sees them:** whoever reads the feedback text — the SAME chat rule. In a
22
- `team:<group>` chat that means the members of that group plus platform admins. A
23
- `tenant_admin` who is in no such group sees neither the text nor the files. Before
24
- choosing `team:principals`, check that the readers really hold that group (`plexus-cli
25
- platform users show <email>`).
26
-
27
- ## CLI
28
-
29
- Work in a scratch dir for a real tenant
30
- ([edit-live-tenant-offer.md](./edit-live-tenant-offer.md)).
31
-
32
- ```bash
33
- plexus-cli --env prod --tenant <slug> offer export --offer <offer> --out <dir>
34
- plexus-cli offer workflow node task set --dir <dir> --node decision --key tasterFeedback --files
35
- plexus-cli offer validate --dir <dir>
36
- plexus-cli --env prod --tenant <slug> offer plan --dir <dir> # workflow: change
37
- # apply only with the school's go (the process owner):
38
- plexus-cli --env prod --tenant <slug> offer apply --dir <dir> --publish --allow-prod
39
- ```
40
-
41
- A new task: `node task add … --result freetext --chat <chat> --files`.
42
-
43
- ## Verify
44
-
45
- 1. Open the task in the cockpit. The dialog shows „Dateien (optional)" with the paperclip,
46
- which accepts several files at once.
47
- 2. Complete it with two files. Verlauf, tab of the result's chat: one message with the
48
- text and both files.
49
- 3. „Dokumente": neither file is listed there.
50
- 4. As staff outside the chat's team: neither the text nor the files show in Verlauf.
51
-
52
- Test tenant: Grundschule → „Probetag auswerten" (Schulleitung) takes files.