Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 55105d283f | |||
| 3ed80b0b0c | |||
| 945a9dba4d | |||
| f409298844 | |||
| 8bec7bd816 | |||
| 5e8825b59c | |||
| d18af1d108 | |||
| f3c41e4d39 | |||
| 410478dbb2 | |||
| 1c5af2a28b | |||
| 1d4d3bfbd5 | |||
| 35b13f9b98 | |||
| 49ea54af11 | |||
| b353e14d97 | |||
| e72b420b7b |
@@ -19,4 +19,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker run --rm -v "$PWD:/repo" -w /repo \
|
docker run --rm -v "$PWD:/repo" -w /repo \
|
||||||
-e REGISTRY_TOKEN -e REGISTRY_USER -e REPO_TOKEN -e REPOSITORY -e SERVER_URL \
|
-e REGISTRY_TOKEN -e REGISTRY_USER -e REPO_TOKEN -e REPOSITORY -e SERVER_URL \
|
||||||
node:26.13.1-alpine3.24 node registry-cleanup/cleanup.ts
|
node:26.14.0-alpine3.24 node registry-cleanup/cleanup.ts
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
GIT_TAG: ${{ github.ref_name }}
|
GIT_TAG: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
docker run --rm -v "$PWD:/repo" -w /repo node:26.13.1-alpine3.24 \
|
docker run --rm -v "$PWD:/repo" -w /repo node:26.14.0-alpine3.24 \
|
||||||
node release-tooling/contract-version.ts "$GIT_TAG" src/plugin-host/plugin.ts
|
node release-tooling/contract-version.ts "$GIT_TAG" src/plugin-host/plugin.ts
|
||||||
- name: Promote the commit-hash image to semver + latest
|
- name: Promote the commit-hash image to semver + latest
|
||||||
env:
|
env:
|
||||||
@@ -100,9 +100,9 @@ jobs:
|
|||||||
VERSION=${INPUT_VERSION:-${GIT_TAG#v}}
|
VERSION=${INPUT_VERSION:-${GIT_TAG#v}}
|
||||||
VERSION=${VERSION#v}
|
VERSION=${VERSION#v}
|
||||||
# An empty dispatch input falls back to the branch name, so gate this like a tag.
|
# An empty dispatch input falls back to the branch name, so gate this like a tag.
|
||||||
docker run --rm -v "$PWD:/repo" -w /repo node:26.13.1-alpine3.24 \
|
docker run --rm -v "$PWD:/repo" -w /repo node:26.14.0-alpine3.24 \
|
||||||
node release-tooling/contract-version.ts "$VERSION" src/plugin-host/plugin.ts
|
node release-tooling/contract-version.ts "$VERSION" src/plugin-host/plugin.ts
|
||||||
docker run --rm -v "$PWD:/repo" -w /repo \
|
docker run --rm -v "$PWD:/repo" -w /repo \
|
||||||
-e DOCKERHUB_REPO -e DOCKERHUB_TOKEN -e DOCKERHUB_USER \
|
-e DOCKERHUB_REPO -e DOCKERHUB_TOKEN -e DOCKERHUB_USER \
|
||||||
node:26.13.1-alpine3.24 \
|
node:26.14.0-alpine3.24 \
|
||||||
node release-tooling/dockerhub-overview.ts "$VERSION"
|
node release-tooling/dockerhub-overview.ts "$VERSION"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
-e RENOVATE_PLATFORM=gitea \
|
-e RENOVATE_PLATFORM=gitea \
|
||||||
-e RENOVATE_REPOSITORIES=${{ github.repository }} \
|
-e RENOVATE_REPOSITORIES=${{ github.repository }} \
|
||||||
-e RENOVATE_TOKEN \
|
-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
|
# 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
|
# last tag (batch per run). Targets origin/main — the real post-merge tip; the checkout SHA is the
|
||||||
@@ -60,11 +60,11 @@ jobs:
|
|||||||
if [ -z "$BUMPS" ]; then
|
if [ -z "$BUMPS" ]; then
|
||||||
echo "Renovate commits since ${LATEST}, but none carry Release-Bump — nothing reached a running Plainpages; skipping"; exit 0
|
echo "Renovate commits since ${LATEST}, but none carry Release-Bump — nothing reached a running Plainpages; skipping"; exit 0
|
||||||
fi
|
fi
|
||||||
NEXT=$(docker run --rm -v "$PWD:/repo" -w /repo node:26.13.1-alpine3.24 \
|
NEXT=$(docker run --rm -v "$PWD:/repo" -w /repo node:26.14.0-alpine3.24 \
|
||||||
node release-tooling/next-version.ts "$LATEST" $BUMPS)
|
node release-tooling/next-version.ts "$LATEST" $BUMPS)
|
||||||
# Read the constant off origin/main, not the checkout, which lags the merges this run made.
|
# Read the constant off origin/main, not the checkout, which lags the merges this run made.
|
||||||
git show origin/main:src/plugin-host/plugin.ts \
|
git show origin/main:src/plugin-host/plugin.ts \
|
||||||
| docker run -i --rm -v "$PWD:/repo" -w /repo node:26.13.1-alpine3.24 \
|
| docker run -i --rm -v "$PWD:/repo" -w /repo node:26.14.0-alpine3.24 \
|
||||||
node release-tooling/contract-version.ts "$NEXT" -
|
node release-tooling/contract-version.ts "$NEXT" -
|
||||||
echo "Releasing $LATEST -> $NEXT"
|
echo "Releasing $LATEST -> $NEXT"
|
||||||
git tag "$NEXT" origin/main
|
git tag "$NEXT" origin/main
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Node 24 runs TypeScript directly (type stripping) — no build step. Pinned exact tag.
|
# Node 24 runs TypeScript directly (type stripping) — no build step. Pinned exact tag.
|
||||||
FROM node:26.13.1-alpine3.24
|
FROM node:26.14.0-alpine3.24
|
||||||
|
|
||||||
# Above WORKDIR so dev's `.:/app` bind mount can't shadow them; a volume at /app/node_modules
|
# Above WORKDIR so dev's `.:/app` bind mount can't shadow them; a volume at /app/node_modules
|
||||||
# instead leaves a root-owned dir in the checkout (the daemon creates mount destinations as root).
|
# instead leaves a root-owned dir in the checkout (the daemon creates mount destinations as root).
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ services:
|
|||||||
# backs it (PLUGIN_SETTING_SCHEDULING_UPSTREAM above points here). Stand-in for the customer's real service —
|
# backs it (PLUGIN_SETTING_SCHEDULING_UPSTREAM above points here). Stand-in for the customer's real service —
|
||||||
# stdlib-only, in-memory, no auth. Prod points PLUGIN_SETTING_SCHEDULING_UPSTREAM at the real backend instead.
|
# stdlib-only, in-memory, no auth. Prod points PLUGIN_SETTING_SCHEDULING_UPSTREAM at the real backend instead.
|
||||||
shifts-upstream:
|
shifts-upstream:
|
||||||
image: node:26.13.1-alpine3.24
|
image: node:26.14.0-alpine3.24
|
||||||
command: node /srv/server.ts
|
command: node /srv/server.ts
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ services:
|
|||||||
# A plugin connects as its own role from inside web. Dev defaults below; supply
|
# A plugin connects as its own role from inside web. Dev defaults below; supply
|
||||||
# POSTGRES_USER/PASSWORD via env in production.
|
# POSTGRES_USER/PASSWORD via env in production.
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:18.6-alpine3.23
|
image: postgres:18.7-alpine3.23
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${POSTGRES_USER:-ory}
|
POSTGRES_USER: ${POSTGRES_USER:-ory}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ory}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ory}
|
||||||
|
|||||||
@@ -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
|
- 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
|
- 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
|
- 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
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ services:
|
|||||||
|
|
||||||
# The reference plugin's upstream (examples/shifts-upstream) so /scheduling/shifts shows real rows.
|
# The reference plugin's upstream (examples/shifts-upstream) so /scheduling/shifts shows real rows.
|
||||||
shifts-upstream:
|
shifts-upstream:
|
||||||
image: node:26.13.1-alpine3.24
|
image: node:26.14.0-alpine3.24
|
||||||
command: ["node", "/server.ts"]
|
command: ["node", "/server.ts"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./examples/shifts-upstream/server.ts:/server.ts:ro
|
- ./examples/shifts-upstream/server.ts:/server.ts:ro
|
||||||
@@ -66,7 +66,7 @@ services:
|
|||||||
# Mock OIDC provider for the SSO login test — stdlib Node, auto-approves, signs an id_token Kratos
|
# Mock OIDC provider for the SSO login test — stdlib Node, auto-approves, signs an id_token Kratos
|
||||||
# verifies via its jwks. Reachable as the same host (mock-oidc:9000) by both the browser and Kratos.
|
# verifies via its jwks. Reachable as the same host (mock-oidc:9000) by both the browser and Kratos.
|
||||||
mock-oidc:
|
mock-oidc:
|
||||||
image: node:26.13.1-alpine3.24
|
image: node:26.14.0-alpine3.24
|
||||||
command: ["node", "/mock-oidc.ts"]
|
command: ["node", "/mock-oidc.ts"]
|
||||||
environment:
|
environment:
|
||||||
ISSUER: http://mock-oidc:9000
|
ISSUER: http://mock-oidc:9000
|
||||||
@@ -92,7 +92,7 @@ services:
|
|||||||
|
|
||||||
# Same-origin gateway: Kratos-owned paths → kratos, everything else → web (e2e-tests/proxy.ts).
|
# Same-origin gateway: Kratos-owned paths → kratos, everything else → web (e2e-tests/proxy.ts).
|
||||||
proxy:
|
proxy:
|
||||||
image: node:26.13.1-alpine3.24
|
image: node:26.14.0-alpine3.24
|
||||||
command: ["node", "/proxy.ts"]
|
command: ["node", "/proxy.ts"]
|
||||||
depends_on:
|
depends_on:
|
||||||
web:
|
web:
|
||||||
|
|||||||
Generated
+4
-4
@@ -7,7 +7,7 @@
|
|||||||
"name": "plainpages-e2e",
|
"name": "plainpages-e2e",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "1.65.1",
|
"@playwright/test": "1.65.1",
|
||||||
"@types/node": "26.6.6",
|
"@types/node": "26.6.11",
|
||||||
"typescript": "7.0.2"
|
"typescript": "7.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -28,9 +28,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "26.6.6",
|
"version": "26.6.11",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.11.tgz",
|
||||||
"integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
|
"integrity": "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@playwright/test": "1.65.1",
|
"@playwright/test": "1.65.1",
|
||||||
"@types/node": "26.6.6",
|
"@types/node": "26.6.11",
|
||||||
"typescript": "7.0.2"
|
"typescript": "7.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+12
-12
@@ -8,13 +8,13 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@larvit/log": "2.6.1",
|
"@larvit/log": "2.6.1",
|
||||||
"ejs": "7.0.2",
|
"ejs": "7.0.2",
|
||||||
"lucide-static": "1.75.0",
|
"lucide-static": "1.84.0",
|
||||||
"postgres": "4.1.1"
|
"postgres": "4.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mdn/browser-compat-data": "8.1.9",
|
"@mdn/browser-compat-data": "8.1.11",
|
||||||
"@types/ejs": "3.1.5",
|
"@types/ejs": "3.1.5",
|
||||||
"@types/node": "26.6.6",
|
"@types/node": "26.6.11",
|
||||||
"acorn": "8.19.0",
|
"acorn": "8.19.0",
|
||||||
"typescript": "7.0.2"
|
"typescript": "7.0.2"
|
||||||
},
|
},
|
||||||
@@ -32,9 +32,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mdn/browser-compat-data": {
|
"node_modules/@mdn/browser-compat-data": {
|
||||||
"version": "8.1.9",
|
"version": "8.1.11",
|
||||||
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.9.tgz",
|
"resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-8.1.11.tgz",
|
||||||
"integrity": "sha512-7d8D9yzVS4ugLbt4clzc5DKU8dq85K0lRebjzpP43GxSr7vYKmczgfuEU+0beimjl5YmnHkcErtolg5t5ttb0A==",
|
"integrity": "sha512-EMKM/sZetGWgQbposvwOjUeod+pIP1splOcORycjnOi/jhd3D1YIpdyhohaLgkPELyv9XpqpztRMWEaUvMvpkw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "CC0-1.0"
|
"license": "CC0-1.0"
|
||||||
},
|
},
|
||||||
@@ -46,9 +46,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "26.6.6",
|
"version": "26.6.11",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.11.tgz",
|
||||||
"integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==",
|
"integrity": "sha512-uUyQ2XLEz+EXh34lmS3GhKrkqn/8FU7KUiKRpk347At2bmnMVWss45yz8b4FG/tUtmV1tV/+TVkITItPROyeeQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -421,9 +421,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lucide-static": {
|
"node_modules/lucide-static": {
|
||||||
"version": "1.75.0",
|
"version": "1.84.0",
|
||||||
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.75.0.tgz",
|
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-1.84.0.tgz",
|
||||||
"integrity": "sha512-vtAnJzxoH8jp0++Ydf22CPAAL3WfQQjmDG+OuRlG+CXouLCrlfTz7zWuDvHkTtj61czkhJAISChHDXkxLLqKRw==",
|
"integrity": "sha512-nr7xSL04HGusrhcIsFeUrPN0uGQ0ZJFx3oTBZStMBSjszS0xOtI/sl1YrRH3iQ1MDPo+yrJZlAmk2u+4P3WvIQ==",
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/postgres": {
|
"node_modules/postgres": {
|
||||||
|
|||||||
+3
-3
@@ -18,13 +18,13 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@larvit/log": "2.6.1",
|
"@larvit/log": "2.6.1",
|
||||||
"ejs": "7.0.2",
|
"ejs": "7.0.2",
|
||||||
"lucide-static": "1.75.0",
|
"lucide-static": "1.84.0",
|
||||||
"postgres": "4.1.1"
|
"postgres": "4.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@mdn/browser-compat-data": "8.1.9",
|
"@mdn/browser-compat-data": "8.1.11",
|
||||||
"@types/ejs": "3.1.5",
|
"@types/ejs": "3.1.5",
|
||||||
"@types/node": "26.6.6",
|
"@types/node": "26.6.11",
|
||||||
"acorn": "8.19.0",
|
"acorn": "8.19.0",
|
||||||
"typescript": "7.0.2"
|
"typescript": "7.0.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ services:
|
|||||||
restart: "on-failure:5"
|
restart: "on-failure:5"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:18.6-alpine3.23
|
image: postgres:18.7-alpine3.23
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ory
|
POSTGRES_DB: ory
|
||||||
POSTGRES_PASSWORD: ory
|
POSTGRES_PASSWORD: ory
|
||||||
|
|||||||
@@ -6,16 +6,16 @@
|
|||||||
|
|
||||||
`Bar = 1`
|
`Bar = 1`
|
||||||
|
|
||||||
`Next ID = 74`
|
`Next ID = 75`
|
||||||
|
|
||||||
## Items
|
## Items
|
||||||
|
|
||||||
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|
| 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 |
|
| 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 |
|
| 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
|
## Renamed
|
||||||
|
|
||||||
@@ -24,24 +24,6 @@
|
|||||||
|
|
||||||
## Details
|
## 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`.
|
### 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`,
|
`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)
|
- `package.json`: lines 14-14 (small)
|
||||||
- `compose.yml`: lines 130-130 (small), lines 161-161 (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.
|
### 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
|
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.
|
### 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:
|
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/auth/routes.ts:58` `flowFailure`: Kratos statuses and branch order whose reasons sit outside the file; three 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/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/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.
|
- `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.
|
- `src/server.ts:25` `delete process.env["PLUGIN_DB_SECRET"]`: a load-bearing order rule, repeated in `src/auth/bootstrap.ts:140`.
|
||||||
- `public/css/styles.css:81`: the dark and light token mapping is written three times.
|
- `src/test-tooling/stylesheet-floor.ts:74` `walk`: a regex CSS parser that doesn't say what it deliberately misses.
|
||||||
- `src/auth/routes.ts:58` `flowFailure`: Kratos statuses that no comment in the file explains.
|
- `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.
|
Aim: a reader of one unit should not need the other units open beside it. Re-run the scoring run when it ships.
|
||||||
|
|||||||
Reference in New Issue
Block a user