@jskit-ai/agent-docs 0.1.327 → 0.1.329
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/guide/agent/app-extras/assistant.md +115 -2
- package/guide/agent/app-setup/authentication.md +16 -0
- package/guide/agent/app-setup/package-with-nix.md +118 -0
- package/guide/agent/app-setup/upgrading-jskit.md +21 -2
- package/guide/agent/framework/data-access.md +19 -3
- package/guide/agent/framework/security-pass.md +136 -0
- package/guide/agent/framework/speed-pass.md +194 -0
- package/guide/agent/framework/ux-pass.md +116 -0
- package/guide/agent/index.md +11 -0
- package/package.json +1 -1
- package/patterns/minimal-foundation/example/package.json +2 -2
- package/patterns/shell-foundation/example/package.json +3 -3
- package/reference/autogen/PATTERN_INDEX.md +33 -33
- package/reference/autogen/packages/assistant-core.md +3 -3
- package/reference/autogen/packages/assistant-runtime.md +18 -3
- package/reference/autogen/packages/auth-provider-local-core.md +11 -4
- package/reference/autogen/packages/workspaces-core.md +13 -0
- package/reference/autogen/tooling/jskit-catalog.md +33 -0
- package/skills/jskit/SKILL.md +9 -4
- package/skills/jskit/references/data-access.md +19 -3
- package/skills/jskit/references/package-with-nix.md +113 -0
- package/skills/jskit/references/pattern-index.md +33 -33
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +2 -2
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +3 -3
- package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +1 -1
- package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
- package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +2 -2
- package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +1 -1
- package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +2 -2
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +4 -4
- package/skills/jskit/references/security-pass.md +131 -0
- package/skills/jskit/references/speed-pass.md +189 -0
- package/skills/jskit/references/ux-pass.md +111 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<!-- Generated by `npm run agent-docs:build` from `packages/agent-docs/site/guide/framework/speed-pass.md`. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
title: Speed pass
|
|
5
|
+
description: Where a JSKIT app's tests, screens and server spend their time, the JSKIT tools that measure each wait, and the fixes each one takes.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Speed pass
|
|
9
|
+
|
|
10
|
+
A speed pass makes an app and its tests take the time their work needs.
|
|
11
|
+
Genesis's speed pass skill (`genesis-speed-pass`) holds the method: measure
|
|
12
|
+
each wait first on a realistic build at realistic sizes, fix its cause, measure
|
|
13
|
+
again the same way, and never raise a time limit, add retries, or shrink
|
|
14
|
+
realistic data or coverage to get faster. This page says where each wait lives
|
|
15
|
+
in a JSKIT app and which JSKIT tools measure and fix it. The rules it applies
|
|
16
|
+
are already in [Typed features](/guide/framework/typed-features),
|
|
17
|
+
[Client features](/guide/framework/client-features),
|
|
18
|
+
[Data access](/guide/framework/data-access) and the
|
|
19
|
+
[sanity checks](/guide/framework/sanity-checks). Query counts, narrowing and
|
|
20
|
+
indexes belong to the [data pass](/guide/framework/data-pass): when a wait is
|
|
21
|
+
database time, apply that page to the path.
|
|
22
|
+
|
|
23
|
+
## Test speed
|
|
24
|
+
|
|
25
|
+
### Measure
|
|
26
|
+
|
|
27
|
+
- `jskit test` starts by saying how many test files it runs at a time and
|
|
28
|
+
where that number came from (`V64_TEST_CONCURRENCY`, or half of the
|
|
29
|
+
machine), and ends with its 10 slowest test files and tests; each file's time
|
|
30
|
+
is kept in `node_modules/.cache/jskit-test/file-times.json`. Time the whole
|
|
31
|
+
command too (`time npm test`): a wall time close to the sum of the files'
|
|
32
|
+
times means they ran one after another
|
|
33
|
+
([Test files run in parallel](/guide/framework/typed-features#test-files-run-in-parallel)).
|
|
34
|
+
- Test database preparation reports each phase and its duration
|
|
35
|
+
([Test databases are prepared once](/guide/framework/typed-features#test-databases-are-prepared-once)).
|
|
36
|
+
Read them: slow preparation otherwise hides inside the first test that waits
|
|
37
|
+
for it.
|
|
38
|
+
- Every Playwright run through `browserTestConfig()` ends with its 10 slowest
|
|
39
|
+
tests. Compare a slow spec's time with the time of the app's requests it
|
|
40
|
+
makes, so you know whether the test or the app is slow.
|
|
41
|
+
|
|
42
|
+
### Fix
|
|
43
|
+
|
|
44
|
+
- Scripts run `jskit test` (`jskit test --databases` for database tests), and
|
|
45
|
+
Playwright and Vitest take their workers from `testConcurrency()`. `jskit
|
|
46
|
+
check` reports a script that runs `node --test` directly, passes a fixed
|
|
47
|
+
concurrency or pins `V64_TEST_CONCURRENCY`, and a Playwright or Vitest config
|
|
48
|
+
that runs files one at a time ([test-run rules](/guide/framework/typed-features#test-run-rules)).
|
|
49
|
+
- Files that collide are isolated, never run one at a time: a port from
|
|
50
|
+
`listen(0)`, a directory from `mkdtemp`, the database `jskit test --databases`
|
|
51
|
+
gives each file, and a Vite `cacheDir` of its own. The
|
|
52
|
+
`// jskit-test: alone - <reason>` marker is only for a file that holds a
|
|
53
|
+
resource of the whole machine.
|
|
54
|
+
- `jskit test --databases` restores each file's database from a snapshot
|
|
55
|
+
rebuilt only when the migrations' digest changes. A file that runs
|
|
56
|
+
`knex.migrate.latest()` itself replays the whole history for every file:
|
|
57
|
+
remove it, and let the full history run once in its own check.
|
|
58
|
+
- A fixture every file only reads (a built app, a composed project, a
|
|
59
|
+
generated tree) is made once, before any file starts, by a global setup
|
|
60
|
+
module: `jskit test --test-global-setup=tests/helpers/globalSetup.js`
|
|
61
|
+
(`jskit test` passes its arguments to `node --test`). Its `globalSetup()`
|
|
62
|
+
makes the fixture and puts its location in an environment variable the test
|
|
63
|
+
processes inherit; its `globalTeardown()` removes it. A file run on its own
|
|
64
|
+
makes the fixture itself when the variable is absent, and a test that writes
|
|
65
|
+
into the fixture makes its own copy.
|
|
66
|
+
- `browserTestConfig()` builds the production frontend once and gives each
|
|
67
|
+
worker its own server, port and seeded database; with a `signIn` module
|
|
68
|
+
each worker signs in once. A check of what a component shows belongs in a
|
|
69
|
+
Vitest component test, and a new browser check is an assertion in the spec
|
|
70
|
+
that already reaches that screen.
|
|
71
|
+
- Wait for the condition, never for time: Playwright's web-first assertions
|
|
72
|
+
(`await expect(locator).toBeVisible()`, `await expect(page).toHaveURL(...)`)
|
|
73
|
+
instead of `page.waitForTimeout()`. The app's own delays (retry backoff,
|
|
74
|
+
debounce, polling) run on a fake clock: `mock.timers` in `node:test`,
|
|
75
|
+
`vi.useFakeTimers()` in Vitest and `page.clock` in Playwright.
|
|
76
|
+
- A file imports what it needs at its top level, so loading counts against the
|
|
77
|
+
file, not against a test's time limit. `jskit test` keeps Node's compile
|
|
78
|
+
cache in `node_modules/.cache/jskit-node-compile-cache`, so each file's
|
|
79
|
+
process loads the modules the files before it compiled.
|
|
80
|
+
- The bounds stay: `jskit test`'s 10 minutes a file and 45 a run,
|
|
81
|
+
`browserTestConfig()`'s `actionTimeout` (15 s), `navigationTimeout` (30 s)
|
|
82
|
+
and `globalTimeout`. A bound in `test-time-bounds.json` rises only with a
|
|
83
|
+
measurement of the work's real need; a file that got slow is fixed instead.
|
|
84
|
+
|
|
85
|
+
### Prove
|
|
86
|
+
|
|
87
|
+
Run the whole suite before and after on the same machine with the same
|
|
88
|
+
`V64_TEST_CONCURRENCY`, and report the wall time, each preparation phase, the
|
|
89
|
+
slowest files and the test counts, which stay the same.
|
|
90
|
+
|
|
91
|
+
## Client speed
|
|
92
|
+
|
|
93
|
+
### Measure
|
|
94
|
+
|
|
95
|
+
- Build with `npm run build` and read Vite's report: every chunk with its
|
|
96
|
+
size and its gzip size. `dist/index.html` names the entry script and the
|
|
97
|
+
chunks it preloads (`<link rel="modulepreload">`): together they are the
|
|
98
|
+
JavaScript every page loads before it shows anything. Vite's warning about
|
|
99
|
+
a chunk over 500 kB is a finding to follow to its import, never a limit to
|
|
100
|
+
raise with `build.chunkSizeWarningLimit`.
|
|
101
|
+
- Serve that build and open each main screen with a cold cache. In a
|
|
102
|
+
Playwright spec, `page.on("request", ...)` counts the `/api` requests a
|
|
103
|
+
screen or an action makes; look for the same request twice, one request per
|
|
104
|
+
row, and requests made on a timer.
|
|
105
|
+
|
|
106
|
+
### Fix
|
|
107
|
+
|
|
108
|
+
- **Screens load with their routes.** A page under `src/pages` loads as its
|
|
109
|
+
own chunk when its route is first visited. A library one page uses is
|
|
110
|
+
imported by that page or a component it shows, never by `src/main.js`, a
|
|
111
|
+
client provider or a layout every page renders. A heavy component that a
|
|
112
|
+
page shows only sometimes loads with
|
|
113
|
+
`defineAsyncComponent(() => import("./HeavyChart.vue"))`.
|
|
114
|
+
- **Packages keep their screens out of every page.** Each client provider is
|
|
115
|
+
exported by a subpath of its own, and its file imports only what every page
|
|
116
|
+
needs ([Provider subpaths](/guide/framework/client-features#provider-subpaths)).
|
|
117
|
+
A provider without one, or a `./client` that declares `routeComponents` or
|
|
118
|
+
`clientRoutes` or uses `export *`, brings all of `./client` to every page.
|
|
119
|
+
On the accounts starter, loading users-web's provider through its subpath
|
|
120
|
+
instead of all of its `./client` took the JavaScript a page loads before it
|
|
121
|
+
starts from 1,302 KB to 778 KB.
|
|
122
|
+
- **One request for related records.** A list shows its related records with
|
|
123
|
+
`include` and the including contract's `includeFields`, in the same request,
|
|
124
|
+
never with a request per row; `fields[<type>]` narrows what an included
|
|
125
|
+
record carries ([Layer 2: the CRUD surface](/guide/framework/data-access#layer-2-the-crud-surface)).
|
|
126
|
+
A picker reads its selected values past the loaded page by id, all in one
|
|
127
|
+
request (`filter[id]`, which `useCrudListFilterLookups()` sends for a lookup
|
|
128
|
+
filter), and searches on the server with `q`
|
|
129
|
+
([Wire list search with the initial resource](/guide/framework/crud-operations#wire-list-search-with-the-initial-resource),
|
|
130
|
+
[Search on the server](/guide/framework/client-features#search-on-the-server)).
|
|
131
|
+
- **One read for the same data.** Read through http-web's composables
|
|
132
|
+
(`useList`, `useView` and the CRUD screens), which keep each read under its
|
|
133
|
+
query key, so components showing the same list with the same parameters
|
|
134
|
+
share one request, instead of a `fetch` of their own in each component.
|
|
135
|
+
- **Events, not polling.** A list or record refreshes on the realtime events
|
|
136
|
+
that change it: a read composable's `realtime` option or
|
|
137
|
+
`useRealtimeQueryInvalidation()` marks the matching reads stale and reads
|
|
138
|
+
again only those a mounted screen uses, at most twice a query for a burst of
|
|
139
|
+
events
|
|
140
|
+
([Realtime](/guide/app-extras/realtime#event-contract)). A `setInterval`
|
|
141
|
+
that refetches is a finding.
|
|
142
|
+
- **Render what is visible.** A long list reads pages and renders with pages
|
|
143
|
+
or `v-virtual-scroll`
|
|
144
|
+
([Screens](/guide/framework/sanity-checks#screens)).
|
|
145
|
+
|
|
146
|
+
### Prove
|
|
147
|
+
|
|
148
|
+
Report the entry chunk and its preloads (gzip) from the build before and
|
|
149
|
+
after, the requests each main screen and action makes, and the main actions'
|
|
150
|
+
time from click to result on the production build, cold and warm. Keep a
|
|
151
|
+
request count in the spec that reaches the screen, as a count, never as a
|
|
152
|
+
time.
|
|
153
|
+
|
|
154
|
+
## Server speed
|
|
155
|
+
|
|
156
|
+
### Measure
|
|
157
|
+
|
|
158
|
+
- Boot the server in a test as [Tests](/guide/framework/data-access#tests)
|
|
159
|
+
shows, seed a realistic size in `TEST_DB_NAME`, and time the main routes
|
|
160
|
+
over `app.inject`, the first request after boot and later ones.
|
|
161
|
+
`countQueries(knex, work)`, or `countRuntimeQueries(work)` for a booted
|
|
162
|
+
server, from `@jskit-ai/database-runtime/server/testDatabases`, gives the
|
|
163
|
+
statements, so you can tell database time from the rest.
|
|
164
|
+
- Start the server with `node --cpu-prof` to see where a slow route or a slow
|
|
165
|
+
start spends its computing time, in the `.cpuprofile` file it writes.
|
|
166
|
+
- After the app has been idle, list the server's child processes, timers and
|
|
167
|
+
connections, and the jobs still running.
|
|
168
|
+
|
|
169
|
+
### Fix
|
|
170
|
+
|
|
171
|
+
- **Do once what does not change.** A feature builds what does not change
|
|
172
|
+
between requests (a parsed configuration, a compiled schema, a client for an
|
|
173
|
+
outside service) in `setup()` and starts it in `boot()`, never per request
|
|
174
|
+
([Owned state](/guide/framework/typed-features#owned-state)).
|
|
175
|
+
- **Nothing runs without real use.** A process, worker or timer a feature
|
|
176
|
+
starts has its owner stop it in `shutdown()`
|
|
177
|
+
([Shutdown mirrors setup](/guide/framework/typed-features#shutdown-mirrors-setup)),
|
|
178
|
+
and one that serves only some requests starts on its first real use and
|
|
179
|
+
stops when idle. A periodic job's timer is `unref()`ed.
|
|
180
|
+
- **Work nobody waits for leaves the request.** Work over many rows or every
|
|
181
|
+
workspace runs as a background job with `systemScope`
|
|
182
|
+
([Background work](/guide/framework/data-access#background-work)).
|
|
183
|
+
- **Database time is the data pass's.** A count that grows with the rows, a
|
|
184
|
+
read narrowed in code, a write that reads its row back with
|
|
185
|
+
`returning: "record"` when it does not use it, and a missing index are
|
|
186
|
+
fixed as the [data pass](/guide/framework/data-pass) says.
|
|
187
|
+
|
|
188
|
+
### Prove
|
|
189
|
+
|
|
190
|
+
Report each main route's time before and after, with its statement count, at
|
|
191
|
+
the realistic size, the first after boot and later ones. Keep an
|
|
192
|
+
`expectFlatQueries()` test for each path whose count you changed.
|
|
193
|
+
|
|
194
|
+
Then run `npx jskit check` and `npm run verify`.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<!-- Generated by `npm run agent-docs:build` from `packages/agent-docs/site/guide/framework/ux-pass.md`. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
title: User experience pass
|
|
5
|
+
description: Where a JSKIT app decides how people find each task, what the next action is, what a new form starts with, where a save lands, what can be undone and which words people read, and how to walk each task before and after.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# User experience pass
|
|
9
|
+
|
|
10
|
+
A user experience pass makes the main things people do in an app short and
|
|
11
|
+
clear. Genesis's user experience pass skill (`genesis-ux-pass`) holds the
|
|
12
|
+
method: list the main tasks from the Blueprint, walk each one as a new and a
|
|
13
|
+
returning person, cut steps and decisions, make each task easy to find, word it
|
|
14
|
+
plainly, make mistakes cheap, and walk it again. This page says where each of
|
|
15
|
+
those lives in a JSKIT app. The rules it applies are already in
|
|
16
|
+
[Material 3](/guide/framework/material-3), [CRUD operations](/guide/framework/crud-operations),
|
|
17
|
+
[Record form actions](/guide/framework/crud-form-actions) and
|
|
18
|
+
[Translation](/guide/framework/translation).
|
|
19
|
+
|
|
20
|
+
## Where people find each task
|
|
21
|
+
|
|
22
|
+
- **Main tasks are top-level destinations:** a main-navigation placement
|
|
23
|
+
(`kind: "link"`, `target: "shell.primary-nav"`), one literal
|
|
24
|
+
`addPlacement({ ... })` each, whose `label` is the word people use. A task
|
|
25
|
+
people do daily does not belong under Settings or an overflow menu
|
|
26
|
+
([What an app declares](/guide/framework/material-3#what-an-app-declares)).
|
|
27
|
+
- **Every inner page opens from its link:** each record, form and sub-page
|
|
28
|
+
declares `jskit.parent` once, so a shared link or a bookmark opens it and Up
|
|
29
|
+
leads somewhere sensible. Up follows the trail, which restores filters, sort,
|
|
30
|
+
page, scroll and focus, so a person never starts a list over; never add a
|
|
31
|
+
Back of your own ([The model](/guide/framework/material-3#the-model)).
|
|
32
|
+
- **Context lives in the route:** a list's search, filters, tab and page stay
|
|
33
|
+
in the route when they must survive navigation or a shared link
|
|
34
|
+
([Adaptive layout](/guide/framework/material-3#adaptive-layout)).
|
|
35
|
+
- **Search finds what people remember:** `resource.searchSchema.q` names the
|
|
36
|
+
fields searched on the server; a Search box without it finds nothing
|
|
37
|
+
([Wire list search with the initial resource](/guide/framework/crud-operations#wire-list-search-with-the-initial-resource)).
|
|
38
|
+
Each filter chip opens its own control, and a lookup filter shows names
|
|
39
|
+
through `useCrudListFilterLookups()`, never ids.
|
|
40
|
+
- **A returning person lands in their workspace:** the Your workspaces landing
|
|
41
|
+
(`WorkspacesClientElement`) opens the last-used or the only workspace at
|
|
42
|
+
once, and stays on the list only when there is a choice to make or a pending
|
|
43
|
+
invitation.
|
|
44
|
+
|
|
45
|
+
## The next action
|
|
46
|
+
|
|
47
|
+
- **A list's New is its primary action:** `ShellPrimaryAction`, an extended
|
|
48
|
+
FAB on compact and medium widths and a filled bar button on expanded, with
|
|
49
|
+
`CrudListScreen`'s `createLabel` naming what it creates ("New invoice"); the
|
|
50
|
+
empty state offers the same action
|
|
51
|
+
([Lists, records and forms](/guide/framework/material-3#lists-records-and-forms)).
|
|
52
|
+
- **A record shows its next step:** the record's next workflow step is its one
|
|
53
|
+
filled button, in context; a row of mostly disabled actions makes people
|
|
54
|
+
guess. Edit sits in the bar, other actions in its overflow menu.
|
|
55
|
+
- **One tap opens a record:** a card or table row opens its record; row
|
|
56
|
+
actions are trailing icon buttons, never a "View" text button on every row.
|
|
57
|
+
|
|
58
|
+
## Forms start filled and finish somewhere useful
|
|
59
|
+
|
|
60
|
+
- **Defaults:** a `formFields` entry's `initialValue` is what a new record
|
|
61
|
+
starts with, and `useCrudAddEditScreen()`'s `createModel(fields)` computes
|
|
62
|
+
the whole starting model when it depends on the moment or the person, such
|
|
63
|
+
as today's date or the last choice made. A required field with one sensible
|
|
64
|
+
value should not start empty.
|
|
65
|
+
- **Save says what it saves:** `saveLabel` ("Save invoice"); an error appears
|
|
66
|
+
beside its field and the person's input stays
|
|
67
|
+
([Record form actions](/guide/framework/crud-form-actions)).
|
|
68
|
+
- **Where Save lands:** `useCrudAddEditScreen()`'s `saveSuccess` decides it,
|
|
69
|
+
by default the saved record, else the list; `navigateToView: false` with
|
|
70
|
+
`listUrlTemplate` returns to the list
|
|
71
|
+
([Save navigation](/guide/framework/crud-operations#save-navigation)).
|
|
72
|
+
Choose what the person does next, not what was easiest to wire. For entering
|
|
73
|
+
several in a row, offer Save and add another through
|
|
74
|
+
`addEditOptions.onSaveSuccess`.
|
|
75
|
+
- **Leaving a form:** a custom form finishes through `useShellNavigation()`:
|
|
76
|
+
`finish(target)` after Save and `finish()` for Cancel, back to where it was
|
|
77
|
+
opened; the bar's X is its Cancel
|
|
78
|
+
([What an app declares](/guide/framework/material-3#what-an-app-declares)).
|
|
79
|
+
|
|
80
|
+
## Mistakes cost little
|
|
81
|
+
|
|
82
|
+
- **Deletion confirms by name:** `CrudDeleteAction` asks before deleting and
|
|
83
|
+
returns to the list afterwards, without a "Record not found" detour
|
|
84
|
+
([Record deletion](/guide/framework/crud-operations#record-deletion)).
|
|
85
|
+
Keep it: a delete cannot be undone.
|
|
86
|
+
- **Undo for what can be undone:** archiving, moving or marking done acts at
|
|
87
|
+
once and offers Undo in the snackbar:
|
|
88
|
+
`useShellWebErrorRuntime().report({ intent: "action-feedback", severity: "success", message, action: { label, handler } })`
|
|
89
|
+
from `@jskit-ai/shell-web/client/error`, whose handler reverses the command.
|
|
90
|
+
A confirmation dialog people see often is one they click through.
|
|
91
|
+
|
|
92
|
+
## Words people read
|
|
93
|
+
|
|
94
|
+
- **The app's text is the app's:** labels, titles (`jskit.title`, or
|
|
95
|
+
`useShellPageTitle()` for a record's name), button text and messages come
|
|
96
|
+
through `useJskitText()` and the app's own message keys, so a renamed thing
|
|
97
|
+
changes everywhere at once and stays translatable; a placement `label` may
|
|
98
|
+
be a key ([Placement labels](/guide/framework/translation#placement-labels)).
|
|
99
|
+
- **One name for each thing:** search the app's `locales/en.json` and the
|
|
100
|
+
placements for every name of a thing, and keep one. Copied starter files are
|
|
101
|
+
app code, so their words are the app's to change
|
|
102
|
+
([What the app translates itself](/guide/framework/translation#what-the-app-translates-itself)).
|
|
103
|
+
- **Names, not ids:** lists, chips and titles show names and formatted
|
|
104
|
+
figures through `formatDate` and `formatNumber`
|
|
105
|
+
([Dates and numbers](/guide/framework/translation#dates-and-numbers)).
|
|
106
|
+
|
|
107
|
+
## Walk each task
|
|
108
|
+
|
|
109
|
+
- Walk each main task in the host's managed Preview, or with Playwright as
|
|
110
|
+
[UI operations](/guide/framework/ui-operations#browser-verification) describes,
|
|
111
|
+
as a new person on a fresh `BROWSER_TEST_DB_NAME` fixture and as a returning
|
|
112
|
+
one with hundreds of rows; count the steps and decisions before and after.
|
|
113
|
+
- Lock each changed path into the Playwright spec that already reaches that
|
|
114
|
+
task, with `getByRole(role, { name })` naming what the person reads, and see
|
|
115
|
+
it fail once on the old path. Take screenshots at 390 and 1280 wide as the
|
|
116
|
+
[UI pass](/guide/framework/ui-pass) shows, then run `npm run verify`.
|
package/guide/agent/index.md
CHANGED
|
@@ -11,6 +11,8 @@ apply or adapt. It does not prescribe an agent host or project orchestrator.
|
|
|
11
11
|
- [Quickstart](/guide/app-setup/quickstart)
|
|
12
12
|
- [Application foundations](/guide/app-setup/initial-scaffolding)
|
|
13
13
|
- [Upgrade JSKIT](/guide/app-setup/upgrading-jskit)
|
|
14
|
+
- [Package an app with Nix](/guide/app-setup/package-with-nix): for a host that
|
|
15
|
+
runs apps only as Nix packages, built with no network access
|
|
14
16
|
- [Move an app to the Material 3 defaults](/guide/app-setup/material-3-migration)
|
|
15
17
|
- [Migrate an existing application](/guide/app-setup/existing-application-migration)
|
|
16
18
|
- [A more interesting shell](/guide/app-setup/a-more-interesting-shell)
|
|
@@ -43,6 +45,15 @@ apply or adapt. It does not prescribe an agent host or project orchestrator.
|
|
|
43
45
|
refused states, edge cases and accessibility, checked by using the app
|
|
44
46
|
- [Data pass](/guide/framework/data-pass): query counts, constraints,
|
|
45
47
|
migrations and indexes at realistic sizes, on PostgreSQL and MySQL
|
|
48
|
+
- [Security pass](/guide/framework/security-pass): route permissions,
|
|
49
|
+
workspace scoping, rate limits, sessions, the first account and production
|
|
50
|
+
settings, each refusal tried
|
|
51
|
+
- [User experience pass](/guide/framework/ux-pass): navigation, the next
|
|
52
|
+
action, form defaults, where a save lands, undo and the words people read,
|
|
53
|
+
each main task walked before and after
|
|
54
|
+
- [Speed pass](/guide/framework/speed-pass): test suite time, parallel files and
|
|
55
|
+
preparation once per run, first-load chunks, requests per screen and route
|
|
56
|
+
times, each measured before and after
|
|
46
57
|
- [Sanity checks](/guide/framework/sanity-checks): JSKIT's own pitfalls, and
|
|
47
58
|
the JSKIT calls that check data access, tests, a refactor, a screen or a
|
|
48
59
|
deployment before calling it done
|
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@local/main": "0.1.0",
|
|
36
36
|
"@fastify/static": "^10.1.3",
|
|
37
37
|
"@jskit-ai/kernel": "0.2.26",
|
|
38
|
-
"@jskit-ai/material-web": "0.1.
|
|
38
|
+
"@jskit-ai/material-web": "0.1.8",
|
|
39
39
|
"@tanstack/vue-query": "^5.101.0",
|
|
40
40
|
"fastify": "^5.12.7",
|
|
41
41
|
"pino": "^10.3.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@jskit-ai/config-eslint": "0.1.252",
|
|
53
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
53
|
+
"@jskit-ai/jskit-catalog": "0.2.81",
|
|
54
54
|
"@playwright/test": "1.61.1",
|
|
55
55
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
56
56
|
"eslint": "^10.8.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@local/main": "0.1.0",
|
|
36
36
|
"@fastify/static": "^10.1.3",
|
|
37
37
|
"@jskit-ai/kernel": "0.2.26",
|
|
38
|
-
"@jskit-ai/material-web": "0.1.
|
|
38
|
+
"@jskit-ai/material-web": "0.1.8",
|
|
39
39
|
"@tanstack/vue-query": "^5.101.0",
|
|
40
40
|
"fastify": "^5.12.7",
|
|
41
41
|
"pino": "^10.3.1",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"vue-router": "^5.3.1",
|
|
46
46
|
"vuetify": "^4.3.0",
|
|
47
47
|
"@jskit-ai/http-runtime": "0.2.26",
|
|
48
|
-
"@jskit-ai/shell-web": "0.2.
|
|
48
|
+
"@jskit-ai/shell-web": "0.2.37",
|
|
49
49
|
"@fastify/fast-json-stringify-compiler": "^5.1.0",
|
|
50
50
|
"@vue/devtools-api": "^8.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@jskit-ai/config-eslint": "0.1.252",
|
|
54
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
54
|
+
"@jskit-ai/jskit-catalog": "0.2.81",
|
|
55
55
|
"@playwright/test": "1.61.1",
|
|
56
56
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
57
57
|
"eslint": "^10.8.0",
|