@happyvertical/smrt-projects 0.60.8 → 0.60.10

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 CHANGED
@@ -107,6 +107,26 @@ and question answer state remain separate lifecycles.
107
107
  renders authorized projections and emits typed answer/decision callbacks. It
108
108
  does not fetch records or decide application permissions.
109
109
 
110
+ `ProjectInterview` (registry slot `project-interview`) is the guided,
111
+ one-record-at-a-time surface over the same `ProjectQuestionView` /
112
+ `ProjectDecisionView` projections and `onanswer` / `ondecide` callbacks. It
113
+ also does not fetch. Props: `questions`, `decisions` (asked after the
114
+ questions, each in the host's order), `busy`, `framing` (keyed by record id:
115
+ `why`, `unblocks` labels, `recommendedOptionId`), `startIndex` (read once on
116
+ mount; defaults to the first open record) and `onadvance`, which receives a
117
+ `ProjectInterviewAdvanceDetail` (`index`, `total`, `id`, `kind`, `reason`) on
118
+ every move so hosts can persist resume position. The recommended option
119
+ (`framing.recommendedOptionId`, else the option's `recommended` flag) is listed
120
+ first but never preselected, and question choices keep the Other text box. The
121
+ interview only advances after the host re-renders the submitted record with a
122
+ non-`open` status (or withdraws it), so a failed save leaves the person on that
123
+ question. Skip moves on without calling a callback; Back revisits earlier
124
+ records, showing recorded answers read-only. Progress shows the position and
125
+ answered count; when no record remains open it shows a completion state,
126
+ otherwise a summary that returns to skipped records. Focus moves to each new
127
+ record's heading. The entry animation runs only when the browser reports no
128
+ reduced-motion preference.
129
+
110
130
  ### Canonical project specification
111
131
 
112
132
  `ProjectSpecificationService` persists one canonical specification per tenant