Skip to content

Release v2.10.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 08:04
c04d1a1

Cue is the Showrunner guided-tour part: scripted, narrated walkthroughs with subtitles, a chapter list, a moving pointer and written chapters, plus a record of who has started which tour. It is extracted from Studio, where it grew up, so any Cratis application can offer tours.

Added

  • Cratis.Showrunner.Cue: AddCue with CueOptions.Tours (the tour names the application accepts), the StartTour command that records the first start of a tour once per person, the StartedTour.ByMe query, IViewerTours for reading the history on the server, and ISignedInViewer to replace how a person is told apart (the sub claim by default). The history is kept under a hashed event source with the person as compliance subject, so an erasure request finds it.
  • @cratis/showrunner.cue: the generated proxies for that command and query.
  • @cratis/showrunner.cue.react: the tour player. TourOverlayShell plays a script of sections, chapters and steps against one clock, with chapter list, subtitles, transport, pointer, callouts and an optional written chapter for each step; useCueTours and useTourNudge connect a tour button to the backend so it points at a tour until the person has taken it.
  • A configurable voice-over. CueProvider takes a speech configuration: createHttpSpeech connects any text-to-speech service reached over HTTP (the address, availability address, request body, headers and cache size are the application's), and an application with its own pipeline provides a CueSpeech of its own. Without one the tours play silently with subtitles.
  • Every text of the tour's chrome is a label the application can replace, and the application can guard a tour's stage with its own error boundary. The styles use the --cratis-* tokens, with --cue-viewport-top and --cue-z-index to fit an application shell.
  • Documentation for Cue: how it works, adding it to an application, writing a tour, configuring the voice-over, remembering who has taken a tour, and the event reference.