This commit is contained in:
Alvin-Zilverstand committed 2026-11-10 14:19:34 +01:00
1 parent 783c95b797
commit 2d6378c1ed
6 files changed
+71 -15

No files matched your search

+3 -3
View File
@@ -10,7 +10,7 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri
| `content/settings.json` | Profile links, pinned source revision, eight process definitions |
| `content.js` | Generated browser module; do not edit directly |
| `app.js` | DOM rendering, translations, navigation, evidence filtering and printing |
| `styles.css` | Desktop/mobile layouts, project diagrams, accessibility and print styles |
| `styles.css` | Desktop/mobile editorial layouts, accessibility and print styles |
| `index.html`, `favicon.svg` | Document shell, metadata and icon |
| `scripts/content.mjs` | Validate content, generate module, scaffold a project |
| `scripts/serve.mjs` | Loopback-only static preview; compiles content when requested |
@@ -32,11 +32,11 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri
Routes: `#home`, `#work`, `#project/<id>`, `#evidence`, `#evidence/<code>`, `#about`. Empty hash opens home. Unknown page/project routes render an in-page 404; an unknown evidence code falls back to all processes. Language is English only for `?lang=en`, otherwise Dutch. Switching language updates the query without losing the route.
`header` and `footer` render shared navigation. `home` and `work` render project lists; `detail` renders a dossier. `processRow` derives evidence counts and links from every project's `evidence` array. Removing evidence automatically removes its process-index entries.
`header` and `footer` render shared navigation. `home` shows one featured project and two selected projects; `work` renders the complete compact archive; `detail` renders a dossier with source links and a schematic structure line. `processRow` derives evidence counts and links from every project's `evidence` array. Removing evidence automatically removes its process-index entries.
The compiler reads JSON files directly inside `content/projects/`, sorts by `number` using numeric-aware comparison, validates project fields and emits exports. The first project is featured and the homepage count is derived from the array; an empty portfolio is supported. The preview generates content in memory on request. Content, test and build commands regenerate the tracked module on disk.
Project IDs are stable route identifiers. Evidence paths default to `profile.school` at the pinned `revision`. An optional project `repository` overrides the base, commit and forge; `source(path, directory, project)` constructs GitHub or Gitea URLs. An optional bilingual `setting` describes school year or personal-project context. Text pairs are `[Dutch, English]`. The existing design uses exactly three diagram nodes. Personal contribution and reflection copy is still shared placeholder text in `app.js`.
Project IDs are stable route identifiers. Evidence paths default to `profile.school` at the pinned `revision`. An optional project `repository` overrides the base, commit and forge; `source(path, directory, project)` constructs GitHub or Gitea URLs. An optional bilingual `setting` describes school year or personal-project context. Text pairs are `[Dutch, English]`. The schematic structure line uses exactly three nodes. Personal contribution and reflection copy is still shared placeholder text in `app.js`.
`tests/content.test.mjs` checks translations, mappings, pinned URL construction and the currently missing collaboration evidence. `tests/editor.test.mjs` checks compilation, empty collections, invalid inputs and homepage rendering with the featured project or all projects removed. Its DOM stub does not test real layout or browser interactions.
+1 -1
View File
@@ -20,7 +20,7 @@ Delete a project's JSON file to remove it. Remove entries from its `evidence` ar
| `challenge` | Nonempty string, including combined labels such as `14 + 15`; use `—` for personal projects |
| `kind`, `title`, `name`, `intro`, `context`, `implementation`, `decisions` | Two nonempty strings in `[Dutch, English]` order. `title` is required by validation but not currently rendered |
| `stack` | Nonempty array of nonempty strings; technology badges |
| `nodes` | Exactly three nonempty strings; shared diagram labels in both languages |
| `nodes` | Exactly three nonempty strings; schematic structure labels shown near the implementation explanation |
| `path` | Repository-relative project directory path, without a leading slash or `.` / `..` segments. An empty string links to the root only when `repository` is supplied |
| `repository` | Optional object: `url` (HTTPS repository URL on github.com or codealvin.xyz), `revision` (40-character lowercase commit SHA), `forge` (`github` or `gitea`, matching the host). Applies to project and evidence links |
| `setting` | Optional `[Dutch, English]` context, such as personal project or school year. Defaults to school project, year 2 |
+12 -1
View File
@@ -1,6 +1,6 @@
# Verification
## Latest checks — security verification, 10 November 2026
## Latest checks � security verification, 10 November 2026
The initial working tree was clean. The checked-in baseline already contained staged replacement of build output, guarded preview URL parsing, strict settings validation, explicit module exports, process-code escaping and four security regression tests. This pass reviewed and verified those protections, made invalid review dates report the intended validation error, added direct bilingual rendering-injection and export-surface assertions, and corrected outdated publication/settings documentation. No project content, source-review dates, Docker/Nginx allowlists or rendering code changed. Generated `content.js` was regenerated by commands and remains byte-identical.
@@ -91,3 +91,14 @@ The following is the previous verification record, retained for context. Its two
- Preview saved in `docs/preview.png`.
Limits: print/PDF layout has a dedicated stylesheet but was not rendered to a PDF in this pass. Docker deployment was not run. Linked DOCX contents were not reviewed. Source project tests were not executed. These checks validate the portfolio implementation, not the completeness or acceptance of exam evidence.
## Portfolio redesign checks — 10 November 2026
The homepage, archive and dossier layouts were changed in `app.js` and `styles.css`. No project source claims or evidence mappings were changed. The existing unrelated working-tree changes were preserved.
- `node --check app.js`: passed.
- `npm test`: 14 tests passed; `npm run build`: passed and staged five public assets.
- `git diff --check`: passed after whitespace cleanup.
- Browser checked homepage, archive, warehouse dossier, ClipForge dossier, evidence index and about page in Dutch and English at 1280px and 390px. All nine archive entries rendered; no horizontal document overflow was observed.
- Evidence selection changed the route to `#evidence/B1-K1-W1` and rendered one process. The skip link focused `main` while preserving the route.
- Print rules were reviewed in CSS; a printed PDF was not captured. The original preview images remain historical references.