TK07: help of a step (text, places to look again, search terms) #638

Merged
oliver.maklott merged 2 commits from tk07-help into main 2026-11-10 17:24:52 +01:00

TK07 (Plan 26, Teil AZ, D517): the help bar, parts 1–3. Stacked on #637 (TK06) and #635 (TK05); merge those first.

Acceptance

  • SDK help on challenge and step; a step without inherits the challenge's (also drawn pool steps); without help no button (tests)
  • text and search terms may be text keys; a missing key is refused like any other (missing-text); form errors invalid-help
  • build checks only the form of see (no helpSeeUnknown)
  • API resolves the places, four cases in integration tests:
    • assigned and touched → link (the assignment with work wins over a newer one)
    • assigned in a closed course, never opened → link
    • assigned but not begun (opening time in the future; template draft) → text
    • never assigned / pack not on the instance → text (titles where the school has the pack)
  • material: PDF of an assignment of the pack, only fuer: alle
  • opening logs help in step_events (10 s dedupe), shows in „Meine Daten“; no attempt, no star change (test)
  • UI: „Hilfe“ button, pack text, „Nachschauen in Aivopod“, search terms with copy buttons, search tips; no search engine links (browser tests, axe)

Interpretation recorded in D517: courses have no start date, so „begun“ = not a template draft and the assignment's opens_at is empty or past; „most recent“ = newest assignment.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j

TK07 (Plan 26, Teil AZ, D517): the help bar, parts 1–3. Stacked on #637 (TK06) and #635 (TK05); merge those first. Acceptance - [x] SDK `help` on challenge and step; a step without inherits the challenge's (also drawn pool steps); without `help` no button (tests) - [x] text and search terms may be text keys; a missing key is refused like any other (`missing-text`); form errors `invalid-help` - [x] build checks only the form of `see` (no `helpSeeUnknown`) - [x] API resolves the places, four cases in integration tests: - assigned and touched → link (the assignment with work wins over a newer one) - assigned in a closed course, never opened → link - assigned but not begun (opening time in the future; template draft) → text - never assigned / pack not on the instance → text (titles where the school has the pack) - [x] material: PDF of an assignment of the pack, only `fuer: alle` - [x] opening logs `help` in `step_events` (10 s dedupe), shows in „Meine Daten“; no attempt, no star change (test) - [x] UI: „Hilfe“ button, pack text, „Nachschauen in Aivopod“, search terms with copy buttons, search tips; no search engine links (browser tests, axe) Interpretation recorded in D517: courses have no start date, so „begun“ = not a template draft and the assignment's `opens_at` is empty or past; „most recent“ = newest assignment. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j
TK05: work files of packs – downloads/, step field downloads, served by the API and logged (Plan 26, D515)
Some checks failed
check / check (pull_request) Failing after 15m43s
e2e / e2e (pull_request) Has been cancelled
98ff9f39ff
- shared: downloads.ts (names, types, downloads.json, limits); checkDownload in
  @aivopod/shared/zip: a real .xlsx without macros, external links, embedded
  objects or ActiveX; CSV as UTF-8 or Windows-1252 without NUL. StepRef and the
  authoring step get `downloads` (at most five per step).
- SDK: validates `downloads` (invalid-downloads), the manifest names them.
- packtools: reads downloads/ with the same check, download.unknown for a name
  no file has, warning downloadUnused, downloads.json and assets/<hash>.
- API: migration 0102 (pack_downloads, step_events, store_pack with the work
  files); install and publish read and re-check them, stored under
  downloads/<hash>.<ext>, which the assets host never serves. Routes
  GET /api/assignments/:id/steps/:stepId/downloads/:name (own assignment, the
  version she works with, only what the step hands out; logged once per 10 s)
  and GET /api/teacher/packs/:packId/downloads/:name; attachment, sandbox,
  private no-store. schoolPacks lists the newest version's work files.
- Export: records download and help in „Meine Daten“ and the teacher's export;
  archive format 57 carries pack_downloads and step_events.
- Web: links above the task with the sentence about Excel's protected view;
  work files on the teacher's pack list; „Was die Plattform aufzeichnet“.
- SPEC section 5 „Arbeitsdateien“, section 3 export records, D515 refined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j
TK05: browser tests know the work files – pack list and the recorded list
Some checks failed
check / check (pull_request) Successful in 16m54s
e2e / e2e (pull_request) Successful in 25m37s
publish / release (push) Successful in 2m10s
check / check (push) Has been cancelled
e2e / e2e (push) Has been cancelled
d736d95a3c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j
TK06: libraries in packs – aivopod.vendor, checked copies, appInlineScript (Plan 26, D516)
All checks were successful
check / check (pull_request) Successful in 16m20s
e2e / e2e (pull_request) Successful in 24m8s
publish / release (push) Successful in 2m22s
check / check (push) Successful in 16m45s
e2e / e2e (push) Successful in 26m2s
f977194682
- project: `aivopod.vendor` – only @aivopod/ packages, exact versions, parts app,
  browser and check.
- vendor.ts: takes the package from node_modules (as the bundler resolves),
  checks version and aivopod-vendor.json, every file against its sha256;
  errors vendor.missing, versionMismatch, manifest, modified, scope, invalid,
  noPart, appClash, noApp.
- readApps: an app of a library becomes an app of the pack with the same
  limits; `browser` puts the scripts into apps/<app>/vendor/.
- bundle: `<package>/check` is allowed in the pack and in its tests and is
  bundled; pack test checks the libraries like pack build.
- manifest: `vendor: [{ name, version, sha256 }]`.
- hint appInlineScript for inline scripts, on… attributes and javascript: links
  in any app's HTML.
- SPEC section 5 „Bibliotheken in Packs“, D516 refined. Checked against the
  published @aivopod/sheets 1.0.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j
TK07: help of a step – text, places to look again, search terms (Plan 26, D517)
Some checks failed
e2e / e2e (pull_request) Failing after 38s
check / check (pull_request) Failing after 52s
62a668a6e8
- shared: help.ts (StepHelpSchema, HelpTarget, StepHelpRef, resolved places),
  StepRef.help with the places only, route stepHelp.
- SDK: `help` on the challenge and on every step; a step without takes the
  challenge's, drawn pool steps too; text and search terms may be keys;
  invalid-help.
- API: GET /api/assignments/:id/steps/:stepId/help resolves the places for the
  student – a link only to an assignment of that pack (and challenge) in a
  course of hers that has begun (no template draft, opening time passed),
  touched or not, running or closed; with her work first, then the newest;
  material of that version, only `fuer: alle`. Everything else is text with
  titles where the school has the pack. Logged as step event `help`, no
  attempt.
- Web: button „Hilfe“ below the hints with the pack's text, „Nachschauen in
  Aivopod“, search terms to copy and search tips; no search engine links.
- SPEC section 5 „Hilfe eines Schritts“, D517 with the implementation notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j
TK07: the game frame's budget is 46 KB – help in the manifest schema (D517, D322)
All checks were successful
check / check (pull_request) Successful in 16m28s
e2e / e2e (pull_request) Successful in 25m15s
publish / release (push) Successful in 1m51s
check / check (push) Successful in 16m20s
e2e / e2e (push) Successful in 25m28s
f178c34e81
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4i6vEUY3kHe9imoS6j
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aivopod/aivopod-app!638
No description provided.