Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da49c7f2e2 | |||
| 6da2e79a8a | |||
| 48861bca70 | |||
| eb2538772e | |||
| 5e07b963b9 | |||
| c6885077bc | |||
| 348f468478 | |||
| a2fe108f47 | |||
| 259029488e | |||
| a1149f0d6c | |||
| 289e317436 |
@@ -149,6 +149,56 @@ public sealed class SavedJobSearchSqliteTests(ITestOutputHelper output)
|
||||
fixture.Discovery.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("Soins de proximité", "aide-soignant·e", "Orle\u0301ans / Orléans, Centre-Val de Loire")]
|
||||
[InlineData("Opieka bez lokalizacji", "pielęgniarka", "")]
|
||||
public async Task Temporary_search_keeps_legacy_filters_and_dismissal_history(string name, string query, string location)
|
||||
{
|
||||
await using var fixture = await SqliteFixture.CreateAsync();
|
||||
var firstSeen = new DateTimeOffset(2025, 3, 3, 8, 0, 0, TimeSpan.Zero);
|
||||
var previousRun = firstSeen.AddDays(1);
|
||||
var legacy = new SavedJobSearch
|
||||
{
|
||||
OwnerUserId = "owner-1", Name = name, Query = query, Location = location,
|
||||
CreatedAtUtc = firstSeen, UpdatedAtUtc = previousRun, LastRunAtUtc = previousRun,
|
||||
Results = [new SavedJobSearchResult
|
||||
{
|
||||
ExternalJobId = "historical-nav-id", FirstSeenAtUtc = firstSeen,
|
||||
LastSeenAtUtc = previousRun, IsDismissed = true
|
||||
}]
|
||||
};
|
||||
fixture.Db.SavedJobSearches.Add(legacy);
|
||||
await fixture.Db.SaveChangesAsync();
|
||||
fixture.Db.ChangeTracker.Clear();
|
||||
fixture.Discovery.Setup(x => x.SearchAsync("lærer", "Tønsberg", It.IsAny<CancellationToken>()))
|
||||
.ReturnsAsync(Array.Empty<DiscoveredJob>());
|
||||
fixture.Discovery.Setup(x => x.SearchAsync(query, location, It.IsAny<CancellationToken>()))
|
||||
.ReturnsAsync(new[] { Job("historical-nav-id") });
|
||||
|
||||
Assert.IsType<OkObjectResult>((await fixture.Controller.Search("lærer", "Tønsberg", default)).Result);
|
||||
var original = Assert.Single(await List(fixture.Controller));
|
||||
Assert.Equal(new JobDiscoveryController.SavedSearchDto(legacy.Id, name, query, location, true, previousRun, 1, 1), original);
|
||||
|
||||
var run = Assert.IsType<JobDiscoveryController.SavedSearchRunDto>(Assert.IsType<OkObjectResult>(
|
||||
(await fixture.Controller.RunSavedSearch(legacy.Id, default)).Result).Value);
|
||||
var seen = Assert.Single(run.Jobs);
|
||||
Assert.False(seen.IsNew);
|
||||
Assert.True(seen.IsDismissed);
|
||||
fixture.Db.ChangeTracker.Clear();
|
||||
var retained = Assert.Single(await List(fixture.Controller));
|
||||
Assert.True(retained.LastRunAtUtc > previousRun);
|
||||
Assert.Equal(original with { LastRunAtUtc = retained.LastRunAtUtc }, retained);
|
||||
var history = await fixture.Db.SavedJobSearchResults.AsNoTracking().SingleAsync();
|
||||
Assert.Equal(legacy.Id, history.SavedJobSearchId);
|
||||
Assert.Equal("historical-nav-id", history.ExternalJobId);
|
||||
Assert.Equal(firstSeen, history.FirstSeenAtUtc);
|
||||
Assert.Equal(retained.LastRunAtUtc, history.LastSeenAtUtc);
|
||||
Assert.True(history.IsDismissed);
|
||||
fixture.Discovery.Verify(x => x.SearchAsync("lærer", "Tønsberg", It.IsAny<CancellationToken>()), Times.Once);
|
||||
fixture.Discovery.Verify(x => x.SearchAsync(query, location, It.IsAny<CancellationToken>()), Times.Once);
|
||||
fixture.Discovery.VerifyNoOtherCalls();
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("name-empty")]
|
||||
[InlineData("name-long")]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,56 @@
|
||||
# Offline European geography contract QA
|
||||
|
||||
17 November 2026. Bounded documentation/tooling increment authorised by the current direct roadmap continuation. This is executable specification QA, not GJ-01/GJ-02 implementation or acceptance. No application imports, dependencies, settings, migrations, HTTP requests, provider/model calls or qualification statuses change.
|
||||
|
||||
19 November: the [multi-country extension](GEOGRAPHY_MULTI_COUNTRY_QA.md) adds BE/FR and DE/PL fixtures, expansion and locale-change invariants. The outcomes below retain the original `48861bca` checkpoint; use the extension for current validator counts.
|
||||
|
||||
## Inputs and identity
|
||||
|
||||
Application baseline: `eb2538772e1bfabbeb291e4a5efa177c79074de1` (A3). Isolated branch `codex/global-geo-contracts`; worktree `E:/Storage/Projects/Active/temp docs/jobjakt-local-build/global-geo-contracts`.
|
||||
|
||||
The validator reads committed Git blobs directly. It does not copy a country registry, inspect another checkout's uncommitted data or require the I18N worktree to remain present. Required commits must exist locally; missing objects fail execution rather than falling back to stale checkout files. It performs no fetch.
|
||||
|
||||
| Source commit | Repository path | Exact Git blob |
|
||||
| --- | --- | --- |
|
||||
| `39fb9df06904e44916e258da0ed975dd46b9691c` | `docs/i18n/00/EUROPE_COUNTRY_LANGUAGE_MATRIX.md` | `4b88eb52e91d1c1ad0bb9082ed3ce075e0602dbd` |
|
||||
| `39fb9df06904e44916e258da0ed975dd46b9691c` | `docs/i18n/00/EUROPE_RELEASE_COVERAGE.csv` | `395fc09934a516a2445fddb092b5de18c9469080` |
|
||||
| `0ec9f98e6ed4a646fc5e017d8eb6fade07653f37` | `docs/global-jobs/00/GEOGRAPHY_DECISIONS.md` | `48f108ef02648f53490ae505b223ebff321264bb` |
|
||||
|
||||
The I18N source commit was inspected in the existing `i18n-message-census` worktree. Both matrix/CSV blob identities also match A3 exactly. All inputs are available in this local repository object store. The GJ planning documents remain on their separate planning history; they are not merged or replaced here. The geography decision blob is bound for traceability; its prose semantics were reviewed by a human-readable source inspection, not automatically interpreted by the script.
|
||||
|
||||
Authority: Prompt 7 and the GJ pack retain predecessor/initiative gates; GJ-00 geography decisions define branch refinement and typed relationships. The later EUROPE-READY owner addendum §§4/14 requires country/refinement contract tests and §15 preserves shared owners and gates. Existing `docs/i18n/00/IMPLEMENTATION_PLAN.md` permits future fixture design without inventing dependent runtime. Current direct instruction narrows this increment to offline documentation contracts. It does not authorise a runtime scope compiler.
|
||||
|
||||
## What runs
|
||||
|
||||
From the repository root, using installed Node and Git only:
|
||||
|
||||
```text
|
||||
rtk proxy node docs/global-jobs/00/validate-contracts.cjs --self-test
|
||||
rtk proxy node --check docs/global-jobs/00/validate-contracts.cjs
|
||||
rtk git diff --check
|
||||
```
|
||||
|
||||
The first command checks the matrix's exact 59-code roster and 1,062 coverage cells (18 columns per country); validates status vocabulary and the frozen qualification snapshot, including the sole existing Norway NAV fixture result; and checks XK's explicit non-ISO caveat. Updating any status requires a separately reviewed source/evidence change and validator update. This snapshot guard is not a general release approval engine.
|
||||
|
||||
`GEOGRAPHY_CONTRACT_FIXTURES.json` contains 13 deliberately synthetic typed identities, seven typed edges and 12 selection expectation cases. Every ID uses the `s:` namespace, edition `synthetic-1`, and explicit synthetic provenance. Display labels resemble representative locations, but neither the IDs nor edges are authoritative geographic data or a licensed boundary dataset. Administrative reachability is used only to check fixture expectations; settlement intersection and shared footprint cannot substitute for administrative containment. No query plan is emitted and no function is exported for application use.
|
||||
|
||||
Cases cover whole Warwickshire, one/two towns, removing refinements, independent Bergen OR, Vestfold/Tønsberg, distinct Oslo identities, Stockholm municipality versus settlement and parent/country removal. Query/tree/map are declared expected scope lists whose consistency is checked; no UI, query service or map is exercised. Four preference examples cover EN/NO→GB, NB→SE, PL→DE and FR→BE+FR as separate residence/UI/ad/document-language fields. One explicit country-change fixture preserves unrelated preferences and a saved-search sentinel, removes only incompatible branches and requires an explanation. JSON roundtrip checks apply to these fixtures only, not server persistence.
|
||||
|
||||
## Validation outcome
|
||||
|
||||
Executed with Node `v24.19.0`:
|
||||
|
||||
- PASS: 59 country rows / 1,062 coverage cells; 13 nodes, 12 selection cases, four preference examples and one country-change expectation.
|
||||
- PASS: 22 negative mutations rejected. They cover false release claims, missing/duplicate/invented countries, invalid status, crediting the NAV fixture to GB, typed identity/edition/provenance errors, invented geometry, cross-country edges, unresolved scopes, invalid refinements, broad-parent leakage, map divergence, language/saved-search resets, invisible filters, missing explanations, settlement overlap treated as containment, administrative cycles and invalid journey country.
|
||||
- PASS: Node syntax check and staged Git diff whitespace check (exit 0 each).
|
||||
- RED evidence: before implementation, the permissive validator failed the negative suite with `Missing expected exception: must reject false release coverage` (exit 1). First implemented run then caught the real CSV's NO/SE/GB administrative hierarchy `AWAITING REVIEW` nuance; the corrected frozen-snapshot guard preserves that existing status.
|
||||
|
||||
The 22 mutations are checks of the validator, not 22 additional product tests. The counts above describe one successful final contract run; intermediate reruns are not added. Syntax/diff verification is recorded separately from product tests.
|
||||
|
||||
Required `rtk proxy graphify update .` completed exit 0 with 19,842 nodes / 48,008 edges, explicitly AST-only/no LLM. It retained warnings for unavailable PDF/SQL extractors and 146 code files yielding no symbols. Generated `graphify-out/` is local/untracked and excluded from this documentation commit; graph counts are structural orientation, not acceptance tests.
|
||||
|
||||
## Gates and limits
|
||||
|
||||
All 59 entries remain candidate scope with their existing statuses. Real geography licences, exact dataset epochs/IDs/geometry, provider rights, live operation, map attribution/privacy, native-language/device/AT evidence and release approval remain open. Phase 10 D02/frozen-candidate acceptance, Product Review, GJ implementation authority and sequential accepted stages are unchanged. No precise town/radius, accessible tree, map switching, server preference persistence or country-specific provider behavior is qualified by these checks.
|
||||
|
||||
The existing NAV municipality substring limitation remains assigned to GJ geography work; this increment does not establish or repair a separate Norway regression. No main merge, orchestrator action, push or deployment occurs. Application builds/browser/backend/hosted/provider/model suites were intentionally not run for documentation-only tooling.
|
||||
@@ -0,0 +1,62 @@
|
||||
# Multi-country geography specification QA
|
||||
|
||||
19 November 2026. Extends the accepted offline contract checkpoint `48861bca706637fdb217e0e834e67fe052113195` on `codex/global-geo-contracts`. Application baseline remains `eb2538772e1bfabbeb291e4a5efa177c79074de1`; no application source is modified or claimed current by these checks.
|
||||
|
||||
## Eligible gap and gates
|
||||
|
||||
The current central TODO still gates GJ-01 on Phase 10 D02, Product Review and initiative approval. GJ-02 runtime geography, licensed datasets, providers/maps, locale rollout and release approval remain separate. The existing 59-country coverage snapshot retains every status. Current owner scope permits useful offline specification qualification only.
|
||||
|
||||
The earlier corpus had GB/NO cross-border scope but no BE/FR or DE/PL location-selection examples; its DE/FR reference nodes were unused. Its four preference examples checked field shapes, while only one country-change expectation was validated and no locale-change expectation preserved canonical selection. This increment extends that same corpus and small validator; it creates no second country/locale registry or runtime compiler.
|
||||
|
||||
## Added contracts
|
||||
|
||||
- BE/FR independent city branches and DE/PL independent city branches combine as OR using distinct country/type IDs.
|
||||
- Expanding the BE/FR tree has exactly the same declared countries, branches and query/tree/map scopes as the collapsed counterpart.
|
||||
- Two intentionally fictional locations called `Synthetic Riverside` in different countries retain distinct identifiers and both effective scopes. Labels cannot merge them.
|
||||
- Removing FR from a temporary BE/FR query or DE from DE/PL removes only the incompatible branch and explains the change. It preserves residence, UI/ad/document languages and the separate named saved-search definition.
|
||||
- A declared FR→NL UI-locale change preserves countries, canonical branch IDs, residence, ad/document languages and the literal named saved search.
|
||||
|
||||
All added identities/relations remain under synthetic namespace `s:`, edition `synthetic-1`, provenance `synthetic-no-boundary-claim`. Familiar labels do not establish real administrative containment, legal language status, licensed data/geometry or precise settlement coverage. The equal-name locations are deliberately fictional. The locale example does not activate or qualify French/Dutch UI catalogues.
|
||||
|
||||
## Evidence
|
||||
|
||||
Original validator plus the new negative controls **FAILED**: `Missing expected exception: must reject BE FR retains an incompatible filter`. This proved that the additional country-change declarations were not being checked, rather than merely counting more positive fixtures.
|
||||
|
||||
The final `rtk proxy node docs/global-jobs/00/validate-contracts.cjs --self-test` **PASSED**:
|
||||
|
||||
| Check | Final count |
|
||||
| --- | ---: |
|
||||
| Existing candidate rows / frozen status cells | 59 / 1,062 |
|
||||
| Synthetic nodes / typed edges | 21 / 13 |
|
||||
| Selection expectation cases | 16 |
|
||||
| Existing preference examples | 4 |
|
||||
| Country-change / locale-change expectations | 3 / 1 |
|
||||
| Rejected negative mutations | 30 |
|
||||
|
||||
The original 22 mutations are included in 30, not additional product tests. Eight new controls reject hidden removed-country filters, compatible-branch loss, absent explanation, rewritten saved definitions, locale-driven country/document changes, expansion broadening and same-label scope merging. These validate specification consistency; no browser, API, persistence, map or query-engine behavior is exercised.
|
||||
|
||||
Node syntax and Git source whitespace checks passed. Native red/green output and source/artifact hashes are under [evidence/multi-country](evidence/multi-country/SOURCE_RECEIPTS.json). The country matrix/CSV/geography decision Git bindings remain exactly those in the [original report](GEOGRAPHY_CONTRACT_QA.md); no refresh of external licensing/provider evidence is implied.
|
||||
|
||||
AST-only `graphify update . --no-cluster` completed exit 0: 19,848 nodes / 49,194 edges. Missing PDF/SQL extractors and 146 inputs yielding no symbols remain graph limitations. Generated graph files stay local/untracked; no semantic/LLM graph pass was run.
|
||||
|
||||
No application tests/build/browser, real geographic datasets, provider/model/translation service or human/native-language/device qualification was run. No central roadmap edit, runtime feature, qualification-status promotion, main merge or production deployment. Only normal development-branch Git publication is authorised.
|
||||
|
||||
## 20 November 2026 · existing saved-search compatibility
|
||||
|
||||
GJ-00 ADR-07 requires future migration to retain the original keyword, unresolved free-text location, search identity and dismissal/first-seen history. EUROPE-READY §§2 and 11 also require temporary geography changes to preserve named searches. The 19 November specification run above could establish neither database readback nor what the current discovery runner actually receives.
|
||||
|
||||
Two cases in `SavedJobSearchSqliteTests.Temporary_search_keeps_legacy_filters_and_dismissal_history` seed existing rows and historical dismissed results in SQLite, clear EF tracking, run a different ad hoc search and reload the named search. One stored value contains composed and decomposed accents with punctuation. The other has a Polish occupation keyword and an empty location. The strict discovery stub checks the original arguments on manual rerun. The final database read verifies the original search ID, name, filters, active state, bare external ID, original first-seen instant and dismissal. A repeated result updates last-seen and last-run and remains previously seen.
|
||||
|
||||
The test baseline was `6da2e79a8a8d5e77bf5d6d1acf12a762e1ae138a`. The saved-search entity, discovery controller, runner and pre-existing SQLite tests matched integration `245f2feaa8bee2db8f5da0797b3e33f6ef8b056e` byte for byte. The authoritative ADR blob in planning commit `0ec9f98e` was `dcde56f5435da64ca4ac4e4e1b0b69e29d9c6f2e`.
|
||||
|
||||
The locked restore used the local NuGet cache. .NET SDK 9.0.317 built and ran the following selection.
|
||||
|
||||
```powershell
|
||||
dotnet test JobTrackerApi.Tests/JobTrackerApi.Tests.csproj --no-restore --filter 'FullyQualifiedName~SavedJobSearchSqliteTests|FullyQualifiedName~SavedJobSearchAlertTests|FullyQualifiedName~JobDiscoveryControllerTests'
|
||||
```
|
||||
|
||||
**PASSED** 27 cases, including the two new cases. The breakdown was 12 SQLite persistence, 12 existing alert-worker and three existing discovery-controller cases. Failed 0, skipped 0. Local TRX SHA-256 was `933ab479e2d7d7b2b704a8341947673c2c5c5ff90c45cfa80ad8ec4ae128efee`. No provider or model was contacted.
|
||||
|
||||
The AST-only Graphify refresh passed with 19,854 nodes and 49,213 edges. SQL extraction remained unavailable and 146 source inputs yielded no symbols. The generated graph stays local.
|
||||
|
||||
**NOT RUN** MariaDB, HTTP/browser, real providers, authenticated country/language preference updates, a migration and rollback. Current persisted location is a string. Empty means no location text. Existing rows carry no authority to interpret a string as a canonical place, country or radius. At GJ-06 entry, reuse these legacy cases against approved migration and rollback on MariaDB, alongside owner isolation and result history checks. GJ-01 entry requirements remain open.
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"base": "48861bca706637fdb217e0e834e67fe052113195",
|
||||
"policy": "LF-normalised UTF8 source, exact raw artifact bytes",
|
||||
"redSource": {
|
||||
"sha256Lf": "e9976a642147c1760dde193a973c0b6be9af8344e1cb98760218bafef65a696c",
|
||||
"derivation": "48861bca validator plus exactly the eight new selfTest cases after invalid journey country; current fixture unchanged"
|
||||
},
|
||||
"sources": [
|
||||
{
|
||||
"file": "docs/global-jobs/00/validate-contracts.cjs",
|
||||
"sha256Lf": "03963222086071855af9c41c8df77fe9ad9a76952f86f813a42512af9b43e782"
|
||||
},
|
||||
{
|
||||
"file": "docs/global-jobs/00/GEOGRAPHY_CONTRACT_FIXTURES.json",
|
||||
"sha256Lf": "c6c9f324369195d05410df57d04e9d9c799bd6f3fda453d156973edee5e5b231"
|
||||
}
|
||||
],
|
||||
"artifacts": [
|
||||
{
|
||||
"file": "red.log",
|
||||
"bytes": 1097,
|
||||
"sha256": "6eaab9962a4f9998d8ae79592529f28f46476e6ea447a46b24439122423d183c"
|
||||
},
|
||||
{
|
||||
"file": "green.json",
|
||||
"bytes": 277,
|
||||
"sha256": "fe313355b73dbfea34d66ed91f57b241ce3e1e976a65f4c3d4a7e1eb9972b643"
|
||||
},
|
||||
{
|
||||
"file": "green.stderr.log",
|
||||
"bytes": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
}
|
||||
],
|
||||
"node": "v24.19.0",
|
||||
"results": {
|
||||
"countries": 59,
|
||||
"coverageCells": 1062,
|
||||
"syntheticNodes": 21,
|
||||
"syntheticScenarios": 16,
|
||||
"preferenceJourneys": 4,
|
||||
"countryChangeInvariants": 3,
|
||||
"localeChangeInvariants": 1,
|
||||
"qualification": "offline specification consistency only",
|
||||
"rejectedMutations": 30
|
||||
},
|
||||
"limits": [
|
||||
"Offline specification only",
|
||||
"No coverage or acceptance promotion",
|
||||
"External source rights not refreshed"
|
||||
],
|
||||
"checks": {
|
||||
"syntax": {
|
||||
"command": "rtk proxy node --check docs/global-jobs/00/validate-contracts.cjs",
|
||||
"exitCode": 0
|
||||
},
|
||||
"diff": {
|
||||
"command": "rtk git diff --check",
|
||||
"exitCode": 0
|
||||
},
|
||||
"sourceArtifactBindings": {
|
||||
"exitCode": 0
|
||||
},
|
||||
"graph": {
|
||||
"command": "rtk proxy graphify update . --no-cluster",
|
||||
"exitCode": 0,
|
||||
"nodes": 19848,
|
||||
"edges": 49194,
|
||||
"scope": "AST only; generated graph untracked"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"countries": 59,
|
||||
"coverageCells": 1062,
|
||||
"syntheticNodes": 21,
|
||||
"syntheticScenarios": 16,
|
||||
"preferenceJourneys": 4,
|
||||
"countryChangeInvariants": 3,
|
||||
"localeChangeInvariants": 1,
|
||||
"qualification": "offline specification consistency only",
|
||||
"rejectedMutations": 30
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
// Offline specification QA only; never imported by the application.
|
||||
const assert = require('node:assert/strict');
|
||||
const { execFileSync } = require('node:child_process');
|
||||
const { readFileSync } = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const root = path.resolve(__dirname, '../../..');
|
||||
const git = (...args) => execFileSync('git', args, { cwd: root, encoding: 'utf8', maxBuffer: 4 * 1024 * 1024 });
|
||||
const load = () => JSON.parse(readFileSync(path.join(__dirname, 'GEOGRAPHY_CONTRACT_FIXTURES.json'), 'utf8'));
|
||||
function validate(fixture, matrix, coverage) {
|
||||
assert.equal(fixture.schema, 1);
|
||||
assert.equal(fixture.purpose, 'offline-specification-only');
|
||||
assert.equal(fixture.sourceCommit, '39fb9df06904e44916e258da0ed975dd46b9691c');
|
||||
assert.equal(fixture.baseline, 'eb2538772e1bfabbeb291e4a5efa177c79074de1');
|
||||
const unique = (values, label) => assert.equal(new Set(values).size, values.length, `duplicate ${label}`);
|
||||
const sorted = values => [...values].sort();
|
||||
const codes = [...matrix.matchAll(/^\| [^|]+ \| ([A-Z]{2}) \|/gm)].map(match => match[1]);
|
||||
assert.equal(codes.length, 59);
|
||||
unique(codes, 'matrix code');
|
||||
assert(matrix.includes('XK is a CLDR user-assigned territory code, not ISO 3166-1'));
|
||||
// This pinned CSV has no quoted fields; fail rather than silently parse a new format.
|
||||
assert(!coverage.includes('"'), 'CSV format changed; review parser');
|
||||
const [header, ...lines] = coverage.trim().split(/\r?\n/).map(line => line.split(','));
|
||||
const columns = 'territoryCode,scopeReview,countrySelectable,administrativeHierarchy,canonicalResolution,mapCountrySwitching,canonicalLocationFilters,providerCoverage,countryAwareResults,multiCountrySavedSearches,marketLanguageOptions,marketCatalogue,currencyAndTimezone,mobile,accessibility,countryTestEvidence,humanApproval,productionAvailability,existingNavFixture'.split(',');
|
||||
assert.deepEqual(header, columns);
|
||||
unique(lines.map(row => row[0]), 'coverage code');
|
||||
assert.deepEqual(sorted(lines.map(row => row[0])), sorted(codes));
|
||||
const statuses = ['NOT IMPLEMENTED', 'IMPLEMENTED', 'TESTED', 'BLOCKED', 'AWAITING REVIEW', 'ACCEPTED', 'RELEASED'];
|
||||
for (const row of lines) {
|
||||
assert.equal(row.length, columns.length);
|
||||
for (let i = 1; i < row.length; i++) {
|
||||
assert(statuses.includes(row[i]), `invalid status ${row[0]} ${columns[i]}`);
|
||||
let expected = 'NOT IMPLEMENTED';
|
||||
if (['scopeReview', 'humanApproval'].includes(columns[i])) expected = 'AWAITING REVIEW';
|
||||
if (columns[i] === 'administrativeHierarchy' && ['NO', 'SE', 'GB'].includes(row[0])) expected = 'AWAITING REVIEW';
|
||||
if (columns[i] === 'productionAvailability' || (columns[i] === 'providerCoverage' && ['NO', 'SE', 'GB'].includes(row[0]))) expected = 'BLOCKED';
|
||||
if (columns[i] === 'existingNavFixture' && row[0] === 'NO') expected = 'TESTED';
|
||||
assert.equal(row[i], expected, `unqualified coverage change ${row[0]} ${columns[i]}`);
|
||||
}
|
||||
}
|
||||
const nodes = new Map(fixture.nodes.map(node => [node.id, node]));
|
||||
unique(fixture.nodes.map(node => node.id), 'node ID');
|
||||
for (const node of fixture.nodes) {
|
||||
assert(codes.includes(node.country));
|
||||
assert(['county', 'municipality', 'town', 'settlement', 'state', 'region'].includes(node.type));
|
||||
assert(node.id.startsWith(`s:${node.country}:${node.type}:`), 'typed country identity mismatch');
|
||||
assert.equal(node.edition, 'synthetic-1');
|
||||
assert.equal(node.provenance, 'synthetic-no-boundary-claim');
|
||||
assert.equal(typeof node.label, 'string');
|
||||
assert(node.label.trim());
|
||||
assert(!('coordinates' in node || 'geometry' in node || 'providerCode' in node), 'unqualified spatial/provider data');
|
||||
}
|
||||
unique(fixture.edges.map(edge => JSON.stringify(edge)), 'edge');
|
||||
for (const edge of fixture.edges) {
|
||||
assert(nodes.has(edge.child) && nodes.has(edge.parent), 'unresolved edge');
|
||||
assert.notEqual(edge.child, edge.parent);
|
||||
assert.equal(nodes.get(edge.child).country, nodes.get(edge.parent).country, 'cross-country edge');
|
||||
assert(['administrative-parent', 'settlement-intersects', 'same-footprint'].includes(edge.type));
|
||||
if (edge.type === 'settlement-intersects') assert.equal(nodes.get(edge.child).type, 'settlement');
|
||||
}
|
||||
// Reachability checks fixture declarations only; this is not a runtime scope compiler.
|
||||
function ancestor(child, parent, trail = []) {
|
||||
assert(!trail.includes(child), 'administrative cycle');
|
||||
return fixture.edges.filter(edge => edge.type === 'administrative-parent' && edge.child === child)
|
||||
.some(edge => edge.parent === parent || ancestor(edge.parent, parent, [...trail, child]));
|
||||
}
|
||||
for (const node of nodes.keys()) assert(!ancestor(node, node), 'administrative cycle');
|
||||
function checkBranches(branches, countries) {
|
||||
unique(countries, 'search country');
|
||||
assert(countries.every(country => codes.includes(country)));
|
||||
unique(branches.map(branch => branch.root), 'branch');
|
||||
for (const branch of branches) {
|
||||
assert(nodes.has(branch.root), 'unresolved scope');
|
||||
assert(countries.includes(nodes.get(branch.root).country), 'incompatible country scope');
|
||||
unique(branch.refinements, 'refinement');
|
||||
for (const refinement of branch.refinements) {
|
||||
assert(nodes.has(refinement) && ancestor(refinement, branch.root), 'invalid refinement');
|
||||
assert.equal(nodes.get(refinement).country, nodes.get(branch.root).country);
|
||||
}
|
||||
}
|
||||
}
|
||||
unique(fixture.scenarios.map(scenario => scenario.name), 'scenario name');
|
||||
assert(fixture.scenarios.length >= 12);
|
||||
for (const scenario of fixture.scenarios) {
|
||||
checkBranches(scenario.branches, scenario.countries);
|
||||
assert(scenario.expanded.every(id => nodes.has(id)));
|
||||
const leaves = scenario.branches.flatMap(branch => branch.refinements.length
|
||||
? branch.refinements.filter(id => !branch.refinements.some(other => id !== other && ancestor(other, id))) : [branch.root]);
|
||||
unique(leaves, 'effective scope');
|
||||
for (const surface of ['query', 'tree', 'map']) {
|
||||
assert.deepEqual(sorted(scenario.expected[surface]), sorted(leaves), `incorrect ${surface} scope: ${scenario.name}`);
|
||||
}
|
||||
if (scenario.equivalentTo) {
|
||||
const other = fixture.scenarios.find(item => item.name === scenario.equivalentTo);
|
||||
assert(other && other !== scenario, 'missing equivalent selection');
|
||||
assert.deepEqual(scenario.countries, other.countries, 'expansion changes search countries');
|
||||
assert.deepEqual(scenario.branches, other.branches, 'expansion changes selected branches');
|
||||
assert.deepEqual(scenario.expected, other.expected, 'expansion changes effective scope');
|
||||
}
|
||||
assert.deepEqual(JSON.parse(JSON.stringify(scenario)), scenario, 'fixture roundtrip');
|
||||
}
|
||||
const countryChanges = [fixture.countryChange, ...fixture.additionalCountryChanges];
|
||||
for (const change of countryChanges) {
|
||||
checkBranches(change.beforeBranches, change.beforeCountries);
|
||||
checkBranches(change.afterBranches, change.afterCountries);
|
||||
const retained = change.beforeBranches.filter(branch => change.afterCountries.includes(nodes.get(branch.root).country));
|
||||
assert.deepEqual(change.afterBranches, retained, 'only incompatible filters may clear');
|
||||
assert.deepEqual(change.cleared, change.beforeBranches.filter(branch => !retained.includes(branch)).map(branch => branch.root));
|
||||
assert(change.explanation.trim(), 'country change explanation required');
|
||||
assert.deepEqual(change.after, change.before, 'unrelated preferences/saved search changed');
|
||||
assert.deepEqual(Object.keys(change.before).sort(), ['adLanguages', 'documentLanguages', 'residence', 'savedSearch', 'uiLocale']);
|
||||
}
|
||||
const { uiLocale: previousLocale, ...previousSelection } = fixture.localeChange.before;
|
||||
const { uiLocale: nextLocale, ...nextSelection } = fixture.localeChange.after;
|
||||
assert(typeof previousLocale === 'string' && previousLocale.trim());
|
||||
assert(typeof nextLocale === 'string' && nextLocale.trim());
|
||||
assert.notEqual(previousLocale, nextLocale, 'fixture must exercise an actual locale change');
|
||||
checkBranches(previousSelection.branches, previousSelection.countries);
|
||||
checkBranches(nextSelection.branches, nextSelection.countries);
|
||||
assert.deepEqual(nextSelection, previousSelection, 'locale change rewrites search or document preferences');
|
||||
assert.equal(fixture.journeys.length, 4);
|
||||
for (const journey of fixture.journeys) {
|
||||
assert(codes.includes(journey.residence));
|
||||
assert(journey.countries.length && journey.countries.every(country => codes.includes(country)));
|
||||
unique(journey.countries, 'journey country');
|
||||
assert.equal(typeof journey.uiLocale, 'string');
|
||||
assert(journey.adLanguages.length && journey.documentLanguages.length);
|
||||
assert(journey.adLanguages.every(language => typeof language === 'string'));
|
||||
assert(journey.documentLanguages.every(language => typeof language === 'string'));
|
||||
}
|
||||
return { countries: codes.length, coverageCells: lines.length * (columns.length - 1), syntheticNodes: nodes.size,
|
||||
syntheticScenarios: fixture.scenarios.length, preferenceJourneys: fixture.journeys.length, countryChangeInvariants: countryChanges.length,
|
||||
localeChangeInvariants: 1,
|
||||
qualification: 'offline specification consistency only' };
|
||||
}
|
||||
function selfTest(fixture, matrix, coverage) {
|
||||
const cases = [
|
||||
['false release coverage', (f, m, c) => [f, m, c.replace('BLOCKED', 'RELEASED')]],
|
||||
['cross-country edge', f => { f.edges[0].parent = 's:NO:county:vestfold'; }],
|
||||
['invalid refinement', f => { f.scenarios[1].branches[0].refinements = ['s:NO:municipality:tonsberg']; }],
|
||||
['unqualified provenance', f => { f.nodes[0].provenance = 'licensed-real-data'; }],
|
||||
['duplicate country', (f, m, c) => [f, m, c + c.trim().split('\n')[1] + '\n']],
|
||||
['missing country', (f, m, c) => [f, m, c.trim().split('\n').slice(0, -1).join('\n')]],
|
||||
['invented country', (f, m, c) => [f, m, c.replace('AD,', 'ZZ,')]],
|
||||
['invalid status', (f, m, c) => [f, m, c.replace('BLOCKED', 'HEALTHY')]],
|
||||
['NO fixture credited to GB', (f, m, c) => [f, m, c.replace(/^GB,(.*),NOT IMPLEMENTED$/m, 'GB,$1,TESTED')]],
|
||||
['wrong type identity', f => { f.nodes[0].type = 'town'; }],
|
||||
['missing edition', f => { delete f.nodes[0].edition; }],
|
||||
['invented geometry', f => { f.nodes[0].geometry = {}; }],
|
||||
['unresolved scope', f => { f.scenarios[0].branches[0].root = 'missing'; }],
|
||||
['parent incorrectly ORed with town', f => { f.scenarios[1].expected.query.push(f.scenarios[1].branches[0].root); }],
|
||||
['map divergent from query', f => { f.scenarios[1].expected.map = []; }],
|
||||
['unrelated language reset', f => { f.countryChange.after.uiLocale = 'nb-NO'; }],
|
||||
['saved search overwritten', f => { f.countryChange.after.savedSearch = 'rewritten'; }],
|
||||
['invisible country filter', f => { f.countryChange.afterBranches = f.countryChange.beforeBranches; }],
|
||||
['silent country clearing', f => { f.countryChange.explanation = ''; }],
|
||||
['settlement overlap used as containment', f => {
|
||||
f.scenarios[9].branches[0].refinements = ['s:SE:settlement:stockholm'];
|
||||
}],
|
||||
['administrative cycle', f => { f.edges.push({child: f.edges[0].parent, parent: f.edges[0].child, type: 'administrative-parent'}); }],
|
||||
['invalid journey country', f => { f.journeys[0].countries = ['ZZ']; }],
|
||||
['BE FR retains an incompatible filter', f => { f.additionalCountryChanges[0].afterBranches = f.additionalCountryChanges[0].beforeBranches; }],
|
||||
['BE FR drops a compatible branch', f => { f.additionalCountryChanges[0].afterBranches = []; }],
|
||||
['country change lacks an explanation', f => { f.additionalCountryChanges[1].explanation = ''; }],
|
||||
['temporary country change rewrites a saved definition', f => { f.additionalCountryChanges[0].after.savedSearch.countries = ['BE']; }],
|
||||
['locale switch changes country scope', f => { f.localeChange.after.countries = ['BE']; }],
|
||||
['locale switch changes document language', f => { f.localeChange.after.documentLanguages = ['nl']; }],
|
||||
['expansion broadens the selected branch', f => {
|
||||
f.scenarios[13].branches[0].refinements = [];
|
||||
for (const surface of ['query', 'tree', 'map']) f.scenarios[13].expected[surface] = ['s:BE:region:brussels', 's:FR:town:paris'];
|
||||
}],
|
||||
['equal labels merge distinct countries', f => { f.scenarios[15].expected.query.pop(); }],
|
||||
];
|
||||
for (const [name, mutate] of cases) {
|
||||
const candidate = structuredClone(fixture);
|
||||
const inputs = mutate(candidate, matrix, coverage) || [candidate, matrix, coverage];
|
||||
assert.throws(() => validate(...inputs), undefined, `must reject ${name}`);
|
||||
}
|
||||
return cases.length;
|
||||
}
|
||||
const fixture = load();
|
||||
// Read committed inputs directly; never copy a second register or use another worktree's dirty files.
|
||||
const bindings = [
|
||||
[fixture.sourceCommit, 'docs/i18n/00/EUROPE_COUNTRY_LANGUAGE_MATRIX.md', '4b88eb52e91d1c1ad0bb9082ed3ce075e0602dbd'],
|
||||
[fixture.sourceCommit, 'docs/i18n/00/EUROPE_RELEASE_COVERAGE.csv', '395fc09934a516a2445fddb092b5de18c9469080'],
|
||||
['0ec9f98e6ed4a646fc5e017d8eb6fade07653f37', 'docs/global-jobs/00/GEOGRAPHY_DECISIONS.md', '48f108ef02648f53490ae505b223ebff321264bb'],
|
||||
];
|
||||
for (const [commit, file, blob] of bindings) assert.equal(git('rev-parse', `${commit}:${file}`).trim(), blob, `source binding: ${file}`);
|
||||
const matrix = git('show', `${fixture.sourceCommit}:docs/i18n/00/EUROPE_COUNTRY_LANGUAGE_MATRIX.md`);
|
||||
const coverage = git('show', `${fixture.sourceCommit}:docs/i18n/00/EUROPE_RELEASE_COVERAGE.csv`);
|
||||
const result = validate(fixture, matrix, coverage);
|
||||
if (process.argv.includes('--self-test')) result.rejectedMutations = selfTest(fixture, matrix, coverage);
|
||||
console.log(JSON.stringify(result, null, 2));
|
||||
@@ -0,0 +1,13 @@
|
||||
# PERF-16: remove unused font startup requests
|
||||
|
||||
Baseline `b1e79a56`, branch codex/perf-font-startup, E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch. Source `ade8b08`. Scope: three font link elements in root layout only. No dependency/file deletion, replacement font, CSS/theme/renderer redesign or new external service.
|
||||
|
||||
Repository source inventory found Archivo only in the root stylesheet URL, with no application font consumer. Current theme uses Trebuchet MS/system fonts; code/native controls retain their established stacks. A controlled built-app probe observed Trebuchet/system and Arial, never Archivo, across390/1440 widths, EN/NB, light/dark (eight states). All API responses were synthetic, external stylesheet intercepted with inert CSS; no request was sent to Google.
|
||||
|
||||
Removed the unused Archivo stylesheet and its Google API/static preconnect hints. Next also stops emitting its automatic stylesheet preload. Paired after-build probe PASSED eight states: one external stylesheet request per page becomes zero (eight to zero in the sample); four font-related head links become zero. Computed font-family sets, heading text/dimensions and overflow results are identical for every pair. This establishes request elimination and retained sampled typography, not real-network latency, saved live font bytes, European TTFB or a whole-product performance result. Initial probe incorrectly expected three generated links; corrected after inspecting Next's generated fourth preload, before changing application source.
|
||||
|
||||
PASSED: ordinary Next16.4.6 build/TypeScript/static export (also includes prior interview-add source), scoped layout lint, source diff check, paired browser assertions. Existing tracking pilot PASSED two EN/light journeys at320/1440, eight axe scans/captures, fixture previews/writes only. This is a canary, not a replacement for the preceding36/144 matrix or whole-application regression. Prior full Jest's two stale-label defects and focused correction remain recorded separately. No new backend/full-Jest/native-device/AT/provider/model/PDF/security/recovery/release qualification.
|
||||
|
||||
Earlier framework qualification described blocked Google Fonts as potential intended-font substitution. Current computed-font/source evidence narrows that interpretation: Archivo was unused, so blocking it did not change the observed application typography. Intended visual acceptance against A3 and native font availability still need their independent review. Physical document/PDF font rendering is untouched.
|
||||
|
||||
Evidence: [source and native receipts](evidence/SOURCE_RECEIPTS.json), paired probe source archived as text and assert-bearing before/after/comparison outputs. No production requests or deployment. Rollback is restoring these three layout links in a dedicated revert and rebuilding; existing theme/bootstrap/auth order remains unchanged. PERF-16 remains PARTIAL for other startup/loading/performance/device qualification, and final A3/security/release gates remain open.
|
||||
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"baseline": "b1e79a5679161f593263339dcc15ceb0ab92009a",
|
||||
"sourceCommit": "ade8b082590ae6bf1e44c2c2ff8fc0027cf80965",
|
||||
"sourceSha256Lf": {
|
||||
"job-tracker-ui/app/layout.tsx": "d2e460998e4182f11657089850f9144059f453ebd9c4d1fbcd3f6aee25449843",
|
||||
"job-tracker-ui/src/theme.ts": "6b3c28a2a920e53e01ed9ee12ee2f5cdaa0fe7c3752415a97ca544c82fce8cfa",
|
||||
"job-tracker-ui/src/ThemeProvider.tsx": "1d25fd091ca632f7671e413db24e917d4ca4a375fddade0ca1ff397a8ae9f950",
|
||||
"job-tracker-ui/src/index.css": "daf22c296c801d3d533083361cc59fbdc22e5bfe528aa4bad1973b54cc5448a4",
|
||||
"job-tracker-ui/package-lock.json": "3e7d849d75a7bffdbdac30990d003ebe079f649679e3add210d6f0bb323a17b9"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "font-startup-probe.mjs.txt",
|
||||
"lfSha256": "59bc6af451b5e22722f89f73bf9cea722fdd53a3b6f337705b6c5bf04092d316",
|
||||
"rawSha256": "59bc6af451b5e22722f89f73bf9cea722fdd53a3b6f337705b6c5bf04092d316",
|
||||
"gzipSha256": "d424e61aea36361407de2fc9d9de4ebc975b51713f60ef99b078b6a8b7166f28",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-before.json",
|
||||
"lfSha256": "db7bd746ea6a5d3ee3e200b01c9d7a60fa99794be9ebb55ce85afbbea4b6b704",
|
||||
"rawSha256": "db7bd746ea6a5d3ee3e200b01c9d7a60fa99794be9ebb55ce85afbbea4b6b704",
|
||||
"gzipSha256": "d0bdbc996ecaed0e2302b263c549247f52500e2813c0af4b3347322d9ba8da4e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-before.txt",
|
||||
"lfSha256": "82ce18769e0c554b6e806264a27bae44a925b465b2713e4a4012666a23658e04",
|
||||
"rawSha256": "410b887c27f899cc8f88af8e64aac7c9fffca87d4149887f94db6146b3e27c93",
|
||||
"gzipSha256": "36f2e2d6a949ccccf309bc13fd0a51a36699df993c3031b8d2542b66a140d708",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-after.json",
|
||||
"lfSha256": "9e8c48e88a57c6938b84abbde290d3f52cc7a94359cdaca6b7fea48d6d0ae0a8",
|
||||
"rawSha256": "9e8c48e88a57c6938b84abbde290d3f52cc7a94359cdaca6b7fea48d6d0ae0a8",
|
||||
"gzipSha256": "291c40d49308bfc9713ae9c08e35059391c2da9d3971a57c6690fdbd23916a61",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-after.txt",
|
||||
"lfSha256": "bd25849239db78cc624633e8f9a92a88f2c6d805b3483e607e576cada83f76f9",
|
||||
"rawSha256": "793d8785f1689d4da4da1eb53c6a34e7ddc2279ccac67ab7c5ad1558c04e3fa7",
|
||||
"gzipSha256": "78076081f5129cd7e64a4b24bba9d830494504b245aa1c88e30366a97cb84740",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-comparison.json",
|
||||
"lfSha256": "f63c90ff0b65daf0f98d343e6aa0272f624dfd753a5daab7e4217b727f5641b1",
|
||||
"rawSha256": "54e11edeaed7a1aee81d72ddba22a9a26c679aef229709daeba79de59c195671",
|
||||
"gzipSha256": "7d4e734ea05501a38a3ef781a529587d068c130c476df1b1b242ec964623a428",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-build.txt",
|
||||
"lfSha256": "475026ffbe11be6e0a4a3b3dd679a8648023d329dd47807848bae87b4a4982d3",
|
||||
"rawSha256": "528d1e031465906c2c432291b58ed38158c2f52a2055dbc13d4611a545afa8aa",
|
||||
"gzipSha256": "fbb85fb057debb7ef527dd456ce83946516e8496b70ad91a704a739d1016f9a9",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-lint.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-tracking-canary.txt",
|
||||
"lfSha256": "4cdf9c2e1decac7aa1139e6a14612bb1457a4d05b564dffbcc3d50dc926ab7d2",
|
||||
"rawSha256": "70bc6be58390a0d28b50ae1bd1fc3a49a1e7b4df8c6c56bb3bcb26bb41365b1c",
|
||||
"gzipSha256": "d27db4e0c62fecb3d5a4ce6bb99f3cae760cd3d5b12cd100aaa77d2afabd6b1d",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "font-startup-tracking-canary-PILOT.json",
|
||||
"lfSha256": "a5a3f9bcbd4e351508dc29a1e82a16e29e91896c019abb30e94f544fa15c37ed",
|
||||
"rawSha256": "a5a3f9bcbd4e351508dc29a1e82a16e29e91896c019abb30e94f544fa15c37ed",
|
||||
"gzipSha256": "33c18eeaa61ff6367c7ceaae92f5320dd053d66b28bbe2e1293c188911b9b6ed",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
}
|
||||
],
|
||||
"canonicalTextEncoding": "UTF-8 with LF; native gzip bytes unchanged"
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"phase": "after",
|
||||
"limits": [
|
||||
"Synthetic API only",
|
||||
"External font stylesheet replaced with inert CSS; no Google request sent",
|
||||
"Request count and typography are observed; no live-network latency claim"
|
||||
],
|
||||
"states": [
|
||||
{
|
||||
"width": 390,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"language": "en",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"language": "nb",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"language": "nb",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "nb",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "nb",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
after: 8 states, 0 intercepted external stylesheet requests
|
||||
Binary file not shown.
@@ -0,0 +1,322 @@
|
||||
{
|
||||
"phase": "before",
|
||||
"limits": [
|
||||
"Synthetic API only",
|
||||
"External font stylesheet replaced with inert CSS; no Google request sent",
|
||||
"Request count and typography are observed; no live-network latency claim"
|
||||
],
|
||||
"states": [
|
||||
{
|
||||
"width": 390,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"language": "en",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"language": "nb",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"language": "nb",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 358,
|
||||
"height": 35,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Discover jobs",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "nb",
|
||||
"mode": "light",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "nb",
|
||||
"mode": "dark",
|
||||
"families": [
|
||||
"\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
||||
"Arial"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "preload",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.googleapis.com/"
|
||||
},
|
||||
{
|
||||
"rel": "preconnect",
|
||||
"href": "https://fonts.gstatic.com/"
|
||||
},
|
||||
{
|
||||
"rel": "stylesheet",
|
||||
"href": "https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
}
|
||||
],
|
||||
"heading": {
|
||||
"text": "Finn jobber",
|
||||
"width": 1122,
|
||||
"height": 40,
|
||||
"family": "\"Trebuchet MS\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif"
|
||||
},
|
||||
"overflow": false,
|
||||
"external": [
|
||||
"https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap"
|
||||
],
|
||||
"errors": [],
|
||||
"writes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
before: 8 states, 8 intercepted external stylesheet requests
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 build
|
||||
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
|
||||
|
||||
▲ Next.js 16.4.6 (Turbopack)
|
||||
✓ Running next.config.js took 52ms
|
||||
|
||||
Creating an optimized production build ...
|
||||
✓ Compiled successfully in 897ms
|
||||
Running TypeScript ...
|
||||
Finished TypeScript in 11.7s ...
|
||||
Collecting page data using 4 workers ...
|
||||
Generating static pages using 4 workers (0/3) ...
|
||||
✓ Generating static pages using 4 workers (3/3) in 1465ms
|
||||
Finalizing page optimization ...
|
||||
|
||||
Route (app)
|
||||
┌ ○ /
|
||||
└ ○ /_not-found
|
||||
|
||||
|
||||
○ (Static) prerendered as static content
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"states": 8,
|
||||
"externalStylesheetRequestsBefore": 8,
|
||||
"externalStylesheetRequestsAfter": 0,
|
||||
"fontHeadLinksPerStateBefore": 4,
|
||||
"fontHeadLinksPerStateAfter": 0,
|
||||
"fontFamiliesAndHeadingGeometry": "identical",
|
||||
"limits": "No measured live network latency or typography redesign claim"
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,51 @@
|
||||
import { createRequire } from 'node:module';
|
||||
import path from 'node:path';
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
const { chromium } = createRequire(path.join(process.cwd(), 'package.json'))('@playwright/test');
|
||||
const [phase, output] = process.argv.slice(2);
|
||||
assert.ok(['before', 'after'].includes(phase));
|
||||
const states = [];
|
||||
const browser = await chromium.launch();
|
||||
try {
|
||||
for (const width of [390, 1440]) for (const language of ['en', 'nb']) for (const mode of ['light', 'dark']) {
|
||||
const context = await browser.newContext({ viewport: { width, height: 1000 }, reducedMotion: 'reduce' });
|
||||
const page = await context.newPage();
|
||||
const external = [], writes = [], errors = [];
|
||||
page.on('pageerror', e => errors.push(e.message));
|
||||
await page.addInitScript(({ language, mode }) => { localStorage.setItem('uiLanguage', language); localStorage.setItem('jobtracker.themeMode', mode); }, { language, mode });
|
||||
await page.route('**/*', route => {
|
||||
const request = route.request(), url = new URL(request.url());
|
||||
if (!['localhost', '127.0.0.1'].includes(url.hostname)) {
|
||||
external.push(url.href);
|
||||
if (url.hostname === 'fonts.googleapis.com') return route.fulfill({ contentType: 'text/css', body: '/* synthetic unavailable font stylesheet: no remote font or provider access */' });
|
||||
return route.abort();
|
||||
}
|
||||
if (!url.pathname.startsWith('/api/')) return route.continue();
|
||||
if (request.method() !== 'GET') { writes.push(url.pathname); return route.abort(); }
|
||||
const fixtures = {
|
||||
'/api/auth/config': { requireAuth: true },
|
||||
'/api/auth/me': { id: 'font-probe-owner', sessionContext: 'font-probe-session', firstName: 'Alex', displayName: 'Alex Sample', roles: [], uiLanguage: language === 'nb' ? 'nb-NO' : 'en' },
|
||||
'/api/jobapplications/reminders': [], '/api/notifications/unread-count': { count: 0 }, '/api/job-discovery/saved-searches': [], '/api/companies': []
|
||||
};
|
||||
return route.fulfill({ status: Object.hasOwn(fixtures, url.pathname) ? 200 : 404, contentType: 'application/json', body: JSON.stringify(fixtures[url.pathname] ?? {}) });
|
||||
});
|
||||
await page.goto('http://localhost:4338/discover');
|
||||
await page.locator('h1').waitFor();
|
||||
await page.evaluate(() => document.fonts.ready);
|
||||
const actual = await page.evaluate(() => ({
|
||||
families: [...new Set([...document.querySelectorAll('body,h1,h2,button,input,label')].map(e => getComputedStyle(e).fontFamily))].sort(),
|
||||
links: [...document.querySelectorAll('link[href*="fonts.googleapis.com"],link[href*="fonts.gstatic.com"]')].map(e => ({ rel: e.rel, href: e.href })),
|
||||
heading: (() => { const h = document.querySelector('h1'), r = h.getBoundingClientRect(); return { text: h.textContent, width: r.width, height: r.height, family: getComputedStyle(h).fontFamily }; })(),
|
||||
overflow: document.documentElement.scrollWidth > innerWidth + 1
|
||||
}));
|
||||
assert.ok(actual.families.every(f => !/archivo/i.test(f)), 'Archivo must be unreferenced by rendered app typography');
|
||||
assert.equal(external.length, phase === 'before' ? 1 : 0);
|
||||
assert.equal(actual.links.length, phase === 'before' ? 4 : 0);
|
||||
assert.deepEqual(errors, []); assert.deepEqual(writes, []); assert.equal(actual.overflow, false);
|
||||
states.push({ width, language, mode, ...actual, external, errors, writes });
|
||||
await context.close();
|
||||
}
|
||||
} finally { await browser.close(); }
|
||||
fs.writeFileSync(output, JSON.stringify({ phase, limits: ['Synthetic API only', 'External font stylesheet replaced with inert CSS; no Google request sent', 'Request count and typography are observed; no live-network latency claim'], states }, null, 2));
|
||||
console.log(`${phase}: ${states.length} states, ${states.reduce((n,s)=>n+s.external.length,0)} intercepted external stylesheet requests`);
|
||||
Binary file not shown.
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"screens": [
|
||||
{
|
||||
"width": 320,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "initial",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "results",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "review",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "tracked",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "initial",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "results",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "review",
|
||||
"violations": []
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"state": "tracked",
|
||||
"violations": []
|
||||
}
|
||||
],
|
||||
"journeys": [
|
||||
{
|
||||
"width": 320,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"discoveryPreviewReviewTracked": "PASS",
|
||||
"optionalAttachmentsSkippedWithExistingControls": "PASS",
|
||||
"savedSearchMutations": "NOT RUN",
|
||||
"externalAdvertAndProviderAccess": "NOT RUN"
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"discoveryPreviewReviewTracked": "PASS",
|
||||
"optionalAttachmentsSkippedWithExistingControls": "PASS",
|
||||
"savedSearchMutations": "NOT RUN",
|
||||
"externalAdvertAndProviderAccess": "NOT RUN"
|
||||
}
|
||||
],
|
||||
"errors": [],
|
||||
"unexpectedWrites": [],
|
||||
"mockedWrites": [
|
||||
{
|
||||
"width": 320,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"action": "createTrackedJob"
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"action": "createTrackedJob"
|
||||
}
|
||||
],
|
||||
"previewRequests": [
|
||||
{
|
||||
"width": 320,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"url": "https://example.test/vacancy-0"
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"language": "en",
|
||||
"mode": "light",
|
||||
"url": "https://example.test/vacancy-0"
|
||||
}
|
||||
],
|
||||
"unavailableReads": [],
|
||||
"blockedExternal": [],
|
||||
"limits": [
|
||||
"synthetic provider/API fixtures, not live NAV or backend qualification",
|
||||
"no new providers/geography or native/security/release acceptance"
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
Checking 320/en/light
|
||||
Checking 1440/en/light
|
||||
PASS:2 controlled discovery journeys,8 axe scans/captures,2 intercepted fixture mutations.
|
||||
Binary file not shown.
@@ -14,161 +14,184 @@
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\next-old.json",
|
||||
"nativeSha256": "3640b5399e01cb2b3e1fb7c327b461a7f46d61fb47b8edf4cb82d27e51bfe816",
|
||||
"lfSha256": "3640b5399e01cb2b3e1fb7c327b461a7f46d61fb47b8edf4cb82d27e51bfe816",
|
||||
"gzipSha256": "18507957acb21cf970ae9424e30dc372c9e0370f2e4096922267093777d754ef"
|
||||
"gzipSha256": "18507957acb21cf970ae9424e30dc372c9e0370f2e4096922267093777d754ef",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "next-security.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\next-security.json",
|
||||
"nativeSha256": "8483396571c53bbb6d03ff47cb4f741ebc6fc75b38c2aa95768f90665e4c0391",
|
||||
"lfSha256": "8483396571c53bbb6d03ff47cb4f741ebc6fc75b38c2aa95768f90665e4c0391",
|
||||
"gzipSha256": "f712a4d2a96124c07d3d684f8f51f69fc1eef0b203312ca81951cac3be8f5fb2"
|
||||
"gzipSha256": "f712a4d2a96124c07d3d684f8f51f69fc1eef0b203312ca81951cac3be8f5fb2",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "next-target.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\next-target.json",
|
||||
"nativeSha256": "4c04cab06e7f3f565aaa35cfe7dab699c066aa3ea434ae309880afcbd3dc4564",
|
||||
"lfSha256": "4c04cab06e7f3f565aaa35cfe7dab699c066aa3ea434ae309880afcbd3dc4564",
|
||||
"gzipSha256": "161c85dbf9b5ecd7d9cf5e6854422e8a1708788188b458b18e28090790a731cf"
|
||||
"gzipSha256": "161c85dbf9b5ecd7d9cf5e6854422e8a1708788188b458b18e28090790a731cf",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "eslint-target.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\eslint-target.json",
|
||||
"nativeSha256": "b88cd796a9f110ff6bff60788008dc602e9b35900fe14814c988e89a0b398e6d",
|
||||
"lfSha256": "b88cd796a9f110ff6bff60788008dc602e9b35900fe14814c988e89a0b398e6d",
|
||||
"gzipSha256": "b062f09d81236b6d491c254f5388bea3e06c23379086da6550df9fa23d167110"
|
||||
"gzipSha256": "b062f09d81236b6d491c254f5388bea3e06c23379086da6550df9fa23d167110",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "eslint-plugin-target.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\eslint-plugin-target.json",
|
||||
"nativeSha256": "6ffec5d61a25463238f9639b9377ba5dbd2e615bc2b233e4b581631fbec4bd9b",
|
||||
"lfSha256": "6ffec5d61a25463238f9639b9377ba5dbd2e615bc2b233e4b581631fbec4bd9b",
|
||||
"gzipSha256": "6dae1285d31613274f6a3e3a49e9e275f0314767a4509ed91bc6bc6a605eac1d"
|
||||
"gzipSha256": "6dae1285d31613274f6a3e3a49e9e275f0314767a4509ed91bc6bc6a605eac1d",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "next-advisories.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\next-advisories.json",
|
||||
"nativeSha256": "9e99d9fa19737e77c264db2c9865aea274e8fbd259c2116e772deeed179a5395",
|
||||
"lfSha256": "9e99d9fa19737e77c264db2c9865aea274e8fbd259c2116e772deeed179a5395",
|
||||
"gzipSha256": "7586af92eae24bac2c84bc9acd6d6bd6ca9ad91eb3e3f487cc55c7b832dede9f"
|
||||
"gzipSha256": "7586af92eae24bac2c84bc9acd6d6bd6ca9ad91eb3e3f487cc55c7b832dede9f",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "METADATA_SUMMARY.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\METADATA_SUMMARY.json",
|
||||
"nativeSha256": "eb4d0b0743085bf4edfbb6cb6f4db28dcc81915cc6130720ccbfed07db491ecc",
|
||||
"lfSha256": "bd3a8a7275afe7ec9a5af4ddec5ebbaadd762168840a4c07c56b7eaa6f925aeb",
|
||||
"gzipSha256": "e3d4a1e9cba1f6a3a6f60361d08411c5eefbaeb0c6e6a5b19c271ee92f613fc2"
|
||||
"gzipSha256": "e3d4a1e9cba1f6a3a6f60361d08411c5eefbaeb0c6e6a5b19c271ee92f613fc2",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "TARGET_QUALIFICATION.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\TARGET_QUALIFICATION.json",
|
||||
"nativeSha256": "90fe0e0e270bd03144307f78d8093255b3af8ba186aacfaca9f4566ab6ab8101",
|
||||
"lfSha256": "90fe0e0e270bd03144307f78d8093255b3af8ba186aacfaca9f4566ab6ab8101",
|
||||
"gzipSha256": "5074e7e6a0cc8144afdbeed5811ca1ec9518770b0be110fae25a043f594cf56d"
|
||||
"gzipSha256": "5074e7e6a0cc8144afdbeed5811ca1ec9518770b0be110fae25a043f594cf56d",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "lock-update.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\lock-update.txt",
|
||||
"nativeSha256": "26f3073106e3a6a6c16facbf0509b17082ba5118326ba43dfcdd8dd75cc1666f",
|
||||
"lfSha256": "76c3c225c3ab8368c833d46e602819364ae2f053dde1038fea483b70ff765f3c",
|
||||
"gzipSha256": "34c9c51fcf24cd19e4bfacbd2a635da471b46ac1cdaf6026d3ef03e9d52762af"
|
||||
"gzipSha256": "34c9c51fcf24cd19e4bfacbd2a635da471b46ac1cdaf6026d3ef03e9d52762af",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "install.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\install.txt",
|
||||
"nativeSha256": "00b59fa7fc6c3222298be62043381926bee02dfa7b722635939a77dc502bbe27",
|
||||
"lfSha256": "ae31c70a1b2d43a1e6d5ec68b67aa32fb3804249f849204d9b2eca805b8ce284",
|
||||
"gzipSha256": "95a03e4ba23fc0d14792662494d1965583836e4d58445ff288ed559b0e396970"
|
||||
"gzipSha256": "95a03e4ba23fc0d14792662494d1965583836e4d58445ff288ed559b0e396970",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "audit.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\audit.json",
|
||||
"nativeSha256": "5a2244077a07023117d59c4d1fe2c5053a984a660d20c11f59ca23341ca0c677",
|
||||
"lfSha256": "0f79968986a658e7e272c3a18c4dc2af11b336b0704bd9cecf9bf69e0d0c11f4",
|
||||
"gzipSha256": "1d2f07bfc8842ab10e22bc83c7d54341e35845f9de0518297346fd675cb19a9e"
|
||||
"gzipSha256": "1d2f07bfc8842ab10e22bc83c7d54341e35845f9de0518297346fd675cb19a9e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "build.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\build.txt",
|
||||
"nativeSha256": "a43062c611836d765a91398bf99fd7588f253cd1708bd891b5bf7cd4b37f3f06",
|
||||
"lfSha256": "fc017de7c646d045a4e71f610b6d1b2ed1eb25f0174ef33ad9668f80e33fb989",
|
||||
"gzipSha256": "75695736f795a78f927fe49e7bc03e87b18a38c05526da6fb8b8ce3bd96d3850"
|
||||
"gzipSha256": "75695736f795a78f927fe49e7bc03e87b18a38c05526da6fb8b8ce3bd96d3850",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "lint.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\lint.txt",
|
||||
"nativeSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "browser-discovery.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\browser-discovery.txt",
|
||||
"nativeSha256": "a78b13171d276113ffbcb97635ac8a0deff56f7f158233fc8b7df924c0f0c241",
|
||||
"lfSha256": "0c421d5460f19e1a502a3fd514ccb793033731ff638d0e9f691def6b3d9d5032",
|
||||
"gzipSha256": "e394c349fc63c29b10c62a16229e4dff2c5067b7a8d7b750287c427784470d75"
|
||||
"gzipSha256": "e394c349fc63c29b10c62a16229e4dff2c5067b7a8d7b750287c427784470d75",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "browser-discovery-BROWSER.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\browser-discovery\\BROWSER.json",
|
||||
"nativeSha256": "6590b51315558d8ea6c8093b030687aabc47a3b966d4a28108e7b3e489bc0b10",
|
||||
"lfSha256": "6590b51315558d8ea6c8093b030687aabc47a3b966d4a28108e7b3e489bc0b10",
|
||||
"gzipSha256": "6a744b2cb7652755f6e01b327304700d711a042fd433aef287db07ef9fdbdd40"
|
||||
"gzipSha256": "6a744b2cb7652755f6e01b327304700d711a042fd433aef287db07ef9fdbdd40",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "browser-tracking.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\browser-tracking.txt",
|
||||
"nativeSha256": "31adb03b86281ded5d2d7793816123bd502f6e04ba07e9210ba8963a6056d83d",
|
||||
"lfSha256": "31adb03b86281ded5d2d7793816123bd502f6e04ba07e9210ba8963a6056d83d",
|
||||
"gzipSha256": "27009179cadb180feda225b7cf64822865bbc083fe883cf493e6716b16a13f24"
|
||||
"lfSha256": "5ea9e8f3f6d8a67bb3ddb36991ce4b5128f4a090d88915904bed4c33bba18697",
|
||||
"gzipSha256": "27009179cadb180feda225b7cf64822865bbc083fe883cf493e6716b16a13f24",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "browser-tracking-BROWSER.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\browser-tracking\\BROWSER.json",
|
||||
"nativeSha256": "541b96fabf2bc022459577660f6d25cfc264c5fc2ebaca0cb0f0901d7812adae",
|
||||
"lfSha256": "541b96fabf2bc022459577660f6d25cfc264c5fc2ebaca0cb0f0901d7812adae",
|
||||
"gzipSha256": "faed6fba7dc484272caffd850c802962c5ddb5b47199a4943066b7ca3715478a"
|
||||
"gzipSha256": "faed6fba7dc484272caffd850c802962c5ddb5b47199a4943066b7ca3715478a",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "frontend-full.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\frontend-full.txt",
|
||||
"nativeSha256": "6cd0a4c0c37775e40bd71c9ab6a5b97b11b14b141e7347458c54c602b10afc37",
|
||||
"lfSha256": "b5afe29b6ee2acb05f2d40fd415b9ab8c02e2ff1bd6fee14abc248d2df40020e",
|
||||
"gzipSha256": "f225462f78531916ce28e9457ad8d41952c8912143eb693a34e3874534fa56ea"
|
||||
"gzipSha256": "f225462f78531916ce28e9457ad8d41952c8912143eb693a34e3874534fa56ea",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "frontend-full.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\frontend-full.json",
|
||||
"nativeSha256": "6d7f47252344e90e909bda5a408994694ecf0d6dc2a31864856746e48633f9b7",
|
||||
"lfSha256": "6d7f47252344e90e909bda5a408994694ecf0d6dc2a31864856746e48633f9b7",
|
||||
"gzipSha256": "4a3875d13d8132253b99a0cde16ba2a8207c5e2e481c89862cd14ba4527d234c"
|
||||
"gzipSha256": "4a3875d13d8132253b99a0cde16ba2a8207c5e2e481c89862cd14ba4527d234c",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "daily-control-baseline.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\daily-control-baseline.txt",
|
||||
"nativeSha256": "aec984e0d05d7cd010e7b1bc4f1c2deccacf6699018431d5e6de7cece7cd38e4",
|
||||
"lfSha256": "aec984e0d05d7cd010e7b1bc4f1c2deccacf6699018431d5e6de7cece7cd38e4",
|
||||
"gzipSha256": "7f8539538e27e7d639f15ac3a23900d793a86797f2cf9d693c53d3e846471d5d"
|
||||
"lfSha256": "8337d8e44f94fb361b42cd765b6a02d3c5f0526bd00df4f76f524e77e98d696a",
|
||||
"gzipSha256": "7f8539538e27e7d639f15ac3a23900d793a86797f2cf9d693c53d3e846471d5d",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "daily-control-baseline.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\daily-control-baseline.json",
|
||||
"nativeSha256": "b411f4f148322cd6094c40d88ff6a2dd95c984312798b7e63189b29e41c39ac6",
|
||||
"lfSha256": "b411f4f148322cd6094c40d88ff6a2dd95c984312798b7e63189b29e41c39ac6",
|
||||
"gzipSha256": "b0610aee885def201d09bfc68b9b6e99f0118a3cd0456963a0a75bdbe5a3735e"
|
||||
"gzipSha256": "b0610aee885def201d09bfc68b9b6e99f0118a3cd0456963a0a75bdbe5a3735e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "daily-control-fixed.txt",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\daily-control-fixed.txt",
|
||||
"nativeSha256": "7af97327a366c73691527184af674d42d02ff344f5bddcbe406715b7e462ccd4",
|
||||
"lfSha256": "7af97327a366c73691527184af674d42d02ff344f5bddcbe406715b7e462ccd4",
|
||||
"gzipSha256": "9416c3ab42559db7fea6653f2a4521c503c7e04e8474735c76b4a55f654ee92c"
|
||||
"lfSha256": "03c1b373382687bca7ee889e2e1ea6c6c0a86e2877dd41620b1c18edaa005b6f",
|
||||
"gzipSha256": "9416c3ab42559db7fea6653f2a4521c503c7e04e8474735c76b4a55f654ee92c",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "daily-control-fixed.json",
|
||||
"nativePath": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch-evidence\\daily-control-fixed.json",
|
||||
"nativeSha256": "25d01fcee7405b34782dc1d9450d599d977d1da46014f14882aa3c82ef6792cc",
|
||||
"lfSha256": "25d01fcee7405b34782dc1d9450d599d977d1da46014f14882aa3c82ef6792cc",
|
||||
"gzipSha256": "fce40bcea3d9b406ab7819623e505bffdac0ed460b4ec25c808c3942af4d2f25"
|
||||
"gzipSha256": "fce40bcea3d9b406ab7819623e505bffdac0ed460b4ec25c808c3942af4d2f25",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "browser-discovery-filters-en-light-1440.png",
|
||||
@@ -198,5 +221,7 @@
|
||||
"lfSha256": "130c79e3b11be583f6ab2ad254a7ff70ff5670539bb4a10592cdbac8a84f72c9",
|
||||
"gzipSha256": "0d96ef1b3429611fa777cf2787ae1b77470ec82a6c3f282d7d117e023b500e72"
|
||||
}
|
||||
]
|
||||
],
|
||||
"sourceCommit": "a681bdd7faeb5f43e701ff4275fd71d38180d950",
|
||||
"canonicalTextEncoding": "UTF-8 with LF; native gzip bytes unchanged"
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
# Redirect header dependency patch
|
||||
|
||||
Baseline A3 `a1149f0d`, isolated codex/follow-redirects-patch, E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch. Source `d60a333`.
|
||||
|
||||
Locked follow-redirects1.16.1 matches [GHSA-mrwp-f3q8-3g9p](https://github.com/advisories/GHSA-mrwp-f3q8-3g9p). The reviewed advisory describes custom-header leakage when the caller supplies sensitiveHeaders from another JavaScript realm; it names1.16.2 as patched. It explicitly does not establish an Axios1.20.0 exploit because Axios normalises this option. Do not claim a demonstrated Jobjakt/Axios exploit or production credential disclosure from this dependency finding.
|
||||
|
||||
Official registry latest1.16.3 satisfies Axios's existing^1.16.0 range, requires Node>=4 and has no install hook. The lock change affects exactly one package entry (1.16.1→1.16.3 and its resolved URL/integrity), no unrelated dependency updates/additions/removals or new override. Package.json only adds the permanent `test:redirect-security` command; no dependency declarations change.
|
||||
|
||||
## Reproduction and verification
|
||||
|
||||
- Original installed1.16.1: same-realm control passed, cross-realm case FAILED and forwarded the synthetic custom key. Two ephemeral loopback HTTP servers only; built-in Authorization/Cookie and harmless-header assertions retained. No real credentials, internet target or production service.
|
||||
- Ordinary npm install unexpectedly left installed1.16.1 despite lock1.16.3; a second test still FAILED. This result is retained and is not patched-version evidence. A fresh isolated `npm ci --ignore-scripts` then installed verified1.16.3. No allowScripts policy changed or hooks approved. The package is pure JavaScript; other installation environments remain unqualified.
|
||||
- PASSED: both same/cross-realm tests on verified1.16.3, including `npm run test:redirect-security`; each proves custom/auth/cookie stripping with unrelated header retained. The repeated command overlaps the two cases, not four tests. Tests remain outside JSDOM intentionally and are explicitly runnable via npm.
|
||||
- PASSED: ordinary Next16.4.6 compile/TypeScript/static export after fresh locked install, scoped test lint and source diff check. Initial CommonJS test lint failed under existing no-require-imports; converted to ES modules without a suppression/config change. Earlier build after ordinary install is not used to qualify installed1.16.3.
|
||||
- Full fresh npm audit FAILED exit1:49 findings,7 moderate/42 high/0 critical; neither next nor follow-redirects appears. Prior full audit50 is historical and separately retained. `npm audit --omit=dev --package-lock-only` PASSED exit0 with zero returned production-tree findings. Omission of dev dependencies is a separate scope, not suppression or whole supply-chain clearance.
|
||||
- NOT RUN: full frontend Jest rerun (Node-only transitive patch and explicit regression), backend, hosted CI, browser/provider/model/native-device/AT, real-service exploit, integrated security/recovery/release. Previous A3 browser evidence is source-bound and not newly executed here. Canonical Career Profile, revisions, tenant/session/permission enforcement, routes, UI/document language and PDF rendering have no source changes.
|
||||
|
||||
## Evidence and continuation
|
||||
|
||||
[Receipts](evidence/SOURCE_RECEIPTS.json) bind committed package/lock/test and UTF8/LF-readable artifacts to exact native gzip hashes; native Windows UTF16 logs remain recoverable. Failed tests/setup/install mismatch are retained alongside final results. Publish/ref-verify this isolated branch before non-production A3 integration; rollback is reverting only this patch and locked reinstall, which restores the known affected dependency and is not a security-qualified release.
|
||||
|
||||
Remaining49 development-tool findings require compatible triage; do not apply suggested major downgrade fixes blindly. Formal independent integrated security and release gates remain open. No orchestrator, main merge or deployment.
|
||||
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"baseline": "a1149f0d6cdfef32f7cf8bdf04f67a3385f3ef85",
|
||||
"sourceCommit": "d60a333",
|
||||
"sourceSha256Lf": {
|
||||
"job-tracker-ui/package.json": "8b31e44c10b77b6d1e007af04c757c0577f12972ff3f6c7079bbc4c446a0d415",
|
||||
"job-tracker-ui/package-lock.json": "ac90fbdc79e2e0f23d54748814b41a03f5dcaf8fd27291b3dcb73b2603a83e72",
|
||||
"job-tracker-ui/test/follow-redirects-security.test.mjs": "f33363739c99fb7006293ca2ae19fa506aeb08dcbc320f536c0fc669aef92189"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "follow-redirects-registry.json",
|
||||
"lfSha256": "3d9dd3256280469bae9781fc2cf3fdf932d9ff7f2b8c53898af0f9d9c6c41b3e",
|
||||
"rawSha256": "9257982f28c6d55b40ddd6208597e05e263a538997566a1c05b8985e4d81f050",
|
||||
"gzipSha256": "5f99cc8d47e17c623e2b04facda9b4fd0a3e6cdc925f789032b6bc395294a378",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-lock.txt",
|
||||
"lfSha256": "7d0e66bc51364e81a602cab4493c2ad32b8e4b125c0df727399601cb8f1c9793",
|
||||
"rawSha256": "634652dc869bd7f757f7279b4bd91a57fd6a8e8ed92beebcba71905f3aca2852",
|
||||
"gzipSha256": "a1c8a3e00c2a1f522f6f5bbe36934bf40ee65541417bbe9207868e5d84bdb155",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-install.txt",
|
||||
"lfSha256": "191ef5e32d3a79f662dcc90257c52efc410989642d5d669acbd1c55b471c2bd7",
|
||||
"rawSha256": "194e0969886c36eb30cb7ae96d766ae285e752879ade5e6d746ae95a6fbc4e61",
|
||||
"gzipSha256": "5466c0daa828b743d89bbf5e72084f8e45f973046e69a8309ac5a6aa0967551f",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-ci.txt",
|
||||
"lfSha256": "63fb535d7ca7453b7003cb2ef2d254326e1ada716cecce34edf71c2af44e4bf0",
|
||||
"rawSha256": "a8cf1fbc4c742b349c93389582732a68fdbf69edde639dfe4d93940ed219c138",
|
||||
"gzipSha256": "8981b5576c06532ac58c5d300fb0c42682c663549386c5804a1db23fa046ab04",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-red.txt",
|
||||
"lfSha256": "96fde0e478c4fca61a9eb6be81d321352c767b9594e171671f8425851880b4c3",
|
||||
"rawSha256": "bf7f9911e3a070c4a69767bb14b4c2f8863855bc0415e02bde0ea081108bfdd6",
|
||||
"gzipSha256": "c95d21895c27d9816afb4a8f3664b20c9dc802f9364f1ca6d4a151647206211e",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-green.txt",
|
||||
"lfSha256": "8db9b6ccfa357290489bc1558fb84992a30358c085861734b0a719579096acbd",
|
||||
"rawSha256": "5901db728d7a9835585ff01cf35f97c328c18b081782b1ac9055b555ea5950ea",
|
||||
"gzipSha256": "1f6b023aa68c56b5bd81e851937f1d97053c0d06871ad4a0066107f593bc467d",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-final.txt",
|
||||
"lfSha256": "450d571b74a8a2ef52c48cc4f9eb0b1889d78529d8b710bb31c8fd1a07df78e0",
|
||||
"rawSha256": "fcb0d1f10c6fef4ad51e6e55c96596508ec31128541adb1e28defc55de9fd4c9",
|
||||
"gzipSha256": "7b3394af0f599762e6dac9e8b05b216ef56739ebe8a3e628718a1754455b2298",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-npm-test.txt",
|
||||
"lfSha256": "9d97ed5a80937a0e62b42f5b33942e66b6219d25d9458603a77d1562f80b12ad",
|
||||
"rawSha256": "615c81ad366d5edcc06102220a58d49c92e13288f45bd7eca78f00b8719b6626",
|
||||
"gzipSha256": "177a3b3f14aabc9ad89eddaf244039ee9577a6fcf95a1292440813479135c6bb",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-lint.txt",
|
||||
"lfSha256": "238b7fd677c10e300456ebe05b641493c2742be074b854d26c939d1bfb9f2a9f",
|
||||
"rawSha256": "cf8be1ae66675fad960d46e5a8e22a957b7efdb339cbd44342013843b5b90abc",
|
||||
"gzipSha256": "bc72301f8ddadbbd6335b42f4629e64b79b18c089699d57635a47f9c73c9eb81",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-lint-final.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-audit-final.json",
|
||||
"lfSha256": "3a0a9216e78c397edbf13fefab34ddf4a0699c5a5216ec7f9c4f03844cc00ea7",
|
||||
"rawSha256": "f6f846f07055a9e11122890d4ae058cc4f4df5da47d8ed4ea8470b76c9797cfc",
|
||||
"gzipSha256": "782e4022836b1e1b15a299cc309f3b2cd11cf5005766d0dbbdf2db77eb347774",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-production-audit.json",
|
||||
"lfSha256": "829f64097662d170832a64a3561fb0003dc1a256c786183a62c628a5eca5ae87",
|
||||
"rawSha256": "e94fb9832f8d478495dcb94ef6fa199aa8f2ad732e71dbfdd92189c9bbd0c0fb",
|
||||
"gzipSha256": "bc408ecce14c68ac81b8aeadc46a234a4ca28a080d3f0b6e1d1710bf862729ea",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "follow-redirects-build-final.txt",
|
||||
"lfSha256": "a8770abaa8d8f214b0d79de16e8d298bc2eb68cf7e1c6c396f66806017a563e4",
|
||||
"rawSha256": "e504a97ac00fa48857cb5f72e74c55e8999a78a221bb846c10ca29e395c4aea5",
|
||||
"gzipSha256": "9acc0cd1a8fa8051d80ad20a79f7554ba9bcb01d09d80dc1bc800462dfba22c2",
|
||||
"nativeEncoding": "utf-16"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 build
|
||||
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
|
||||
|
||||
▲ Next.js 16.4.6 (Turbopack)
|
||||
✓ Running next.config.js took 45ms
|
||||
|
||||
Creating an optimized production build ...
|
||||
✓ Compiled successfully in 531ms
|
||||
Running TypeScript ...
|
||||
Finished TypeScript in 9.7s ...
|
||||
Collecting page data using 4 workers ...
|
||||
Generating static pages using 4 workers (0/3) ...
|
||||
✓ Generating static pages using 4 workers (3/3) in 2.1s
|
||||
Finalizing page optimization ...
|
||||
|
||||
Route (app)
|
||||
┌ ○ /
|
||||
└ ○ /_not-found
|
||||
|
||||
|
||||
○ (Static) prerendered as static content
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,31 @@
|
||||
node.exe : npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check
|
||||
out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more
|
||||
comprehensive and powerful.
|
||||
At line:1 char:1
|
||||
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
|
||||
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+ CategoryInfo : NotSpecified: (npm warn deprec...e and powerful.:String) [], RemoteException
|
||||
+ FullyQualifiedErrorId : NativeCommandError
|
||||
|
||||
npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security
|
||||
vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be
|
||||
purchased (at exorbitant rates) by contacting i@izs.me
|
||||
npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster
|
||||
implementation
|
||||
npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security
|
||||
vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be
|
||||
purchased (at exorbitant rates) by contacting i@izs.me
|
||||
npm warn deprecated eslint@9.39.5: This version is no longer supported. Please see https://eslint.org/version-support
|
||||
for other options.
|
||||
|
||||
added 825 packages, and audited 826 packages in 1m
|
||||
|
||||
49 vulnerabilities (7 moderate, 42 high)
|
||||
|
||||
To address issues that do not require attention, run:
|
||||
npm audit fix
|
||||
|
||||
To address all issues (including breaking changes), run:
|
||||
npm audit fix --force
|
||||
|
||||
Run `npm audit` for details.
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (62.7169ms)
|
||||
✔ cross-origin redirect strips synthetic custom credentials (cross realm) (9.0835ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 2
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 209.6076
|
||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (55.4976ms)
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (13.2845ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 1
|
||||
ℹ fail 1
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 193.9889
|
||||
|
||||
✖ failing tests:
|
||||
|
||||
test at test\follow-redirects-security.test.cjs:9:3
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (13.2845ms)
|
||||
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
|
||||
+ actual - expected
|
||||
|
||||
+ 'synthetic-only-key'
|
||||
- undefined
|
||||
|
||||
at TestContext.<anonymous> (E:\Storage\Projects\Active\temp docs\jobjakt-local-build\next-security-patch\job-tracker-ui\test\follow-redirects-security.test.cjs:36:14)
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
at async Test.run (node:internal/test_runner/test:1389:7)
|
||||
at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
|
||||
generatedMessage: true,
|
||||
code: 'ERR_ASSERTION',
|
||||
actual: 'synthetic-only-key',
|
||||
expected: undefined,
|
||||
operator: 'strictEqual',
|
||||
diff: 'simple'
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
|
||||
up to date, audited 826 packages in 5s
|
||||
|
||||
50 vulnerabilities (7 moderate, 43 high)
|
||||
|
||||
To address issues that do not require attention, run:
|
||||
npm audit fix
|
||||
|
||||
To address all issues (including breaking changes), run:
|
||||
npm audit fix --force
|
||||
|
||||
Run `npm audit` for details.
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
|
||||
E:\Storage\Projects\Active\temp docs\jobjakt-local-build\next-security-patch\job-tracker-ui\test\follow-redirects-security.test.cjs
|
||||
1:14 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
2:16 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
3:14 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
4:18 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
5:12 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
6:19 error A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
||||
|
||||
✖ 6 problems (6 errors, 0 warnings)
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
|
||||
up to date, audited 826 packages in 12s
|
||||
|
||||
49 vulnerabilities (7 moderate, 42 high)
|
||||
|
||||
To address issues that do not require attention, run:
|
||||
npm audit fix
|
||||
|
||||
To address all issues (including breaking changes), run:
|
||||
npm audit fix --force
|
||||
|
||||
Run `npm audit` for details.
|
||||
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 test:redirect-security
|
||||
> node --test test/follow-redirects-security.test.mjs
|
||||
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (63.9319ms)
|
||||
✔ cross-origin redirect strips synthetic custom credentials (cross realm) (12.8107ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 2
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 212.9772
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 0,
|
||||
"high": 0,
|
||||
"critical": 0,
|
||||
"total": 0
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 168,
|
||||
"dev": 680,
|
||||
"optional": 68,
|
||||
"peer": 0,
|
||||
"peerOptional": 0,
|
||||
"total": 886
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
✔ cross-origin redirect strips synthetic custom credentials (same realm) (49.4386ms)
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (8.4154ms)
|
||||
ℹ tests 2
|
||||
ℹ suites 0
|
||||
ℹ pass 1
|
||||
ℹ fail 1
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 157.5345
|
||||
|
||||
✖ failing tests:
|
||||
|
||||
test at test\follow-redirects-security.test.cjs:9:3
|
||||
✖ cross-origin redirect strips synthetic custom credentials (cross realm) (8.4154ms)
|
||||
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
|
||||
+ actual - expected
|
||||
|
||||
+ 'synthetic-only-key'
|
||||
- undefined
|
||||
|
||||
at TestContext.<anonymous> (E:\Storage\Projects\Active\temp docs\jobjakt-local-build\next-security-patch\job-tracker-ui\test\follow-redirects-security.test.cjs:36:14)
|
||||
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
||||
at async Test.run (node:internal/test_runner/test:1389:7)
|
||||
at async Test.processPendingSubtests (node:internal/test_runner/test:960:7) {
|
||||
generatedMessage: true,
|
||||
code: 'ERR_ASSERTION',
|
||||
actual: 'synthetic-only-key',
|
||||
expected: undefined,
|
||||
operator: 'strictEqual',
|
||||
diff: 'simple'
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": "1.16.3",
|
||||
"dist.integrity": "sha512-toOSoqN6d51Wjf1aOFJYcoVv1aND9rj/CwjLU0Vz40oDuSpWDayCeKe4JpL5NL0WdFvoOOCI3BRo69HahjbR1A==",
|
||||
"engines": {
|
||||
"node": ">=4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint *.js test",
|
||||
"test": "nyc mocha"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
# Interview AI application-context lifetime
|
||||
|
||||
Baseline A3 `348f4684`, isolated branch codex/interview-ai-context at E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch. Source `0f8b17a`. Uses the qualified locked Next16.4.6/follow-redirects1.16.3 installation. No live model.
|
||||
|
||||
Three deterministic tests failed on original runtime source: a late generation displayed application7 text under application8; a completed suggestion remained available after changing application; a late accepted write called the former board loader again after navigation. Synthetic model/API responses only. The first two are also a risk of offering the wrong application's content for explicit application8 acceptance; no real misdirected write is claimed.
|
||||
|
||||
The sole assistant caller now keys its instance by jobId, scoping instructions, generated-language draft, errors, busy state and suggestions to that application instance. Existing CV reader cleanup remains. A layout-lifetime ref invalidates on committed unmount; an already accepted write can finish at its original target, but cannot invoke the old board-refresh callback afterward. No write is redirected, automatically retried or newly authorised. Current-application explicit accept/reject and normal refresh still use existing paths. UI language and generated-content language remain independent within the current application.
|
||||
|
||||
PASSED: final55 cases/two suites (51 InterviewPrep/four daily connected route cases), non-incremental TypeScript, scoped two-file lint and source diff. Three red failures are included in55;48 skipped cases in the focused red selection are not final-suite skips. An earlier successful run used a passive cleanup; final55 was rerun after using synchronous layout cleanup and is the qualification result. Existing generation, explicit acceptance, failed-add retry, answer drafts, CV retry and follow-up cases remain passing. [Receipts](evidence/interview-ai-context/SOURCE_RECEIPTS.json) bind final source and readable/native evidence.
|
||||
|
||||
PASSED: final standard Next16.4.6 build on exact new source after the55-case run; compile, TypeScript and static export completed exit0. No warning bypass. This is current isolated E-drive export evidence, not the older C-drive export and not a fresh browser run.
|
||||
|
||||
NOT RUN: fresh full frontend/backend regression, browser, native device/AT, actual model/semantic quality, provider, security/recovery/release qualification. Parent preparation/follow-up outstanding reads, broader job/session lifetime, AI live fallback copy and other components remain separate proof-required work; this is not whole-application isolation acceptance. Existing PDF metrics/visual acceptance not reopened. No catalogue/schema/renderer/ownership/revision/provider changes, orchestrator, main merge or production action.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"baseline": "a44a2f050fc4378262c3437e0c938a9a7beed70b",
|
||||
"sourceCommit": "be82e07",
|
||||
"sourceCommit": "be82e079f75c72dd4dade30b846651628408d918",
|
||||
"sourceSha256Lf": {
|
||||
"job-tracker-ui/src/components/InterviewPrep.tsx": "008a19224278f41faca9ebef9d1ddae5c9daa95cc907c33b4a2a3342c7eba029",
|
||||
"job-tracker-ui/src/interview-prep.test.tsx": "c9bb4bee7a8d3f8b11e655c9d36b6123f1c86543127daeb32686b8db8872e786",
|
||||
@@ -12,37 +12,44 @@
|
||||
"path": "interview-add-red.json",
|
||||
"lfSha256": "cf7753701299620619a5ed144adae64662bdc8ef5a01210cf02811a9b60cc04e",
|
||||
"rawSha256": "cf7753701299620619a5ed144adae64662bdc8ef5a01210cf02811a9b60cc04e",
|
||||
"gzipSha256": "cabd34255c3576cad78c80236cd4695364b0ee8fc78b1c5a1370755a7f6f35ea"
|
||||
"gzipSha256": "cabd34255c3576cad78c80236cd4695364b0ee8fc78b1c5a1370755a7f6f35ea",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-add-red.txt",
|
||||
"lfSha256": "b1d0fcce129e7225d6b23a64756fe80530744e6e41ec68e2d5fba3ee885b752a",
|
||||
"lfSha256": "5a750921ad20fdad1061f10530d81476fcfaa3fae15e3070b18b5ce6d171f6f8",
|
||||
"rawSha256": "b1d0fcce129e7225d6b23a64756fe80530744e6e41ec68e2d5fba3ee885b752a",
|
||||
"gzipSha256": "b678fa4e3a2eada984e3365ca9cabc9a2389aaddd0bdd29b79b07732c3b031e8"
|
||||
"gzipSha256": "b678fa4e3a2eada984e3365ca9cabc9a2389aaddd0bdd29b79b07732c3b031e8",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "interview-add-green.json",
|
||||
"lfSha256": "f1ce2490c0c86f9fecb1bfef8dbf08600e3d68d840d214eed830db06aa3e0b77",
|
||||
"rawSha256": "f1ce2490c0c86f9fecb1bfef8dbf08600e3d68d840d214eed830db06aa3e0b77",
|
||||
"gzipSha256": "a760d3f8ae2a8fa1b5113709dd1b9aeee5c529753ab38c0369d91eba707bb254"
|
||||
"gzipSha256": "a760d3f8ae2a8fa1b5113709dd1b9aeee5c529753ab38c0369d91eba707bb254",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-add-green.txt",
|
||||
"lfSha256": "b915014c090f928900fbf524d229d9435179483bac7bfa25a2370a3f5b187a66",
|
||||
"lfSha256": "971bbd8126bb181ad4e99d3631c4cd27a4ae8fa41f75eaa0de6aff7d5e8bb87c",
|
||||
"rawSha256": "b915014c090f928900fbf524d229d9435179483bac7bfa25a2370a3f5b187a66",
|
||||
"gzipSha256": "f035c746be860b1dc5dd39b52a77640df26585d39a7e65d9a2b6e13f4a6b0a77"
|
||||
"gzipSha256": "f035c746be860b1dc5dd39b52a77640df26585d39a7e65d9a2b6e13f4a6b0a77",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "interview-add-typecheck.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-add-lint.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
}
|
||||
]
|
||||
],
|
||||
"canonicalTextEncoding": "UTF-8 with LF; native gzip bytes unchanged"
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"baseline": "348f468478ed2fae1b6a52ff970471ea8ce54dd4",
|
||||
"sourceCommit": "0f8b17a",
|
||||
"sourceSha256Lf": {
|
||||
"job-tracker-ui/src/components/InterviewPrep.tsx": "e1c12d012d0488a8cee533015fff0944028578ca6ee37dd61fe70b60363a5803",
|
||||
"job-tracker-ui/src/interview-prep.test.tsx": "dfb23ea0682377a7edfe6af147f1046c90841e102ef35a2f62c6c85754058c97",
|
||||
"job-tracker-ui/package.json": "8b31e44c10b77b6d1e007af04c757c0577f12972ff3f6c7079bbc4c446a0d415",
|
||||
"job-tracker-ui/package-lock.json": "ac90fbdc79e2e0f23d54748814b41a03f5dcaf8fd27291b3dcb73b2603a83e72"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "interview-ai-context-red.json",
|
||||
"lfSha256": "cd1750809c6757251f0616417b85d206db07ce6b74c3a167bb6f3537c5a10c06",
|
||||
"rawSha256": "cd1750809c6757251f0616417b85d206db07ce6b74c3a167bb6f3537c5a10c06",
|
||||
"gzipSha256": "bf634ffd5cebf2f84df570c339cded3cd9e4fba247ccb71662572e9e1536c783",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-red.txt",
|
||||
"lfSha256": "a8673e1828567e5dcf97241f893c56178ba8cc09a90fbd9ed4a96e036527974c",
|
||||
"rawSha256": "999d08952b06ea3dd0b9021fcc6cd8263e069e24404a18242209ca9c1bf98ad3",
|
||||
"gzipSha256": "ab7bcecff278cce39f68ed4495cdbd0c827c31f5ccd515f5d12083d081ac4fd6",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-final.json",
|
||||
"lfSha256": "3a24bbb550d5246f9dbb3fa28c6e5570c290263ba80714f6d1ffa7597a3496a8",
|
||||
"rawSha256": "3a24bbb550d5246f9dbb3fa28c6e5570c290263ba80714f6d1ffa7597a3496a8",
|
||||
"gzipSha256": "8b54fbfc88a68d714250d36a4cc41af046ecceb8f3b5cc51f06c858c0f307222",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-final.txt",
|
||||
"lfSha256": "a4b08a7b17361517ff242d01d15a2e31f974924adbab26ccf866efc45b886dd0",
|
||||
"rawSha256": "89dc7976226bf01bbd22702c18ea96ea3e821161c2c6fcb65949e6c2b514b924",
|
||||
"gzipSha256": "1905b14d96265a2a1fa2ab37f354e74e99569dd15401bd9dfac254fa8a969a14",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-typecheck.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-lint.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-build.txt",
|
||||
"lfSha256": "2670468cf9011247d064dbd24366eeccc367597f86992c6129b60e00a1e7f3c1",
|
||||
"rawSha256": "87aa3a0631f4f36905c225ac05a5977045ff0c3735fda14eafbd5b6ffcab6b2a",
|
||||
"gzipSha256": "c9ec5fd2e55767fead726932919416886763c9e5fc75573415d7d3c1b3fc174b",
|
||||
"nativeEncoding": "utf-16"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 build
|
||||
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
|
||||
|
||||
▲ Next.js 16.4.6 (Turbopack)
|
||||
✓ Running next.config.js took 49ms
|
||||
|
||||
Creating an optimized production build ...
|
||||
✓ Compiled successfully in 788ms
|
||||
Running TypeScript ...
|
||||
Finished TypeScript in 10.6s ...
|
||||
Collecting page data using 4 workers ...
|
||||
Generating static pages using 4 workers (0/3) ...
|
||||
✓ Generating static pages using 4 workers (3/3) in 1504ms
|
||||
Finalizing page optimization ...
|
||||
|
||||
Route (app)
|
||||
┌ ○ /
|
||||
└ ○ /_not-found
|
||||
|
||||
|
||||
○ (Static) prerendered as static content
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
node :
|
||||
At line:1 char:122
|
||||
+ ... =$env:TEMP; node node_modules/jest/bin/jest.js --runInBand --runTests ...
|
||||
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
|
||||
+ FullyQualifiedErrorId : NativeCommandError
|
||||
|
||||
Test Suites: 2 passed, 2 total
|
||||
Tests: 55 passed, 55 total
|
||||
Snapshots: 0 total
|
||||
Time: 29.011 s
|
||||
Ran all test suites within paths "src/interview-prep.test.tsx", "src/daily-control-loop.test.tsx".
|
||||
Test results written to: ..\..\interview-ai-context-final.json
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,361 @@
|
||||
node : console.error
|
||||
At line:1 char:122
|
||||
+ ... =$env:TEMP; node node_modules/jest/bin/jest.js --runInBand --runTests ...
|
||||
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+ CategoryInfo : NotSpecified: ( console.error:String) [], RemoteException
|
||||
+ FullyQualifiedErrorId : NativeCommandError
|
||||
|
||||
An update to InterviewAiAssistant inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
233 | setCv(null); setCvLoading(true); setCvError(null);
|
||||
234 | applicationAssetsApi.cv(jobId)
|
||||
> 235 | .then((result) => { if (active) setCv(result); })
|
||||
| ^
|
||||
236 | .catch((cause) => { if (active) setCvError({ cause }); })
|
||||
237 | .finally(() => { if (active) setCvLoading(false); });
|
||||
238 | return () => { active = false; };
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setCv (src/components/InterviewPrep.tsx:235:39)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
431 | try {
|
||||
432 | const result = await interviewPrepApi.followUp(jobId);
|
||||
> 433 | setData(result);
|
||||
| ^
|
||||
434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
435 | setAction(result.nextAction ?? "");
|
||||
436 | setError(null);
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setData (src/components/InterviewPrep.tsx:433:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
432 | const result = await interviewPrepApi.followUp(jobId);
|
||||
433 | setData(result);
|
||||
> 434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
| ^
|
||||
435 | setAction(result.nextAction ?? "");
|
||||
436 | setError(null);
|
||||
437 | } catch (err) {
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setDate (src/components/InterviewPrep.tsx:434:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
433 | setData(result);
|
||||
434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
> 435 | setAction(result.nextAction ?? "");
|
||||
| ^
|
||||
436 | setError(null);
|
||||
437 | } catch (err) {
|
||||
438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setAction (src/components/InterviewPrep.tsx:435:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
435 | setAction(result.nextAction ?? "");
|
||||
> 436 | setError(null);
|
||||
| ^
|
||||
437 | } catch (err) {
|
||||
438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
|
||||
439 | } finally {
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setError (src/components/InterviewPrep.tsx:436:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
|
||||
439 | } finally {
|
||||
> 440 | setLoading(false);
|
||||
| ^
|
||||
441 | }
|
||||
442 | }, [jobId]);
|
||||
443 |
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setLoading (src/components/InterviewPrep.tsx:440:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
55 | setLoading(true);
|
||||
56 | try {
|
||||
> 57 | setBoard(await interviewPrepApi.get(jobId));
|
||||
| ^
|
||||
58 | setError(null);
|
||||
59 | } catch (err) {
|
||||
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setBoard (src/components/InterviewPrep.tsx:57:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
56 | try {
|
||||
57 | setBoard(await interviewPrepApi.get(jobId));
|
||||
> 58 | setError(null);
|
||||
| ^
|
||||
59 | } catch (err) {
|
||||
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
|
||||
61 | } finally {
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setError (src/components/InterviewPrep.tsx:58:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
|
||||
61 | } finally {
|
||||
> 62 | setLoading(false);
|
||||
| ^
|
||||
63 | }
|
||||
64 | }, [jobId]);
|
||||
65 |
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setLoading (src/components/InterviewPrep.tsx:62:7)
|
||||
|
||||
console.error
|
||||
An update to InterviewAiAssistant inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
235 | .then((result) => { if (active) setCv(result); })
|
||||
236 | .catch((cause) => { if (active) setCvError({ cause }); })
|
||||
> 237 | .finally(() => { if (active) setCvLoading(false); });
|
||||
| ^
|
||||
238 | return () => { active = false; };
|
||||
239 | }, [jobId, cvReadAttempt]);
|
||||
240 |
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setCvLoading (src/components/InterviewPrep.tsx:237:36)
|
||||
|
||||
FAIL src/interview-prep.test.tsx (6.032 s)
|
||||
● late generation cannot offer another application the previous application suggestion
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <p class="MuiTypography-root MuiTypography-body2
|
||||
css-1jpc1n5-MuiTypography-root">Only for application seven</p> instead
|
||||
|
||||
356 | await act(async () => finish({ data: { result: { text: 'Only for application seven' } } }));
|
||||
357 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
> 358 | expect(assistant.queryByText('Only for application seven')).not.toBeInTheDocument();
|
||||
| ^
|
||||
359 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep
|
||||
})).not.toBeInTheDocument();
|
||||
360 | expect(assistant.getByLabelText(translations.en.coverAiAdditionalInstructions)).toHaveValue('');
|
||||
361 | expect(mockedApi.post).toHaveBeenCalledTimes(1);
|
||||
|
||||
at Object.toBeInTheDocument (src/interview-prep.test.tsx:358:67)
|
||||
|
||||
● completed AI suggestion is scoped to its application instead of becoming a new application draft
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <p class="MuiTypography-root MuiTypography-body2
|
||||
css-1jpc1n5-MuiTypography-root">Prepared for application seven only</p> instead
|
||||
|
||||
371 | view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8}
|
||||
/></ConfirmProvider></I18nProvider>);
|
||||
372 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
> 373 | expect(assistant.queryByText('Prepared for application seven only')).not.toBeInTheDocument();
|
||||
| ^
|
||||
374 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep
|
||||
})).not.toBeInTheDocument();
|
||||
375 | expect(mockedApi.post).not.toHaveBeenCalledWith('/jobapplications/8/interview-prep', expect.anything());
|
||||
376 | });
|
||||
|
||||
at Object.toBeInTheDocument (src/interview-prep.test.tsx:373:76)
|
||||
|
||||
● late accepted suggestion does not reload the previous application board into the current application
|
||||
|
||||
expect(received).toHaveLength(expected)
|
||||
|
||||
Expected length: 1
|
||||
Received length: 2
|
||||
Received array: [["/jobapplications/7/interview-prep"], ["/jobapplications/7/interview-prep"]]
|
||||
|
||||
389 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/jobapplications/8/interview-prep'));
|
||||
390 | await act(async () => finish({ data: board.groups[0].items[0] }));
|
||||
> 391 | expect(mockedApi.get.mock.calls.filter(([url]) => url ===
|
||||
'/jobapplications/7/interview-prep')).toHaveLength(1);
|
||||
| ^
|
||||
392 | expect(mockedApi.get.mock.calls.filter(([url]) => url ===
|
||||
'/jobapplications/8/interview-prep')).toHaveLength(1);
|
||||
393 | expect(mockedApi.post.mock.calls[1]).toEqual(['/jobapplications/7/interview-prep',
|
||||
expect.objectContaining({ source: 'ai', content: 'Application seven suggestion' })]);
|
||||
394 | });
|
||||
|
||||
at Object.toHaveLength (src/interview-prep.test.tsx:391:99)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 3 failed, 48 skipped, 51 total
|
||||
Snapshots: 0 total
|
||||
Time: 7.657 s, estimated 24 s
|
||||
Ran all test suites within paths "src/interview-prep.test.tsx".
|
||||
Test results written to: ..\..\interview-ai-context-red.json
|
||||
Binary file not shown.
BIN
Binary file not shown.
@@ -28,9 +28,6 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<head>
|
||||
<Script id="jobtracker-theme-bootstrap" strategy="beforeInteractive" dangerouslySetInnerHTML={{ __html: THEME_BOOTSTRAP_SCRIPT }} />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
|
||||
Generated
+3
-3
@@ -7736,9 +7736,9 @@
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.16.1",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.1.tgz",
|
||||
"integrity": "sha512-FNvFGzoMLWmE6Yj9spb/zjd7yiNCHiAW9/Tg9CXrQ8wuu32HtlJOwWO11OJafl5FfY3DxTdQ0vj42zU1kvv5jg==",
|
||||
"version": "1.16.3",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.3.tgz",
|
||||
"integrity": "sha512-toOSoqN6d51Wjf1aOFJYcoVv1aND9rj/CwjLU0Vz40oDuSpWDayCeKe4JpL5NL0WdFvoOOCI3BRo69HahjbR1A==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
"lint:fix": "eslint . --fix",
|
||||
"typecheck": "tsc --noEmit --incremental false",
|
||||
"test": "jest",
|
||||
"test:redirect-security": "node --test test/follow-redirects-security.test.mjs",
|
||||
"test:pdf-admission": "playwright test --config=playwright.pdf.config.ts",
|
||||
"test:rate-limits": "playwright test --config=playwright.rate-limits.config.ts",
|
||||
"test:e2e": "node ./scripts/run-e2e.mjs"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useEffect, useState } from "react";
|
||||
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
||||
|
||||
import {
|
||||
Alert, Box, Button, Checkbox, Chip, IconButton, LinearProgress, MenuItem, Paper,
|
||||
@@ -199,7 +199,7 @@ export function ApplicationInterviewPrep({ jobId }: { jobId: number }) {
|
||||
</Stack>
|
||||
</Shell>
|
||||
|
||||
<InterviewAiAssistant jobId={jobId} onAccepted={load} />
|
||||
<InterviewAiAssistant key={jobId} jobId={jobId} onAccepted={load} />
|
||||
|
||||
<ApplicationFollowUp jobId={jobId} />
|
||||
</Stack>
|
||||
@@ -215,6 +215,11 @@ const INTERVIEW_AI_FOCUS = [
|
||||
] as const;
|
||||
|
||||
function InterviewAiAssistant({ jobId, onAccepted }: { jobId: number; onAccepted: () => void }) {
|
||||
const active = useRef(true);
|
||||
useLayoutEffect(() => {
|
||||
active.current = true;
|
||||
return () => { active.current = false; };
|
||||
}, []);
|
||||
const { canUseAi } = useAccountPlan();
|
||||
const { language: uiLanguage, t } = useI18n();
|
||||
const [cv, setCv] = useState<ApplicationCv | null>(null);
|
||||
@@ -272,6 +277,7 @@ function InterviewAiAssistant({ jobId, onAccepted }: { jobId: number; onAccepted
|
||||
content: suggestion,
|
||||
source: "ai",
|
||||
});
|
||||
if (!active.current) return;
|
||||
setSuggestion("");
|
||||
onAccepted();
|
||||
} catch (err) {
|
||||
|
||||
@@ -343,6 +343,56 @@ test("AI preparation uses the linked CV and only saves after explicit acceptance
|
||||
));
|
||||
});
|
||||
|
||||
test('late generation cannot offer another application the previous application suggestion', async () => {
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
let finish!: (value: any) => void;
|
||||
mockedApi.post.mockReset().mockReturnValueOnce(new Promise(resolve => { finish = resolve; }) as any);
|
||||
const view = render(<ApplicationInterviewPrep jobId={7} />);
|
||||
await screen.findByText('Backend CV');
|
||||
fireEvent.change(screen.getByLabelText(translations.en.coverAiAdditionalInstructions), { target: { value: 'Private instructions for application seven' } });
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiGenerate }));
|
||||
await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(1));
|
||||
view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
|
||||
await act(async () => finish({ data: { result: { text: 'Only for application seven' } } }));
|
||||
const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
expect(assistant.queryByText('Only for application seven')).not.toBeInTheDocument();
|
||||
expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep })).not.toBeInTheDocument();
|
||||
expect(assistant.getByLabelText(translations.en.coverAiAdditionalInstructions)).toHaveValue('');
|
||||
expect(mockedApi.post).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
test('completed AI suggestion is scoped to its application instead of becoming a new application draft', async () => {
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
mockedApi.post.mockReset().mockResolvedValue({ data: { result: { text: 'Prepared for application seven only' } } } as any);
|
||||
const view = render(<ApplicationInterviewPrep jobId={7} />);
|
||||
await screen.findByText('Backend CV');
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiGenerate }));
|
||||
expect(await screen.findByText('Prepared for application seven only')).toBeVisible();
|
||||
view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
|
||||
const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
expect(assistant.queryByText('Prepared for application seven only')).not.toBeInTheDocument();
|
||||
expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep })).not.toBeInTheDocument();
|
||||
expect(mockedApi.post).not.toHaveBeenCalledWith('/jobapplications/8/interview-prep', expect.anything());
|
||||
});
|
||||
|
||||
test('late accepted suggestion does not reload the previous application board into the current application', async () => {
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
let finish!: (value: any) => void;
|
||||
mockedApi.post.mockReset().mockResolvedValueOnce({ data: { result: { text: 'Application seven suggestion' } } } as any).mockReturnValueOnce(new Promise(resolve => { finish = resolve; }) as any);
|
||||
const view = render(<ApplicationInterviewPrep jobId={7} />);
|
||||
await screen.findByText('Backend CV');
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiGenerate }));
|
||||
await screen.findByText('Application seven suggestion');
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiAddToPrep }));
|
||||
await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(2));
|
||||
view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
|
||||
await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/jobapplications/8/interview-prep'));
|
||||
await act(async () => finish({ data: board.groups[0].items[0] }));
|
||||
expect(mockedApi.get.mock.calls.filter(([url]) => url === '/jobapplications/7/interview-prep')).toHaveLength(1);
|
||||
expect(mockedApi.get.mock.calls.filter(([url]) => url === '/jobapplications/8/interview-prep')).toHaveLength(1);
|
||||
expect(mockedApi.post.mock.calls[1]).toEqual(['/jobapplications/7/interview-prep', expect.objectContaining({ source: 'ai', content: 'Application seven suggestion' })]);
|
||||
});
|
||||
|
||||
test.each(['en', 'nb'] as const)('pending linked CV is loading, not an empty selection (%s)', async language => {
|
||||
localStorage.setItem('uiLanguage', language);
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import http from 'node:http';
|
||||
import { once } from 'node:events';
|
||||
import vm from 'node:vm';
|
||||
import followRedirects from 'follow-redirects';
|
||||
const redirects = followRedirects.http;
|
||||
|
||||
for (const crossRealm of [false, true]) {
|
||||
test(`cross-origin redirect strips synthetic custom credentials (${crossRealm ? 'cross' : 'same'} realm)`, async () => {
|
||||
const sensitiveHeaders = crossRealm ? vm.runInNewContext("['X-API-Key']") : ['X-API-Key'];
|
||||
assert.equal(Array.isArray(sensitiveHeaders), true);
|
||||
assert.equal(sensitiveHeaders instanceof Array, !crossRealm);
|
||||
const target = http.createServer((request, response) => {
|
||||
response.setHeader('Content-Type', 'application/json');
|
||||
response.end(JSON.stringify(request.headers));
|
||||
});
|
||||
const source = http.createServer((_request, response) => {
|
||||
response.writeHead(302, { Location: `http://127.0.0.1:${target.address().port}/target` });
|
||||
response.end();
|
||||
});
|
||||
try {
|
||||
target.listen(0, '127.0.0.1'); await once(target, 'listening');
|
||||
source.listen(0, '127.0.0.1'); await once(source, 'listening');
|
||||
const received = await new Promise((resolve, reject) => {
|
||||
const request = redirects.get({
|
||||
hostname: '127.0.0.1', port: source.address().port, path: '/', sensitiveHeaders, maxRedirects: 3,
|
||||
headers: { 'X-API-Key': 'synthetic-only-key', 'X-Harmless': 'retained', Authorization: 'synthetic-only-auth', Cookie: 'synthetic=only' },
|
||||
}, response => {
|
||||
let body = '';
|
||||
response.setEncoding('utf8'); response.on('data', chunk => { body += chunk; });
|
||||
response.on('error', reject); response.on('end', () => { try { resolve(JSON.parse(body)); } catch (error) { reject(error); } });
|
||||
});
|
||||
request.setTimeout(3000, () => request.destroy(new Error('Loopback redirect timed out')));
|
||||
request.on('error', reject);
|
||||
});
|
||||
assert.equal(received['x-api-key'], undefined);
|
||||
assert.equal(received.authorization, undefined);
|
||||
assert.equal(received.cookie, undefined);
|
||||
assert.equal(received['x-harmless'], 'retained');
|
||||
} finally {
|
||||
await Promise.all([source, target].map(server => new Promise(resolve => server.close(resolve))));
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user