@eintrek/erp-shell 0.1.76 → 0.1.78

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,50 @@ 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.78
180
+
181
+ - **Every tab shows the "?" menu.** Each tab of an app reads guides/me and
182
+ publishes "ไกด์เริ่มต้น n/N", "คู่มือหน้านี้", "คู่มือทุกหน้า", "พาทำงาน",
183
+ "อธิบายส่วนนี้" and the SectionGuideButtons. Before, only the tab holding
184
+ the Web Lock did, so with two tabs open "?" went straight to ช่วยเหลือ in
185
+ the other (since 0.1.74 every guide item was lost there).
186
+ - **One tab runs.** Steps, offers, the welcome, celebrations and saves stay
187
+ with the lock holder. Pressing a guide item in another tab makes that tab
188
+ the runner: it steals the lock, reads progress fresh and runs the item;
189
+ the old holder stops what it was running, silently and without writing,
190
+ and waits its turn again. Nothing resumes by itself in a tab taken over.
191
+ - **Progress reaches every tab.** A tab that saves posts "saved" on a
192
+ BroadcastChannel (`erp-guide:<orgId>:<app>`); the others read guides/me
193
+ again (bypassing the 5-minute cache), as does any tab coming back into
194
+ view, so n/N and ดูแล้ว stay right.
195
+
196
+ ### 0.1.77
197
+
198
+ Fixes from the apps' first week on 0.1.76.
199
+
200
+ - **No implicit submit during a step.** While a guide step is up (a mission,
201
+ a page or section guide, a flow), Enter in a field and a form's `submit`
202
+ are blocked unless the form's submit control — the button pressed, or
203
+ the one Enter would press — is the step's pressable target or in its
204
+ `allow`. Peoplx: Enter in an allowed field saved a draft and took a
205
+ document number.
206
+ - **Skipped → completed, once.** A page guide, section guide or flow left
207
+ once (skipped) records the person's later finish (completed). Completed
208
+ is final: a replay writes nothing; skipped again changes nothing.
209
+ - **A counter that never goes down.** "ขั้นที่ x/y": `x` counts the steps
210
+ actually shown in this run; `y` is worked out when a step is entered on a
211
+ page it was not worked out on, held while the run stays on that page,
212
+ and never lowered. Steps on other pages whose showing depends on that
213
+ page (`skipIf`, `onMissing: "skip"`) are counted once it is reached. So
214
+ the total can grow on a new page, never shrink (no more 1/5 → 2/6 → 2/5).
215
+ Going back a step (a checkpoint, ย้อนกลับ) moves `x` back.
216
+ - **Flows carry on between their pages.** When the person goes to the next
217
+ step's page by themselves (within the chain), the flow carries on there,
218
+ with no "ทำต่อ". ทำต่อ stays for going back to an earlier page and after
219
+ a reload.
220
+ - **`config.contentRoot`**: a selector for the app's content column (LIFF's
221
+ 460 px column on a desktop); bubbles stay inside it.
222
+
179
223
  ### 0.1.76
180
224
 
181
225
  Workflow guides ("พาทำงาน", phase 2; authors: `_claude-work/guides-r4/GUIDE-PAGES.md` §11).