r
This commit is contained in:
1 parent
76a4db6a9e
commit
783c95b797
21 files changed
+1245
-46
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Codebase index
|
||||
|
||||
Reviewed 10 November 2026 against the current source. This is a vanilla JavaScript static portfolio with hash routing, Dutch/English text, and no runtime dependencies. The source contains three projects, twelve evidence items and eight process definitions.
|
||||
Reviewed 10 November 2026 against the current source. This is a vanilla JavaScript static portfolio with hash routing, Dutch/English text, and no runtime dependencies. The source contains nine projects, twenty-four source/evidence items (twelve with provisional exam mappings) and eight process definitions.
|
||||
|
||||
| File | Responsibility |
|
||||
| --- | --- |
|
||||
@@ -15,13 +15,14 @@ Reviewed 10 November 2026 against the current source. This is a vanilla JavaScri
|
||||
| `scripts/content.mjs` | Validate content, generate module, scaffold a project |
|
||||
| `scripts/serve.mjs` | Loopback-only static preview; compiles content when requested |
|
||||
| `scripts/build.mjs` | Validate/generate content, copy five public assets to `dist/` |
|
||||
| `tests/` | Content integrity and editing regression checks |
|
||||
| `tests/` | Content integrity, editing, settings injection, publication and preview security regression checks |
|
||||
| `Dockerfile`, `.dockerignore` | Allowlisted build context; test/build in Node, then copy public assets into Nginx |
|
||||
| `compose.yaml`, `.env.example` | Host binding, port, restart policy, read-only runtime, temporary storage and log rotation |
|
||||
| `docker/nginx.conf` | Domain-root public-file allowlist, response headers and `/healthz` |
|
||||
| `.gitignore` | Excludes `dist/`, `node_modules/`, logs and `.env` |
|
||||
| `docs/content-editing.md` | Field reference, editing workflow and validation limits |
|
||||
| `docs/docker-hosting.md` | Guest deployment, separate proxy topology, updates and operations |
|
||||
| `docs/repository-review.md` | Public account inventory, selected source revisions and review limits |
|
||||
| `docs/verification.md` | Dated current checks, historical results and remaining verification limits |
|
||||
| `docs/preview.png`, `docs/mobile-preview.png` | Historical visual references; not generated or refreshed by the build |
|
||||
|
||||
@@ -35,7 +36,7 @@ Routes: `#home`, `#work`, `#project/<id>`, `#evidence`, `#evidence/<code>`, `#ab
|
||||
|
||||
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 are relative to `profile.school` at the pinned `revision`. 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 existing design uses exactly three diagram 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.
|
||||
|
||||
@@ -43,4 +44,4 @@ The print button opens all currently rendered process details and invokes browse
|
||||
|
||||
## Exposure boundary
|
||||
|
||||
Editing happens in local JSON files. The preview server has no write endpoint and binds to `127.0.0.1`; it serves only `/` and the five public assets. Production ships five static files, with no editor, login, database or application backend. Docker uses an Nginx server process on port 8080 and adds `/healthz`. All content included in a build is public: only put publishable material in these files. Publish `dist/`, not the repository root. The build overwrites its five files but does not remove stale files from that directory.
|
||||
Editing happens in local JSON files. The preview server has no write endpoint and binds to `127.0.0.1`; it serves only `/` and the five public assets. Production ships five static files, with no editor, login, database or application backend. Docker uses an Nginx server process on port 8080 and adds `/healthz`. All content included in a build is public: only put publishable material in these files. Publish `dist/`, not the repository root. The build validates content and stages five assets before replacing `dist/`, removing stale files; it rejects redirected output/staging directories.
|
||||
+14
-6
@@ -17,35 +17,43 @@ Delete a project's JSON file to remove it. Remove entries from its `evidence` ar
|
||||
| --- | --- |
|
||||
| `id` | Unique lowercase slug, for example `my-project`; used by `#project/my-project` |
|
||||
| `number` | Nonempty string; numeric-aware string sorting determines display order and the homepage feature. Use distinct numeric values such as `01`, `02` |
|
||||
| `challenge` | Nonempty string, including combined labels such as `14 + 15` |
|
||||
| `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 |
|
||||
| `path` | Repository-relative project directory path, without a leading slash or `.` / `..` segments |
|
||||
| `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 |
|
||||
| `codes` | Array of known process codes; dossier tags linking to the evidence index. May be empty |
|
||||
| `evidence` | Array of evidence objects; may be empty |
|
||||
|
||||
Evidence objects require `label` (`[Dutch, English]`), `path` (repository-relative), `type` (nonempty display label such as `JS` or `DOCX`) and `codes` (array of known process codes). Optional `directory` is a boolean: `true` creates a repository `tree` link; omitted or `false` creates a `blob` link.
|
||||
Evidence objects require `label` (`[Dutch, English]`), `path` (nonempty and repository-relative), `type` (nonempty display label such as `JS` or `DOCX`) and `codes` (array of known process codes). Optional `directory` is a boolean: on GitHub, `true` creates a `tree` link and omitted or `false` creates a `blob` link. Gitea uses `src/commit` for both files and directories. Evidence paths always use their project's repository; individual evidence items cannot override it.
|
||||
|
||||
The scaffold supplies `challenge: "—"`, `path: "projects"` and no `repository` or `setting`. Before publishing a personal project, set its repository and bilingual context explicitly; otherwise its links still target the school archive and its dossier context defaults to school year 2. Use a repository URL without a trailing slash, query or fragment, and copy the full reviewed commit SHA rather than a branch name.
|
||||
|
||||
Evidence counts come only from each evidence item's `codes`, not the project's `codes`. An item can map to several processes, so summed process counts can exceed the number of evidence items. Empty mappings are allowed and do not appear in process counts.
|
||||
|
||||
## Shared settings and copy
|
||||
|
||||
`content/settings.json` supplies `profile`, `revision` and `processes`. Keep these top-level keys stable: they become ES module exports.
|
||||
`content/settings.json` supplies `profile`, `revision` and `processes`. Only these top-level keys are accepted. The compiler explicitly exports profile, revision, processes, projects and the source helper; arbitrary settings cannot become JavaScript exports.
|
||||
|
||||
- `profile.github` and `profile.gitea` supply external profile links; `profile.school` supplies the repository base for source links.
|
||||
- `profile.qualification` supplies the qualification document link. `profile.name` and `profile.reviewed` are stored but are not currently rendered; visible identity and biography remain in `app.js`.
|
||||
- `revision` pins every generated source link. Review project and evidence paths against a new revision before updating it. Change `profile.reviewed` only after that review.
|
||||
- `revision` pins default school-archive source links; a project `repository.revision` overrides it. Review project and evidence paths against a new revision before updating it. Change `profile.reviewed` only after that review.
|
||||
- Each process has a unique `code`, bilingual `title` and bilingual `description`. The current tests expect eight processes.
|
||||
|
||||
Shared contribution and reflection placeholders are in `app.js`. Per-project reflections require a deliberate schema and renderer change; adding arbitrary JSON fields alone will not display them. `index.html` also contains static title, description, language fallback and a school repository link.
|
||||
|
||||
## Validation limits
|
||||
|
||||
The compiler validates project fields and checks mapping codes against settings. It is not a complete settings schema validator, external-link checker or assessment tool. Review settings structure, URLs, unique process codes and content accuracy manually. Text is rendered as escaped text, not Markdown or HTML.
|
||||
The compiler validates the exact settings and profile structure, nonempty name, valid ISO review date, safe HTTPS links without credentials, GitHub/Gitea profile hosts, the GitHub school repository, full lowercase commit pins, unique process codes (B<number>-K<number>-W<number>, positive integers), and complete Dutch/English titles and descriptions. Project mappings must reference known codes. Optional project repositories require supported hosts, matching forge types and full commit pins. Validation does not check remote availability or assess evidence; review content accuracy manually. Text is rendered as escaped text, not Markdown or HTML.
|
||||
|
||||
The current tests deliberately assert that B1-K2-W1, W2 and W3 have no evidence yet. When genuine collaboration evidence is added, update that test to reflect the supported evidence and remaining gaps. Do not remove the safeguard simply to make unsupported mappings pass.
|
||||
|
||||
An invalid file causes preview `/content.js` to return HTTP 500 with a generic message. Run `npm run content` to see the underlying validation or JSON error. The scaffold command writes its new JSON file before compiling; if compilation fails, inspect the created file and fix the reported issue before retrying.
|
||||
|
||||
All generated content is public. The build includes settings and project fields even if the interface does not display them.
|
||||
|
||||
## Reviewing repositories
|
||||
|
||||
Keep a dated record in [repository-review.md](repository-review.md). Review representative source files and verify all linked paths at the exact commit before adding a project. Account ownership alone does not establish authorship of every file. Avoid duplicating mirrors and do not present upstream forks as original work. New sources may use empty `codes` arrays until an exam mapping is supported; these links remain visible in the project dossier without changing process counts. The current six additions follow this policy.
|
||||
@@ -13,7 +13,7 @@ docker compose ps
|
||||
curl -f http://192.168.1.50:8080/healthz
|
||||
```
|
||||
|
||||
Docker validates content, runs tests and builds inside a Node build stage. Only static assets enter the Nginx runtime image. No Node installation, database or persistent volume is required on the guest. Configure the guest and Docker to start on boot; the service uses `restart: unless-stopped`.
|
||||
Docker validates content, runs tests and builds inside a Node build stage. The build replaces its publication directory with exactly five validated static assets; only those assets enter the Nginx runtime image. The Docker context and Nginx public-file allowlists remain unchanged. No Node installation, database or persistent volume is required on the guest. Configure the guest and Docker to start on boot; the service uses `restart: unless-stopped`.
|
||||
|
||||
## Network access
|
||||
|
||||
@@ -80,4 +80,4 @@ The container runs as the Nginx user with a read-only filesystem, dropped Linux
|
||||
|
||||
The health check expects `/healthz` to return `ok`. The restart policy handles process exits; an unhealthy status alone does not restart the container. Compose settings follow the [Docker service reference](https://docs.docker.com/reference/compose-file/services/).
|
||||
|
||||
On 10 November 2026, all six local tests, the static build and `docker compose config --quiet` passed. The Docker engine was unavailable, so image build, runtime health, proxy access and Proxmox deployment remain unverified. Configuration validation alone does not prove that the container can start.
|
||||
During the initial documentation pass on 10 November 2026, the then-current six tests, static build and `docker compose config --quiet` passed. The suite has since expanded; see [verification](verification.md) for subsequent results. The Docker engine was unavailable during that initial pass, so image build, runtime health, proxy access and Proxmox deployment remain unverified. Configuration validation alone does not prove that the container can start.
|
||||
@@ -0,0 +1,42 @@
|
||||
# Repository review — 10 November 2026
|
||||
|
||||
Public account inventories were read from the GitHub and Gitea APIs for Alvin-Zilverstand. Each returned 24 public repositories (page size 100; no further page required). The GitHub connector returned an empty list, so public API access was used. This review covers public repositories only, not private or organization repositories. Repository ownership is not proof that every line was personally written by Alvin.
|
||||
|
||||
## Selected additions
|
||||
|
||||
Six additional projects remain selected alongside the existing three school dossiers. Femcode and Tralalero were removed at Alvin’s request after the initial review. During that initial eleven-dossier review, readmes and representative source files were inspected and all 39 project/artifact targets were checked at their pinned commits. The current nine dossiers retain 33 targets: nine project links and twenty-four source/evidence links. The source programs were not run. The twelve retained additional source items have empty exam mappings; the existing twelve mapped items and collaboration gaps remain unchanged.
|
||||
|
||||
| Project | Account source | Reviewed revision | Linked artifacts |
|
||||
| --- | --- | --- | --- |
|
||||
| Music Guessr | [gitea](https://codealvin.xyz/Alvin-Zilverstand/music_guessr) | `b306f860443a6cd3e18835ed83a59ea113414399` | `rust_app/README.md`, `rust_app/src/lib.rs` |
|
||||
| ClipForge | [github](https://github.com/Alvin-Zilverstand/clipforge-game-clipper) | `32e258dee7179a58fc2d693a7d0e33a228be37b2` | `README.md`, `docs/architecture.md` |
|
||||
| Car Tuning CRM | [gitea](https://codealvin.xyz/Alvin-Zilverstand/challenge-11) | `66d2f197dcaab5a8d16504010a2fe5075500add3` | `README.md`, `server.js` |
|
||||
| Pokédex | [gitea](https://codealvin.xyz/Alvin-Zilverstand/pokedex) | `43d4ca6798796c600b9044f8545f1c38c422c466` | `v1/pokedex/get_pokemons.php`, `v1/pokedex/details.html` |
|
||||
| School canteen | [gitea](https://codealvin.xyz/Alvin-Zilverstand/Schoolkantine) | `01f98ea7d0d489b62728c7ca4abee1d86e0228d3` | `website/script.js`, `website/place_order.php` |
|
||||
| Proxmox LXC toolbox | [gitea](https://codealvin.xyz/Alvin-Zilverstand/scripts) | `cb237cf5b0910c77917a8cad3c45b15a6c05a454` | `lxc-toolbox-README.md`, `lxc-toolbox.sh` |
|
||||
|
||||
Additional inspected implementation files include ClipForge's src/lib.rs and package.json, the CRM's client/src/App.js, and Music Guessr's rust_app/src/lib.rs. Schoolkantine's script.js and place_order.php, Pokédex's get_pokemons.php, Femcode's main.py, Tralalero's main.rs and the LXC toolbox script support the implementation summaries. Source review was selective, not a full code or security audit. ClipForge's architecture document still describes pending native work while its README describes newer functionality; runtime and installer claims were not independently validated.
|
||||
|
||||
Gitea snapshots are selected for five retained additions; ClipForge is linked to GitHub. Overlapping account repositories are represented once. The original warehouse, narrowcasting and refactoring IDs and school snapshot remain unchanged. The school revision is d420c317abcbd117e0e1dd641674ab3283ab34ba; its linked paths were rechecked, but its DOCX contents and source test scripts were not reviewed or run. The qualification review date in settings is unchanged.
|
||||
|
||||
## Inventory decisions
|
||||
|
||||
Femcode and Tralalero_lang were reviewed but excluded from the visible portfolio at Alvin’s request. The initial 39-target check remains a historical review record; the current nine dossiers contain 33 targets.
|
||||
|
||||
| Repositories | Decision |
|
||||
| --- | --- |
|
||||
| school; Challenge_14_Magazijn_App_plannen; Challenge_15_Magazijn_App_Maken; narrow_casting_system | Existing dossiers already cover these projects; avoid duplicate cards |
|
||||
| music_guessr; clipforge-game-clipper; challenge-11; pokedex; Schoolkantine; scripts | Added with reviewed source links |
|
||||
| bob16; nginx-proxy-manager; novatorem; return-youtube-dislike; Twitter-X-Media-Batch-Downloader | GitHub marks these as forks; no independently reviewed contribution selected. Gitea mirror flags alone do not establish original authorship |
|
||||
| Alvin-Zilverstand | Profile README and generated profile graphics, not a separate application |
|
||||
| adblock | Gitea has no default branch; no project dossier selected |
|
||||
| compiled | Tree contains binaries without accompanying source context |
|
||||
| Challenge_16 | Sprite assets and README; not presented as a finished game |
|
||||
| carsite | Earlier static website with bundled framework/builder assets; left as archive material pending clearer contribution context |
|
||||
| Spik-en-span | Ticket-oriented HTML/PHP project; archive README's cleaning-service label does not accurately describe the inspected files. Left out of this selected set pending a fuller source review |
|
||||
| ict-algemeen-opdrachten | Exercise collection, retained in account archive rather than one application dossier |
|
||||
| sloppatron | Mixed experiments and minimal root documentation; not selected for a separate case study |
|
||||
| RTA-test | Small HTML demonstration, not selected for a separate case study |
|
||||
| install-docker; customised-pve-helper-script | Small administration scripts; the broader scripts/LXC toolbox provides the selected administration case study |
|
||||
|
||||
The site is a curated selection, not an assertion that all other repositories lack value. Personal contributions, collaborators, reflections, executed test results and assessed outcomes still need Alvin's own evidence.
|
||||
+55
-2
@@ -1,6 +1,59 @@
|
||||
# Verification
|
||||
|
||||
## Current checks — 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.
|
||||
|
||||
- Node v24.5.0; `npm test`: all 14 tests passed.
|
||||
- `npm run build`: passed. Regression tests confirm exactly five byte-identical public assets, removal of a nested synthetic stale file, rejection of redirected output, repository-relative operation from another working directory, and preservation of existing output when content validation fails.
|
||||
- Preview regression: malformed URL returns 400, subsequent valid request returns 200; source/private paths return 404 and all five public assets return 200. Loopback binding remains unchanged.
|
||||
- Settings regressions cover structure, unsafe URLs, unexpected export keys, duplicate/injected codes, incomplete translations and invalid dates. Renderer regression deliberately bypasses validation and verifies escaped process codes in option attributes, option labels, summaries and dossier links in both languages.
|
||||
- `node --check`: passed for scripts/content.mjs, scripts/build.mjs, scripts/serve.mjs, tests/editor.test.mjs, tests/security.test.mjs, app.js and generated content.js.
|
||||
- `docker compose config --quiet`: passed. Docker engine unavailable: Docker Desktop Linux engine named pipe missing; image build and runtime tests could not run.
|
||||
- Browser: home, work, all nine project routes, about and evidence checked in Dutch and English at 320px without document-width overflow. Evidence filter selected B1-K1-W4, rendered one open process and focused main; switching to Dutch preserved the filter. Keyboard activation of the skip link focused main and preserved the filter. No browser console errors recorded. Temporary viewport override reset afterward.
|
||||
- Port 4173 was unavailable (EACCES); browser checks used an automatically assigned loopback port instead.
|
||||
- `git diff --check`: passed. Historical results below are retained.
|
||||
|
||||
Limits: print/PDF was not rendered again; no rendering or print implementation changed in this pass. Container runtime, reverse proxy and deployment remain unverified. No external evidence review, commit, push or deployment was performed.
|
||||
|
||||
## Latest checks — documentation follow-up, 10 November 2026
|
||||
|
||||
Checked the documentation against the current compiler, renderers, tests and generated content. Confirmed nine projects, twenty-four source/evidence items and twelve mapped items. Updated contributor rules for repository overrides and context, clarified forge-specific evidence URLs and scaffold defaults, and separated historical eleven-project checks from the current nine-project selection.
|
||||
|
||||
- Repeated `npm test`: all eight tests passed.
|
||||
- Repeated `npm run build`: passed.
|
||||
- Local Markdown targets and `git diff --check`: passed.
|
||||
- Browser, external repositories and Docker were not rechecked in this documentation-only follow-up. Earlier results below retain their original scope.
|
||||
|
||||
## Earlier checks — selection adjustment, 10 November 2026
|
||||
|
||||
Removed Femcode and Tralalero at Alvin’s request, renumbered the LXC toolbox to 09 and updated bilingual biography copy and current project counts. Nine projects and twenty-four source/evidence items remain.
|
||||
|
||||
- Repeated `npm test`: all eight tests passed.
|
||||
- Repeated `npm run build`, `node --check app.js`, `node --check content.js` and `git diff --check`: passed.
|
||||
- Browser work archive checked in Dutch and English: nine project cards, neither removed project visible.
|
||||
- Broader navigation, mobile and evidence checks below belong to the earlier expansion pass and were not repeated for this removal.
|
||||
- No push or deployment performed.
|
||||
|
||||
## Earlier checks — repository expansion, 10 November 2026
|
||||
|
||||
Added eight reviewed projects, bilingual context labels and per-project pinned GitHub/Gitea source links. See [repository-review.md](repository-review.md) for scope, revisions, selection decisions and limitations.
|
||||
|
||||
- Node v24.5.0.
|
||||
- `npm test`: all eight tests passed, including forge-specific links and repository validation.
|
||||
- `npm run build`: passed; generated content and exactly five public assets.
|
||||
- `node --check`: app.js, content.js, scripts/content.mjs and both test files passed.
|
||||
- All 39 project and artifact paths verified through repository APIs at the selected commit IDs.
|
||||
- Real browser: 15 routes (home, work, eleven projects, evidence, about) in Dutch and English at the default viewport and 320px; no document-width overflow or undefined output.
|
||||
- Language switching preserved the selected project and focused the language control. Navigation focused main; keyboard activation of the skip link preserved the evidence route and focused main.
|
||||
- Filtering B1-K1-W4 displayed the three existing testing sources. No browser console errors observed. Music Guessr inspected visually at default and mobile widths.
|
||||
- `git diff --check`: passed after correcting mixed line-ending whitespace in edited lines.
|
||||
- Build output inspected for the five allowed assets and byte equality with source.
|
||||
|
||||
Preview uses http://127.0.0.1:5178 because port 4173 returned EACCES. Print/PDF rendering was not repeated; print CSS and the set of mapped exam evidence are unchanged. Source applications, installers, live Proxmox scripts and their test suites were not executed. DOCX contents, personal authorship and assessment outcomes remain unverified. Docker configuration was unchanged, so Docker checks were not repeated. No commit, push or deployment was performed.
|
||||
|
||||
|
||||
## Earlier documentation checks — 10 November 2026
|
||||
|
||||
Documentation baseline reviewed against all tracked source, configuration, tests, JSON content, generated content and saved PNG references. No application behavior was changed in this pass.
|
||||
|
||||
@@ -22,7 +75,7 @@ The saved desktop and mobile PNGs were inspected as historical references, not r
|
||||
|
||||
## Historical record — 9 November 2026
|
||||
|
||||
The following is the previous verification record, retained for context. Its two-test count predates the current six-test suite; these browser and external-source results were not repeated on 10 November.
|
||||
The following is the previous verification record, retained for context. Its two-test count predates the current six-test suite; these results describe that earlier pass. See the latest checks above for the subsequently repeated browser and source-path checks.
|
||||
|
||||
- `node --check app.js` passed.
|
||||
- `npm test`: both content integrity checks passed.
|
||||
|
||||
Reference in new issue
Block a user