Compare commits

..

13 Commits

125 changed files with 10525 additions and 19 deletions
@@ -0,0 +1,94 @@
using System.Data.Common;
using System.Security.Claims;
using JobTrackerApi.Controllers;
using JobTrackerApi.Models;
using JobTrackerApi.Services;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
using Xunit;
using Xunit.Abstractions;
namespace JobTrackerApi.MariaDb.Tests;
public sealed class UserListProjectionTests(ITestOutputHelper output)
{
[Theory]
[InlineData(1)]
[InlineData(2)]
public async Task Summary_projects_only_required_columns_and_retains_global_admin_safety(int adminCount)
{
await using var database = await MariaDbDatabase.CreateAsync();
var recorder = new ReaderRecorder();
await using var db = database.Context(interceptor: recorder);
var linkedAt = new DateTimeOffset(2026, 11, 18, 10, 0, 0, TimeSpan.Zero);
db.Roles.AddRange(new IdentityRole("Admin") { Id = "admins", NormalizedName = "ADMIN" },
new IdentityRole("Member") { Id = "members", NormalizedName = "MEMBER" });
for (var index = 0; index < 75; index++)
{
var id = $"summary-{index:D2}";
db.Users.Add(new ApplicationUser
{
Id = id, Email = id + "@example.test", UserName = id,
FirstName = index == 0 ? "Åse" : null, LastName = index == 0 ? "Nordlys" : null,
DisplayName = index == 0 ? "Reviewed administrator" : null,
EmailConfirmed = index == 0, TwoFactorEnabled = index == 0,
GoogleEmail = index == 0 ? "linked@example.test" : null, GoogleLinkedAt = index == 0 ? linkedAt : null,
ProfileCvText = new string('c', 65_536), ProfileCvStructureJson = new string('j', 65_536),
AvatarImageDataUrl = new string('a', 16_384), PasswordHash = "synthetic-private-hash",
TotpSecretEncrypted = "synthetic-private-totp"
});
db.UserRoles.Add(new IdentityUserRole<string> { UserId = id, RoleId = index < adminCount ? "admins" : "members" });
}
await db.SaveChangesAsync();
db.ChangeTracker.Clear();
recorder.Commands.Clear();
await using var scope = database.App.Services.CreateAsyncScope();
var controller = new UsersController(scope.ServiceProvider.GetRequiredService<UserManager<ApplicationUser>>(),
scope.ServiceProvider.GetRequiredService<RoleManager<IdentityRole>>(), Mock.Of<IAppEmailSender>(),
new ConfigurationBuilder().Build(), NullLogger<UsersController>.Instance,
ExternalOrigin.Parse("http://localhost:3000", production: false), db: db)
{
ControllerContext = new ControllerContext { HttpContext = new DefaultHttpContext
{ User = new ClaimsPrincipal(new ClaimsIdentity([new Claim(ClaimTypes.NameIdentifier, "summary-00")], "test")) } }
};
var result = await controller.List(default);
var rows = Assert.IsType<List<UsersController.UserDto>>(Assert.IsType<OkObjectResult>(result.Result).Value);
Assert.Equal(75, rows.Count);
var current = Assert.Single(rows, row => row.Id == "summary-00");
Assert.Equal("Åse", current.FirstName); Assert.Equal("Nordlys", current.LastName);
Assert.Equal("Reviewed administrator", current.DisplayName);
Assert.Equal("linked@example.test", current.GoogleEmail); Assert.Equal(linkedAt, current.GoogleLinkedAt);
Assert.True(current.EmailConfirmed); Assert.True(current.TwoFactorEnabled); Assert.True(current.IsCurrentUser);
Assert.Equal(adminCount > 1, current.CanRemoveAdmin); Assert.Equal(["Admin"], current.Roles);
var member = rows[^1];
Assert.Null(member.FirstName); Assert.Null(member.GoogleLinkedAt); Assert.False(member.IsCurrentUser);
Assert.True(member.CanRemoveAdmin); Assert.Equal(["Member"], member.Roles);
Assert.Equal(Enumerable.Range(0, 75).Select(index => $"summary-{index:D2}"), rows.Select(row => row.Id));
Assert.Empty(db.ChangeTracker.Entries<ApplicationUser>());
Assert.Equal(2, recorder.Commands.Count);
var sql = recorder.Commands[0];
Assert.Equal(10, sql.Split("FROM", StringSplitOptions.None)[0].Split(',').Length);
foreach (var excluded in new[] { "ProfileCvText", "ProfileCvStructureJson", "AvatarImageDataUrl", "PasswordHash", "TotpSecretEncrypted", "SecurityStamp", "StripeCustomerId", "DashboardLayoutJson" })
Assert.DoesNotContain(excluded, sql, StringComparison.Ordinal);
output.WriteLine($"Actual server:{database.ActualVersion}; users:75; admins:{adminCount}; SELECT columns:10; reader commands:2; excluded large fixture text:11059200 bytes");
output.WriteLine(sql);
}
private sealed class ReaderRecorder : DbCommandInterceptor
{
public List<string> Commands { get; } = [];
public override ValueTask<InterceptionResult<DbDataReader>> ReaderExecutingAsync(DbCommand command,
CommandEventData eventData, InterceptionResult<DbDataReader> result, CancellationToken cancellationToken = default)
{
Commands.Add(command.CommandText);
return base.ReaderExecutingAsync(command, eventData, result, cancellationToken);
}
}
}
+22 -11
View File
@@ -21,7 +21,7 @@ public sealed class JobQueryParityTests
[Theory]
[InlineData(250)]
[InlineData(2500)]
public async Task Ordinary_table_materialises_correspondence_groups_only_for_the_returned_page(int size)
public async Task Job_list_reads_correspondence_only_for_relevant_applications(int size)
{
await using var connection = new SqliteConnection("Data Source=:memory:");
await connection.OpenAsync();
@@ -36,7 +36,7 @@ public sealed class JobQueryParityTests
var jobs = Enumerable.Range(0, size).Select(i => new JobApplication
{
Company = company, OwnerUserId = "owner", JobTitle = $"Application {i:D4}", Status = "Applied",
DateApplied = new DateTime(2026, 10, 1),
DateApplied = new DateTime(2026, 10, 1), Location = i % 50 == 0 ? "Bergen" : "Oslo",
}).ToList();
db.JobApplications.AddRange(jobs);
await db.SaveChangesAsync();
@@ -62,20 +62,31 @@ public sealed class JobQueryParityTests
Assert.Equal(size, page.Total);
var expected = jobs.Skip(15).Take(15).Select(job => job.Id).ToArray();
Assert.Equal(expected, page.Items.Select(job => job.Id));
var (sql, parameters) = Assert.Single(aggregate.Commands);
await using var replay = connection.CreateCommand();
replay.CommandText = sql;
foreach (var parameter in parameters) replay.Parameters.AddWithValue(parameter.Key, parameter.Value ?? DBNull.Value);
var materialised = new List<int>();
await using (var reader = await replay.ExecuteReaderAsync())
while (await reader.ReadAsync()) materialised.Add(reader.GetInt32(0));
Assert.Equal(15, materialised.Count);
Assert.Equal(expected.Order(), materialised.Order());
async Task AssertMessageRows(int[] expectedIds)
{
var (sql, parameters) = Assert.Single(aggregate.Commands);
await using var replay = connection.CreateCommand();
replay.CommandText = sql;
foreach (var parameter in parameters) replay.Parameters.AddWithValue(parameter.Key, parameter.Value ?? DBNull.Value);
var materialised = new List<int>();
await using (var reader = await replay.ExecuteReaderAsync())
while (await reader.ReadAsync()) materialised.Add(reader.GetInt32(0));
Assert.Equal(expectedIds.Length, materialised.Count);
Assert.Equal(expectedIds.Order(), materialised.Order());
}
await AssertMessageRows(expected);
aggregate.Commands.Clear();
await controller.GetBoard();
await controller.GetAll(q: "absent");
Assert.Empty(aggregate.Commands);
var candidates = jobs.Where(job => job.Location == "Bergen").Select(job => job.Id).ToArray();
var filtered = await controller.GetAll(location: "Bergen", readiness: "needs-work", sortBy: "jobTitle");
var filteredPage = Assert.IsType<PagedResult<JobApplicationDto>>(Assert.IsType<OkObjectResult>(filtered.Result).Value);
Assert.Equal(candidates.Length, filteredPage.Total);
Assert.Equal(candidates.Take(15), filteredPage.Items.Select(job => job.Id));
await AssertMessageRows(candidates);
}
private sealed class CorrespondenceAggregateRecorder : DbCommandInterceptor
@@ -30,6 +30,17 @@ public sealed class SubmittedApplicationPackageTests
Assert.Equal("exact submitted bytes", await File.ReadAllTextAsync(destination));
Assert.Equal("32283fd0838392ef9d8c707f521096966432939d5d83624bbfce150cde3ce26c", result.Sha256);
await File.WriteAllTextAsync(source, "a later draft");
await Assert.ThrowsAsync<IOException>(() => storage.SnapshotAsync(source, destination, default));
Assert.Equal("exact submitted bytes", await File.ReadAllTextAsync(destination));
var next = storage.CreatePackagePath(7, 2, "source.txt");
await Assert.ThrowsAnyAsync<OperationCanceledException>(() =>
storage.SnapshotAsync(source, next, new CancellationToken(canceled: true)));
Assert.False(File.Exists(next));
await storage.SnapshotAsync(source, next, default);
Assert.Equal("a later draft", await File.ReadAllTextAsync(next));
}
finally
{
+42 -2
View File
@@ -18,10 +18,11 @@ using Microsoft.Data.Sqlite;
using JobTrackerApi.Data;
using Moq;
using Xunit;
using Xunit.Abstractions;
namespace JobTrackerApi.Tests;
public sealed class UsersControllerTests
public sealed class UsersControllerTests(ITestOutputHelper output)
{
[Fact]
public async Task SetRoles_rejects_removing_the_final_administrator()
@@ -171,11 +172,26 @@ public sealed class UsersControllerTests
db.Roles.AddRange(adminRole, memberRole);
var usersToAdd = Enumerable.Range(1, 75).Select(index => User(index == 1 ? "admin-1" : $"user-{index}")).ToList();
usersToAdd[0].TwoFactorEnabled = true;
usersToAdd[0].FirstName = "Åse";
usersToAdd[0].LastName = "Nordlys";
usersToAdd[0].DisplayName = "Reviewed administrator";
usersToAdd[0].GoogleEmail = "linked@example.test";
usersToAdd[0].GoogleLinkedAt = DateTimeOffset.Parse("2026-11-18T10:00:00Z");
usersToAdd[0].EmailConfirmed = true;
foreach (var user in usersToAdd)
{
user.ProfileCvText = new string('c', 65_536);
user.ProfileCvStructureJson = new string('j', 65_536);
user.AvatarImageDataUrl = new string('a', 16_384);
user.PasswordHash = "synthetic-private-password-hash";
user.TotpSecretEncrypted = "synthetic-private-totp";
}
db.Users.AddRange(usersToAdd);
db.UserRoles.Add(new IdentityUserRole<string> { UserId = "admin-1", RoleId = adminRole.Id });
foreach (var user in usersToAdd.Skip(1))
db.UserRoles.Add(new IdentityUserRole<string> { UserId = user.Id, RoleId = memberRole.Id });
await db.SaveChangesAsync();
db.ChangeTracker.Clear();
counter.Reset();
var manager = TestHostFactory.CreateUserManager();
@@ -187,6 +203,28 @@ public sealed class UsersControllerTests
Assert.True(Assert.Single(rows, row => row.Id == "admin-1").TwoFactorEnabled);
Assert.False(Assert.Single(rows, row => row.Id == "user-2").TwoFactorEnabled);
Assert.Equal(2, counter.ReaderCount);
var adminRow = Assert.Single(rows, row => row.Id == "admin-1");
Assert.Equal("Åse", adminRow.FirstName);
Assert.Equal("Nordlys", adminRow.LastName);
Assert.Equal("Reviewed administrator", adminRow.DisplayName);
Assert.Equal("linked@example.test", adminRow.GoogleEmail);
Assert.Equal(usersToAdd[0].GoogleLinkedAt, adminRow.GoogleLinkedAt);
Assert.True(adminRow.EmailConfirmed);
Assert.True(adminRow.IsCurrentUser);
Assert.False(adminRow.CanRemoveAdmin);
Assert.Equal(["Admin"], adminRow.Roles);
Assert.Equal(["Member"], Assert.Single(rows, row => row.Id == "user-2").Roles);
Assert.True(Assert.Single(rows, row => row.Id == "user-2").CanRemoveAdmin);
Assert.Equal(rows.OrderBy(row => row.Email, StringComparer.Ordinal).Select(row => row.Id), rows.Select(row => row.Id));
Assert.Null(Assert.Single(rows, row => row.Id == "user-2").FirstName);
Assert.Empty(db.ChangeTracker.Entries<ApplicationUser>());
var userSql = counter.Commands[0];
var selectedColumns = userSql.Split("FROM", StringSplitOptions.None)[0].Split(',').Length;
output.WriteLine($"User SELECT columns: {selectedColumns}; readers: {counter.ReaderCount}; fixture users:75; large excluded text bytes per user:147456");
output.WriteLine(userSql);
Assert.Equal(10, selectedColumns);
foreach (var excluded in new[] { "ProfileCvText", "ProfileCvStructureJson", "AvatarImageDataUrl", "PasswordHash", "TotpSecretEncrypted", "SecurityStamp", "StripeCustomerId", "DashboardLayoutJson" })
Assert.DoesNotContain(excluded, userSql, StringComparison.Ordinal);
manager.Verify(userManager => userManager.GetRolesAsync(It.IsAny<ApplicationUser>()), Times.Never);
manager.Verify(userManager => userManager.GetUsersInRoleAsync(It.IsAny<string>()), Times.Never);
}
@@ -229,8 +267,9 @@ public sealed class UsersControllerTests
private sealed class CommandCounter : DbCommandInterceptor
{
public int ReaderCount { get; private set; }
public List<string> Commands { get; } = [];
public void Reset() => ReaderCount = 0;
public void Reset() { ReaderCount = 0; Commands.Clear(); }
public override ValueTask<InterceptionResult<DbDataReader>> ReaderExecutingAsync(
DbCommand command,
@@ -239,6 +278,7 @@ public sealed class UsersControllerTests
CancellationToken cancellationToken = default)
{
ReaderCount++;
Commands.Add(command.CommandText);
return base.ReaderExecutingAsync(command, eventData, result, cancellationToken);
}
}
@@ -538,7 +538,9 @@ Canonical profile:
{
// Both filters depend on rule evaluation and workflow signals that include normalized
// note content, so evaluate before pagination to keep totals/pages correct.
var latestMessages = await LoadLatestMessagesAsync(_db.Correspondences.AsNoTracking());
var candidateIds = query.Select(j => j.Id);
var latestMessages = await LoadLatestMessagesAsync(_db.Correspondences.AsNoTracking()
.Where(message => candidateIds.Contains(message.JobApplicationId)));
var pre = await query.ToListAsync(cancellationToken);
var filtered = new List<JobApplication>();
foreach (var j in pre)
@@ -55,6 +55,19 @@ public sealed class UsersController : ControllerBase
{
var users = await _db.Users.AsNoTracking()
.OrderBy(user => user.Email)
.Select(user => new ApplicationUser
{
Id = user.Id,
Email = user.Email,
UserName = user.UserName,
FirstName = user.FirstName,
LastName = user.LastName,
DisplayName = user.DisplayName,
EmailConfirmed = user.EmailConfirmed,
TwoFactorEnabled = user.TwoFactorEnabled,
GoogleEmail = user.GoogleEmail,
GoogleLinkedAt = user.GoogleLinkedAt
})
.ToListAsync(cancellationToken);
var roleRows = await (
from userRole in _db.UserRoles.AsNoTracking()
+3 -1
View File
@@ -92,10 +92,12 @@ public sealed class AttachmentStorage : IAttachmentStorage
var destination = EnsureManagedPath(destinationPath, allowMissingLeaf: true);
if (File.Exists(destination)) throw new IOException("A submitted package file already exists at the destination.");
var created = false;
try
{
await using var input = new FileStream(source, FileMode.Open, FileAccess.Read, FileShare.Read);
await using var output = new FileStream(destination, FileMode.CreateNew, FileAccess.Write, FileShare.None);
created = true;
using var hash = System.Security.Cryptography.IncrementalHash.CreateHash(System.Security.Cryptography.HashAlgorithmName.SHA256);
var buffer = new byte[81920];
int read;
@@ -111,7 +113,7 @@ public sealed class AttachmentStorage : IAttachmentStorage
}
catch
{
if (File.Exists(destination)) File.Delete(destination);
if (created) File.Delete(destination);
throw;
}
}
@@ -13,3 +13,9 @@ The first build could not execute tests because C: was full. Only this run's fre
Remaining investigation:concurrent Career Profile changes during render may require their own snapshot binding. AttachmentStorage.SnapshotAsync has a separate source-backed destination-ownership cleanup concern; no deterministic race reproduction or fix is claimed here. MariaDB, actual HTTP/browser capture, real models/providers, native device/AT, physical PDF acceptance, integrated security and recovery were not rerun. Existing accepted PDF metrics/visuals remain source-bound.
Rollback:revert the source commit, rebuild on the isolated development branch and rerun the affected suite. No migration/data repair is involved. UI callers retain the existing revision-conflict/review flow; an aborted capture publishes no package. This does not establish atomic consistency across every package source entity or filesystem race.
## Submitted attachment cleanup ownership
On 19 November, review of `AttachmentStorage.SnapshotAsync` found that its exception path treated the presence of a file as permission to delete it. The destination may already have been claimed by another writer. The snapshotter now records success of its own exclusive `FileMode.CreateNew` open. Only that invocation's partial destination is eligible for cleanup. The existing early duplicate rejection and error message are preserved.
The storage lifecycle test uses real files under a disposable fixture root. It verifies the captured bytes and hash, a refused duplicate following a change to the source, preservation of the first capture, cancellation cleanup and a successful retry into the second destination. All 29 selected submitted-package, attachment consistency and attachment-controller tests passed on the dedicated Release build. The package service still records a path for outer rollback only after a successful snapshot. No customer data, migration or exporter was involved. There was no forced two-writer interleaving or live store rehearsal.
@@ -12,3 +12,22 @@ The focused SQLite test records and replays the actual SQL aggregate. Each fixtu
**PASSED** 36 selected Release tests with pinned SDK 9.0.317 and no restore. 18 JobQueryParity, 10 ApplicationCalendar, five RulesEngineProspect and three OwnershipGuard cases. The 16 existing parity cases cover ordering, filters, board, ownership and pagination. Two expected pre-fix failures are preserved. [Native red and final test logs](../ui-modernisation/evidence/perf-job-page/)
These counts measure rows returned by the aggregate under a disposable SQLite fixture. MariaDB plan/rows examined, API response time and production performance remain unmeasured. No index, migration or worker configuration changed.
## Filtered readiness and follow-up views
On 19 November the same SQLite regression fixture exposed a separate account-wide read in the derived-filter path. With a Bergen location filter, the old latest-message aggregate returned all 250 or 2,500 owned groups. Only five or 50 applications respectively were candidates for the readiness evaluation. The controller now limits the correspondence aggregate to the existing SQL candidate query before evaluating readiness or follow-up and paging. It uses a database subquery so the application need not send an unbounded list of IDs.
| Owned jobs with correspondence | Aggregate rows before | Aggregate rows after | Matching jobs on first page |
| ---: | ---: | ---: | ---: |
| 250 | 250 | 5 | 5 |
| 2,500 | 2,500 | 50 | 15 |
The test records and replays the actual EF-generated aggregate and compares its IDs with the fixture. Both new assertions failed on baseline `2a212c78`. The ordinary table still returned 15 page-scoped groups and the ordinary board and empty page issued no aggregate. The 38-test affected Release run passed, including table/board parity, ownership and workflow signals. The local native test receipt had SHA-256 `f84ca67a361dbcbca83ae762a02a5a90526a78d0e4ee8a3e1098773f0d29987b`.
Run the pinned .NET 9.0.317 SDK against `JobTrackerApi.Tests/JobTrackerApi.Tests.csproj` with `--no-restore -c Release` and the filter below.
```text
FullyQualifiedName~JobQueryParityTests|FullyQualifiedName~ApplicationCalendar|FullyQualifiedName~RulesEngineProspect|FullyQualifiedName~OwnershipGuard|FullyQualifiedName~JobApplicationsWorkflowSignalsTests
```
The measurements establish returned aggregate rows on these fixtures. Runtime on MariaDB, query plans for unselective searches and end-to-end latency remain open. The rollback unit is the filtered correspondence query change in `ReadJobsAsync`.
+30
View File
@@ -0,0 +1,30 @@
# Admin user-summary SQL projection
18 November 2026. Baseline `63db9c8a`, isolated `codex/perf-mariadb-qualification`. Relevant controller/test source matches A3 `213793c1`; no frontend, route, DTO, schema, role/mutation, package or configuration change.
## Result
The production user list previously loaded all 49 Identity columns, including CV text/structure, avatar data, password hash and encrypted TOTP state, before mapping ten fields into the unchanged summary DTO. EF now selects only those ten required fields. The two-query role batching, global admin count, current-user flag, full list, existing email ordering, null fields and linked-Google timestamp are preserved. Reads remain untracked; create/reset/role/delete and legacy manually-constructed-controller behavior are unchanged.
| Measurement | Before | After |
| --- | ---: | ---: |
| Actual SQLite user SELECT columns | 49 | 10 |
| Actual MariaDB user SELECT columns | Not separately run | 10 |
| Reader commands | 2 | 2 |
| Synthetic users per fixture | 75 | 75 |
Each fixture user has 147,456 ASCII bytes across CV text/structure/avatar fields. Those three fields total **11,059,200 bytes** across the fixture and are now absent from the database result. This is eliminated known fixture content, not a measured wire payload, heap allocation, latency or production workload improvement. The HTTP DTO payload is unchanged. No credentials were returned by the old DTO; no disclosure exploit is claimed. Full Users fetch and role-row growth remain open under PERF11; this change does not constitute pagination.
## Verification
- Original ordinary run: six passed, one failed because the new test compared SQLite BINARY order with culture-sensitive .NET order. The verifier was corrected to ordinal order; no application sorting changed.
- Corrected unchanged-source baseline: six passed, one expected failure, actual SELECT49 rather than10. Native SQL and TRX retain the baseline field list.
- Final affected ordinary subset: **12/12 passed, zero skips**, including seven UsersController tests and existing ownership/current-user checks. The summary case verifies all ten fields, null values, order, 75 rows, arbitrary Member role, current-user/last-admin safety, two queries, no identity role N+1 calls and no tracked partial user entities.
- Actual pinned local **MariaDB12.2.2**: **2/2 passed, zero skips**, separate 75-user one-admin/two-admin fixtures. Actual startup schema, independent generated databases, real EF/Pomelo SELECT10/two commands, returned DTO values, global last-admin state, nulls, ordering and no tracking verified. This targeted run does not extend the earlier98-case result to this new controller source as a full-project run.
- Compilation succeeded. Existing xUnit2012 warning in the earlier checklist native test remains; no warning suppression. No frontend changes require a new frontend build/browser run for this projection; actual HTTP auth and final UI/security acceptance remain separate.
The standard disposable lane used a fresh generated project, loopback port, pinned cached image, tmpfs/no persistent mounts,1CPU/768MiB and existing guarded schema lifecycle. All generated schemas were gone and only the owned test service was removed; user app containers/volumes were not targeted. No production/model/provider/restore execution. Exact source/native result/target/cleanup bindings: [receipts](user-list-projection/evidence/SOURCE_RECEIPTS.json).
Rollback removes only the Select; no data or schema rollback. Plan and preservation scope: [implementation plan](USER_LIST_PROJECTION_PLAN.md). Formal Phase10, Product Review, security, release, human/device and European rollout gates remain open.
Final AST-only graph refresh passed:19,993nodes/49,618edges, including the new native projection test. Existing optional PDF/SQL/symbol-free input warnings retained; no model labeling.
@@ -0,0 +1,15 @@
# User-list projection implementation plan
Existing isolated `codex/perf-mariadb-qualification`, source63db9c8a; relevant API/test baseline equivalent to A3 1ec15429. Owner PERF-01 instructions authorise bounded measured projections while keeping pagination separately open. Sequential root execution: parallel worker quota was unavailable; no competing mutable environment.
Goal: stop loading full CV, avatar, credentials and account integration state for the existing admin summary response. Existing two-query batching is retained. Use EF's ordinary projection into the existing summary inputs; no cache, schema, new DTO, route, package or UI control.
Reach: UsersController.List production context branch; ToDto's ten required user fields; existing UsersControllerTests relational query counter and representative user fixture. Existing legacy/manual-construction branch and all create/role/reset/delete callers retain signatures and semantics. AdminUsersPage remains unchanged and still receives the complete ordered list. This is not completion of PERF11 paging.
Alternatives considered: server pagination would require coordinated DataGrid filtering/sorting/mobile navigation and is larger; restricting fields in SQL immediately removes unnecessary large data while preserving compatibility. Returning fewer DTO fields would break consumers and is rejected.
- [x] Extend existing relational test with large synthetic CV/profile/avatar and credential fields, all summary fields, last-admin/current-user/role assertions, actual selected-column capture and no tracking. Run unchanged application and retain expected projection failure.
- [x] Add only the ten ToDto input fields to the production EF Select. Re-run all UsersControllerTests and relevant existing identity/ownership tests. Measure actual selected fields and excluded synthetic text bytes, without inferring network payload or latency gains.
- [x] Review SQL translation/safety, source-bound evidence, AST refresh, commit and publish; integrate only validated change into A3 and update central TODO/status/checkpoint. Native MariaDB execution remains separate unless run on this exact projection.
Review focus: null summary values; linked Google timestamp; current/last-admin safety and arbitrary role preservation; no extra identity role calls or tracked partial user entities; stable existing email ordering/full result count. Existing tests cover manual fallback and mutation safeguards. Rollback is the Select removal; no data rollback. All formal roadmap/security/release gates remain.
@@ -0,0 +1,28 @@
# Public landing preview measurements
The landing page now reserves the space occupied by its three 1440 × 900 SVG previews while the files are in flight. The dashboard preview begins within the first viewport on desktop and tablet and keeps its default eager load. The two subsequent previews use the browser’s native lazy loading. All three retain their original files, order and translated alternative text.
## Local browser results
Each row covers two cold Chromium 151.0.7922.34 contexts, English/light and Norwegian Bokmål/dark. The probe served the real static exports on loopback with synthetic signed-out authentication responses. It held the SVG response bodies until it could measure their pending layout. The displacement column measures the change in the last preview’s bottom edge in CSS pixels between pending and decoded states. The request and byte columns cover the three previews and the favicon only. The server served these assets uncompressed.
| Viewport | Preview displacement before → after | Initial asset requests before → after | Initial body bytes before → after |
| --- | ---: | ---: | ---: |
| 1440 × 900 | 1,132 → 0 | 4 → 4 | 28,397 → 28,397 |
| 768 × 1024 | 1,346 → 0 | 4 → 4 | 28,397 → 28,397 |
| 390 × 844 | 668 → 0 | 4 → 4 | 28,397 → 28,397 |
| 320 × 568 | 537 → 0 | 4 → 4 | 28,397 → 28,397 |
| 844 × 390 | 1,488 → 0 | 4 → 3 | 28,397 → 18,036 |
All ten comparisons retained the exact settled top, width, height and alternative text of each image. Chromium loaded the 10,361-byte workspace preview on scroll in both landscape-phone samples. Scrolling through the page decoded every image once per sample. In the other eight samples Chromium prefetched the secondary images before scrolling.
Every cold context requested the 1,017-byte SVG favicon. Requests for the ICO, manifest and PWA PNGs totaled zero in this navigation sample. Those assets remain available for other browser and install flows. Browser prefetch distances can vary. Production latency, field Core Web Vitals, other browser engines, physical devices and the future launch design remain open.
## Reproduction and verification
From an installed `job-tracker-ui` checkout, run `node ../docs/performance/landing-previews/measure.mjs <static-export-directory>` for each build. The JSON output includes pending and settled image rectangles, local request paths, response-body sizes and the browser version. The probe checks the document language, successful image decoding, accessible labels and absence of unexpected application requests or errors. The paired receipts are [before](before.json.gz) and [after](after.json.gz).
- Application source baseline `245f2feaa8bee2db8f5da0797b3e33f6ef8b056e`. The baseline export resided at checkout `171e616b`. Git reported an empty `job-tracker-ui` diff between those commits. Baseline index SHA-256 `31dfd9b2d2e7ea7d9e696b5485d24d7b8daf0b1e078e6539e94a04955b8ff1f8`.
- Candidate landing component blob `a73053174690588c5764f09683d5cabb0fe270e8`. Candidate index SHA-256 `8a8c1121f8a54fad47b91348346ca483bc0e4c06bd1211c85de525931a9d46d8`. Both checkouts used lockfile SHA-256 `1f718d8faa55f5e540d3d7886a51dd19b02b916b6cb23a462ae229e388d7ab98`.
- The new regression check caught missing native width and height attributes on the first implementation with MUI Box. The final native images passed. Three suites passed 41 tests covering landing content, language, auth redirect and public auth presentation. Scoped ESLint passed. The ordinary Next 16.4.6 production build passed TypeScript checking and static export.
- PERF-04 and PERF-15 remain partial. Launch image selection and rights, install-specific devices, other app routes and deployed delivery require their own evidence. A revert of this application change restores the previous eager previews and loading geometry.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,95 @@
// Run from an installed job-tracker-ui checkout. The argument is a built static export.
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import { createServer } from 'node:http';
import { createRequire } from 'node:module';
import path from 'node:path';
const { chromium } = createRequire(path.resolve('package.json'))('playwright');
const root = path.resolve(process.argv[2] || 'out');
const previews = ['/mockups/dashboard.svg', '/mockups/pipeline.svg', '/mockups/workspace.svg'];
const tracked = new Set([...previews, '/favicon.svg', '/favicon.ico', '/logo192.png', '/logo512.png', '/manifest.json']);
const mime = { '.html': 'text/html', '.css': 'text/css', '.js': 'application/javascript', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.png': 'image/png', '.json': 'application/json' };
const requests = [];
let imageGate;
const server = createServer(async (req, res) => {
try {
const pathname = new URL(req.url, 'http://localhost').pathname;
const file = path.resolve(root, '.' + (pathname === '/' ? '/index.html' : pathname));
if (req.method !== 'GET' || !file.startsWith(root + path.sep)) {
res.writeHead(400).end();
return;
}
const body = await readFile(file);
if (tracked.has(pathname)) requests.push({ path: pathname, bytes: body.length });
if (previews.includes(pathname)) await imageGate;
res.writeHead(200, { 'Content-Type': mime[path.extname(file)] || 'application/octet-stream', 'Cache-Control': 'no-store' });
res.end(body);
} catch {
res.writeHead(404).end();
}
});
await new Promise(resolve => server.listen(0, '127.0.0.1', resolve));
const origin = 'http://127.0.0.1:' + server.address().port;
const browser = await chromium.launch({ channel: 'chromium', args: ['--disable-background-networking'] });
try {
const states = [];
for (const [width, height] of [[1440, 900], [768, 1024], [390, 844], [320, 568], [844, 390]]) {
for (const [lang, theme] of [['en', 'light'], ['nb', 'dark']]) {
const begin = requests.length;
let release;
imageGate = new Promise(resolve => { release = resolve; });
const context = await browser.newContext({ viewport: { width, height }, deviceScaleFactor: 1, colorScheme: theme, serviceWorkers: 'block' });
const page = await context.newPage();
const unexpected = [];
page.on('pageerror', error => unexpected.push(error.message));
await page.addInitScript(({ lang, theme }) => {
localStorage.setItem('uiLanguage', lang);
localStorage.setItem('jobtracker.themeMode', theme);
}, { lang, theme });
await context.route('**/*', route => {
const url = new URL(route.request().url());
const local = ['127.0.0.1', 'localhost'].includes(url.hostname);
if (local && route.request().method() === 'GET' && url.pathname === '/api/auth/me') return route.fulfill({ status: 401, json: {} });
if (local && route.request().method() === 'GET' && url.pathname === '/api/auth/config') {
return route.fulfill({ json: { requireAuth: true, localEnabled: true, allowRegistration: true } });
}
if (origin === url.origin && !url.pathname.startsWith('/api/')) return route.continue();
unexpected.push(url.pathname);
return route.abort();
});
const images = page.locator('main img[src^="/mockups/"]');
const boxes = () => images.evaluateAll(nodes => nodes.map(image => {
const rect = image.getBoundingClientRect();
return { src: image.getAttribute('src'), top: Math.round(rect.top + scrollY), width: Math.round(rect.width), height: Math.round(rect.height), alt: image.alt, naturalWidth: image.naturalWidth, naturalHeight: image.naturalHeight };
}));
await page.goto(origin, { waitUntil: 'domcontentloaded' });
await page.getByRole('heading', { level: 1 }).waitFor();
await images.nth(2).waitFor({ state: 'attached' });
await page.evaluate(() => new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve))));
const pending = await boxes();
release();
await page.waitForLoadState('networkidle');
const before = await boxes();
const initial = requests.slice(begin);
assert.equal(await page.locator('html').getAttribute('lang'), lang === 'nb' ? 'nb-NO' : 'en');
for (const image of await images.all()) {
await image.scrollIntoViewIfNeeded();
await image.evaluate(element => element.decode());
}
const after = await boxes();
assert.deepEqual(after.map(image => image.src), previews);
assert.ok(after.every(image => image.alt && image.naturalWidth === 1440 && image.naturalHeight === 900));
assert.deepEqual(unexpected, []);
states.push({ width, height, lang, theme, pending, before, after, initial, settled: requests.slice(begin) });
await context.close();
}
}
console.log(JSON.stringify({ browser: browser.version(), states }, null, 2));
} finally {
await browser.close();
server.closeAllConnections();
await new Promise(resolve => server.close(resolve));
}
@@ -0,0 +1,161 @@
{
"baseline": "63db9c8a345dead09fd7b6ae95e05b040a952253",
"sourcesLfSha256": {
"JobTrackerApi/Controllers/UsersController.cs": "299b1eadd10e755dd6cf4a80cd35a3d49219d10199c9b6632f970917f86d3870",
"JobTrackerApi.Tests/UsersControllerTests.cs": "1fd014465d4184183be2734f3f27c0500205e6e777572cbb88a537c9d953a375",
"JobTrackerApi.MariaDb.Tests/UserListProjectionTests.cs": "a6301b3e31f050e072dc379de318f56ab07260faf4eb783a63806188ccb28ef5",
"JobTrackerApi.MariaDb.Tests/MariaDbDatabase.cs": "1375d97093f686f77d511ef6d81ad2d62ecf329aa6e7bf53036cd6e199035e40"
},
"tests": {
"ordinary": {
"total": "12",
"executed": "12",
"passed": "12",
"failed": "0",
"error": "0",
"timeout": "0",
"aborted": "0",
"inconclusive": "0",
"passedButRunAborted": "0",
"notRunnable": "0",
"notExecuted": "0",
"disconnected": "0",
"warning": "0",
"completed": "0",
"inProgress": "0",
"pending": "0"
},
"native": {
"total": "2",
"executed": "2",
"passed": "2",
"failed": "0",
"error": "0",
"timeout": "0",
"aborted": "0",
"inconclusive": "0",
"passedButRunAborted": "0",
"notRunnable": "0",
"notExecuted": "0",
"disconnected": "0",
"warning": "0",
"completed": "0",
"inProgress": "0",
"pending": "0"
}
},
"measurement": {
"sqliteSelectedColumnsBefore": 49,
"sqliteAndMariaDbSelectedColumnsAfter": 10,
"readerCommandsBeforeAndAfter": 2,
"users": 75,
"excludedSyntheticTextBytes": 11059200
},
"artifacts": [
{
"file": "user-projection-restore.txt.gz",
"rawSha256": "c04c5ac3fa367ad9d47653c3b55330ee18ff8d44ba63e68d86af098140769237",
"gzipSha256": "e51ad75efbd1bc16a40539d2e98937a404b1ab24fb68ce2870788ab961899d20"
},
{
"file": "user-projection-baseline.txt.gz",
"rawSha256": "1c0e3a60529b35fc31b7d6a8708d5badc6f58c4899d2be93f382b0624d31cf50",
"gzipSha256": "c631f127d0c01ede7b03a3f7e6451c26ef6f8709bad2a6504426aefec0d43c2a"
},
{
"file": "user-projection-baseline-baseline.trx.gz",
"rawSha256": "572817606de7b390ece536d8968d99217f919a7ff09237302c302635d1f3406c",
"gzipSha256": "e711b0d51c832ff524e7b14daa6a99e3bb33f40163fdfae9153767055c7174d5"
},
{
"file": "user-projection-corrected-baseline.txt.gz",
"rawSha256": "26482487c830be2ceb32318b45528f521a9fdebbc0b8e45b74797b85cd8f9938",
"gzipSha256": "236fa9f383ac9e21232c231a52f3ad0a7940bb373c3adbd4d210d03f89c51ff2"
},
{
"file": "user-projection-corrected-baseline-baseline.trx.gz",
"rawSha256": "3fdbe6c1d0163214cc56ed8cb53ae013acb15979a05e5593b40fecdb7e844507",
"gzipSha256": "97a80b668b5f55331aa806128ee7aa18770a8398b1255d5e4d9eadaacf0cbde1"
},
{
"file": "user-projection-final.txt.gz",
"rawSha256": "5bb505bcc5d63439da0941aec429c9918838d57f94c29344b95da60a9d1a2153",
"gzipSha256": "11b7b1f83bb43073072e3b827465ddf549a6ec452e79b240fe7e8a1c11f7e89f"
},
{
"file": "user-projection-final-final.trx.gz",
"rawSha256": "e3f2ea6cc9bb7d8a570ec7965219b42430785ceb63d7de1ff70bb8690b49dd56",
"gzipSha256": "feda4ef9300959d99e689cf69a990bef3834ad4c4dec197572d604854f4bf721"
},
{
"file": "run-user-native.py.gz",
"rawSha256": "8f6f215df6d7b7682dbdbe4f8f78b3165f8ca3cce91de7be9e16a658161c7578",
"gzipSha256": "f49f87f01aeb89fc4129175659d9e9cfc6477701dba2638e9bd4bb25d4c377b4"
},
{
"file": "user-projection-native-users.trx.gz",
"rawSha256": "0277d518ed6824b9cbb18399582def2740ac9561948beb3dbb41a99f32bc444f",
"gzipSha256": "6fd469742eeaaa04faf63d2bf618e46217bc3db1af2119116429e2d4dece2ee3"
},
{
"file": "user-projection-native-test.txt.gz",
"rawSha256": "f96b34b41ab76166a09e30c0a2cc23c22cb6f8c76043e924e92b57e846b35b51",
"gzipSha256": "4c5715f2cab1a988b3b7c3dc4bee884adb7f1c302c4c05f5474dece361a1f394"
},
{
"file": "user-projection-native-test.exit.txt.gz",
"rawSha256": "13bf7b3039c63bf5a50491fa3cfd8eb4e699d1ba1436315aef9cbe5711530354",
"gzipSha256": "7f636460b48b02e48ffda30b26e6cf24cebee6b983bfd77e79a2f7205a71497f"
},
{
"file": "user-projection-native-state.json.gz",
"rawSha256": "50053f4d335d043262ed0c896297d244499df2aa2a45dc809ab519e3c872075c",
"gzipSha256": "00f22c8bd8476aa00c6ae7ce6231b86d3fb4e15b066c21d26e758d67fe6d7ed5"
},
{
"file": "user-projection-native-target.json.gz",
"rawSha256": "4fe08d2103b02dff4f36c2fcdf0ea33f93be4569faf860d55e817839afabe353",
"gzipSha256": "85a15026edc95067c537c99ae8c6ea3aea8f437a790464e01a21f6fd58d55aab"
},
{
"file": "user-projection-native-start.txt.gz",
"rawSha256": "579c2e5e721e73eb96cd0a018767b44c90bd00303383740c7356a2ac94763987",
"gzipSha256": "518e8cd993c377f2ad52ab38364ca9a0f6d318695298e98442dbc01b82b8fb31"
},
{
"file": "user-projection-native-start.exit.txt.gz",
"rawSha256": "13bf7b3039c63bf5a50491fa3cfd8eb4e699d1ba1436315aef9cbe5711530354",
"gzipSha256": "7f636460b48b02e48ffda30b26e6cf24cebee6b983bfd77e79a2f7205a71497f"
},
{
"file": "user-projection-native-cleanup.txt.gz",
"rawSha256": "3dcf82df878854e3eb7ce88365e7208cfea71f66821d510146d63319a503d82d",
"gzipSha256": "2a9bd5be6cbaf5f3d51ec269270c3533c2dd94075693792a25863e654ab7731d"
},
{
"file": "user-projection-native-cleanup.exit.txt.gz",
"rawSha256": "13bf7b3039c63bf5a50491fa3cfd8eb4e699d1ba1436315aef9cbe5711530354",
"gzipSha256": "7f636460b48b02e48ffda30b26e6cf24cebee6b983bfd77e79a2f7205a71497f"
},
{
"file": "user-projection-native-server.txt.gz",
"rawSha256": "c829243b2a81c732267552f0374b4f8ff6f26aad0a3575a3b3c42e8aba068815",
"gzipSha256": "08af88cf26ce1e7dc23c02511d509bc20aa3f435682fd2d1b6386d45159b805c"
},
{
"file": "user-projection-native-server.exit.txt.gz",
"rawSha256": "13bf7b3039c63bf5a50491fa3cfd8eb4e699d1ba1436315aef9cbe5711530354",
"gzipSha256": "7f636460b48b02e48ffda30b26e6cf24cebee6b983bfd77e79a2f7205a71497f"
},
{
"file": "user-projection-native-remaining-schemas.txt.gz",
"rawSha256": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa",
"gzipSha256": "8afc61325213625995e1de8b0d2df70f01b1d5304993484a41cc9df249f00fad"
},
{
"file": "user-projection-native-resources.compose.yml.gz",
"rawSha256": "b101fe30969f57d2c033757d187b4a1d2a10123e1b7d762bcead64fdb6e367f6",
"gzipSha256": "711a927e50e6104a0820dc66ad5af08376544bcfa244ed3d36599384ac6528c9"
}
]
}
@@ -0,0 +1,22 @@
{
"scope": "Previously executed single native Chromium CV workflow. Recovered report, no new browser execution.",
"reportFile": "recovered-cv-connected.json",
"reportSHA256": "ed2d895bb66b50081b70a0fca1d90e6f9164e9d48705a4a79f2b3e80a5e5012f",
"spec": "job-tracker-ui/e2e/phase7-cv-library.spec.ts",
"title": "[P7-04 connected C01 C05 C07 C08 C10] native profile save to selected-source CV creation, scoped edit, preview and explicit PDF",
"project": "chromium",
"result": "passed",
"caseDurationMs": 13253,
"suiteStats": {
"startTime": "2026-11-18T18:28:11.624Z",
"duration": 21355.541,
"expected": 1,
"skipped": 0,
"unexpected": 0,
"flaky": 0
},
"integratedTestCommit": "a88e260d3983ae5afec55a13f9af5db264b1cb2b",
"reconciledSpecBlob": "38dc5debfa9307eee2820ad0d2a934d1c3bd755a",
"checkoutAtRecovery": "171e616b8ed76c060a3ed8a0831f71c364d006c6",
"limits": "The reporter did not bind the executing backend binary or exported UI to an immutable application build. The checkout identity and matching source blob were checked during reconciliation. This receipt does not qualify the full CV suite, current backend, native-language or visual acceptance."
}
@@ -0,0 +1 @@
{"boundary":"Actual owner HTTP fixtures use disposable isolated SQLite and existing application/CV/attachment APIs. Free accounts disable AI; the serial runtime disables model, delivery and alert workers. No provider/model/generation/send endpoint, raw SQL, schema or production write. Controlled precommit HTTP failures and held requests qualify scoped presentation/recovery, not network-uncertain idempotency or production reliability. Request metadata includes only fixture application/CV/file paths and bodies; no auth/CSRF/session headers. Existing seven workspace sections, CV renderer, immutable packages, one-job CV association and append-only cover history are preserved. Existing P2-D01 remains a separately executed ordinary preservation case; this file supplements that corpus. Duplicate-for-job remains two writes; created-copy/failed-attach is explicitly qualified, with no automatic second duplicate. Current AttachmentsTable and its separate ID0-download debt are outside this slice.","requests":[{"method":"GET","path":"/api/jobapplications/reminders","body":null},{"method":"GET","path":"/api/jobapplications/1/submitted-packages","body":null},{"method":"GET","path":"/api/jobapplications/1/workspace","body":null},{"method":"POST","path":"/api/jobapplications/1/submitted-packages","body":null},{"method":"GET","path":"/api/jobapplications/reminders","body":null},{"method":"GET","path":"/api/jobapplications/1/submitted-packages","body":null},{"method":"GET","path":"/api/jobapplications/1/workspace","body":null},{"method":"GET","path":"/api/jobapplications/1/submitted-packages/1","body":null},{"method":"GET","path":"/api/jobapplications/1/submitted-packages/1/attachments/1","body":null}],"blockedExternalRequests":[]}
@@ -0,0 +1 @@
{"boundary":"Actual owner HTTP fixtures use disposable isolated SQLite and existing application/CV/attachment APIs. Free accounts disable AI; the serial runtime disables model, delivery and alert workers. No provider/model/generation/send endpoint, raw SQL, schema or production write. Controlled precommit HTTP failures and held requests qualify scoped presentation/recovery, not network-uncertain idempotency or production reliability. Request metadata includes only fixture application/CV/file paths and bodies; no auth/CSRF/session headers. Existing seven workspace sections, CV renderer, immutable packages, one-job CV association and append-only cover history are preserved. Existing P2-D01 remains a separately executed ordinary preservation case; this file supplements that corpus. Duplicate-for-job remains two writes; created-copy/failed-attach is explicitly qualified, with no automatic second duplicate. Current AttachmentsTable and its separate ID0-download debt are outside this slice.","packageId":1,"recordedFileSha256":"67cf78a7580670c6cf849990be62559af40b1fd6e7fa9ce1bca299d9fecc766a","downloadSha256":"67cf78a7580670c6cf849990be62559af40b1fd6e7fa9ce1bca299d9fecc766a","preservedCvVersion":1,"currentCvVersion":2,"qualification":"Exact scoped real-HTTP current-source changes and archive-byte checks; existing ordinary P2-D01/full renderer fidelity runs remain required separately."}
@@ -0,0 +1,35 @@
{
"runtimeCommit": "398fafb72d6ed6214c98d71cd5e6c5817194c242",
"sourceSHA256": {
"JobTrackerApi/Services/AttachmentStorage.cs": "f5e5332c76cfaf63efddf93248c928b85804722820655bb7d02ef749dcd68d37",
"JobTrackerApi/Controllers/JobApplicationsController.cs": "4fbc7d061509e7da3035ae13cef0b68e1d11b8d118222fb7b8bfdbb40bc3f047",
"job-tracker-ui/e2e/phase7-application-forms.spec.ts": "138837f0652bf799446c3fbb6f5b4dcb4385411d6e7f83610c8772bfc431b736",
"job-tracker-ui/playwright.config.ts": "23aa479b85331aad1425d56c1d435f192981220a06b4d813b2195be9660d02e1",
"job-tracker-ui/package-lock.json": "1f718d8faa55f5e540d3d7886a51dd19b02b916b6cb23a462ae229e388d7ab98",
"JobTrackerApi/bin/Release/net9.0/JobTrackerApi.dll": "bc6bfa7b844e90106d34ab78eb831b131e6414e2bf012f5d6efa5b86233b573b"
},
"servedExportIndexSHA256": "31dfd9b2d2e7ea7d9e696b5485d24d7b8daf0b1e078e6539e94a04955b8ff1f8",
"nativeReportSHA256": "42c23eeb41b8f9e6f5783269f72c3404e472e7af0b57431e66ac3ffce2639e6e",
"title": "[P7-06 forms] actual native capture freezes CV and exact archive bytes after current sources change without renderer mutation",
"stats": {
"startTime": "2026-11-19T20:01:11.559Z",
"duration": 43337.787000000004,
"expected": 1,
"skipped": 0,
"unexpected": 0,
"flaky": 0
},
"scope": "One native Chromium desktop EN/light application-package journey using the fresh integrated Release API, disposable SQLite and the previously qualified source-equivalent frontend export. Normal isolated Playwright configuration; only static-server working directory redirected to that export.",
"attachmentSHA256": {
"p706-forms-en-light-1440-frozen-original-white-print-preview-audit.json": "4891d94f9f500efdf50f1a72bd7255d4bd136ea8a8e8d5bea013864ac46a7769",
"p706-forms-en-light-1440-frozen-original-white-print-preview.png": "a3cc4b66e8e0ee5b406f8f5e3748c58cca2d09d1314e5060223a59a79dc70aef",
"application-frozen-bytes.json": "c937fbb86e72c9b2d8d95dcc3a586836a0a2095af8d4a05346810a3f58eb1605",
"application-forms-boundary.json": "e8f610ee968ed7349ab8215bf6558f67dff7e794d510afddc51f0995cbf7da81"
},
"combinedReleaseTests": {
"executed": 67,
"passed": 67,
"skipped": 0,
"reportSHA256": "c1fff83fe6a3164900c22f1182f96508f1f8c1c80464342e6b0901c742c758d9"
}
}
@@ -0,0 +1,141 @@
# Independent A3 completion reassessment
18 November 2026. Inspected application HEAD2c5d04513eb02a9b3771fde5c27ea3e378fc5d92. Documentation/source-evidence audit only; no fresh browser captures or tests in this report. Existing untracked TestResults/graph retained. Graph query ran first but points to an older E-drive graph, so current documents are authoritative.
## Verdict: PARTIALLY IMPLEMENTED
The principal IM01–IM09 presentation increments are implemented and have explicit owner progression approvals in the subsequent milestone records and conversation. IM10 integrated completion, route-wide visual parity, connected journeys and final visual acceptance remain open. This is more than merely awaiting a final signature: the discrepancy register still has material open/partial scope. The owner explicitly withholds final A3 visual acceptance. New design exploration now releases A3 visual/IA constraints, without removing any preservation requirement.
## Milestone reconciliation
|Milestone|Development evidence|Acceptance boundary|
|---|---|---|
|IM01 foundation|UI-01/VALIDATION; implemented/tested|Explicit foundation Gate F accepted|
|IM02 navigation|49 selected tests,56 scans; NAVIGATION_VALIDATION|Progression approval recorded in UI-03|
|IM03 dashboard/onboarding|DASHBOARD_VALIDATION;95 frontend/36 backend|Progression approval recorded in UI-04|
|IM04 applications|126 frontend/88 backend,48 scans|Progression approval in UI-05|
|IM05 discovery|32 frontend/14 backend,48 scans|Progression approval in UI-06; no new provider approval|
|IM06 career/CV/letter|CAREER_VALIDATION;212 frontend/103 backend|Progression approval in UI-07; rendering/import qualifications separate|
|IM07 workspace|108 frontend/52 backend,144 scans|Progression approval in UI-08; interview/timezone/provider gaps|
|IM08 AI/settings|131 frontend/68 backend,96 scans|Progression approval in UI-09; model semantics not qualified|
|IM09 account/admin|143 frontend/69 backend,128 states|Owner approved progression to IM10 in chat; no live credential/deletion qualification|
|IM10 cross-app|UI-10 and successor reports; numerous bounded fixes|OPEN; no final Gate F or visual approval|
These historical counts are overlapping source-bound evidence, not a freshly executed current full regression. Stale unchecked publication boxes in early UI records must not override subsequent publication/approval records.
## All34 route dispositions
Each row below is the current route register evidence disposition, not fresh visual confirmation. All retain final owner acceptance OPEN. New captures must reconcile later successor reports.
|Route|Recorded visual status|Recorded qualification|
|---|---|---|
| / | BASELINE_RENDERED_AUDIT_LAUNCH_DESIGN_OPEN | PASSED:12 existing public journeys and12 scoped axe scans; anonymous preference requests zero; visual design, SEO and human acceptance remain open |
| /dashboard | INITIAL_DENSITY_SCOPED_REVIEW_PARTIAL_PARITY | PASSED:36 configurations /72 dashboard states; fixture onboarding and layout save/reload; full visual parity remains open |
| /analytics | MEANINGFUL_OBJECT_SURFACES_RETAINED_PENDING_FULL_ACCEPTANCE | PASSED:36 configurations; scoped populated/unknown/empty/permission-dependent fixture states only; full route acceptance remains open |
| /discover | DIVIDED_ROWS_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /108 drawer/search states at 4f3541e5 and one isolated server-backed keyboard/import journey. Earlier tracker fixture journey retained. Broader saved-search mobile sequences, provider/backend and final acceptance remain open. |
| /jobs | FLAT_ROWS_CORRECTED_PENDING_FINAL_VISUAL_REVIEW | PASSED:36 configurations /108 ordinary, selection and row-menu states at bfbfaeb9. Earlier workspace, count, focus and Add Job evidence retained. Final visual and native acceptance remain open. Edit dialog: four open sections; 29 targeted tests, nine paired desktop/tablet/mobile journeys and 27 accessibility captures. Counts overlap earlier date/revision checks. |
| /jobs/:id | FLAT_WORKSPACE_ROLE_TITLE_HIERARCHY_SCOPED_REVIEW | PASSED:36 configurations /216 application-family states; full acceptance open Scoped correspondence recovery and flat-surface follow-up:33 overlapping cases;12 note configurations/60 scans plus separate pasted canary. Wider route/provider/native and final owner acceptance remain open. |
| /reminders | AGENDA_MONTH_SCOPED_REVIEW_DATA_GAPS_OPEN | PASSED:36 configurations /108 calendar states; recorded dates and month preference/link only; status/navigation/schedule/refreshed-agenda/linked-context8 representative configurations/48 states passed atc0ef4171; provider/backend scheduling NOT RUN |
| /operations | CORRECTED_SCOPED_REVIEW_PENDING_FULL_ACCEPTANCE | PASSED:36 configurations; scoped populated/unknown/empty/permission-dependent fixture states only; full route acceptance remains open |
| /kanban | ALIAS_DISPOSITION_PENDING_DESTINATION_ACCEPTANCE | PASSED:exact query preservation and existing hash behaviour in controlled EN phone routing check; no new independent screen |
| /companies | MEANINGFUL_OBJECT_SURFACES_RETAINED_PENDING_FULL_ACCEPTANCE | PASSED:36 configurations; scoped populated/unknown/empty/permission-dependent fixture states only; full route acceptance remains open |
| /offers | CORRECTED_SCOPED_REVIEW_PENDING_FULL_ACCEPTANCE | PASSED:36 configurations; scoped populated/unknown/empty/permission-dependent fixture states only; full route acceptance remains open |
| /correspondence | FLAT_RECORDED_CONTEXT_SCOPED_REVIEW_FULL_ACCEPTANCE_OPEN | PASSED:36 configurations and 144 embedded review/409 states on c7e8627c; earlier mail, label and native evidence retained; full acceptance open |
| /correspondence/review | ALIAS_DISPOSITION_PENDING_DESTINATION_ACCEPTANCE | PASSED:exact query preservation and existing hash behaviour in controlled EN phone routing check; no new independent screen |
| /profile | CONTINUOUS_ACCOUNT_SECTIONS_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /252 account states across family; drafts, cancelled confirmations and fixture403 export only; full acceptance open |
| /applications/:id | ALIAS_DISPOSITION_PENDING_DESTINATION_ACCEPTANCE | PASSED:exact query preservation and existing hash behaviour in controlled EN phone routing check; no new independent screen |
| /career | OPEN_SURFACES_SCOPED_REVIEW_FULL_ACCEPTANCE_OPEN | PASSED:36 configurations /216 Career-family states;14 keyboard edit targets; synthetic revisions/import selection only; unavailable services disclosed; successor Evidence Bank36/216 states passed, zero writes; other route states remain open |
| /career/builder | OPEN_SURFACES_SCOPED_REVIEW_FULL_ACCEPTANCE_OPEN | PASSED:36 configurations /216 Career-family states;14 keyboard edit targets; synthetic revisions/import selection only; unavailable services disclosed; representative source-selection/create/edit/preview/download transport8/40 passed; physical PDF/backend/template services NOT RUN |
| /career/builder/:id | OPEN_SURFACES_SCOPED_REVIEW_FULL_ACCEPTANCE_OPEN | PASSED:36 configurations /216 Career-family states;14 keyboard edit targets; synthetic revisions/import selection only; unavailable services disclosed; representative source-selection/create/edit/preview/download transport8/40 passed; physical PDF/backend/template services NOT RUN; singular-caption successor36/72 passed,zero writes; original physical metrics untouched |
| /documents | EARLY_JUMP_DIVIDED_ARTICLES_SCOPED_REVIEW | PASSED:36 configurations /216 combined document/mail states; fixture-only download and metadata |
| /admin/audit | OPEN_COLLECTION_RENDERED_SCOPED_RENDERED_REVIEW | PASSED:36 recent-search, event type/date filter, disclosure, no-match and keyboard scroll configurations; browser mutations not run |
| /admin/users | MEANINGFUL_USER_FORM_TABLE_BOUNDARIES_RETAINED | PASSED:36 configurations for compact keyboard action menus, aligned rows or cards, 2FA and cancelled confirmation; real delivery and writes remain open |
| /admin/system | OPEN_DIAGNOSTICS_DIVIDED_BENCHMARK_SCOPED_RENDERED_REVIEW | PASSED:36 configurations for unavailable, successful, stale and recovered status reads, including stale timestamp placement; earlier benchmark and settings coverage retained |
| /trash | MEANINGFUL_OBJECT_SURFACES_RETAINED_PENDING_FULL_ACCEPTANCE | PASSED:36 configurations; scoped populated/unknown/empty/permission-dependent fixture states only; full route acceptance remains open |
| /settings | OPEN_SECTIONS_QUICK_CAPTURE_AND_SHARED_FEEDBACK_SCOPED_REVIEW | PASSED:36 configurations /252 Settings states; five sections, focused AI and bookmarklet/click feedback; zero writes/proposals. Error/conflict/native/live qualification remains open Export/session and singular feedback qualified on their recorded sources. Rules density/recovery:12 configurations/84 scans plus combined76 affected frontend cases. Wider route/native/final acceptance remains open. |
| /settings/connected-accounts | CONTINUOUS_ACCOUNT_SECTIONS_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /252 account states across family; drafts, cancelled confirmations and fixture403 export only; full acceptance open |
| /login | PUBLIC_LOCALE_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /504 public-family states; synthetic commands only; full owner/native/security acceptance open |
| /register | PUBLIC_LOCALE_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /504 public-family states; synthetic commands only; full owner/native/security acceptance open |
| /forgot-password | PUBLIC_LOCALE_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /504 public-family states; synthetic commands only; full owner/native/security acceptance open |
| /reset-password | PUBLIC_LOCALE_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /504 public-family states; synthetic commands only; full owner/native/security acceptance open |
| /verify-email | PUBLIC_LOCALE_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /504 public-family states; synthetic commands only; full owner/native/security acceptance open |
| /confirm-email-change | PUBLIC_LOCALE_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /504 public-family states; synthetic commands only; full owner/native/security acceptance open |
| /microsoft-legacy-relink | PUBLIC_LOCALE_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /504 public-family states; synthetic commands only; full owner/native/security acceptance open |
| /cv/:slug | MEANINGFUL_OBJECT_SURFACES_RETAINED_PENDING_FULL_ACCEPTANCE | PASSED:36 configurations; scoped populated/unknown/empty/permission-dependent fixture states only; full route acceptance remains open |
| /admin/processing | OPEN_COLLECTION_DETAIL_SCOPED_RENDERED_REVIEW | PASSED:36 configurations /324 admin states combined; keyboard, filter geometry, owner-link suppression and synthetic failed detail; no processing mutations |
## All57 preservation groups
All57 group rows are reconciled below without promoting capability acceptance. Source PRESERVATION_RECONCILIATION.md retains56 PARTIAL/one DEFERRED; these are historical capability statuses, distinct from owner approval of presentation increments. Required closure and original criteria remain authoritative in docs/pre-phase10-ux/preservation.json.
|Group|Existing implementation owner|Residual boundary|
|---|---|---|
| PRES-E01 | Shared theme; public/plans retained | Separate LAUNCH-SITE visual/claims and real billing availability gates. No new launch or pricing claim. |
| PRES-E02 | Navigation; account/admin; secondary public-auth tests | Controlled local access/recovery presentation. Real mail/challenge/token delivery and native checks remain distinct. |
| PRES-E03 | Account/admin; secondary legacy-relink tests | Existing sign-in provider/link/relink contracts retained. No real OAuth/link/provider validation. |
| PRES-E04 | Account/admin | Local 2FA/recovery/trusted-device fixtures and cancellation. Real credentials/delivery/native qualification open. |
| PRES-E05 | Account/admin | Session guards and confirmation fixtures; no real revocation for visual testing. |
| PRES-E06 | Account/admin | Identity-only fields, avatar/account restrictions; drafts retained across in-page section jumps. Canonical career data remains separate. |
| PRES-E07 | Navigation; shared theme | Sidebar/hybrid mobile/commands retained. Physical-device and full native accessibility remain separate. |
| PRES-E08 | Shared theme; Settings/AI; IM10 localisation | EN/NB hydration, feedback/dialog owners retained. Complete European/native-language qualification remains open. |
| PRES-E09 | Navigation; account/admin; original session boundaries | Existing private-state disposal and stale-request boundaries retained. No integrated-security acceptance inferred. |
| PRES-J01 | Discovery | Existing supported NAV presentation/attribution/geography retained. Global Jobs dependencies and provider rights not granted by A3. |
| PRES-J02 | Discovery | Controlled saved-search actions/alerts qualified; real provider/worker delivery remains separate. |
| PRES-J03 | Applications | Existing manual/URL/paste review and duplicate handling retained; no provider scraping added. |
| PRES-J04 | Applications; Settings capture owner | Existing capture/deep-link surfaces retained; extension/device/platform qualifications unchanged. |
| PRES-J05 | Applications | Table/filter/column/saved-view and mobile actions retained; broader native/device criteria not promoted. |
| PRES-J06 | Applications; secondary trash | Existing trash/restore/bulk contracts retained. Secondary browser trash state is empty; no real delete/restore. |
| PRES-J07 | Applications | Table/board/status/keyboard controlled journeys retained; real pointer/touch qualification separate. |
| PRES-J08 | Theme/navigation; secondary companies | Existing company/contact/relationship owner retained; secondary bounded fixtures, no real CRM writes. |
| PRES-J09 | Secondary offer comparison | Recorded facts/unknown compensation/links retained. No inferred salary, deadline provenance or financial advice. |
| PRES-J10 | Applications; Settings/import owners | CSV/JSON conversion/import/export owners retained. Original full data-fidelity/compatibility closure remains authoritative. |
| PRES-W01 | Applications; Career | Existing full workspace/sections/legacy aliases/context retained; no route removed. |
| PRES-W02 | Applications | Status/progression/details/timeline actions retain existing revision writers and permissions. |
| PRES-W03 | Applications; AI | Controlled analysis/review presentation. Live semantic AI and provider quality remain unqualified. |
| PRES-W04 | Applications | Existing checklist lifecycle/reorder/next-action owner retained. No replacement persistence layer. |
| PRES-W05 | Career | CV attach/select/tailor owner and canonical/variant boundaries retained; no live tailoring quality claim. |
| PRES-W06 | Career; workspace | Manual letter/preview/history/conflict/dirty protections retained, existing atomic assets writer unchanged. |
| PRES-W07 | Career; IM10 attachment localisation | Frozen package/snapshot/download ownership retained; displayed sizes change without changing bytes or filenames. |
| PRES-W08 | Workspace; IM10 attachment localisation | Existing upload/preview/download/consent/category owner retained; no file-access boundary changed. |
| PRES-W09 | Retained interview task components; Applications | Controlled manual/review scope only. No live AI quality or new stored interview scheduling claimed. |
| PRES-W10 | Retained debrief/follow-up components; Calendar | Original readiness/draft/date contracts retained; interview appointment data-model gap remains explicit. |
| PRES-W11 | Calendar; Settings/AI | Recorded date agenda/month and email switch qualified. Original precision/timezone data, real ICS/provider consent/delivery remain separate. |
| PRES-W12 | Workspace; account/admin; secondary operations | Existing async progress/failure/retry/cancel/notification owners retained. No real workers/models activated. |
| PRES-C01 | Career | Canonical full profile/long-tail/custom sections retained; no engine replacement or canonical-owner transfer. |
| PRES-C02 | Career | Overview, completion and edit actions retain existing import/raw/history owners. |
| PRES-C03 | Career | Existing upload/diff/review/accept/cancel controls retained. Deferred CV-import engine overhaul remains excluded. |
| PRES-C04 | Career/evidence owner retained | Original evidence-bank CRUD/source criteria remain authoritative; UI milestone is not full source-quality acceptance. |
| PRES-C05 | Career | Library/templates/share/PDF actions retained; real storage/publication/PDF qualifications remain separately evidenced. |
| PRES-C06 | Career; IM10 caption | Editor-left/preview-right, mobile panes and preview lifecycle retained; caption is app chrome, not renderer content. |
| PRES-C07 | Career | Existing section/item/document overrides and null-as-inherit retained; no settings schema change. |
| PRES-C08 | Career | Existing template/capability/typography/photo controls retained. Physical rendering evidence is reused where unaffected. |
| PRES-C09 | Career | Existing page/density/margins/document language/settings owner retained; UI language never silently translates document content. |
| PRES-C10 | Career | Undo/save/conflict/history/lifecycle contracts retained; focused reruns do not inflate accepted totals. |
| PRES-C11 | AI; IM10 caption | Historical DEFERRED semantic qualification remains. Controlled proposal invalidation/review/apply and caption language are tested; no live inference. |
| PRES-C12 | Career; secondary public CV | Public/private document surfaces retained. Mock HTML/PDF href checks are not renderer, real anonymous-access or physical-PDF qualification. |
| PRES-M01 | Workspace | Existing job-scoped manual correspondence/paste/search/delete owner retained; no real messages changed. |
| PRES-M02 | Workspace | Gmail import/thread/link/conflict owner retained; real provider OAuth/delivery/rights gates remain. |
| PRES-M03 | Workspace | Global inbox/filter/page/detail/source context qualified with fixtures; real provider data not accessed. |
| PRES-M04 | Workspace | Compose/reply/conflict/confirmation/uncertain-send fixtures qualified. No actual delivery or unsafe retry. |
| PRES-M05 | Navigation/workspace; legacy route retained | Existing review/link/reject/notes owner retained; final provider-backed review qualification remains separate. |
| PRES-M06 | Account/admin | Mailbox connections remain separate from sign-in providers; no real connect/disconnect or credentials. |
| PRES-S01 | Dashboard; secondary analytics | Existing metrics/activity/funnel/reporting and query owners retained; fixture values are not live user analytics. |
| PRES-S02 | Dashboard | Optional onboarding/skip/resume and original widget/schema-2/CAS/geometry protections retained. |
| PRES-S03 | Settings/AI; account/admin | Existing preference/rule/draft writers retained. Six numeric thresholds do not provide per-user Ghosted pause. |
| PRES-S04 | AI/Settings | Privacy/usage/entitlement/billing boundaries retained. Mounted entitlement display refresh gap remains OPEN; no inferred client grant. |
| PRES-S05 | Account/admin | Export/recent-sign-in/deletion confirmations retained. Offline fixtures do not qualify real backup/restore/recovery. |
| PRES-A01 | Account/admin | Existing roles/self/last-admin controls and local backend tests retained; no real account mutation for visual testing. |
| PRES-A02 | Account/admin | Existing audit/read/undo/restore owner retained; browser capture is empty and action scenarios are unit fixtures. |
| PRES-A03 | Account/admin | Existing system/mail/probe/benchmark/maintenance controls retained; browser unavailable-state checks are not real diagnostics/security/recovery acceptance. |
## Material unfinished work and fresh capture plan
V06 whole-route review, V07 connected workflows and V08 owner/human acceptance remain OPEN. V14 dashboard parity and V27 homepage remain PARTIAL. V01–04 and V16–18 have implementation evidence but residual rendered/action/error/native review. Older nested-card patterns cannot be declared absent solely from shared styling; meaningful form/document surfaces must be distinguished from decorative nesting.
Capture real application on exact candidate at1440×900 desktop,768×1024 tablet and390×844 phone, each EN/NB and light/dark:12 configurations per rendered route. Treat redirects as navigation assertions with destination evidence, not invented screens. Include populated/loading/empty/error, permission differences and dialogs; preserve synthetic owner isolation. Reuse unchanged accepted artifacts only with source/fixture/renderer identity proof. Review typography, spacing, borders/nesting, density, alignment, focus and sticky controls. Record source, viewport, locale, theme, state, screenshot hash, fixture/native boundary and discrepancy disposition. Physical devices/AT/native-language review remain explicit NOT RUN until performed. No fresh screenshot was captured by this audit worker.
Recent successor evidence: COMBINED_CONNECTED_VALIDATION.md has four actual isolated discovery/calendar cases and eight scans on213793c1 predecessor; provider/search/import-preview remain fixtures. USER_LIST_PROJECTION.md adds12 ordinary/two actual MariaDB checks at2c5d0451, not a full browser rerun. NATIVE_MARIADB_20261118.md has98 prior-source persistence tests, not current full100. Neither establishes final A3 acceptance.
Recovered CV journey: original uncommitted proposal on codex/career-cv-journey at eb253877 remains NOT RUN; guarded transfer to current lane failed baseline comparison before edits. Reconcile diff with current phase7-cv-library.spec.ts, retain source/metadata/sibling/revision assertions, execute focused case then affected library suite. PDF signature alone is not physical fidelity.
Phase10 acceptance, Product Review entry, integrated security/recovery/release and provider/model gates remain distinct. No production UI replacement is approved by the new exploration directive. The five new concepts require a separate explicit selection and implementation-strategy approval.
@@ -0,0 +1,54 @@
# Five Jobjakt design directions
[Open the gallery](index.html) or [compare screenshots and tradeoffs](compare.html). This is the review build for 19 November 2026. The existing application and five earlier A3 concept explorations remain separate.
Serve this directory from the development checkout with the command below. The static site uses local assets and synthetic records. To run the included browser checks, install the application's normal Playwright dependencies and Chromium through the existing project workflow. All scripts resolve Playwright from `job-tracker-ui`. Set `JOBJAKT_GALLERY_URL` if serving on another local port.
```powershell
python -m http.server 4327 --bind 127.0.0.1 --directory docs/ui-modernisation/reassessment/concepts
```
## Compare the experiences
| Direction | First interaction | Desktop and phone | Implementation implication |
| --- | --- | --- | --- |
| A · Clear Desk | Scan the activity list and agenda | Compact top navigation, high density, horizontally scrollable on a phone | Existing tracker and agenda owners fit. Check legibility as text size increases. |
| B · Next Chapter | Choose a guided next action | Generous whitespace and short prompts work for a new applicant. Secondary choices sit further down the page. | Guidance must account for returning users and allow direct navigation. |
| C · Career Atelier | Start from a CV, letter or profile | Desktop library sidebar and document canvas. On a phone the preview comes before the editor. | Document draft identity, canonical profile ownership, conflicts, focus order and export fidelity need explicit preservation tests. |
| D · Northstar | Review an employer brief | An editorial home and prominent heading give one opportunity priority. Fewer items fit on a phone. | Existing route owners can provide the content. Long names and inverted navigation need careful contrast and reflow checks. |
| E · The Next Move | Continue an application or choose the next task | Journey-led home with bottom navigation. Reaching the tracker quickly matters when working on several opportunities. | The shell must preserve selected-job context, browser history, keyboard focus and bottom safe areas. |
Each concept offers dashboard, discovery, application list and board, details, Career Profile, CV, letter, calendar, correspondence, settings, administration and onboarding. Secondary layouts share several patterns so the same task can be compared. The site uses English and Bokmål chrome, two themes and responsive layouts. Some secondary copy and fictional employer/document content remains English.
## Try the same task in each concept
1. Open Discovery. Choose Norway and search for **Electrician**. Open the result and check the employer and city.
2. Save the opportunity, write a note, edit its CV summary, then return to the application. Mark it applied and schedule a follow-up. Open that job from the calendar or the Applied board column.
3. Open a different job. Its notes and CV draft are independent. Switch to the Career Profile to inspect the canonical summary.
4. In Discovery, change the prototype state to error, retry, cancel loading or recover from an empty search using the keyboard.
5. Switch theme and language, then repeat on a narrow viewport.
Changes last within the loaded page. Reloading restores the synthetic fixture. Month and board views, notes, CV summaries and letters are interactive. Actual accounts, invitations, sending email, source feeds, AI calls, file import, stored revisions and PDF production require the application. Administration, history and export use illustrative feedback. The discovery map and advert-language checkboxes are illustrative.
## Browser evidence
All checks below were run against the packaged review source after the selected-job and contrast corrections.
| Check | Result | Evidence |
| --- | --- | --- |
| Render matrix | 720 configurations passed, with zero page errors or horizontal overflow. Five concepts × 12 screens × 3 viewport widths (1440/820/390) × 2 languages × 2 themes. | [Matrix](matrix.json) |
| Screenshot sample | 30 captures from dashboard, discovery and CV. The 120 sampled renders overlap the 720 configurations. | [Sample](validation.json) |
| Existing interactions | Five concept journeys, with eight recorded check groups each. | [Results](interactions.json) |
| Filtered opportunity and draft isolation | Ten journeys, one desktop and one phone run per concept. Fixed a reproduced error that showed the healthcare role when selecting the electrician. Verified per-job notes, CV draft isolation, applied column and agenda/month identity. All 60 comparison image URLs returned HTTP 200. | [Results](selected-job-validation.json) |
| Discovery recovery | Ten keyboard journeys and 30 loading/empty/error screenshots. Checked retry, cancel, clearing filters and focus recovery. | [Results](recovery-validation.json) |
| Accessibility | 40 axe scans of dashboard, discovery, detail and CV at desktop EN/light and phone NB/dark. Original scans found two contrast causes across five states. Final scans found zero violations under the selected WCAG 2.0/2.1 A/AA rules. | [Results](accessibility.json) |
Run `node selected-job.cjs`, `node interactions.cjs`, `node recovery-verify.cjs`, `node verify.cjs`, `node matrix.cjs` and `node accessibility.cjs` from this directory while serving the site. They refresh their own JSON or captures.
## Decision and preservation
The owner may choose one direction or components from several and must separately approve the implementation strategy. Incremental migration can preserve the React/MUI feature owners and existing backend contracts. A new shell with retained features requires additional navigation and focus regression work. A full frontend replacement also needs a route-by-route parity plan before cutover.
For the selected design, reconcile all 34 application routes and 57 preservation groups. Carry forward roles and ownership, RD21 revision checks, canonical Career Profile data, document overrides and frozen exports, dashboard layout/CAS, last-admin protection and recovery behaviour. Native-language, physical-device, assistive-technology and owner visual review remain open. Full European localisation still covers all 24 official EU languages and the wider approved scope.
[Public product research](RESEARCH.md) · [A3 assessment](../A3_ASSESSMENT.md)
@@ -0,0 +1,7 @@
# Discovery recovery
The Discovery state selector offers ready, loading, empty and error in English and Bokmål across all five concepts. Retry simulates a 700 ms wait and keeps the search and country. Cancel returns to the current results. When a search yields no matches, the user can edit it or clear all filters.
The status heading receives focus when a user changes the state. Tab reaches the retry, secondary search or cancel action. Enter activates the focused action. A polite status region announces the update. The search remains keyboard accessible after recovery.
Ten desktop and phone journeys passed with the packaged source. The [receipts](recovery-validation.json) cover programmatic focus, recovery actions and overflow. [Compare the 30 state captures](compare.html) using the screenshot selector. Real screen readers, tablet recovery interactions, failure handling on other routes and provider behaviour have separate qualification requirements.
@@ -0,0 +1,15 @@
# Public product pattern research
2026-11-18. Public official marketing/help documentation review, not authenticated hands-on testing. Pattern observations below are supported by the cited public documentation; design recommendations are our inference. No brand assets, templates, source code or private user data copied.
- [FlowCV](https://flowcv.com/): live resume preview with content and appearance steps suggests separating document content from styling while retaining immediate feedback. Adaptation: C document canvas and live summary preview.
- [Linear projects](https://linear.app/docs/projects): clear grouped outcomes and project context suggest a compact, focused workspace. Adaptation: A flat daily task/activity layout. This does not claim Linear's authenticated interface was tested.
- [Notion views, filters and sorts](https://www.notion.com/help/views-filters-and-sorts): multiple views over shared records suggest list/board alternatives without duplicated data ownership. Adaptation: applications list/board; separate interface language from content filters.
- [Teal job tracking](https://help.tealhq.com/en/articles/14435727-how-to-track-your-job-applications): spreadsheet-style tracking suggests practical status scanning rather than decorative cards. Adaptation: A tracking emphasis.
- [Teal resume building](https://help.tealhq.com/en/articles/14435724-how-to-build-your-resume-in-teal): document preparation connected to job tracking informs contextual application actions.
- [Huntr application hub and packets](https://help.huntr.co/en/articles/14367332-application-hub-and-packets): opportunity-associated document packets suggest keeping correspondence, CV, letter and follow-up connected. Adaptation: E journey and application detail context.
- [Huntr dashboard](https://help.huntr.co/en/articles/10393367-your-huntr-dashboard): dashboard as a focused entry point informs B guided next actions.
Design plan: keep synthetic tasks comparable while varying information hierarchy, navigation placement, density, tone and document orientation. A uses cool blue compact lists; B green friendly guidance; C purple document library/sidebar; D navy/teal editorial brief; E plum task path and bottom navigation. No external font or image requests.
Critique: A has the strongest scanning density; B risks excess vertical space; C requires explicit mobile edit/preview navigation; D risks decorative hero dominance; E risks hiding expert tools behind a guided sequence. Secondary screen layouts remain substantially shared and require deeper review before describing the concepts as fully independent systems. This first build is a comparison artifact, not selection or acceptance.
@@ -0,0 +1,74 @@
const { strict: assert } = require("node:assert");
const fs = require("node:fs");
const path = require("node:path");
const modules = {
paths: [path.resolve(__dirname, "../../../../job-tracker-ui")],
};
const { chromium } = require(require.resolve("playwright", modules));
const axePath = require.resolve("axe-core/axe.min.js", modules);
const base = process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327";
async function scan() {
const browser = await chromium.launch();
const results = [];
try {
const page = await browser.newPage();
const errors = [];
page.on("pageerror", (error) => errors.push(error.message));
for (const concept of "ABCDE") {
for (const width of [1440, 390]) {
const lang = width === 390 ? "nb" : "en";
const theme = width === 390 ? "dark" : "light";
await page.setViewportSize({ width, height: 900 });
for (const screen of ["home", "discover", "detail", "cv"]) {
await page.goto(
base + "/?" + new URLSearchParams({ concept, screen, lang, theme }),
);
await page.addScriptTag({ path: axePath });
const violations = await page.evaluate(async () => {
const result = await axe.run(document, {
runOnly: {
type: "tag",
values: ["wcag2a", "wcag2aa", "wcag21a", "wcag21aa"],
},
});
return result.violations.map((v) => ({
rule: v.id,
impact: v.impact,
nodes: v.nodes.map((n) => ({
target: n.target,
reason: n.failureSummary,
})),
}));
});
results.push({ concept, width, screen, lang, theme, violations });
}
}
}
fs.writeFileSync(
path.join(__dirname, "accessibility.json"),
JSON.stringify({ results, errors }, null, 2) + "\n",
);
const failed = results.filter((x) => x.violations.length);
console.log(
results.length +
" scans, " +
failed.length +
" states with findings, " +
errors.length +
" browser errors",
);
assert.equal(errors.length, 0);
assert.equal(
failed.length,
0,
"See accessibility.json for unresolved findings.",
);
} finally {
await browser.close();
}
}
scan().catch((error) => {
console.error(error);
process.exitCode = 1;
});
@@ -0,0 +1,325 @@
{
"results": [
{
"concept": "A",
"width": 1440,
"screen": "home",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "A",
"width": 1440,
"screen": "discover",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "A",
"width": 1440,
"screen": "detail",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "A",
"width": 1440,
"screen": "cv",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "A",
"width": 390,
"screen": "home",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "A",
"width": 390,
"screen": "discover",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "A",
"width": 390,
"screen": "detail",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "A",
"width": 390,
"screen": "cv",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "B",
"width": 1440,
"screen": "home",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "B",
"width": 1440,
"screen": "discover",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "B",
"width": 1440,
"screen": "detail",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "B",
"width": 1440,
"screen": "cv",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "B",
"width": 390,
"screen": "home",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "B",
"width": 390,
"screen": "discover",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "B",
"width": 390,
"screen": "detail",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "B",
"width": 390,
"screen": "cv",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "C",
"width": 1440,
"screen": "home",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "C",
"width": 1440,
"screen": "discover",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "C",
"width": 1440,
"screen": "detail",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "C",
"width": 1440,
"screen": "cv",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "C",
"width": 390,
"screen": "home",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "C",
"width": 390,
"screen": "discover",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "C",
"width": 390,
"screen": "detail",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "C",
"width": 390,
"screen": "cv",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "D",
"width": 1440,
"screen": "home",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "D",
"width": 1440,
"screen": "discover",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "D",
"width": 1440,
"screen": "detail",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "D",
"width": 1440,
"screen": "cv",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "D",
"width": 390,
"screen": "home",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "D",
"width": 390,
"screen": "discover",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "D",
"width": 390,
"screen": "detail",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "D",
"width": 390,
"screen": "cv",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "E",
"width": 1440,
"screen": "home",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "E",
"width": 1440,
"screen": "discover",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "E",
"width": 1440,
"screen": "detail",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "E",
"width": 1440,
"screen": "cv",
"lang": "en",
"theme": "light",
"violations": []
},
{
"concept": "E",
"width": 390,
"screen": "home",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "E",
"width": 390,
"screen": "discover",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "E",
"width": 390,
"screen": "detail",
"lang": "nb",
"theme": "dark",
"violations": []
},
{
"concept": "E",
"width": 390,
"screen": "cv",
"lang": "nb",
"theme": "dark",
"violations": []
}
],
"errors": []
}
@@ -0,0 +1,812 @@
const $ = (s) => document.querySelector(s),
q = new URLSearchParams(location.search);
const screens = [
"home",
"discover",
"applications",
"detail",
"profile",
"cv",
"letter",
"calendar",
"mail",
"settings",
"admin",
"onboarding",
];
const selected = (key, allowed, fallback) =>
allowed.includes(q.get(key)) ? q.get(key) : fallback;
const state = {
concept: selected("concept", "ABCDE".split(""), ""),
screen: selected("screen", screens, "home"),
lang: selected("lang", ["en", "nb"], "en"),
theme: selected("theme", ["light", "dark"], "light"),
phone: q.get("mobile") === "1",
calendarView: "agenda",
trackerView: "list",
query: "",
summary:
"I help people feel welcome, supported and confident. Six years of experience coordinating services, supporting colleagues and improving everyday care.",
title: "Community care coordinator",
name: "Amira Olsen",
letter:
"Dear hiring team,\n\nI am excited to apply for the Community care coordinator position. My experience supporting patients and coordinating multidisciplinary teams would help me contribute to your local service.\n\nI would welcome the opportunity to meet your team.\n\nKind regards,\nAmira Olsen",
};
state.profileSummary = state.summary;
state.country = "";
state.discoveryState = "ready";
const concepts = {
A: {
name: "Clear Desk",
tag: "Minimal productivity workspace",
detail:
"A compact top bar and one working surface. Lists, fast actions and a quiet daily brief.",
trade: "Fast for experienced users; guidance is secondary.",
},
B: {
name: "Next Chapter",
tag: "Friendly career workspace",
detail:
"A guided home, human language and step-by-step preparation. A welcoming companion for a new beginning.",
trade: "Clear next steps; takes more space than a dense tracker.",
},
C: {
name: "Career Atelier",
tag: "Career and document studio",
detail:
"Your professional story is the centre. A document canvas, collection navigation and contextual editing tools.",
trade:
"Excellent for preparing documents; discovery is one room in the studio.",
},
D: {
name: "Northstar",
tag: "Premium career platform",
detail:
"A spacious, editorial opportunity brief with a confident top-level navigation and focused application dossiers.",
trade: "Strong hierarchy and breathing room; fewer items visible at once.",
},
E: {
name: "The Next Move",
tag: "Journey-first career workspace",
detail:
"Organise work around the next meaningful action. A task path connects opportunities, documents, conversations and dates.",
trade: "Reduces disconnected pages; requires learning the journey model.",
},
};
const en = {
home: "Home",
discover: "Explore jobs",
applications: "Applications",
detail: "Application workspace",
profile: "Career Profile",
cv: "CV studio",
letter: "Cover letter",
calendar: "Calendar",
mail: "Correspondence",
settings: "Settings",
admin: "Administration",
onboarding: "Get started",
greeting: "Good morning, Amira.",
intro: "Make room for your next opportunity.",
today: "Your next steps",
week: "Coming up",
explore: "Find an opportunity",
prepare: "Prepare your CV",
view: "View details",
save: "Save to applications",
saved: "Saved to applications",
apply: "Mark as applied",
applied: "Applied",
review: "Review application",
edit: "Edit",
export: "Export preview",
preview: "Preview",
content: "Content",
design: "Design",
history: "History",
search: "Role, skill or employer",
country: "Search country",
language: "Job-ad language",
all: "All occupations",
filters: "More filters",
results: "opportunities",
summary: "Professional summary",
experience: "Experience",
skills: "Skills",
contact: "Contact details",
name: "Full name",
title: "Professional title",
saveChanges: "Save changes",
saveDraft: "Save draft",
send: "Review before sending",
agenda: "Agenda",
month: "Month",
follow: "Schedule follow-up",
reply: "Draft a reply",
complete: "Complete",
continue: "Continue",
skip: "Do this later",
uiLanguage: "Interface language",
docLanguage: "Document language",
privacy: "Privacy & assistance",
notifications: "Notifications",
connections: "Connected accounts",
security: "Security & sessions",
data: "Your data",
settingsIntro: "Your preferences, your pace.",
adminIntro: "Service health and account management.",
synthetic: "Interactive design study · synthetic data · no live service",
back: "All five concepts",
theme: "Theme",
layout: "Preview",
desktop: "Desktop",
mobile: "Mobile",
help: "Help & advanced tools",
board: "Board",
list: "List",
savedCount: "saved",
interviews: "interviews",
drafts: "documents ready",
new: "New",
status: "Status",
source: "Source",
deadline: "Application deadline",
documents: "Documents",
notes: "Notes",
timeline: "Timeline",
details: "Job details",
company: "Employer",
location: "Location",
type: "Working arrangement",
required: "What you will bring",
benefits: "What the role offers",
progress: "Your progress",
sourceNote:
"Synthetic vacancy for concept review. Provider availability is not implied.",
mapNote: "Illustrative location view, not a geographic boundary map.",
exportNote:
"Preview opened. This prototype does not generate a qualified PDF.",
feedback: "Saved in this prototype only.",
reviewNote:
"Review your message and recipient. No email will be sent from this prototype.",
};
const nb = {
...en,
home: "Hjem",
discover: "Finn jobber",
applications: "Søknader",
detail: "Søknadsområde",
profile: "Karriereprofil",
cv: "CV-studio",
letter: "Søknadsbrev",
calendar: "Kalender",
mail: "Korrespondanse",
settings: "Innstillinger",
admin: "Administrasjon",
onboarding: "Kom i gang",
greeting: "God morgen, Amira.",
intro: "Gjør plass til din neste mulighet.",
today: "Dine neste steg",
week: "Dette skjer snart",
explore: "Finn en mulighet",
prepare: "Forbered CV-en",
view: "Se detaljer",
save: "Lagre i søknader",
saved: "Lagret i søknader",
apply: "Marker som søkt",
applied: "Søkt",
review: "Gjennomgå søknaden",
edit: "Rediger",
export: "Eksporter forhåndsvisning",
preview: "Forhåndsvisning",
content: "Innhold",
design: "Utforming",
history: "Historikk",
search: "Stilling, ferdighet eller arbeidsgiver",
country: "Søkeland",
language: "Språk i annonsen",
all: "Alle yrker",
filters: "Flere filtre",
results: "muligheter",
summary: "Profesjonelt sammendrag",
experience: "Erfaring",
skills: "Ferdigheter",
contact: "Kontaktinformasjon",
name: "Fullt navn",
title: "Yrkestittel",
saveChanges: "Lagre endringer",
saveDraft: "Lagre utkast",
send: "Gjennomgå før sending",
agenda: "Agenda",
month: "Måned",
follow: "Planlegg oppfølging",
reply: "Skriv et svar",
complete: "Fullfør",
continue: "Fortsett",
skip: "Gjør dette senere",
uiLanguage: "Grensesnittspråk",
docLanguage: "Dokumentspråk",
privacy: "Personvern og assistanse",
notifications: "Varsler",
connections: "Tilkoblede kontoer",
security: "Sikkerhet og økter",
data: "Dine data",
settingsIntro: "Dine innstillinger, ditt tempo.",
adminIntro: "Tjenestestatus og kontoadministrasjon.",
synthetic:
"Interaktiv designstudie · syntetiske data · ingen aktive tjenester",
back: "Alle fem konsepter",
theme: "Tema",
layout: "Visning",
desktop: "Datamaskin",
mobile: "Mobil",
help: "Hjelp og avanserte verktøy",
board: "Tavle",
list: "Liste",
savedCount: "lagret",
interviews: "intervjuer",
drafts: "dokumenter klare",
new: "Ny",
status: "Status",
source: "Kilde",
deadline: "Søknadsfrist",
documents: "Dokumenter",
notes: "Notater",
timeline: "Tidslinje",
details: "Stillingsdetaljer",
company: "Arbeidsgiver",
location: "Sted",
type: "Arbeidsform",
required: "Dette tar du med deg",
benefits: "Dette tilbyr rollen",
progress: "Din fremgang",
sourceNote:
"Syntetisk stilling for konseptvurdering. Ingen påstand om leverandørtilgang.",
mapNote: "Illustrert stedsvisning, ikke et geografisk grensekart.",
exportNote:
"Forhåndsvisning åpnet. Prototypen lager ikke en kvalifisert PDF.",
feedback: "Kun lagret i denne prototypen.",
reviewNote:
"Gjennomgå melding og mottaker. Ingen e-post sendes fra prototypen.",
};
const t = (k) => (state.lang === "nb" ? nb : en)[k] || k;
const esc = (s) =>
String(s).replace(
/[&<>"']/g,
(c) =>
({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" })[
c
],
);
const jobs = [
[
"Community care coordinator",
"Fjord Community Health",
"Bergen, Norway",
"Healthcare",
"⌘",
],
[
"Primary school teacher",
"Oakfield Learning Centre",
"Cork, Ireland",
"Education",
"◈",
],
[
"Front-of-house supervisor",
"Harbour House",
"Copenhagen, Denmark",
"Hospitality",
"◒",
],
[
"Electrician",
"North Coast Energy",
"Trondheim, Norway",
"Skilled trades",
"ϟ",
],
[
"Service designer",
"Civic Services Lab",
"Helsinki, Finland",
"Public services",
"◎",
],
[
"Retail team leader",
"Neighbourhood Market",
"Utrecht, Netherlands",
"Retail",
"◇",
],
];
// Each synthetic opportunity keeps its own tracker state for this review session.
const ids = [
"fjord-care",
"oakfield-teacher",
"harbour-supervisor",
"north-coast-electrician",
"civic-designer",
"market-lead",
];
const records = jobs.map((job, i) => ({
id: ids[i],
job,
stage: ["", "applied", "interview", "", "saved", ""][i],
followup: false,
notes: "",
cvSummary: state.summary,
letter: state.letter.replace("Community care coordinator", job[0]),
}));
function trackedCount() {
return records.filter((r) => r.stage === "saved").length;
}
let current = records.find((r) => r.id === q.get("job")) || records[0];
const detailText = [
[
"Coordinate community care, support families and work with local healthcare teams.",
"Koordiner omsorgstjenester, støtt familier og samarbeid med lokale helseteam.",
],
[
"Plan lessons and support pupils in a small primary school team.",
"Planlegg undervisning og følg opp elever i et lite barneskoleteam.",
],
[
"Lead the reception team and coordinate a welcoming guest experience.",
"Led resepsjonsteamet og sørg for at gjestene blir godt tatt imot.",
],
[
"Maintain electrical installations and coordinate repairs with the field team.",
"Vedlikehold elektriske anlegg og koordiner reparasjoner med feltteamet.",
],
[
"Design accessible public services with residents and municipal teams.",
"Utform tilgjengelige offentlige tjenester sammen med innbyggere og kommunale team.",
],
[
"Coordinate shop-floor shifts and coach colleagues in customer service.",
"Koordiner vakter i butikken og veiled kolleger i kundeservice.",
],
];
function jobLink(job, label) {
const id = ids[jobs.indexOf(job)];
return `<a href="?concept=${state.concept}&amp;screen=detail&amp;lang=${state.lang}&amp;theme=${state.theme}&amp;job=${id}${state.phone ? "&amp;mobile=1" : ""}" data-screen="detail" data-job="${id}">${label}</a>`;
}
function stageLabel(stage) {
return stage === "interview"
? state.lang === "nb"
? "Intervju"
: "Interview"
: stage === "saved"
? t("savedCount")
: t("applied");
}
const link = (screen, label, cls = "", id = current.id) =>
`<a class="${cls}" href="?concept=${state.concept}&screen=${screen}&lang=${state.lang}&theme=${state.theme}&amp;job=${id}${state.phone ? "&amp;mobile=1" : ""}" data-screen="${screen}" data-job="${id}">${label || t(screen)}</a>`;
const btn = (label, action, primary = false) =>
`<button class="${primary ? "primary" : ""}" data-action="${action}">${label}</button>`;
function toast(message) {
$(".toast")?.remove();
const el = document.createElement("div");
el.className = "toast";
el.setAttribute("role", "status");
el.textContent = message;
document.body.append(el);
setTimeout(() => el.remove(), 4500);
}
function field(label, value, id, area = false) {
return `<label class="field">${label}${area ? `<textarea id="${id}">${esc(value)}</textarea>` : `<input id="${id}" value="${esc(value)}">`}</label>`;
}
function heading(title, sub = "", actions = "") {
return `<div class="heading"><div><h1>${title}</h1>${sub ? `<p class="muted">${sub}</p>` : ""}</div><div class="actions">${actions}</div></div>`;
}
function jobRows(items = jobs) {
return `<div class="list">${items.map((j) => `<div class="row"><div class="logo">${j[4]}</div><div class="grow"><h3>${jobLink(j, j[0])}</h3><p class="muted">${j[1]} · ${j[2]}</p></div><span class="badge">${records[jobs.indexOf(j)].stage ? stageLabel(records[jobs.indexOf(j)].stage) : j[3]}</span>${jobLink(j, t("view"))}</div>`).join("")}</div>`;
}
function agenda() {
return `<div class="agenda">${records
.filter((r) => r.followup)
.map(
(r) =>
`<div class="row"><div class="date">27<br>Nov</div><div><h3>${jobLink(r.job, (state.lang === "nb" ? "Følg opp " : "Follow up with ") + r.job[1])}</h3><p>${state.lang === "nb" ? "Lagt til i denne prototypen" : "Added in this prototype"}</p></div></div>`,
)
.join(
"",
)}<div class="row"><div class="date">20<br>Nov</div><div><h3>${state.lang === "nb" ? "Møt teamet i Fjord" : "Meet the Fjord team"}</h3><p class="muted">10:00–10:45 · Europe/Oslo</p>${jobLink(jobs[0], t("review"))}</div></div><div class="row"><div class="date">22<br>Nov</div><div><h3>${state.lang === "nb" ? "Søknadsfrist: Lærer" : "Deadline: Primary school teacher"}</h3><p class="muted">Oakfield Learning Centre</p>${jobLink(jobs[1], t("view"))}</div></div><div class="row"><div class="date">25<br>Nov</div><div><h3>${state.lang === "nb" ? "Følg opp Harbour House" : "Follow up with Harbour House"}</h3><p class="muted">${state.lang === "nb" ? "Påminnelse, ingen automatisk melding" : "Reminder only, no automatic message"}</p></div></div></div>`;
}
function tasks() {
return `<div class="task"><input id="task1" type="checkbox"><label for="task1">${state.lang === "nb" ? "Velg erfaring til CV-en for Fjord" : "Choose experience for your Fjord CV"}<br>${link("cv", t("prepare"))}</label></div><div class="task"><input id="task2" type="checkbox"><label for="task2">${state.lang === "nb" ? "Svar på intervjuinvitasjonen" : "Reply to your interview invitation"}<br>${link("mail", t("reply"))}</label></div><div class="task"><input id="task3" type="checkbox"><label for="task3">${state.lang === "nb" ? "Se gjennom tre nye muligheter" : "Review three new opportunities"}<br>${link("discover", t("explore"))}</label></div>`;
}
function home() {
let main = `${heading(t("greeting"), t("intro"), link("discover", t("explore")))}<div class="metric-strip"><div class="metric"><strong>${trackedCount()}</strong>${t("savedCount")}</div><div class="metric"><strong>2</strong>${t("interviews")}</div><div class="metric"><strong>3</strong>${t("drafts")}</div></div><div class="split"><section><div class="section-title"><h2>${t("today")}</h2>${link("applications", t("applications"))}</div>${tasks()}<div class="section" style="margin-top:35px"><h2>${state.lang === "nb" ? "Nylig aktivitet" : "Recent activity"}</h2>${jobRows(jobs.slice(0, 3))}</div></section><aside><h2>${t("week")}</h2>${agenda()}</aside></div>`;
if (state.concept === "B")
main = `<div class="welcome">${heading(state.lang === "nb" ? "Et nytt kapittel begynner her." : "Your next chapter starts here.", state.lang === "nb" ? "Ta ett steg i dag. Vi holder orden på resten." : "Take one step today. We’ll help keep everything together.")}<div class="actions">${btn(t("prepare"), "cv", true)}${link("onboarding", state.lang === "nb" ? "Finn din vei" : "Find your starting point")}</div></div><div class="split"><section><h2>${t("today")}</h2>${tasks()}<div class="notice"><h3>${state.lang === "nb" ? "Du trenger ikke gjøre alt på én gang." : "You don’t need to do everything at once."}</h3><p>${state.lang === "nb" ? "Profilen din er et godt sted å begynne. Du kan alltid komme tilbake." : "Your profile is a good place to begin. You can always come back."}</p>${link("profile", t("profile"))}</div></section><aside><h2>${t("week")}</h2>${agenda()}</aside></div>`;
if (state.concept === "C")
main = `${heading(state.lang === "nb" ? "Arbeidet bak din neste jobb." : "The work behind your next role.", state.lang === "nb" ? "Din erfaring. Dine dokumenter. En tydelig historie." : "Your experience. Your documents. One coherent story.", btn(t("prepare"), "cv", true))}<div class="split"><div><div class="grid3">${["cv", "letter", "profile"].map((s, i) => `<a class="tile" data-screen="${s}" href="#"><div style="height:150px;background:var(--soft);padding:20px;margin-bottom:20px"><div style="background:var(--paper);height:100%;padding:12px"><strong>Amira Olsen</strong><hr><small>${["Community care", "Fjord Health", "6 years experience"][i]}</small><hr><hr></div></div><h3>${t(s)}</h3><small>${state.lang === "nb" ? "Sist redigert i dag" : "Edited today"}</small></a>`).join("")}</div><h2 style="margin-top:35px">${t("applications")}</h2>${jobRows(jobs.slice(0, 2))}</div><aside><h2>${t("today")}</h2>${tasks()}${agenda()}</aside></div>`;
if (state.concept === "D")
main = `<div class="heading"><div><h1 class="hero-title">${state.lang === "nb" ? "Et arbeidsliv som passer deg." : "A working life that fits you."}</h1><p class="muted">${state.lang === "nb" ? "Ditt personlige overblikk, onsdag 18. november." : "Your personal brief, Wednesday 18 November."}</p></div>${link("profile", "Amira Olsen")}</div><div class="split"><section class="feature"><p>${state.lang === "nb" ? "Neste samtale" : "Your next conversation"}</p><h2 style="font-size:34px">Fjord Community Health</h2><p>${state.lang === "nb" ? "Et lokalt team. En meningsfull rolle. Forbered deg til fredag." : "A local team. A meaningful role. Get ready for Friday."}</p>${btn(t("review"), "detail")}</section><section><h2>${t("today")}</h2>${tasks()}</section></div><section style="margin-top:40px"><h2>${state.lang === "nb" ? "Muligheter verdt å utforske" : "Opportunities worth exploring"}</h2>${jobRows(jobs.slice(0, 3))}</section>`;
if (state.concept === "E")
main = `${heading(state.lang === "nb" ? "Hva er ditt neste steg?" : "What’s your next move?", state.lang === "nb" ? "Samle alt rundt muligheten du jobber med." : "Keep everything together around the opportunity you’re working on.")}<div class="task-path"><section class="tile"><span class="badge">${state.lang === "nb" ? "Pågående" : "In progress"}</span><h2 style="margin-top:20px">Fjord Community Health</h2><p>Community care coordinator</p><div class="steps"><span>✓ ${t("savedCount")}</span><span>✓ CV</span><span>○ ${t("interviews")}</span></div>${btn(state.lang === "nb" ? "Fortsett forberedelsen" : "Continue preparing", "detail", true)}<hr style="border:0;border-top:1px solid var(--line);margin:25px 0">${link("mail", state.lang === "nb" ? "Ny invitasjon fra Elise" : "New invitation from Elise")}</section><section><h2>${state.lang === "nb" ? "Velg en retning" : "Choose a direction"}</h2><div class="list">${["discover", "profile", "calendar"].map((s) => `<div class="row"><div class="grow"><h3>${link(s, t(s))}</h3><p class="muted">${s === "discover" ? (state.lang === "nb" ? "Finn noe du vil gå videre med" : "Find something worth pursuing") : s === "profile" ? (state.lang === "nb" ? "Samle det du kan" : "Bring your experience together") : state.lang === "nb" ? "Gjør plass til det som kommer" : "Make space for what comes next"}</p></div></div>`).join("")}</div></section></div>`;
return main;
}
function discoveryBase() {
return `${heading(t("discover"), state.lang === "nb" ? "Finn arbeid som passer livet ditt." : "Find work that fits your life.")}<div class="filters"><input aria-label="${t("search")}" id="search" placeholder="${t("search")}" value="${esc(state.query)}"><select aria-label="${t("country")}" id="country">${["", "Norway", "Ireland", "Denmark", "Finland", "Netherlands"].map((v) => `<option value="${v}" ${state.country === v ? "selected" : ""}>${v || (state.lang === "nb" ? "Alle land" : "All countries")}</option>`).join("")}</select>${btn(t("filters"), "filters")}</div><div class="split"><section><p class="muted" id="resultCount">${filteredJobs().length} ${t("results")} · ${t("sourceNote")}</p><div id="discoveryLive" class="sr-only" role="status"></div><div id="jobResults">${discoveryMarkup()}</div></section><aside><div class="map"><svg viewBox="0 0 300 240" role="img" aria-label="Illustrative Nordic locations"><path d="M90 210L110 160 100 120 150 50 185 20 205 40 180 80 165 125 145 160 135 220Z" fill="var(--paper)" stroke="var(--line)" stroke-width="2"/><path d="M190 70L240 45 260 100 220 150 190 130Z" fill="var(--paper)" stroke="var(--line)"/><g fill="var(--accent)"><circle cx="116" cy="150" r="7"/><circle cx="145" cy="120" r="7"/><circle cx="135" cy="195" r="7"/><circle cx="225" cy="115" r="7"/></g><g fill="var(--ink)" font-size="12"><text x="45" y="153">Bergen</text><text x="151" y="118">Trondheim</text><text x="145" y="199">Copenhagen</text><text x="232" y="114">Helsinki</text></g></svg><p>${t("mapNote")}</p></div><div class="notice" style="margin-top:20px"><h3>${t("language")}</h3><label><input type="checkbox" checked> English</label><br><label><input type="checkbox" checked> Norsk bokmål</label><p style="margin:15px 0 0">${state.lang === "nb" ? "Grensesnittspråket endrer ikke hvilke annonser du ser." : "Your interface language does not change which adverts you see."}</p></div></aside></div>`;
}
function applications() {
return `${heading(t("applications"), state.lang === "nb" ? "Fra første interesse til neste samtale." : "From first interest to your next conversation.", btn(t("list"), "list") + btn(t("board"), "board"))}${
state.trackerView === "board"
? `<div class="board">${["saved", "applied", "interview"]
.map(
(stage) =>
`<section><h2>${stageLabel(stage)}</h2>${records
.filter((r) => r.stage === stage)
.map(
({ job: j }) =>
`<article><h3>${jobLink(j, j[0])}</h3><p>${j[1]}</p><small>${j[2]}</small><div style="margin-top:15px">${link("cv", t("prepare"), "", ids[jobs.indexOf(j)])}</div></article>`,
)
.join("")}</section>`,
)
.join("")}</div>`
: jobRows(records.filter((r) => r.stage).map((r) => r.job))
}`;
}
function detail() {
return `${heading(current.job[0], current.job[1] + " · " + current.job[2], btn(current.stage ? t("saved") : t("save"), "save", !current.stage))}<div class="steps">${["detail", "cv", "letter", "mail", "calendar"].map((s) => link(s, t(s), s === "detail" ? "active" : "")).join("")}</div><div class="split"><section><div class="notice"><h2>${current.stage === "applied" || current.stage === "interview" ? stageLabel(current.stage) : state.lang === "nb" ? "Gjør søknaden klar" : "Make your application ready"}</h2><p>${state.lang === "nb" ? "Velg CV og brev. Gjennomgå alt før du sender via arbeidsgiveren." : "Choose your CV and letter. Review everything before applying through the employer."}</p><div class="actions">${btn(t("prepare"), "cv", true)}${btn(["applied", "interview"].includes(current.stage) ? t("follow") : t("apply"), ["applied", "interview"].includes(current.stage) ? "follow" : "apply")}</div></div><h2 style="margin-top:30px">${t("details")}</h2><p>${detailText[jobs.indexOf(current.job)][state.lang === "nb" ? 1 : 0]}</p><h3>${t("notes")}</h3>${field(state.lang === "nb" ? "Dine egne notater" : "Your private notes", current.notes, "notes", true)}${btn(t("saveChanges"), "saveNotes")}</section><aside><h2>${state.lang === "nb" ? "Alt på ett sted" : "Everything in one place"}</h2>${agenda()}<div class="row"><div><small>${t("deadline")}</small><h3>${current.id === "oakfield-teacher" ? 22 : 24} November 2026</h3></div></div><div class="row"><div><small>${t("source")}</small><p>${t("sourceNote")}</p></div></div>${link("mail", t("mail"))}</aside></div>`;
}
function profile() {
return `${heading(t("profile"), state.lang === "nb" ? "Din erfaring er utgangspunktet. Dokumentene er dine valg." : "Your experience is the source. Your documents are your choices.", btn(t("prepare"), "cv", true))}<div class="split"><section>${field(t("name"), state.name, "name")}${field(t("title"), state.title, "title")}${field(t("summary"), state.profileSummary, "summary", true)}${btn(t("saveChanges"), "profileSave", true)}<h2 style="margin-top:35px">${t("experience")}</h2><div class="row"><div class="logo">⌘</div><div class="grow"><h3>Care services coordinator</h3><p>Westside Community Centre · 2020–2026</p><small>Patient support · Scheduling · Team coordination</small></div>${btn(t("edit"), "feedback")}</div><details style="margin-top:20px"><summary>${state.lang === "nb" ? "Utdanning, språk og mer" : "Education, languages and more"}</summary><p>BSc Health & Social Care · Norsk B2 · English C1</p><p>First aid · Volunteer mentor · Community gardening</p></details></section><aside><div class="notice"><h2>${t("progress")}</h2><progress value="4" max="6" style="width:100%"></progress><p>${state.lang === "nb" ? "4 av 6 viktige deler klare" : "4 of 6 key sections ready"}</p><p>${state.lang === "nb" ? "Du kan bruke profilen nå. Legg til mer når det passer." : "You can use your profile now. Add more when you’re ready."}</p></div><h3 style="margin-top:30px">${t("documents")}</h3>${link("cv", "Fjord Health CV", "", "fjord-care")}<hr>${link("letter", "Fjord Health cover letter", "", "fjord-care")}</aside></div>`;
}
function paper(letter = false) {
return `<article class="document"><h2>${esc(state.name)}</h2><p>${esc(state.title)}</p><small>Bergen, Norway · amira@example.test</small><hr>${letter ? `<p style="white-space:pre-line" id="letterPreview">${esc(current.letter)}</p>` : `<h3>${t("summary")}</h3><p id="summaryPreview">${esc(current.cvSummary)}</p><h3>${t("experience")}</h3><strong>Care services coordinator</strong><p>Westside Community Centre<br>2020–2026</p><ul><li>Coordinated care schedules for a team of twelve.</li><li>Helped families navigate local support services.</li><li>Introduced a clearer weekly handover.</li></ul><h3>${state.lang === "nb" ? "Utdanning" : "Education"}</h3><p>BSc Health & Social Care<br>2016–2019</p><h3>${t("skills")}</h3><p>Patient support · Team coordination · Scheduling</p>`}</article>`;
}
function studio(letter = false) {
const edit = `<section class="editor"><div class="editor-tabs">${btn(t("content"), "content")}${btn(t("design"), "design")}${btn(t("history"), "history")}</div><p class="muted">${state.lang === "nb" ? "Dette er en dokumentkopi. Karriereprofilen endres ikke." : "This is a document copy. Your Career Profile stays unchanged."}</p>${letter ? field(t("letter"), current.letter, "letter", true) : field(t("summary"), current.cvSummary, "summary", true)}<label class="field">${t("docLanguage")}<select><option>English</option><option>Norsk bokmål</option><option>Deutsch</option><option>Français</option><option>Ελληνικά</option><option>Български</option></select></label><details><summary>${state.lang === "nb" ? "Velg innhold fra profilen" : "Choose content from your profile"}</summary>${["contact", "experience", "skills"].map((k) => `<label class="task"><input type="checkbox" checked>${t(k)}</label>`).join("")}</details><div class="actions" style="margin-top:25px">${btn(t("saveDraft"), "feedback", true)}${btn(t("export"), "export")}</div></section>`;
const doc = paper(letter);
return `${heading(letter ? t("letter") : t("cv"), current.job[1] + " · " + (state.lang === "nb" ? "Utkast, kun prototype" : "Draft, prototype only"), link("detail", t("review")))}<div class="studio">${state.concept === "C" ? doc + edit : edit + doc}</div>`;
}
function calendar() {
return `${heading(t("calendar"), state.lang === "nb" ? "Samtaler, frister og plass til forberedelse." : "Conversations, deadlines and time to prepare.", btn(t("agenda"), "agenda") + btn(t("month"), "month"))}${
state.calendarView === "month"
? `<h2>November 2026</h2><div class="calendar">${Array.from(
{ length: 30 },
(_, i) =>
`<div class="day"><strong>${i + 1}</strong>${
i === 26
? records
.filter((r) => r.followup)
.map((r) => "<p>" + jobLink(r.job, r.job[1]) + "</p>")
.join("")
: i === 19
? "<p>10:00 Fjord</p>"
: i === 21
? "<p>Oakfield deadline</p>"
: i === 24
? "<p>Harbour follow-up</p>"
: ""
}</div>`,
).join("")}</div>`
: `<div class="split"><section>${agenda()}</section><aside class="notice"><h2>${state.lang === "nb" ? "Tid til å forberede deg" : "Time to prepare"}</h2><p>${state.lang === "nb" ? "Sett av 30 minutter før intervjuet. Samle spørsmål og dokumenter i søknadsområdet." : "Set aside 30 minutes before your interview. Keep questions and documents in the application workspace."}</p>${btn(t("review"), "detail", true)}</aside></div>`
}`;
}
function mail() {
return `${heading(t("mail"), state.lang === "nb" ? "Samtaler knyttet til mulighetene dine." : "Conversations connected to your opportunities.")}<div class="mail-layout"><aside><div class="mail active"><h3>Elise · Fjord Health</h3><p>${state.lang === "nb" ? "Vi vil gjerne møte deg" : "We’d love to meet you"}</p><small>Today, 09:12</small></div><div class="mail"><h3>Oakfield Learning</h3><p>Application received</p><small>Yesterday</small></div></aside><section><span class="badge">Fjord Community Health</span><h2 style="margin-top:20px">${state.lang === "nb" ? "Vi vil gjerne møte deg" : "We’d love to meet you"}</h2><p>${state.lang === "nb" ? "Hei Amira, takk for interessen din. Har du anledning til en samtale fredag klokken 10? Vi gleder oss til å høre mer om erfaringen din." : "Hi Amira, thank you for your interest. Would you be available for a conversation on Friday at 10? We look forward to learning more about your experience."}</p><p>Elise<br>Fjord Community Health</p><div class="actions">${btn(t("calendar"), "calendar")}${jobLink(jobs[0], t("review"))}</div><hr style="margin:30px 0;border:0;border-top:1px solid var(--line)">${field(t("reply"), state.lang === "nb" ? "Hei Elise, fredag klokken 10 passer fint. Takk for invitasjonen!" : "Hi Elise, Friday at 10 works well. Thank you for the invitation!", "reply", true)}${btn(t("send"), "send", true)}</section></div>`;
}
function settings() {
return `${heading(t("settings"), t("settingsIntro"))}<div class="wide-split"><aside class="list">${["uiLanguage", "privacy", "notifications", "connections", "security", "data"].map((k) => `<div class="row"><a href="#${k}">${t(k)}</a></div>`).join("")}</aside><section><h2 id="uiLanguage">${t("uiLanguage")}</h2><label class="field">${t("uiLanguage")}<select id="settingLanguage"><option value="en" ${state.lang === "en" ? "selected" : ""}>English</option><option value="nb" ${state.lang === "nb" ? "selected" : ""}>Norsk bokmål</option></select></label><p class="muted">${state.lang === "nb" ? "Søkeland, annonsespråk og dokumentspråk velges uavhengig." : "Search country, advert language and document language are independent choices."}</p><h2 id="privacy">${t("privacy")}</h2><label class="task"><input type="checkbox">${state.lang === "nb" ? "Tillat forslag fra AI etter at jeg ber om det" : "Allow AI suggestions when I explicitly ask"}</label><h2 id="notifications">${t("notifications")}</h2><label class="task"><input type="checkbox" checked>${state.lang === "nb" ? "Minn meg på frister og oppfølging" : "Remind me about deadlines and follow-ups"}</label>${["connections", "security", "data"].map((k) => `<details id="${k}" style="padding:18px 0;border-top:1px solid var(--line)"><summary>${t(k)}</summary><p>${state.lang === "nb" ? "Disse kontrollene er en del av den bevarte funksjonaliteten. Ingen kontoer endres i prototypen." : "These controls remain part of the preserved functionality. No accounts are changed in this prototype."}</p>${btn(t("view"), "feedback")}</details>`).join("")}${btn(t("saveChanges"), "feedback", true)}</section></div>`;
}
function admin() {
return `${heading(t("admin"), t("adminIntro"))}<div class="notice"><strong>${state.lang === "nb" ? "Kun demonstrasjon" : "Demonstration only"}</strong><p>${state.lang === "nb" ? "Alle kontoer og statuser nedenfor er syntetiske." : "All accounts and statuses below are synthetic."}</p></div><div class="metric-strip"><div class="metric"><strong>24</strong>${state.lang === "nb" ? "kontoer" : "accounts"}</div><div class="metric"><strong>3</strong>${state.lang === "nb" ? "oppgaver i kø" : "queued tasks"}</div><div class="metric"><strong>0</strong>${state.lang === "nb" ? "kjente hendelser" : "known incidents"}</div></div><div class="split"><section><h2>${state.lang === "nb" ? "Kontoadministrasjon" : "Account management"}</h2>${["Amira Olsen", "Lukas Weber", "Sofia Silva"].map((n, i) => `<div class="row"><div class="avatar">${n[0]}</div><div class="grow"><h3>${n}</h3><small>${i === 0 ? "Administrator" : "Member"} · ${state.lang === "nb" ? "Bekreftet" : "Confirmed"}</small></div>${btn(t("view"), "adminDetail")}</div>`).join("")}</section><aside><h2>${state.lang === "nb" ? "Behandling" : "Processing"}</h2><div class="list"><div class="row">CV import <span class="badge">Waiting</span></div><div class="row">Document export <span class="badge">Completed</span></div></div>${btn(state.lang === "nb" ? "Se revisjonslogg" : "View audit log", "history")}</aside></div>`;
}
function onboarding() {
return `${heading(state.lang === "nb" ? "La oss finne ditt utgangspunkt." : "Let’s find your starting point.", state.lang === "nb" ? "Ingen riktig rekkefølge. Velg det som hjelper deg nå." : "There’s no right order. Choose what helps you now.")}<div class="grid3">${[
[
"discover",
state.lang === "nb"
? "Jeg ser etter nye muligheter"
: "I’m exploring opportunities",
state.lang === "nb"
? "Bla gjennom jobber og lagre det som passer."
: "Browse jobs and save the ones that feel right.",
],
[
"profile",
state.lang === "nb"
? "Jeg vil samle erfaringen min"
: "I want to gather my experience",
state.lang === "nb"
? "Bygg et utgangspunkt du kan bruke igjen."
: "Build a foundation you can reuse.",
],
[
"cv",
state.lang === "nb"
? "Jeg har en søknad å forberede"
: "I have an application to prepare",
state.lang === "nb"
? "Gå rett til CV og søknadsbrev."
: "Go straight to your CV and cover letter.",
],
]
.map(
([s, h, p]) =>
`<section class="tile"><div class="logo" style="margin-bottom:25px">${s === "discover" ? "◎" : s === "profile" ? "◈" : "▤"}</div><h2>${h}</h2><p>${p}</p>${btn(t("continue"), s, true)}</section>`,
)
.join(
"",
)}</div><div style="margin-top:30px">${link("home", t("skip"))}</div>`;
}
function gallery() {
document.body.className = "A";
return `<main class="gallery"><p>Jobjakt design reassessment · November 2026</p><h1>Five ways to make your next move.</h1><p>Five distinct working prototypes. Explore the same career journeys through different navigation, density and document workflows. Nothing here replaces the current application.</p><div class="gallery-grid">${Object.entries(
concepts,
)
.map(
([id, c]) =>
`<a class="concept-card ${id}" href="?concept=${id}" data-concept="${id}"><img class="concept-shot" src="captures/${id}-home-1440.png" alt="" width="1440" height="1000"><div class="description"><small>Concept ${id}</small><h2>${c.name}</h2><p>${c.detail}</p><strong>Explore this direction</strong></div></a>`,
)
.join(
"",
)}</div><section style="margin-top:45px"><h2>What to compare</h2><p>Try finding a job, saving it, preparing a CV, reviewing a letter and scheduling a follow-up. Switch between desktop and mobile, English and Bokmål, light and dark. These are design prototypes with synthetic data, not provider or production qualification.</p><a href="compare.html">Compare screenshots and tradeoffs</a> · <a href="RESEARCH.md">Research notes</a></section></main>`;
}
function render() {
if (!state.concept) {
$("#app").innerHTML = gallery();
return;
}
const c = concepts[state.concept];
document.documentElement.lang = state.lang === "nb" ? "nb-NO" : "en";
document.body.className = `${state.concept} ${state.theme === "dark" ? "dark" : ""} ${state.phone ? "phone" : ""}`;
const nav =
state.concept === "C"
? [
"home",
"profile",
"cv",
"letter",
"applications",
"discover",
"calendar",
"mail",
"settings",
"admin",
]
: ["home", "discover", "applications", "profile", "calendar"];
const screens = {
home,
discover,
applications,
detail,
profile,
cv: () => studio(),
letter: () => studio(true),
calendar,
mail,
settings,
admin,
onboarding,
};
$("#app").innerHTML =
`<div class="lab"><a href="index.html">${t("back")}</a><label>Concept <select id="concept">${Object.entries(
concepts,
)
.map(
([id, v]) =>
`<option value="${id}" ${id === state.concept ? "selected" : ""}>${id} · ${v.name}</option>`,
)
.join(
"",
)}</select></label><label><select aria-label="Screen" id="screen">${Object.keys(
screens,
)
.map(
(s) =>
`<option value="${s}" ${s === state.screen ? "selected" : ""}>${t(s)}</option>`,
)
.join(
"",
)}</select></label><label><select aria-label="Language" id="lang"><option value="en" ${state.lang === "en" ? "selected" : ""}>English</option><option value="nb" ${state.lang === "nb" ? "selected" : ""}>Norsk</option></select></label><button data-action="theme">${state.theme === "dark" ? "☀ Light" : "☾ Dark"}</button><button data-action="mobile">${state.phone ? t("desktop") : t("mobile")}</button></div><div class="shell"><header class="top"><a class="brand" href="#" data-screen="home"><span>${state.concept === "E" ? "↗" : "j"}</span>${c.name}</a><nav class="nav" aria-label="Primary">${nav.map((s) => link(s, t(s), state.screen === s ? "active" : "")).join("")}</nav><div class="actions">${link("mail", "✉ " + t("mail"))}${link("settings", t("settings"))}<span class="avatar">AO</span></div></header><main class="content" id="main">${(screens[state.screen] || home)()}<details style="margin-top:35px"><summary>${t("help")}</summary><div class="actions" style="margin-top:12px">${["cv", "letter", "mail", "settings", "admin", "onboarding"].map((s) => link(s, t(s))).join("")}</div></details></main>${state.concept === "E" ? `<nav class="journey-nav" aria-label="Journey">${["home", "discover", "applications", "profile", "calendar"].map((s) => link(s, t(s), state.screen === s ? "active" : "")).join("")}</nav>` : ""}</div><footer class="footnote">${t("synthetic")}</footer>`;
history.replaceState(
null,
"",
`?concept=${state.concept}&screen=${state.screen}&lang=${state.lang}&theme=${state.theme}&job=${current.id}${state.phone ? "&mobile=1" : ""}`,
);
}
document.addEventListener("click", (event) => {
const a = event.target.closest("[data-screen]");
if (a) {
event.preventDefault();
if (a.dataset.job)
current = records.find((r) => r.id === a.dataset.job) || records[0];
state.screen = a.dataset.screen;
render();
window.scrollTo(0, 0);
return;
}
const b = event.target.closest("[data-action]");
if (!b) return;
const action = b.dataset.action;
if (screens.includes(action)) {
if (state.screen === "home" && action === "detail") current = records[0];
state.screen = action;
render();
window.scrollTo(0, 0);
} else if (action === "theme") {
state.theme = state.theme === "light" ? "dark" : "light";
render();
} else if (action === "mobile") {
state.phone = !state.phone;
render();
} else if (action === "save") {
current.stage ||= "saved";
render();
toast(t("saved"));
} else if (action === "apply") {
current.stage = "applied";
render();
toast(t("applied"));
} else if (["agenda", "month", "board", "list"].includes(action)) {
if (["agenda", "month"].includes(action)) state.calendarView = action;
else state.trackerView = action;
render();
} else if (action === "profileSave") {
state.name = $("#name").value;
state.title = $("#title").value;
state.profileSummary = $("#summary").value;
toast(t("feedback"));
} else if (action === "follow") {
current.followup = true;
state.calendarView = "agenda";
state.screen = "calendar";
render();
toast(
state.lang === "nb"
? "Oppfølging lagt til i prototypen"
: "Follow-up added in this prototype",
);
} else if (action === "saveNotes") {
current.notes = $("#notes").value;
toast(t("feedback"));
} else if (action === "export") {
toast(t("exportNote"));
$(".document")?.scrollIntoView({ block: "start" });
} else if (action === "send") {
toast(t("reviewNote"));
} else if (action === "filters") {
toast(
state.lang === "nb"
? "Land og annonsespråk kan velges uavhengig. Kartet er illustrativt."
: "Country and advert language are independent. The map is illustrative.",
);
} else if (action === "design") {
toast(
state.lang === "nb"
? "Ren dokumentstil valgt. Innhold og språk beholdes."
: "Clean document style selected. Content and language retained.",
);
} else if (action === "history") {
toast(
state.lang === "nb"
? "Utkast 3 · I dag 09:40. Prototypen endrer ingen lagrede versjoner."
: "Draft 3 · Today 09:40. No stored revisions are changed by this prototype.",
);
} else if (action === "adminDetail") {
toast(
state.lang === "nb"
? "Siste administrator er beskyttet. Ingen kontoendringer utføres."
: "The last administrator is protected. No account changes are performed.",
);
} else toast(t("feedback"));
});
document.addEventListener("change", (e) => {
if (e.target.id === "country") {
state.country = e.target.value;
render();
}
if (["concept", "screen", "lang"].includes(e.target.id)) {
state[e.target.id] = e.target.value;
render();
}
if (e.target.id === "settingLanguage") {
state.lang = e.target.value;
render();
}
});
document.addEventListener("input", (e) => {
if (e.target.id === "search") {
state.query = e.target.value;
state.discoveryState = "ready";
updateDiscoveryResults();
}
if (e.target.id === "summary" && $("#summaryPreview")) {
current.cvSummary = e.target.value;
$("#summaryPreview").textContent = current.cvSummary;
}
if (e.target.id === "letter" && $("#letterPreview")) {
current.letter = e.target.value;
$("#letterPreview").textContent = current.letter;
}
});
render();
function filteredJobs() {
return jobs.filter(
(j) =>
(!state.country || j[2].endsWith(state.country)) &&
j.join(" ").toLowerCase().includes(state.query.toLowerCase()),
);
}
// Synthetic recovery states; no provider requests are made.
let discoveryTimer;
function discoveryCopy(enText, nbText) {
return state.lang === "nb" ? nbText : enText;
}
function discoveryMarkup() {
const mode = state.discoveryState;
if (mode === "loading")
return `<section aria-busy="true" aria-labelledby="discoveryStatus"><h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("Finding opportunities…", "Finner muligheter…")}</h2><p>${discoveryCopy("Synthetic loading preview. Your search is retained.", "Syntetisk lastevisning. Søket ditt beholdes.")}</p><button data-recovery="cancel">${discoveryCopy("Cancel search", "Avbryt søket")}</button></section>`;
if (mode === "error")
return `<section aria-labelledby="discoveryStatus"><h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("We could not load these jobs", "Vi kunne ikke laste disse stillingene")}</h2><p>${discoveryCopy("Simulated connection failure. Your filters and saved applications are unchanged.", "Simulert tilkoblingsfeil. Filtrene og lagrede søknader er uendret.")}</p><button class="primary" data-recovery="retry">${discoveryCopy("Try again", "Prøv igjen")}</button></section>`;
const rows = mode === "empty" ? [] : filteredJobs();
if (!rows.length)
return `<section aria-labelledby="discoveryStatus"><h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("No matching jobs yet", "Ingen passende stillinger ennå")}</h2><p>${discoveryCopy("Try a broader phrase or another country. You can keep your current search.", "Prøv et bredere søk eller et annet land. Du kan beholde søket ditt.")}</p><button data-recovery="clear">${discoveryCopy("Clear filters and show all jobs", "Nullstill filtre og vis alle stillinger")}</button><button data-recovery="edit">${discoveryCopy("Edit search", "Endre søket")}</button></section>`;
return (
`<h2 id="discoveryStatus" tabindex="-1">${discoveryCopy("Opportunities to explore", "Muligheter å utforske")}</h2>` +
jobRows(rows)
);
}
function discover() {
return (
`<label class="field" style="max-width:280px">${discoveryCopy("Prototype discovery state", "Prototypens søketilstand")}<select id="discoveryState">${["ready", "loading", "empty", "error"].map((v, i) => `<option value="${v}" ${state.discoveryState === v ? "selected" : ""}>${(state.lang === "nb" ? ["Klar", "Laster", "Tomt", "Feil"] : ["Ready", "Loading", "Empty", "Error"])[i]}</option>`).join("")}</select></label>` +
discoveryBase()
);
}
function updateDiscoveryResults(focus = false) {
if (!$("#jobResults")) return;
$("#jobResults").innerHTML = discoveryMarkup();
const mode = state.discoveryState;
$("#resultCount").textContent =
(mode === "ready"
? filteredJobs().length + " " + t("results")
: discoveryCopy("Prototype state: ", "Prototypetilstand: ") + mode) +
" · " +
t("sourceNote");
const status = $("#discoveryStatus");
$("#discoveryLive").textContent = status?.textContent || "";
if (focus) status?.focus();
}
document.addEventListener("change", (e) => {
if (e.target.id === "discoveryState") {
clearTimeout(discoveryTimer);
state.discoveryState = e.target.value;
updateDiscoveryResults(true);
}
});
document.addEventListener("click", (e) => {
const action = e.target.closest("[data-recovery]")?.dataset.recovery;
if (!action) return;
clearTimeout(discoveryTimer);
if (action === "edit") {
$("#search").focus();
return;
}
if (action === "retry") {
state.discoveryState = "loading";
updateDiscoveryResults(true);
discoveryTimer = setTimeout(() => {
state.discoveryState = "ready";
updateDiscoveryResults(true);
}, 700);
return;
}
state.discoveryState = "ready";
if (action === "clear") {
state.country = "";
state.query = "";
$("#search").value = "";
$("#country").value = "";
}
updateDiscoveryResults(true);
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

@@ -0,0 +1,381 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Compare five Jobjakt concepts</title>
<style>
:root {
color-scheme: light dark;
font:
100%/1.5 system-ui,
sans-serif;
}
body {
max-width: 76rem;
margin: auto;
padding: clamp(1rem, 3vw, 3rem);
}
header,
section {
border-bottom: 1px solid GrayText;
padding-bottom: 1.5rem;
}
h1 {
font-size: clamp(2rem, 5vw, 4rem);
line-height: 1.08;
margin: 0.65em 0 0.25em;
}
h2 {
margin-top: 2rem;
}
p {
max-width: 78ch;
}
a {
color: LinkText;
text-underline-offset: 0.18em;
}
nav,
.links {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1rem;
}
a:focus-visible,
select:focus-visible {
outline: 3px solid Highlight;
outline-offset: 4px;
}
.pair {
display: grid;
grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
gap: 1rem;
align-items: start;
}
.pair img {
width: 100%;
height: auto;
display: block;
border: 1px solid GrayText;
}
.pair figure {
margin: 0;
}
.pair figcaption {
font-size: 0.9rem;
margin: 0.5rem 0;
}
.controls {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin: 1.25rem 0;
}
select {
font: inherit;
padding: 0.4em;
}
summary {
cursor: pointer;
}
@media (max-width: 44rem) {
.pair {
grid-template-columns: 1fr;
}
.pair figure:nth-child(2) {
max-width: 24rem;
}
}
</style>
</head>
<body>
<header>
<a href="index.html">All interactive prototypes</a>
<h1>Compare five directions</h1>
<p>
Use the same task in each prototype. The desktop captures are in English
with the light theme. The phone captures use Bokmål and the dark theme.
Open any image at full size.
</p>
<nav aria-label="Jump to a concept">
<a href="#A">Clear Desk</a><a href="#B">Next Chapter</a
><a href="#C">Career Atelier</a><a href="#D">Northstar</a
><a href="#E">The Next Move</a>
</nav>
<div class="controls">
<label for="screen">Screenshots</label
><select id="screen">
<option value="home">Dashboard</option>
<option value="discover">Job discovery</option>
<option value="cv">CV studio</option>
<option value="loading">Discovery loading</option>
<option value="empty">Empty results</option>
<option value="error">Discovery error</option>
</select>
</div>
</header>
<section id="A" aria-labelledby="name-A">
<h2 id="name-A">Clear Desk</h2>
<p>
Find the next interview or deadline in the agenda while scanning recent
applications.
</p>
<p>
Compact top navigation and close-set lists show more work per screen. On
a phone, long navigation scrolls horizontally.
</p>
<p class="links">
<a href="index.html?concept=A">Try Clear Desk</a
><a href="index.html?concept=A&amp;screen=cv">Open CV studio</a
><a href="index.html?concept=A&amp;screen=discover">Try discovery</a>
</p>
<div class="pair">
<figure>
<a data-concept="A" data-width="1440" href="captures/A-home-1440.png"
><img
loading="lazy"
alt="Clear Desk, dashboard at 1440 pixels"
src="captures/A-home-1440.png"
/></a>
<figcaption>Desktop · English · Light</figcaption>
</figure>
<figure>
<a data-concept="A" data-width="390" href="captures/A-home-390.png"
><img
loading="lazy"
alt="Clear Desk, dashboard at 390 pixels"
src="captures/A-home-390.png"
/></a>
<figcaption>Phone · Bokmål · Dark</figcaption>
</figure>
</div>
<details>
<summary>Implementation and accessibility considerations</summary>
<p>
Lowest migration cost of the five. Existing list, agenda and table
owners fit the structure. Check small targets and wrapping at large
text sizes.
</p>
</details>
</section>
<section id="B" aria-labelledby="name-B">
<h2 id="name-B">Next Chapter</h2>
<p>
Start at the guided home, choose a starting point and open Career
Profile or a CV draft.
</p>
<p>
Prominent next actions and plain-language prompts reduce the number of
choices. Large panels place secondary actions further down on mobile.
</p>
<p class="links">
<a href="index.html?concept=B">Try Next Chapter</a
><a href="index.html?concept=B&amp;screen=cv">Open CV studio</a
><a href="index.html?concept=B&amp;screen=discover">Try discovery</a>
</p>
<div class="pair">
<figure>
<a data-concept="B" data-width="1440" href="captures/B-home-1440.png"
><img
loading="lazy"
alt="Next Chapter, dashboard at 1440 pixels"
src="captures/B-home-1440.png"
/></a>
<figcaption>Desktop · English · Light</figcaption>
</figure>
<figure>
<a data-concept="B" data-width="390" href="captures/B-home-390.png"
><img
loading="lazy"
alt="Next Chapter, dashboard at 390 pixels"
src="captures/B-home-390.png"
/></a>
<figcaption>Phone · Bokmål · Dark</figcaption>
</figure>
</div>
<details>
<summary>Implementation and accessibility considerations</summary>
<p>
Moderate cost. The guidance needs rules for returning users and
partially completed work. Preserve direct access to every tool.
</p>
</details>
</section>
<section id="C" aria-labelledby="name-C">
<h2 id="name-C">Career Atelier</h2>
<p>
Open the document collection, edit a CV summary and compare its preview
with the Career Profile.
</p>
<p>
A persistent desktop library gives documents precedence. On a phone the
preview precedes the editor, which makes reading easy but puts editing
further away.
</p>
<p class="links">
<a href="index.html?concept=C">Try Career Atelier</a
><a href="index.html?concept=C&amp;screen=cv">Open CV studio</a
><a href="index.html?concept=C&amp;screen=discover">Try discovery</a>
</p>
<div class="pair">
<figure>
<a data-concept="C" data-width="1440" href="captures/C-home-1440.png"
><img
loading="lazy"
alt="Career Atelier, dashboard at 1440 pixels"
src="captures/C-home-1440.png"
/></a>
<figcaption>Desktop · English · Light</figcaption>
</figure>
<figure>
<a data-concept="C" data-width="390" href="captures/C-home-390.png"
><img
loading="lazy"
alt="Career Atelier, dashboard at 390 pixels"
src="captures/C-home-390.png"
/></a>
<figcaption>Phone · Bokmål · Dark</figcaption>
</figure>
</div>
<details>
<summary>Implementation and accessibility considerations</summary>
<p>
Higher cost. Preserve draft ownership, undo, conflict recovery and
frozen output. Check reading and focus order when switching between
editor and preview.
</p>
</details>
</section>
<section id="D" aria-labelledby="name-D">
<h2 id="name-D">Northstar</h2>
<p>
Open the featured opportunity brief, then inspect the application and
its follow-up.
</p>
<p>
An editorial heading and employer brief make one opportunity easy to
recognise. The desktop summary and phone hero both trade scanning
density for emphasis.
</p>
<p class="links">
<a href="index.html?concept=D">Try Northstar</a
><a href="index.html?concept=D&amp;screen=cv">Open CV studio</a
><a href="index.html?concept=D&amp;screen=discover">Try discovery</a>
</p>
<div class="pair">
<figure>
<a data-concept="D" data-width="1440" href="captures/D-home-1440.png"
><img
loading="lazy"
alt="Northstar, dashboard at 1440 pixels"
src="captures/D-home-1440.png"
/></a>
<figcaption>Desktop · English · Light</figcaption>
</figure>
<figure>
<a data-concept="D" data-width="390" href="captures/D-home-390.png"
><img
loading="lazy"
alt="Northstar, dashboard at 390 pixels"
src="captures/D-home-390.png"
/></a>
<figcaption>Phone · Bokmål · Dark</figcaption>
</figure>
</div>
<details>
<summary>Implementation and accessibility considerations</summary>
<p>
Moderate cost. Existing route owners suit the shell. Reflow long
titles and test contrast in the feature and application navigation.
</p>
</details>
</section>
<section id="E" aria-labelledby="name-E">
<h2 id="name-E">The Next Move</h2>
<p>
Follow one opportunity from discovery into the tracker and calendar,
then return through the bottom navigation.
</p>
<p>
Task-led navigation makes the current step clear. Bottom navigation
stays reachable on mobile. Users working on several roles need direct
access to the tracker.
</p>
<p class="links">
<a href="index.html?concept=E">Try The Next Move</a
><a href="index.html?concept=E&amp;screen=cv">Open CV studio</a
><a href="index.html?concept=E&amp;screen=discover">Try discovery</a>
</p>
<div class="pair">
<figure>
<a data-concept="E" data-width="1440" href="captures/E-home-1440.png"
><img
loading="lazy"
alt="The Next Move, dashboard at 1440 pixels"
src="captures/E-home-1440.png"
/></a>
<figcaption>Desktop · English · Light</figcaption>
</figure>
<figure>
<a data-concept="E" data-width="390" href="captures/E-home-390.png"
><img
loading="lazy"
alt="The Next Move, dashboard at 390 pixels"
src="captures/E-home-390.png"
/></a>
<figcaption>Phone · Bokmål · Dark</figcaption>
</figure>
</div>
<details>
<summary>Implementation and accessibility considerations</summary>
<p>
Higher cost. Explicit context must survive route changes and browser
navigation. Validate focus visibility and safe-area spacing above the
bottom bar.
</p>
</details>
</section>
<footer>
<h2>What carries forward</h2>
<p>
The 34 routes and 57 preservation groups remain on the implementation
inventory. The prototype uses session-only synthetic data. Actual
permissions, revisions, production exports, PDF rendering and provider
integrations require their own regression checks on the selected
implementation.
</p>
<p>
Compare your daily workflow, an unfamiliar task and a task on a phone.
Individual layouts can be combined. Incremental migration can retain the
existing feature owners. A new shell adds routing and focus work. A full
replacement needs parity evidence for every route before cutover.
</p>
</footer>
<script>
const chooser = document.querySelector("#screen");
chooser.addEventListener("change", () => {
const screen = chooser.value;
const folder = ["empty", "loading", "error"].includes(screen)
? "recovery-captures"
: "captures";
for (const link of document.querySelectorAll(".pair a")) {
const { concept, width } = link.dataset;
const url =
folder + "/" + concept + "-" + screen + "-" + width + ".png";
link.href = url;
const img = link.querySelector("img");
img.src = url;
img.alt =
document.getElementById("name-" + concept).textContent +
", " +
chooser.selectedOptions[0].textContent +
" at " +
width +
" pixels";
}
});
</script>
</body>
</html>
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<meta charset="utf-8" /><meta
name="viewport"
content="width=device-width,initial-scale=1"
/><title>Jobjakt · Five new directions</title
><link rel="stylesheet" href="styles.css" />
<body>
<div id="app"></div>
<script src="app.js"></script>
</body>
</html>
@@ -0,0 +1,62 @@
const { chromium } = require(
require.resolve("playwright", {
paths: [require("path").resolve(__dirname, "../../../../job-tracker-ui")],
}),
);
const assert = require("assert");
const fs = require("fs");
(async () => {
const b = await chromium.launch();
const p = await b.newPage();
let checks = [];
for (const c of "ABCDE") {
await p.goto(
`${process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327"}/?concept=${c}&screen=discover`,
);
await p.selectOption("#country", "Norway");
assert.equal(await p.locator("#jobResults .row").count(), 2);
await p.fill("#search", "Electrician");
assert.equal(await p.locator("#jobResults .row").count(), 1);
await p.selectOption("#screen", "detail");
await p.locator("[data-action=save]").click();
assert(await p.locator(".toast").isVisible());
await p.locator("[data-action=apply]").click();
await p.locator("[data-action=follow]").click();
assert(
(await p.locator("main").innerText()).includes(
"Follow up with Fjord Community Health",
),
);
await p.selectOption("#screen", "cv");
await p.fill("#summary", "Edited prototype document summary");
assert.equal(
await p.locator("#summaryPreview").innerText(),
"Edited prototype document summary",
);
await p.selectOption("#screen", "profile");
assert.notEqual(
await p.locator("#summary").inputValue(),
"Edited prototype document summary",
);
await p.selectOption("#screen", "letter");
await p.fill("#letter", "Synthetic review letter");
assert.equal(
await p.locator("#letterPreview").innerText(),
"Synthetic review letter",
);
await p.selectOption("#lang", "nb");
assert.equal(await p.locator("html").getAttribute("lang"), "nb-NO");
await p.locator("[data-action=theme]").click();
assert((await p.locator("body").getAttribute("class")).includes("dark"));
checks.push({ concept: c, checks: 8, status: "PASS" });
}
fs.writeFileSync(
__dirname + "/interactions.json",
JSON.stringify(checks, null, 2),
);
console.log(JSON.stringify(checks));
await b.close();
})().catch((e) => {
console.error(e);
process.exit(1);
});
@@ -0,0 +1,27 @@
[
{
"concept": "A",
"checks": 8,
"status": "PASS"
},
{
"concept": "B",
"checks": 8,
"status": "PASS"
},
{
"concept": "C",
"checks": 8,
"status": "PASS"
},
{
"concept": "D",
"checks": 8,
"status": "PASS"
},
{
"concept": "E",
"checks": 8,
"status": "PASS"
}
]
@@ -0,0 +1,59 @@
const { chromium } = require(
require.resolve("playwright", {
paths: [require("path").resolve(__dirname, "../../../../job-tracker-ui")],
}),
);
const fs = require("fs");
(async () => {
const b = await chromium.launch();
const p = await b.newPage();
let results = [],
errors = [];
p.on("pageerror", (e) => errors.push(e.message));
for (const c of "ABCDE")
for (const width of [1440, 820, 390])
for (const lang of ["en", "nb"])
for (const theme of ["light", "dark"])
for (const screen of [
"home",
"discover",
"applications",
"detail",
"profile",
"cv",
"letter",
"calendar",
"mail",
"settings",
"admin",
"onboarding",
]) {
await p.setViewportSize({ width, height: 1000 });
await p.goto(
`${process.env.JOBJAKT_GALLERY_URL || "http://127.0.0.1:4327"}/?concept=${c}&screen=${screen}&lang=${lang}&theme=${theme}`,
);
results.push({
c,
width,
lang,
theme,
screen,
overflow: await p.evaluate(
() => document.documentElement.scrollWidth > innerWidth + 2,
),
});
}
fs.writeFileSync(
__dirname + "/matrix.json",
JSON.stringify({ results, errors }, null, 2),
);
console.log(
JSON.stringify({
count: results.length,
errors,
overflow: results.filter((r) => r.overflow),
}),
);
await b.close();
if (errors.length || results.some((r) => r.overflow)) process.exitCode = 1;
})();
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Some files were not shown because too many files have changed in this diff Show More