Document a portfolio project with test evidence
A portfolio is an evidence trail
A useful engineering portfolio describes a problem, requirements, your own decisions, alternatives, implementation, observable results and limitations. Use synthetic data for this workshop booking project. Link the exact commit and dependency lockfile, record setup and test commands, include screenshots only from a real execution, and redact secrets and personal information. A diagram or design mock can describe intended behavior but is not a screenshot of a running app. Document which accessibility, security and performance checks were not run instead of claiming compliance.
export const required = ['build','component','keyboard','security','performance'];// Evidence metadata only: this cannot verify the underlying test or artifact.export function evidenceIssues(records) { return required.flatMap(gate => { const matches = records.filter(r => r.gate === gate); if (matches.length !== 1) return [`${gate}: missing or duplicate`]; const r = matches[0]; if (r.status !== 'PASS') return [`${gate}: ${r.status}`]; if (![r.command,r.environment,r.artifact].every(s => typeof s === 'string' && s.trim())) return [`${gate}: missing evidence metadata`]; return []; });}This project-specific gate list requires build, component, keyboard, security and performance evidence. Each must have a single PASS record and nonempty command, environment and artifact fields. It is a metadata check, not an independent verification of results. An actual reviewer must open evidence, verify provenance and judge whether the test is adequate. Some projects require additional gates, such as hydration, authorization and deployment rollback.
import {evidenceIssues} from './evidence.mjs';// A fictional incomplete portfolio record; this is not an executed build.const records = [{gate:'build',status:'NOT RUN'}];console.log(evidenceIssues(records));// Five unresolved gates; no screenshot or measurement is implied.The report contains five unresolved gates: the build is NOT RUN and four are missing. Record FAIL when a test runs and fails; record NOT RUN when there is no execution. A successful Node model test cannot establish React browser behavior. Store test logs alongside a reproducible source revision and separate model outcomes from browser observations.
Report measurements with their context
// Summarize actual comparable samples only; no fabricated default numbers.export function summarizeDurations(samples) { if (!samples.length || samples.some(n => !Number.isFinite(n) || n < 0)) throw new Error('Provide finite nonnegative samples'); const sorted = [...samples].sort((a,b)=>a-b); const middle = Math.floor(sorted.length/2); return {count:sorted.length, min:sorted[0], max:sorted.at(-1), median: sorted.length%2 ? sorted[middle] : sorted[middle-1]/2+sorted[middle]/2};}The helper returns count, minimum, maximum and median without changing the sample array. Use the same workload, hardware, browser, build settings and sampling method for before/after comparison. A React Profiler duration is not a field Web Vital; normal production builds disable profiling instrumentation by default. Label profiling builds and instrumentation overhead. Do not claim a speedup using synthetic example inputs. Include a short decision record, actual checks, known issues and next work in the README. Practice: write a portfolio entry that explicitly marks the browser and screen-reader tests NOT RUN.