@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 +52 -0
- package/dist/chunks/{format-CVazK0hP.cjs → format-DQLPHq7h.cjs} +728 -63
- package/dist/chunks/format-DQLPHq7h.cjs.map +1 -0
- package/dist/chunks/{format-DCTuLpBU.esm.js → format-ILrTMV4G.esm.js} +727 -64
- package/dist/chunks/format-ILrTMV4G.esm.js.map +1 -0
- package/dist/guide/core.d.ts +2 -2
- package/dist/guide/guide-store.d.ts +18 -3
- package/dist/guide/guide-ui.d.ts +22 -2
- package/dist/guide/machine.d.ts +85 -7
- package/dist/guide/pages.d.ts +29 -1
- package/dist/guide/progress-sync.d.ts +1 -1
- package/dist/guide/progress.d.ts +5 -3
- package/dist/guide/types.d.ts +59 -0
- package/dist/guide-core.cjs +3 -1
- package/dist/guide-core.cjs.map +1 -1
- package/dist/guide-core.esm.js +1 -1
- package/dist/help/help-button.d.ts +4 -2
- package/dist/index.cjs +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +12 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/format-CVazK0hP.cjs.map +0 -1
- package/dist/chunks/format-DCTuLpBU.esm.js.map +0 -1
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).
|