Compare commits

..

10 Commits

Author SHA1 Message Date
renovate-bot f409298844 Update dependency lucide-static to v1.82.0
CI / full-gate (push) Successful in 4m36s
Mirror / github-mirror (push) Successful in 2s
Release / retag-image (push) Successful in 17s
Release / publish-overview (push) Successful in 3s
Release-Bump: minor
2026-11-28 04:18:52 +00:00
renovate-bot 8bec7bd816 Update dependency @mdn/browser-compat-data to v8.1.11
CI / full-gate (push) Successful in 4m36s
Mirror / github-mirror (push) Successful in 4s
2026-11-27 04:18:12 +00:00
lilleman 5e8825b59c Finish item 74 in the plan
CI / full-gate (push) Successful in 6s
Mirror / github-mirror (push) Successful in 4s
2026-11-26 08:57:45 +01:00
lilleman d18af1d108 Record the comprehension check: filing-tabs at f3c41e4 scores 6.88 overall
CI / full-gate (push) Successful in 15s
2026-11-26 08:57:32 +01:00
lilleman f3c41e4d39 File item 74: indent the source with hard tabs
CI / full-gate (push) Successful in 5s
2026-11-26 08:37:44 +01:00
renovate-bot 410478dbb2 Update dependency @types/node to v26.6.11
CI / full-gate (push) Successful in 4m38s
Mirror / github-mirror (push) Successful in 5s
2026-11-26 04:18:13 +00:00
renovate-bot 1c5af2a28b Update dependency @types/node to v26.6.7
CI / full-gate (push) Successful in 4m26s
Mirror / github-mirror (push) Successful in 5s
2026-11-25 04:18:01 +00:00
renovate-bot 1d4d3bfbd5 Update dependency lucide-static to v1.79.0
CI / full-gate (push) Successful in 3m49s
Mirror / github-mirror (push) Successful in 3s
Release / retag-image (push) Successful in 17s
Release / publish-overview (push) Successful in 3s
Release-Bump: minor
2026-11-24 06:20:40 +00:00
renovate-bot 35b13f9b98 Update renovate/renovate Docker tag to v44.257.9
CI / full-gate (push) Successful in 5m8s
Mirror / github-mirror (push) Successful in 4s
2026-11-23 04:18:21 +00:00
renovate-bot 49ea54af11 Update postgres Docker tag to v18.7
CI / full-gate (push) Successful in 4m34s
Mirror / github-mirror (push) Successful in 2s
Release / retag-image (push) Successful in 15s
Release / publish-overview (push) Successful in 2s
Release-Bump: minor
2026-11-22 04:18:24 +00:00
9 changed files with 88 additions and 51 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
-e RENOVATE_PLATFORM=gitea \
-e RENOVATE_REPOSITORIES=${{ github.repository }} \
-e RENOVATE_TOKEN \
renovate/renovate:44.225.1
renovate/renovate:44.257.9
# After the renovate job, cut ONE tag covering the renovate-bot commits merged to main since the
# last tag (batch per run). Targets origin/main — the real post-merge tip; the checkout SHA is the
+1 -1
View File
@@ -50,7 +50,7 @@ services:
# A plugin connects as its own role from inside web. Dev defaults below; supply
# POSTGRES_USER/PASSWORD via env in production.
postgres:
image: postgres:18.6-alpine3.23
image: postgres:18.7-alpine3.23
environment:
POSTGRES_USER: ${POSTGRES_USER:-ory}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ory}
+37
View File
@@ -636,3 +636,40 @@ Inherited architect, would restructure first:
- Navigation, Shape, Overall: `src/auth/bootstrap.ts:1` `src/auth`: 20 files over four concerns, and `bootstrap.ts` belongs to none of them
- Shape: `public/css/styles.css:81` dark and light palette mapping: the same token list written three times
- Locality: `src/http/app.ts:202` `Host`: restates the options and locals a third time, so a new capability touches several files
## 2026-11-26T07:57:19Z, filing-tabs at f3c41e4
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7.5 | 7 | 7.5 | 6.5 | 7 |
| Mid A | 7.5 | 6.5 | 7 | 6 | 6.5 |
| Maintainability senior | 7 | 6 | 7 | 6 | 7 |
| Inherited architect | 7.5 | 6.5 | 6.5 | 7 | 7 |
| Mean | 7.38 | 6.50 | 7.00 | 6.38 | 6.88 |
Junior A, hardest first:
- Shape, Overall: `src/test-tooling/stylesheet-floor.ts:90` `atRule`: regex parsing of CSS where `positive`, `parenGroups` and `keepGroup` recurse over blanked offsets
- Self-sufficiency: `src/auth/routes.ts:58` `flowFailure`: five outcomes keyed on Kratos behaviour that has to be known from outside
- Locality: `src/http/app.ts:262` `prepareRequest`: lazy chrome must not be spread, and each page-emitting stage repeats `csrf.setCookie()`
- Locality: `src/server.ts:25` `delete process.env["PLUGIN_DB_SECRET"]`: an order rule duplicated in `src/auth/bootstrap.ts:140`
Mid A, hardest first:
- Locality, Overall: `examples/plugins/auth-admin/admin-groups.ts:438` `withEmptiedGroups`: a worklist walk, a deletion map and a cycle guard held at once
- Locality: `examples/plugins/auth-admin/admin-groups.ts:274` `lostToSelf`: the self-lockout rule is spread over four helpers and three call sites
- Self-sufficiency: `src/auth/routes.ts:58` `flowFailure`: Kratos status meanings are unexplained
- Locality: `src/ui/chrome.ts:160` `markCurrent`: mutates nodes in place and relies on `composeNav` returning fresh objects
Maintainability senior, hardest first:
- Shape, Overall: `src/test-tooling/stylesheet-floor.ts:74` `walk`: five things held at once, and nothing says what it deliberately misses
- Self-sufficiency: `src/auth/routes.ts:58` `flowFailure`: branch order matters and the reasons sit in Kratos behaviour
- Locality: `src/ui/nav.ts:122` `toRenderNode`: labels are translated twice and rely on an unknown key echoing itself
- Locality: `views/partials/data-table.ejs:74` include: EJS locals leak from page to partial, defended by explicit null options
Inherited architect, would restructure first:
- Navigation, Shape: `src/auth/bootstrap.ts:1` `src/auth`: 20 flat files over five concerns, and `bootstrap.ts` belongs to none of them
- Locality: `src/http/app.ts:67` `createApp`: a 130-line closure and a wide `Host` object in a 30-import hub
- Shape: `plugin-api/index.ts:2` `plugin-api`: the name covers three things, and the contract types live in four directories
+4 -4
View File
@@ -7,7 +7,7 @@
"name": "plainpages-e2e",
"devDependencies": {
"@playwright/test": "1.65.1",
"@types/node": "26.6.6",
"@types/node": "26.6.11",
"typescript": "7.0.2"
}
},
@@ -28,9 +28,9 @@
}
},
"node_modules/@types/node": {
"version": "26.6.6",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
"integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
"version": "26.6.11",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.11.tgz",
"integrity": "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ==",
"dev": true,
"license": "MIT",
"dependencies": {
+1 -1
View File
@@ -9,7 +9,7 @@
},
"devDependencies": {
"@playwright/test": "1.65.1",
"@types/node": "26.6.6",
"@types/node": "26.6.11",
"typescript": "7.0.2"
}
}
+12 -12
View File
@@ -8,13 +8,13 @@
"dependencies": {
"@larvit/log": "2.6.1",
"ejs": "7.0.2",
"lucide-static": "1.77.0",
"lucide-static": "1.82.0",
"postgres": "4.1.1"
},
"devDependencies": {
"@mdn/browser-compat-data": "8.1.10",
"@mdn/browser-compat-data": "8.1.11",
"@types/ejs": "3.1.5",
"@types/node": "26.6.6",
"@types/node": "26.6.11",
"acorn": "8.19.0",
"typescript": "7.0.2"
},
@@ -32,9 +32,9 @@
}
},
"node_modules/@mdn/browser-compat-data": {
"version": "8.1.10",
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.10.tgz",
"integrity": "sha512-hz+rLSYXWOcBI8OF+xMzVpA1vxbtYbYSPLPiw/IhKMTiKL7L5+YuyGDPr+QKhnRsgYERxvi4MYc0J74JTakD7A==",
"version": "8.1.11",
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.11.tgz",
"integrity": "sha512-EMKM/sZetGWgQbposvwOjUeod+pIP1splOcORycjnOi/jhd3D1YIpdyhohaLgkPELyv9XpqpztRMWEaUvMvpkw==",
"dev": true,
"license": "CC0-1.0"
},
@@ -46,9 +46,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "26.6.6",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
"integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
"version": "26.6.11",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.11.tgz",
"integrity": "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -421,9 +421,9 @@
}
},
"node_modules/lucide-static": {
"version": "1.77.0",
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.77.0.tgz",
"integrity": "sha512-v+BzpQrjlwDRWPDzzAu5IFhOkI6jVKb91fsjw1ZSS7Tsb2YvRX5olRN0DXGW99LF2wV4fycuTf5aPOMC62ZW0g==",
"version": "1.82.0",
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.82.0.tgz",
"integrity": "sha512-Xzzpfkx06hHXjXoLWOk1RWg52OhfaRcIOIK72hCbRty8Jq29WQUV4J4Z9GvjAKDoPxGf7tlcqBbJX4qrr1U8+w==",
"license": "ISC"
},
"node_modules/postgres": {
+3 -3
View File
@@ -18,13 +18,13 @@
"dependencies": {
"@larvit/log": "2.6.1",
"ejs": "7.0.2",
"lucide-static": "1.77.0",
"lucide-static": "1.82.0",
"postgres": "4.1.1"
},
"devDependencies": {
"@mdn/browser-compat-data": "8.1.10",
"@mdn/browser-compat-data": "8.1.11",
"@types/ejs": "3.1.5",
"@types/node": "26.6.6",
"@types/node": "26.6.11",
"acorn": "8.19.0",
"typescript": "7.0.2"
}
+1 -1
View File
@@ -54,7 +54,7 @@ services:
restart: "on-failure:5"
postgres:
image: postgres:18.6-alpine3.23
image: postgres:18.7-alpine3.23
environment:
POSTGRES_DB: ory
POSTGRES_PASSWORD: ory
+28 -28
View File
@@ -6,16 +6,16 @@
`Bar = 1`
`Next ID = 74`
`Next ID = 75`
## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 67 | 0.6.0 | | | **Group `src/auth`'s modules into one subfolder per concern, with `bootstrap.ts` staying at `src/auth/bootstrap.ts`.** | 3 | 1 | 2 | 4 | 6 | code health by 4 | 4.0 |
| 14 | 0.6.0 | | | **Drop a double-clicked duplicate submit, with no client-side JavaScript.** | 4 | 2 | 3 | 7 | 7 | 2 by 7, 1 by 4 | 1.4 |
| 67 | 0.6.0 | | | **Group `src/auth`'s modules into one subfolder per concern, with `bootstrap.ts` staying at `src/auth/bootstrap.ts`.** | 3 | 1 | 2 | 4 | 6 | code health by 4 | 1.0 |
| 19 | 0.7.0 | | question | **Run the documented Docker commands on macOS and fix whatever misbehaves.** | 2 | 2 | 1 | 3 | 3 | 1 by 3 | 3.3 |
| 73 | 0.7.0 | | owner | **Reach the comprehension floor: make the request pipeline in `src/http/app.ts` and the locale and EJS-locals plumbing readable one unit at a time, so every dimension mean reaches 7.0.** | 3 | 1 | 2 | 4 | 7 | code health by 7 | 0.9 |
| 73 | 0.7.0 | | owner | **Reach the comprehension floor: make the request pipeline in `src/http/app.ts` and the locale and EJS-locals plumbing readable one unit at a time, so every dimension mean reaches 7.0.** | 3 | 1 | 2 | 4 | 7 | code health by 7 | 3.7 |
## Renamed
@@ -24,24 +24,6 @@
## Details
### 14. Drop a double-clicked duplicate submit, with no client-side JavaScript.
A second identical POST is expected from a non-technical user, and today creates two
users, mints two recovery codes, or registers two OAuth2 clients. It must not break a legitimately
repeatable action. Sketch: a CSS-only affordance so the second click has nothing to hit, plus the
host recognising a duplicate (same session, route and payload within a short window), logging and
dropping it. Open: what identifies "the same submission" (a one-time token minted into each form
beats hashing the payload), the window, where the record lives given the host is stateless, and how
a plugin declares a route repeatable.
Touches:
- `src/http/app.ts`: `answerPluginRoute`, `answerBuiltinRoute`, `prepareRequest`, `requestCsrf`
- `src/plugin-host/plugin.ts`: `Route` (small)
- `src/auth/csrf.ts`
- `public/css/styles.css`: lines 323-340 (small)
- `README.md`: `### Routes & handlers`
### 67. Group `src/auth`'s modules into one subfolder per concern, with `bootstrap.ts` staying at `src/auth/bootstrap.ts`.
`src/auth` holds 19 modules over several concerns: the per-request session path (`jwt*`, `jwks`,
@@ -117,6 +99,24 @@ Touches:
- `package.json`: lines 14-14 (small)
- `compose.yml`: lines 130-130 (small), lines 161-161 (small)
### 14. Drop a double-clicked duplicate submit, with no client-side JavaScript.
A second identical POST is expected from a non-technical user, and today creates two
users, mints two recovery codes, or registers two OAuth2 clients. It must not break a legitimately
repeatable action. Sketch: a CSS-only affordance so the second click has nothing to hit, plus the
host recognising a duplicate (same session, route and payload within a short window), logging and
dropping it. Open: what identifies "the same submission" (a one-time token minted into each form
beats hashing the payload), the window, where the record lives given the host is stateless, and how
a plugin declares a route repeatable.
Touches:
- `src/http/app.ts`: `answerPluginRoute`, `answerBuiltinRoute`, `prepareRequest`, `requestCsrf`
- `src/plugin-host/plugin.ts`: `Route` (small)
- `src/auth/csrf.ts`
- `public/css/styles.css`: lines 323-340 (small)
- `README.md`: `### Routes & handlers`
### 19. Run the documented Docker commands on macOS and fix whatever misbehaves.
Needs a Mac. Two suspects, both from `--user "$(id -u):$(id -g)"`: a macOS `id -g` is `20`, which is
@@ -124,16 +124,16 @@ Needs a Mac. Two suspects, both from `--user "$(id -u):$(id -g)"`: a macOS `id -
### 73. Reach the comprehension floor: make the request pipeline in `src/http/app.ts` and the locale and EJS-locals plumbing readable one unit at a time, so every dimension mean reaches 7.0.
The scoring run on PR #247 at 7e8bdd9 gave means Navigation 7.50, Locality 6.63, Shape 6.88, Self-sufficiency 6.88, Overall 7.13. Locality is the lowest. Item 67 covers the `src/auth` folder, so this item leaves it out.
The scoring run on branch filing-tabs at f3c41e4 gave means Navigation 7.38, Locality 6.50, Shape 7.00, Self-sufficiency 6.38, Overall 6.88. Self-sufficiency is the lowest, then Locality. Item 67 covers the `src/auth` folder, so this item leaves it out.
Places the seats named, to make easier to read:
- `src/http/app.ts:67` `createApp`: about 130 lines of closures that refer to each other, and `switchBase` reads `builtinRoutes`, which is declared later; all four seats named it.
- `src/http/app.ts:263` `prepareRequest` and `src/http/context.ts:97` `buildContext`: chrome is memoized lazily in both, and an untyped `shared` bag feeds the context, so a new context field touches about five declarations.
- `src/auth/routes.ts:58` `flowFailure`: Kratos statuses and branch order whose reasons sit outside the file; three seats named it.
- `src/http/app.ts:67` `createApp` and `src/http/app.ts:263` `prepareRequest`: a 130-line closure, a lazy chrome that spreading the context triggers, and a `csrf.setCookie()` that each page-emitting stage repeats by hand.
- `src/http/app.ts:202` `Host`: restates the options and locals a third time.
- `src/i18n/locale.ts:81` `chosenLocale`: recovers "was a locale requested" from `localeHref("/") === "/"`, so its name hides the mechanism.
- `src/ui/nav.ts:122` `toRenderNode` and `src/ui/chrome.ts:160` `markCurrent`: labels are translated twice, and nodes are mutated in place on the strength of a comment.
- `views/partials/data-table.ejs:74`, `views/partials/menu.ejs:22` and `views/partials/filter-bar.ejs:26`: EJS locals leak into includes, defended by explicit null options.
- `src/server.ts:25` `delete process.env["PLUGIN_DB_SECRET"]`: a load-bearing order rule in a top-level script.
- `public/css/styles.css:81`: the dark and light token mapping is written three times.
- `src/auth/routes.ts:58` `flowFailure`: Kratos statuses that no comment in the file explains.
- `src/server.ts:25` `delete process.env["PLUGIN_DB_SECRET"]`: a load-bearing order rule, repeated in `src/auth/bootstrap.ts:140`.
- `src/test-tooling/stylesheet-floor.ts:74` `walk`: a regex CSS parser that doesn't say what it deliberately misses.
- `examples/plugins/auth-admin/admin-groups.ts:438` `withEmptiedGroups` and `:274` `lostToSelf`: the group-emptying walk and the self-lockout rule, each spread over several helpers.
Aim: a reader of one unit should not need the other units open beside it. Re-run the scoring run when it ships.