@eintrek/erp-shell 0.1.74 → 0.1.76
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 +50 -0
- package/dist/chunks/{guide-runtime-YS2nUhwS.cjs → format-BVoVc7Yk.cjs} +1012 -71
- package/dist/chunks/format-BVoVc7Yk.cjs.map +1 -0
- package/dist/chunks/{guide-runtime-Dl8V1iy9.esm.js → format-BWUKNKxg.esm.js} +1004 -73
- package/dist/chunks/format-BWUKNKxg.esm.js.map +1 -0
- package/dist/guide/core.d.ts +4 -2
- package/dist/guide/format.d.ts +26 -0
- package/dist/guide/guide-store.d.ts +52 -4
- package/dist/guide/guide-ui.d.ts +16 -2
- package/dist/guide/machine.d.ts +86 -10
- package/dist/guide/pages.d.ts +52 -1
- package/dist/guide/progress-sync.d.ts +3 -2
- package/dist/guide/progress.d.ts +8 -4
- package/dist/guide/section-button.d.ts +12 -0
- package/dist/guide/types.d.ts +100 -0
- package/dist/guide-core.cjs +34 -24
- package/dist/guide-core.cjs.map +1 -1
- package/dist/guide-core.esm.js +1 -1
- package/dist/help/help-button.d.ts +5 -2
- package/dist/index.cjs +53 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +15 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/guide-runtime-Dl8V1iy9.esm.js.map +0 -1
- package/dist/chunks/guide-runtime-YS2nUhwS.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -176,6 +176,56 @@ 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.76
|
|
180
|
+
|
|
181
|
+
Workflow guides ("พาทำงาน", phase 2; authors: `_claude-work/guides-r4/GUIDE-PAGES.md` §11).
|
|
182
|
+
|
|
183
|
+
- `GuideSuite.flows?: GuideFlow[]` (`key`, `version`, `title`, `minutes?`,
|
|
184
|
+
`visible`, `requires`, `startRoute`, `href?`, `transit?`, `offer?`,
|
|
185
|
+
`allowCommit?`, `steps`): one job across pages, its steps as a mission's
|
|
186
|
+
(`route`, checkpoints, ทำต่อ). Played as a replay: never in "ไกด์เริ่มต้น
|
|
187
|
+
n/N" or the welcome, never writing the tour's row.
|
|
188
|
+
- Audience and switch as page guides (every member; `visible`/`requires`;
|
|
189
|
+
`guides.<app>.pages` not off).
|
|
190
|
+
- "?" → "พาทำงาน" opens the panel's flows section (the flows this person
|
|
191
|
+
has); on a flow's start page "?" also has "พาทำ · <title>". Offered only
|
|
192
|
+
in `offer` mode, only flows with `offer: true`, on the start page, after
|
|
193
|
+
the missions and the page guide's offer, once.
|
|
194
|
+
- One row per flow per person, `<app>.flow.<key>`, written once at the end
|
|
195
|
+
(finished: completed; exited, left, จบโดยไม่บันทึก: skipped).
|
|
196
|
+
- The chain (start routes + steps' routes and route triggers + `transit`):
|
|
197
|
+
moving between its pages goes on; leaving it ends the flow silently. A
|
|
198
|
+
flow in progress survives a refresh in the same tab session (resumed at
|
|
199
|
+
its checkpoint), never across sessions.
|
|
200
|
+
- Writes: view and click steps only unless `allowCommit: true`, and then
|
|
201
|
+
every commit step must name its `abort` (else the flow is dropped, with a
|
|
202
|
+
warning in development).
|
|
203
|
+
|
|
204
|
+
### 0.1.75
|
|
205
|
+
|
|
206
|
+
Section guides ("อธิบายส่วนนี้"; authors: `_claude-work/guides-r4/GUIDE-PAGES.md` §10).
|
|
207
|
+
|
|
208
|
+
- `GuideSuite.sections?: GuideSection[]`: explains one section of a page
|
|
209
|
+
(a number-heavy card or table) row by row. View steps only (the default
|
|
210
|
+
kind here); a step may point at a row or cell (`targetId`). Tied to a
|
|
211
|
+
route and a root anchor: there only while the root is on screen, and it
|
|
212
|
+
ends when the root goes or the page is left.
|
|
213
|
+
- Live values: the app hands its computed numbers to the guide with
|
|
214
|
+
`useSectionGuideValues(key, values)` or `<SectionGuideButton guideKey
|
|
215
|
+
values />`; step `title`/`why` read `ctx.values`. The latest render wins,
|
|
216
|
+
so a page that re-renders mid-guide never leaves an old number. A step
|
|
217
|
+
lists what it uses in `needs` and is skipped while one is missing (also
|
|
218
|
+
when its title comes out empty). `formatBaht`, `thaiMonth`,
|
|
219
|
+
`thaiMonthYear` for the copy.
|
|
220
|
+
- Entry points: `<SectionGuideButton guideKey />` (a small "?" for the
|
|
221
|
+
section header, drawn only while the guide is there for this person) and
|
|
222
|
+
"?" → "อธิบายส่วนนี้ · <title>" for every section guide on screen. Never
|
|
223
|
+
offered by itself, in any mode; not in the panel's list.
|
|
224
|
+
- Progress: one row per section guide per person, `<app>.section.<key>`,
|
|
225
|
+
written once, as page rows. Same switch and audience as page guides.
|
|
226
|
+
- Fix: "ขั้นที่ x/y" no longer counts a click step that passes by itself
|
|
227
|
+
(its outcome already on screen): Plannex's overview said 1/9, then 3/9.
|
|
228
|
+
|
|
179
229
|
### 0.1.74
|
|
180
230
|
|
|
181
231
|
Page guides ("คู่มือหน้านี้", guides round 4; authors:
|