@eintrek/erp-shell 0.1.75 → 0.1.77

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
@@ -176,6 +176,58 @@ progress API: `API.md` next to it.
176
176
  shell's adapters), `guide-ui.tsx`, `guide-styles.ts`. Tests:
177
177
  `src/guide/*.test.ts`.
178
178
 
179
+ ### 0.1.77
180
+
181
+ Fixes from the apps' first week on 0.1.76.
182
+
183
+ - **No implicit submit during a step.** While a guide step is up (a mission,
184
+ a page or section guide, a flow), Enter in a field and a form's `submit`
185
+ are blocked unless the form's submit control — the button pressed, or
186
+ the one Enter would press — is the step's pressable target or in its
187
+ `allow`. Peoplx: Enter in an allowed field saved a draft and took a
188
+ document number.
189
+ - **Skipped → completed, once.** A page guide, section guide or flow left
190
+ once (skipped) records the person's later finish (completed). Completed
191
+ is final: a replay writes nothing; skipped again changes nothing.
192
+ - **A counter that never goes down.** "ขั้นที่ x/y": `x` counts the steps
193
+ actually shown in this run; `y` is worked out when a step is entered on a
194
+ page it was not worked out on, held while the run stays on that page,
195
+ and never lowered. Steps on other pages whose showing depends on that
196
+ page (`skipIf`, `onMissing: "skip"`) are counted once it is reached. So
197
+ the total can grow on a new page, never shrink (no more 1/5 → 2/6 → 2/5).
198
+ Going back a step (a checkpoint, ย้อนกลับ) moves `x` back.
199
+ - **Flows carry on between their pages.** When the person goes to the next
200
+ step's page by themselves (within the chain), the flow carries on there,
201
+ with no "ทำต่อ". ทำต่อ stays for going back to an earlier page and after
202
+ a reload.
203
+ - **`config.contentRoot`**: a selector for the app's content column (LIFF's
204
+ 460 px column on a desktop); bubbles stay inside it.
205
+
206
+ ### 0.1.76
207
+
208
+ Workflow guides ("พาทำงาน", phase 2; authors: `_claude-work/guides-r4/GUIDE-PAGES.md` §11).
209
+
210
+ - `GuideSuite.flows?: GuideFlow[]` (`key`, `version`, `title`, `minutes?`,
211
+ `visible`, `requires`, `startRoute`, `href?`, `transit?`, `offer?`,
212
+ `allowCommit?`, `steps`): one job across pages, its steps as a mission's
213
+ (`route`, checkpoints, ทำต่อ). Played as a replay: never in "ไกด์เริ่มต้น
214
+ n/N" or the welcome, never writing the tour's row.
215
+ - Audience and switch as page guides (every member; `visible`/`requires`;
216
+ `guides.<app>.pages` not off).
217
+ - "?" → "พาทำงาน" opens the panel's flows section (the flows this person
218
+ has); on a flow's start page "?" also has "พาทำ · <title>". Offered only
219
+ in `offer` mode, only flows with `offer: true`, on the start page, after
220
+ the missions and the page guide's offer, once.
221
+ - One row per flow per person, `<app>.flow.<key>`, written once at the end
222
+ (finished: completed; exited, left, จบโดยไม่บันทึก: skipped).
223
+ - The chain (start routes + steps' routes and route triggers + `transit`):
224
+ moving between its pages goes on; leaving it ends the flow silently. A
225
+ flow in progress survives a refresh in the same tab session (resumed at
226
+ its checkpoint), never across sessions.
227
+ - Writes: view and click steps only unless `allowCommit: true`, and then
228
+ every commit step must name its `abort` (else the flow is dropped, with a
229
+ warning in development).
230
+
179
231
  ### 0.1.75
180
232
 
181
233
  Section guides ("อธิบายส่วนนี้"; authors: `_claude-work/guides-r4/GUIDE-PAGES.md` §10).