Compare commits

..

1 Commits

Author SHA1 Message Date
cesnimda 41134d8f61 perf(analytics): combine stats scalar count queries 2026-11-18 13:20:57 +01:00
246 changed files with 37 additions and 12516 deletions
@@ -1,129 +0,0 @@
using System.Data.Common;
using System.Text.Json;
using JobTrackerApi.Models;
using JobTrackerApi.Services;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Xunit;
using Xunit.Abstractions;
namespace JobTrackerApi.MariaDb.Tests;
public sealed class AnalyticsStatsPersistenceTests(ITestOutputHelper output)
{
private const string Owner = "rd21-owner";
[Theory]
[InlineData(0)]
[InlineData(250)]
[InlineData(2500)]
public async Task Stats_keep_owned_results_with_bounded_native_roundtrips(int size)
{
await using var database = await MariaDbDatabase.CreateAsync();
var recorder = new Reads();
await using var db = database.Context(interceptor: recorder);
var company = new Company { Name = "Synthetic analytics", OwnerUserId = Owner };
db.Companies.Add(company);
await db.SaveChangesAsync();
var date = DateTime.Now.AddDays(-10);
db.JobApplications.AddRange(Enumerable.Range(0, size).Select(_ => Job(company.Id, Owner, "Applied", date)));
db.JobApplications.Add(Job(company.Id, "foreign-owner", "Private", date));
db.JobApplications.Add(Job(company.Id, null, "Unowned", date));
await db.SaveChangesAsync();
db.ChangeTracker.Clear();
recorder.Sql.Clear();
var stats = await new AnalyticsService(db).GetStatsAsync(default);
Assert.Equal(size, stats.Total);
Assert.Equal(size, stats.Active);
Assert.Equal(0, stats.Deleted);
Assert.Equal(size, stats.AppliedLast30Days);
Assert.Equal(size == 0 ? 0 : 10, stats.AverageDaysSinceApplied);
Assert.Equal(size == 0 ? 0 : 1, stats.ByStatus.Count);
if (size > 0) Assert.Equal(size, stats.ByStatus["Applied"]);
Assert.Empty(db.ChangeTracker.Entries());
Assert.All(recorder.Sql, sql =>
{
Assert.DoesNotContain("Description", sql);
Assert.DoesNotContain("CoverLetterText", sql);
});
output.WriteLine(JsonSerializer.Serialize(new { database.ActualVersion, OwnedRows = size,
Commands = recorder.Sql.Count, Sql = recorder.Sql }));
Assert.Equal(size == 0 ? 2 : 3, recorder.Sql.Count);
}
[Fact]
public async Task Stats_preserve_native_nullable_dates_deletion_ownership_and_mutation()
{
await using var database = await MariaDbDatabase.CreateAsync();
await using var db = database.Context();
var company = new Company { Name = "Synthetic semantics", OwnerUserId = Owner };
db.Add(company);
await db.SaveChangesAsync();
var now = DateTime.Now;
db.JobApplications.AddRange(
Job(company.Id, Owner, "Applied", now.AddDays(-29)),
Job(company.Id, Owner, "Interview", now.AddDays(-31)),
Job(company.Id, Owner, "", null),
Job(company.Id, Owner, " ", now.AddDays(2)),
Job(company.Id, Owner, "Unknown", null),
Job(company.Id, Owner, "Deleted", now, deleted: true),
Job(company.Id, "foreign-owner", "Private", now),
Job(company.Id, null, "Unowned", now));
await db.SaveChangesAsync();
var service = new AnalyticsService(db);
var stats = await service.GetStatsAsync(default);
Assert.Equal(6, stats.Total);
Assert.Equal(5, stats.Active);
Assert.Equal(1, stats.Deleted);
Assert.Equal(2, stats.AppliedLast30Days);
Assert.Equal(20, stats.AverageDaysSinceApplied);
Assert.Equal(3, stats.ByStatus["Unknown"]);
Assert.Equal(1, stats.ByStatus["Applied"]);
Assert.Equal(1, stats.ByStatus["Interview"]);
await using var other = database.Context("foreign-owner");
Assert.Equal(1, (await new AnalyticsService(other).GetStatsAsync(default)).Total);
await using var anonymous = database.Context(null!);
var denied = await new AnalyticsService(anonymous).GetStatsAsync(default);
Assert.Equal(0, denied.Total);
Assert.Empty(denied.ByStatus);
db.JobApplications.Add(Job(company.Id, Owner, "Saved", null));
await db.SaveChangesAsync();
Assert.Equal(7, (await service.GetStatsAsync(default)).Total);
output.WriteLine(database.ActualVersion);
}
[Fact]
public async Task Cancellation_at_native_command_boundary_prevents_later_stats_reads()
{
await using var database = await MariaDbDatabase.CreateAsync();
using var cancellation = new CancellationTokenSource();
var recorder = new Reads { BeforeRead = cancellation.Cancel };
await using var db = database.Context(interceptor: recorder);
await Assert.ThrowsAnyAsync<OperationCanceledException>(() =>
new AnalyticsService(db).GetStatsAsync(cancellation.Token));
Assert.Single(recorder.Sql);
output.WriteLine(database.ActualVersion);
}
private static JobApplication Job(int companyId, string? owner, string status, DateTime? date, bool deleted = false) => new()
{
CompanyId = companyId, OwnerUserId = owner, JobTitle = "Synthetic analyst", Status = status,
DateApplied = date, IsDeleted = deleted, Description = "Synthetic wide data must not be selected",
CoverLetterText = "Synthetic private letter must not be selected",
};
private sealed class Reads : DbCommandInterceptor
{
public List<string> Sql { get; } = [];
public Action? BeforeRead { get; init; }
public override ValueTask<InterceptionResult<DbDataReader>> ReaderExecutingAsync(DbCommand command,
CommandEventData eventData, InterceptionResult<DbDataReader> result, CancellationToken cancellationToken = default)
{
Sql.Add(command.CommandText);
BeforeRead?.Invoke();
return base.ReaderExecutingAsync(command, eventData, result, cancellationToken);
}
}
}
@@ -1,124 +0,0 @@
using JobTrackerApi.Models;
using JobTrackerApi.Services;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using MySqlConnector;
using Xunit;
using Xunit.Abstractions;
namespace JobTrackerApi.MariaDb.Tests;
public sealed class ApplicationChecklistPersistenceTests(ITestOutputHelper output)
{
private const string Owner = "rd21-owner";
[Theory]
[InlineData("system-key")]
[InlineData("foreign-key")]
[InlineData("unrelated-unique")]
public async Task Seed_recovers_only_its_actual_unique_constraint(string scenario)
{
await using var database = await MariaDbDatabase.CreateAsync();
int jobId;
const string spoof = "IX_ApplicationChecklistItems_JobApplicationId_SystemKey";
await using (var seed = database.Context())
{
seed.Users.Add(new ApplicationUser { Id = Owner, UserName = spoof, NormalizedUserName = spoof });
var job = new JobApplication { OwnerUserId = Owner, Company = new Company { OwnerUserId = Owner, Name = "Synthetic checklist" }, Status = "Interview", Version = 7 };
seed.JobApplications.Add(job);
await seed.SaveChangesAsync();
jobId = job.Id;
seed.ApplicationChecklistItems.AddRange(
new ApplicationChecklistItem { OwnerUserId = Owner, JobApplicationId = jobId, SystemKey = "prepare-cv", AutoSignal = ChecklistSignalKeys.Cv,
IsSystemGenerated = true, Title = "Prepare CV", Category = ChecklistCategories.Preparation, Status = ChecklistStatuses.Dismissed },
new ApplicationChecklistItem { OwnerUserId = Owner, JobApplicationId = jobId, Title = "Manual decision", Category = ChecklistCategories.Custom,
Status = ChecklistStatuses.Done, SortOrder = 90 });
await seed.SaveChangesAsync();
}
var race = new Race();
await using var winner = database.Context(interceptor: new Gate(race, winner: true));
var losingGate = new Gate(race, winner: false, saveOtherFirst: scenario == "unrelated-unique");
await using var loser = database.Context(interceptor: losingGate);
if (scenario == "foreign-key")
loser.ApplicationChecklistItems.Add(new ApplicationChecklistItem { OwnerUserId = Owner, JobApplicationId = int.MaxValue,
Title = "Invalid parent must fail", Status = ChecklistStatuses.Done });
if (scenario == "unrelated-unique")
loser.Users.Add(new ApplicationUser { Id = "other-user", UserName = spoof, NormalizedUserName = spoof });
using var timeout = new CancellationTokenSource(TimeSpan.FromSeconds(30));
var winningRead = new ApplicationChecklistService(winner).GetAsync(Owner, jobId, timeout.Token);
var losingRead = new ApplicationChecklistService(loser).GetAsync(Owner, jobId, timeout.Token);
Assert.NotNull(await winningRead);
var observed = await Record.ExceptionAsync(async () => await losingRead);
var saveError = Assert.IsType<DbUpdateException>(losingGate.Failure);
var native = Assert.IsType<MySqlException>(saveError.InnerException);
output.WriteLine($"Server={database.ActualVersion}; scenario={scenario}; native={native.Number}; message={native.Message}; service={observed?.GetType().Name ?? "none"}");
if (scenario == "system-key")
{
Assert.Equal(1062, native.Number);
Assert.Null(observed);
var first = (await winningRead)!;
var second = (await losingRead)!;
Assert.Equal(first.Items.Select(item => item.Id).Order(), second.Items.Select(item => item.Id).Order());
Assert.Equal(ChecklistStatuses.Dismissed, second.Items.Single(item => item.SystemKey == "prepare-cv").Status);
Assert.Equal(ChecklistStatuses.Done, second.Items.Single(item => item.SystemKey == null).Status);
}
else
{
if (scenario == "unrelated-unique")
{
Assert.EndsWith("for key 'UserNameIndex'", native.Message);
Assert.Contains(spoof, native.Message, StringComparison.Ordinal);
}
Assert.IsType<DbUpdateException>(observed);
Assert.Equal(scenario == "foreign-key" ? 1452 : 1062, native.Number);
Assert.True(loser.ChangeTracker.Entries().Any(entry => entry.State == EntityState.Added));
}
await using var verify = database.Context();
Assert.Equal(15, await verify.ApplicationChecklistItems.CountAsync());
Assert.Equal(7, (await verify.JobApplications.SingleAsync()).Version);
Assert.Equal(1, await verify.Users.CountAsync());
}
private sealed class Race
{
private int _arrivals;
public TaskCompletionSource BothReady { get; } = new(TaskCreationOptions.RunContinuationsAsynchronously);
public TaskCompletionSource Committed { get; } = new(TaskCreationOptions.RunContinuationsAsynchronously);
public void Arrive() { if (Interlocked.Increment(ref _arrivals) == 2) BothReady.TrySetResult(); }
}
private sealed class Gate(Race race, bool winner, bool saveOtherFirst = false) : SaveChangesInterceptor
{
private bool _used;
public Exception? Failure { get; private set; }
public override async ValueTask<InterceptionResult<int>> SavingChangesAsync(DbContextEventData data, InterceptionResult<int> result, CancellationToken ct = default)
{
if (_used) return result;
_used = true;
race.Arrive();
await race.BothReady.Task.WaitAsync(ct);
if (!winner) await race.Committed.Task.WaitAsync(ct);
if (saveOtherFirst)
{
// Force the unrelated tracked write first; normal batch ordering hits checklist duplicates first.
var context = data.Context!;
var seeds = context.ChangeTracker.Entries<ApplicationChecklistItem>()
.Where(entry => entry.State == EntityState.Added).ToList();
foreach (var seed in seeds) seed.State = EntityState.Detached;
try { await context.SaveChangesAsync(ct); }
finally { foreach (var seed in seeds) context.Add(seed.Entity); }
}
return result;
}
public override ValueTask<int> SavedChangesAsync(SaveChangesCompletedEventData data, int result, CancellationToken ct = default)
{
if (winner) race.Committed.TrySetResult();
return ValueTask.FromResult(result);
}
public override Task SaveChangesFailedAsync(DbContextErrorEventData data, CancellationToken ct = default)
{
Failure = data.Exception;
return Task.CompletedTask;
}
}
}
@@ -1,94 +0,0 @@
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);
}
}
}
@@ -1,134 +0,0 @@
using JobTrackerApi.Data;
using JobTrackerApi.Models;
using JobTrackerApi.Services;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Moq;
using Xunit;
using Xunit.Abstractions;
namespace JobTrackerApi.Tests;
public sealed class ApplicationChecklistConcurrencyTests(ITestOutputHelper output)
{
[Fact]
public async Task Native_duplicate_seed_race_recovers_both_reads_without_losing_user_decisions()
{
await using var database = await Database.Create();
var race = new SeedRace();
await using var winner = database.Context(new SeedGate(race, winner: true));
var loserGate = new SeedGate(race, winner: false);
await using var loser = database.Context(loserGate);
using var timeout = new CancellationTokenSource(TimeSpan.FromSeconds(20));
var results = await Task.WhenAll(
new ApplicationChecklistService(winner).GetAsync(Database.Owner, database.JobId, timeout.Token),
new ApplicationChecklistService(loser).GetAsync(Database.Owner, database.JobId, timeout.Token));
Assert.All(results, result => Assert.NotNull(result));
Assert.Equal(results[0]!.Items.Select(x => x.Id).Order(), results[1]!.Items.Select(x => x.Id).Order());
Assert.All(results, result =>
{
Assert.Equal(14, result!.Items.Count(x => x.SystemKey != null));
Assert.Equal(ChecklistStatuses.Dismissed, result.Items.Single(x => x.SystemKey == "prepare-cv").Status);
Assert.Equal("Manual decision", result.Items.Single(x => x.SystemKey == null).Title);
Assert.Equal(ChecklistStatuses.Done, result.Items.Single(x => x.SystemKey == null).Status);
});
var duplicate = Assert.IsType<SqliteException>(Assert.IsType<DbUpdateException>(loserGate.Failure).InnerException);
Assert.Equal(2067, duplicate.SqliteExtendedErrorCode);
await using var verify = database.Context();
Assert.Equal(15, await verify.ApplicationChecklistItems.CountAsync());
Assert.Equal(7, (await verify.JobApplications.SingleAsync()).Version);
Assert.DoesNotContain(loser.ChangeTracker.Entries<ApplicationChecklistItem>(), entry => entry.State == EntityState.Added);
output.WriteLine("Native SQLite duplicate2067 observed and recovered; both calls returned the same15 persisted IDs, user decisions and job revision7 preserved.");
}
[Fact]
public async Task Concurrent_seed_recovery_does_not_swallow_an_unrelated_native_foreign_key_failure()
{
await using var database = await Database.Create();
var race = new SeedRace();
await using var winner = database.Context(new SeedGate(race, winner: true));
var loserGate = new SeedGate(race, winner: false);
await using var loser = database.Context(loserGate);
var invalidCustom = new ApplicationChecklistItem { OwnerUserId = Database.Owner, JobApplicationId = int.MaxValue, Title = "Invalid parent must fail", Status = ChecklistStatuses.Done };
loser.ApplicationChecklistItems.Add(invalidCustom);
using var timeout = new CancellationTokenSource(TimeSpan.FromSeconds(20));
var winningRead = new ApplicationChecklistService(winner).GetAsync(Database.Owner, database.JobId, timeout.Token);
var losingRead = new ApplicationChecklistService(loser).GetAsync(Database.Owner, database.JobId, timeout.Token);
Assert.NotNull(await winningRead);
var observed = await Record.ExceptionAsync(async () => await losingRead);
output.WriteLine($"Native save error={((loserGate.Failure as DbUpdateException)?.InnerException as SqliteException)?.SqliteExtendedErrorCode}; service exception={observed?.GetType().Name ?? "none"}.");
var error = Assert.IsType<DbUpdateException>(observed);
var native = Assert.IsType<SqliteException>(error.InnerException);
Assert.Equal(787, native.SqliteExtendedErrorCode);
Assert.Equal(EntityState.Added, loser.Entry(invalidCustom).State);
await using var verify = database.Context();
Assert.Equal(15, await verify.ApplicationChecklistItems.CountAsync());
Assert.False(await verify.ApplicationChecklistItems.AnyAsync(x => x.Title == invalidCustom.Title));
output.WriteLine("Native SQLite foreign-key787 propagated despite another request having persisted all missing default keys.");
}
private sealed class SeedRace
{
private int _arrivals;
public TaskCompletionSource BothReady { get; } = new(TaskCreationOptions.RunContinuationsAsynchronously);
public TaskCompletionSource WinnerCommitted { get; } = new(TaskCreationOptions.RunContinuationsAsynchronously);
public void Arrive() { if (Interlocked.Increment(ref _arrivals) == 2) BothReady.TrySetResult(); }
}
private sealed class SeedGate(SeedRace race, bool winner) : SaveChangesInterceptor
{
private bool _used;
public Exception? Failure { get; private set; }
public override async ValueTask<InterceptionResult<int>> SavingChangesAsync(DbContextEventData eventData, InterceptionResult<int> result, CancellationToken cancellationToken = default)
{
if (_used) return result;
_used = true;
race.Arrive();
await race.BothReady.Task.WaitAsync(cancellationToken);
if (!winner) await race.WinnerCommitted.Task.WaitAsync(cancellationToken);
return result;
}
public override ValueTask<int> SavedChangesAsync(SaveChangesCompletedEventData eventData, int result, CancellationToken cancellationToken = default)
{
if (winner) race.WinnerCommitted.TrySetResult();
return ValueTask.FromResult(result);
}
public override Task SaveChangesFailedAsync(DbContextErrorEventData eventData, CancellationToken cancellationToken = default)
{
Failure = eventData.Exception;
return Task.CompletedTask;
}
}
private sealed class Database(string file) : IAsyncDisposable
{
public const string Owner = "owner";
public int JobId { get; private set; }
public JobTrackerContext Context(SaveChangesInterceptor? interceptor = null)
{
var options = new DbContextOptionsBuilder<JobTrackerContext>().UseSqlite($"Data Source={file};Pooling=False");
if (interceptor != null) options.AddInterceptors(interceptor);
var user = new Mock<ICurrentUserService>();
user.SetupGet(x => x.UserId).Returns(Owner);
return new JobTrackerContext(options.Options, user.Object);
}
public static async Task<Database> Create()
{
var database = new Database(Path.Combine(Path.GetTempPath(), $"checklist-race-{Guid.NewGuid():N}.db"));
await using var db = database.Context();
await db.Database.EnsureCreatedAsync();
db.Users.Add(new ApplicationUser { Id = Owner });
var job = new JobApplication { OwnerUserId = Owner, Company = new Company { OwnerUserId = Owner, Name = "Synthetic" }, Status = "Interview", Version = 7 };
db.JobApplications.Add(job);
await db.SaveChangesAsync();
database.JobId = job.Id;
db.ApplicationChecklistItems.AddRange(
new ApplicationChecklistItem { OwnerUserId = Owner, JobApplicationId = job.Id, SystemKey = "prepare-cv", AutoSignal = ChecklistSignalKeys.Cv, IsSystemGenerated = true, Title = "Prepare CV", Category = ChecklistCategories.Preparation, Status = ChecklistStatuses.Dismissed },
new ApplicationChecklistItem { OwnerUserId = Owner, JobApplicationId = job.Id, Title = "Manual decision", Category = ChecklistCategories.Custom, Status = ChecklistStatuses.Done, SortOrder = 90 });
await db.SaveChangesAsync();
return database;
}
public ValueTask DisposeAsync() { File.Delete(file); return ValueTask.CompletedTask; }
}
}
+11 -22
View File
@@ -21,7 +21,7 @@ public sealed class JobQueryParityTests
[Theory]
[InlineData(250)]
[InlineData(2500)]
public async Task Job_list_reads_correspondence_only_for_relevant_applications(int size)
public async Task Ordinary_table_materialises_correspondence_groups_only_for_the_returned_page(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), Location = i % 50 == 0 ? "Bergen" : "Oslo",
DateApplied = new DateTime(2026, 10, 1),
}).ToList();
db.JobApplications.AddRange(jobs);
await db.SaveChangesAsync();
@@ -62,31 +62,20 @@ 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));
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);
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());
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
+4 -10
View File
@@ -5,7 +5,6 @@
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<DefaultItemExcludes>$(DefaultItemExcludes);PdfBrowserStub/**</DefaultItemExcludes>
</PropertyGroup>
<ItemGroup>
@@ -25,19 +24,14 @@
<ProjectReference Include="..\JobTrackerApi\JobTrackerApi.csproj" />
<!-- Build the fixture, but only our explicit subdirectory copy owns its output.
The Linux apphost has no .exe suffix and collides with that directory if copied to root. -->
<ProjectReference Include="PdfBrowserStub/PdfBrowserStub.csproj" ReferenceOutputAssembly="false" Private="false" OutputItemType="PdfBrowserStubAssembly" />
<ProjectReference Include="PdfBrowserStub/PdfBrowserStub.csproj" ReferenceOutputAssembly="false" Private="false" />
<Compile Remove="PdfBrowserStub/**/*.cs" />
</ItemGroup>
<Target Name="CopyPdfBrowserStub" AfterTargets="Build">
<Error Condition="'@(PdfBrowserStubAssembly)' == ''" Text="The PDF browser stub project returned no output assembly." />
<PropertyGroup>
<PdfBrowserStubOutput>@(PdfBrowserStubAssembly->'%(RootDir)%(Directory)%(Filename)')</PdfBrowserStubOutput>
</PropertyGroup>
<ItemGroup>
<PdfBrowserFiles Include="$(PdfBrowserStubOutput).*" />
<!-- The Unix apphost is the only fixture file without an extension. -->
<PdfBrowserFiles Include="$(PdfBrowserStubOutput)" Condition="$([System.IO.File]::Exists('$(PdfBrowserStubOutput)'))" />
<PdfBrowserFiles Include="PdfBrowserStub/bin/$(Configuration)/net9.0/*" />
</ItemGroup>
<Copy SourceFiles="@(PdfBrowserFiles)" DestinationFolder="$(TargetDir)PdfBrowserStub" SkipUnchangedFiles="true" />
<Copy SourceFiles="@(PdfBrowserFiles)" DestinationFolder="$(TargetDir)PdfBrowserStub" />
</Target>
</Project>
@@ -934,32 +934,6 @@ public sealed class ProfileCvControllerTests
Assert.Contains("42", json, StringComparison.OrdinalIgnoreCase);
}
[Theory]
[InlineData("Expérience", "Expe\u0301rience", "## Éducation")]
[InlineData("Γλώσσες", "Γλώσσες", "## Εκπαίδευση")]
[InlineData("Språk", "Languages", "## Utdanning")]
[InlineData("Portfolio – 2026", "Portfolio – 2026", "## Certificates")]
[InlineData("Expérience", "Expérience", "Projets supplémentaires")]
[InlineData("Språk", "Languages", "Utdanning:")]
public async Task Rewrite_preview_replaces_only_the_selected_document_section(string heading, string selected, string nextHeading)
{
var source = $"## {heading}\r\n\r\nTravail en équipe\r\nOriginal work.\r\n{nextHeading}\r\nKeep this content.";
var user = new ApplicationUser { Id = "user-1", ProfileCvText = source };
var users = CreateUserManager();
users.Setup(x => x.GetUserAsync(It.IsAny<ClaimsPrincipal>())).ReturnsAsync(user);
var ai = new Mock<ISummarizerService>();
ai.Setup(x => x.SummarizeSectionAsync(It.IsAny<string>(), It.IsAny<string>(), 900, 180))
.ReturnsAsync("Updated work.");
await using var db = CreateDb();
var controller = CreateController(users.Object, ai.Object, db, CreatePaths());
var action = await controller.BuildRewritePreview(new ProfileCvController.RewriteSectionRequest { SectionName = selected });
var preview = Assert.IsType<ProfileCvPreviewDto>(Assert.IsType<OkObjectResult>(action.Result).Value);
Assert.Equal($"## {heading}\nUpdated work.\n\n{nextHeading}\nKeep this content.", preview.FullText.ReplaceLineEndings("\n"));
ai.Verify(x => x.SummarizeSectionAsync(It.IsAny<string>(), It.Is<string>(text => text.Contains("Original work.") && !text.Contains("Keep this content.")), 900, 180), Times.Once);
Assert.Equal(source, user.ProfileCvText);
}
[Fact]
public async Task Parse_returns_structured_cv_and_persists_it()
{
@@ -30,17 +30,6 @@ 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
{
+2 -42
View File
@@ -18,11 +18,10 @@ using Microsoft.Data.Sqlite;
using JobTrackerApi.Data;
using Moq;
using Xunit;
using Xunit.Abstractions;
namespace JobTrackerApi.Tests;
public sealed class UsersControllerTests(ITestOutputHelper output)
public sealed class UsersControllerTests
{
[Fact]
public async Task SetRoles_rejects_removing_the_final_administrator()
@@ -172,26 +171,11 @@ public sealed class UsersControllerTests(ITestOutputHelper output)
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();
@@ -203,28 +187,6 @@ public sealed class UsersControllerTests(ITestOutputHelper output)
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);
}
@@ -267,9 +229,8 @@ public sealed class UsersControllerTests(ITestOutputHelper output)
private sealed class CommandCounter : DbCommandInterceptor
{
public int ReaderCount { get; private set; }
public List<string> Commands { get; } = [];
public void Reset() { ReaderCount = 0; Commands.Clear(); }
public void Reset() => ReaderCount = 0;
public override ValueTask<InterceptionResult<DbDataReader>> ReaderExecutingAsync(
DbCommand command,
@@ -278,7 +239,6 @@ public sealed class UsersControllerTests(ITestOutputHelper output)
CancellationToken cancellationToken = default)
{
ReaderCount++;
Commands.Add(command.CommandText);
return base.ReaderExecutingAsync(command, eventData, result, cancellationToken);
}
}
@@ -538,9 +538,7 @@ 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 candidateIds = query.Select(j => j.Id);
var latestMessages = await LoadLatestMessagesAsync(_db.Correspondences.AsNoTracking()
.Where(message => candidateIds.Contains(message.JobApplicationId)));
var latestMessages = await LoadLatestMessagesAsync(_db.Correspondences.AsNoTracking());
var pre = await query.ToListAsync(cancellationToken);
var filtered = new List<JobApplication>();
foreach (var j in pre)
@@ -581,9 +581,6 @@ public sealed partial class ProfileCvController : ControllerBase
: string.Join("\n\n", structuredCv.Sections.Select(section => $"## {section.Name}\n{section.Content}"));
}
if (sourceText is not null && FindRewriteSection(sourceText, sectionName) is { } range)
return sourceText[range.Start..range.End].Trim();
var matchingSection = structuredCv.Sections.FirstOrDefault(section => string.Equals(section.Name, sectionName, StringComparison.OrdinalIgnoreCase));
if (matchingSection is not null && !string.IsNullOrWhiteSpace(matchingSection.Content))
{
@@ -621,33 +618,6 @@ public sealed partial class ProfileCvController : ControllerBase
return null;
}
private static readonly Regex RewriteHeading = new(
@"^(?:(?<marker>#{1,2})[ \t]+(?<name>[^\r\n]+?)|(?<name>[\p{Lu}\p{Lt}][\p{L}\p{M} &/]+?))(?<colon>:)?[ \t]*\r?$",
RegexOptions.Multiline | RegexOptions.CultureInvariant);
private static (int Start, int End, string Name)? FindRewriteSection(string text, string sectionName)
{
var target = NormalizeRewriteSectionName(sectionName.Normalize());
foreach (Match heading in RewriteHeading.Matches(text))
{
var name = heading.Groups["name"].Value.Trim();
if (!string.Equals(NormalizeRewriteSectionName(name.Normalize()), target, StringComparison.OrdinalIgnoreCase))
continue;
var next = heading.NextMatch();
if (heading.Groups["marker"].Success && next.Success &&
!next.Groups["marker"].Success && !next.Groups["colon"].Success &&
!SectionAliases.ContainsKey(next.Groups["name"].Value.Trim()))
{
// The first unmarked line may be prose. Preserve later legacy headings even without a blank separator.
var bodyStart = heading.Index + heading.Length;
if (text.AsSpan(bodyStart, next.Index - bodyStart).Trim().IsEmpty)
next = next.NextMatch();
}
return (heading.Index, next.Success ? next.Index : text.Length, name);
}
return null;
}
private static string ReplaceOrAppendCvSection(string source, string sectionName, string sectionDraft)
{
var trimmedSource = (source ?? string.Empty).Trim();
@@ -655,14 +625,20 @@ public sealed partial class ProfileCvController : ControllerBase
if (string.IsNullOrWhiteSpace(trimmedDraft)) return trimmedSource;
if (string.IsNullOrWhiteSpace(trimmedSource)) return $"## {sectionName}\n{trimmedDraft}";
if (FindRewriteSection(trimmedSource, sectionName) is not { } range)
var normalizedHeading = sectionName.Trim().ToLowerInvariant();
var headingPattern = new Regex(@"^(##\s+|#\s+)?(?<name>[A-Z][A-Za-z &/]+):?\s*$", RegexOptions.Multiline);
var matches = headingPattern.Matches(trimmedSource).ToList();
var targetIndex = matches.FindIndex(match => string.Equals(match.Groups["name"].Value.Trim(), normalizedHeading, StringComparison.OrdinalIgnoreCase));
if (targetIndex < 0)
{
return $"{trimmedSource}\n\n## {sectionName}\n{trimmedDraft}".Trim();
}
var before = trimmedSource[..range.Start].TrimEnd();
var after = trimmedSource[range.End..].TrimStart();
return string.Join("\n\n", new[] { before, $"## {range.Name}\n{trimmedDraft}", after }.Where(part => !string.IsNullOrWhiteSpace(part))).Trim();
var start = matches[targetIndex].Index;
var end = targetIndex + 1 < matches.Count ? matches[targetIndex + 1].Index : trimmedSource.Length;
var before = trimmedSource[..start].TrimEnd();
var after = trimmedSource[end..].TrimStart();
return string.Join("\n\n", new[] { before, $"## {sectionName}\n{trimmedDraft}", after }.Where(part => !string.IsNullOrWhiteSpace(part))).Trim();
}
private static IReadOnlyList<CvTemplateDescriptor> GetCvTemplateDescriptors()
@@ -55,19 +55,6 @@ 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()
@@ -388,7 +388,7 @@ public sealed class ApplicationChecklistService : IApplicationChecklistService
await _db.SaveChangesAsync(ct);
return items;
}
catch (DbUpdateException ex) when (IsDuplicateSystemKey(ex))
catch (DbUpdateException)
{
foreach (var item in seeded) _db.Entry(item).State = EntityState.Detached;
@@ -401,17 +401,6 @@ public sealed class ApplicationChecklistService : IApplicationChecklistService
}
}
private static bool IsDuplicateSystemKey(DbUpdateException exception) => exception.InnerException switch
{
Microsoft.Data.Sqlite.SqliteException sqlite => sqlite.SqliteErrorCode == 19
&& sqlite.SqliteExtendedErrorCode == 2067
&& sqlite.Message.EndsWith("UNIQUE constraint failed: ApplicationChecklistItems.JobApplicationId, ApplicationChecklistItems.SystemKey'.", StringComparison.Ordinal),
MySqlConnector.MySqlException mysql => mysql.Number == 1062
&& (mysql.Message.EndsWith("for key 'IX_ApplicationChecklistItems_JobApplicationId_SystemKey'", StringComparison.Ordinal)
|| mysql.Message.EndsWith("for key 'ApplicationChecklistItems.IX_ApplicationChecklistItems_JobApplicationId_SystemKey'", StringComparison.Ordinal)),
_ => false,
};
private async Task SyncAutoCompletionAsync(List<ApplicationChecklistItem> items, ChecklistSignals signals, CancellationToken ct)
{
var changed = false;
+1 -3
View File
@@ -92,12 +92,10 @@ 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;
@@ -113,7 +111,7 @@ public sealed class AttachmentStorage : IAttachmentStorage
}
catch
{
if (created) File.Delete(destination);
if (File.Exists(destination)) File.Delete(destination);
throw;
}
}
-99
View File
@@ -1,99 +0,0 @@
# Standalone local project: do not combine with production Compose or its .env.
services:
database:
image: mariadb:12.2.2@sha256:42a27baaba3e8f3f0159d16381d5a7156661aa91dcc65f663cabb6a6f9503c00
environment:
MARIADB_ROOT_PASSWORD: ${JT_LOCAL_DB_ROOT_PASSWORD:?Run rebuild-windows-docker.ps1 first}
MARIADB_DATABASE: jobtracker
MARIADB_USER: jobtracker
MARIADB_PASSWORD: ${JT_LOCAL_DB_PASSWORD:?Run rebuild-windows-docker.ps1 first}
volumes:
- database:/var/lib/mysql
command: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 3s
timeout: 5s
retries: 45
start_period: 20s
restart: unless-stopped
backend:
image: jobjakt-windows-local-backend:latest
build:
context: ..
dockerfile: JobTrackerApi/Dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: http://+:8080
Database__Provider: mariadb
Database__ServerVersion: "12.2.2"
ConnectionStrings__JobTracker: Server=database;Database=jobtracker;User ID=jobtracker;Password=${JT_LOCAL_DB_PASSWORD};SslMode=None
Data__Root: /data
AccountLifecycle__TombstonesRoot: /account-lifecycle/tombstones
Auth__Require: "true"
Auth__JwtKey: ${JT_LOCAL_JWT_KEY:?Run rebuild-windows-docker.ps1 first}
Auth__AdminEmail: ${JT_LOCAL_ADMIN_EMAIL:?Run rebuild-windows-docker.ps1 first}
Auth__AdminPassword: ${JT_LOCAL_ADMIN_PASSWORD:?Run rebuild-windows-docker.ps1 first}
Auth__AllowRegistration: "false"
App__PublicBaseUrl: http://localhost:${JT_LOCAL_PORT:-3000}
App__Version: windows-local
App__CommitSha: ${JT_LOCAL_COMMIT:-unknown}
HttpsRedirection__Enabled: "false"
Proxy__TrustForwardedHeaders: "false"
Ai__BaseUrl: http://127.0.0.1:9
Summarizer__BaseUrl: http://127.0.0.1:9
Ai__ExternalProcessingEnabled: "false"
Email__Enabled: "false"
AccountLifecycle__DeletionEnabled: "false"
Workers__RulesEnabled: "false"
Workers__FollowUpRemindersEnabled: "false"
Workers__SavedJobSearchAlertsEnabled: "false"
Workers__DailyExportEnabled: "false"
Workers__JobEnrichmentEnabled: "false"
Workers__AiOperationsEnabled: "false"
Workers__CvDocumentImportsEnabled: "false"
volumes:
- files:/data
- tombstones:/account-lifecycle/tombstones
depends_on:
database:
condition: service_healthy
networks:
default:
aliases: [backend-web]
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8080/ready"]
interval: 5s
timeout: 5s
retries: 45
start_period: 90s
restart: unless-stopped
frontend:
image: jobjakt-windows-local-frontend:latest
build:
context: ../job-tracker-ui
shm_size: 1gb
args:
NEXT_PUBLIC_API_BASE_URL: /api
environment:
APP_PUBLIC_BASE_URL: http://localhost:${JT_LOCAL_PORT:-3000}
INGRESS_MODE: direct
ports:
- "127.0.0.1:${JT_LOCAL_PORT:-3000}:80"
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/health"]
interval: 3s
timeout: 5s
retries: 20
start_period: 10s
restart: unless-stopped
volumes:
database:
files:
tombstones:
@@ -13,9 +13,3 @@ 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.
-37
View File
@@ -1,37 +0,0 @@
# Rebuild and run locally on Windows
Start Docker Desktop in **Linux containers** mode, then run PowerShell:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\scripts\rebuild-windows-docker.ps1"
```
Open http://localhost:3000 after the script finishes. It rebuilds backend/frontend from that checkout, reports its branch/commit and starts a separate `jobjakt-windows-local` project. It neither pulls Git changes nor selects `main`; run it again after development checkpoints are integrated into this checkout. Working-copy changes are included in Docker's ordinary build context. First build needs internet for existing base images and locked dependencies.
Login is `local-admin@example.test`. The generated password is the `JT_LOCAL_ADMIN_PASSWORD` value in `.env.windows-local` at the checkout root; open that private file locally to read it. The file is ignored by Git. Keep it and use the same checkout for subsequent rebuilds: changing database credentials after volumes exist prevents connection. The separate local database starts empty; existing production accounts/data are not imported.
Useful options:
```powershell
# Use another local port if3000 is occupied.
.\scripts\rebuild-windows-docker.ps1 -Port 3001
# Validate configuration without building or starting containers.
.\scripts\rebuild-windows-docker.ps1 -ValidateOnly
# Rebuild without Docker layer cache when needed.
.\scripts\rebuild-windows-docker.ps1 -NoCache
# Stop this local project, retaining its database/files and credentials.
docker --context desktop-linux compose --project-name jobjakt-windows-local --env-file .env.windows-local -f dev/windows-local.compose.yml stop
```
The last commands run from the same checkout root. `-DockerContext default` is available if that is your local Linux Docker context. The start path rejects remote Docker endpoints and non-Linux engines. The script never deletes volumes or pushes images. Database/files/tombstones have separate named volumes owned by this project; only frontend port3000 is exposed, on127.0.0.1. The API/database are internal.
This stack intentionally has no AI sidecar/Ollama, mail delivery or background provider/model workers. Existing manual application/Career/CV/PDF workflows remain available; generative and sidecar-dependent import functions need their separately approved test stack. AI activation remains a separate owner decision, including model identity and local-only routing. No production Compose/environment is loaded.
## Verification
18November2026: PowerShell parser and rendered Compose contract tests **2/2 PASSED**, zero skips; `-ValidateOnly` twice PASSED, preserving the credential file. Checks cover exact build contexts, three-service allowlist, loopback port, internal API/database, persistent project-owned volumes, same-origin routing, authentication and disabled external/background processing. `python scripts/test-windows-docker.py` executes no build/container commands.
**Docker build/start NOT RUN:** local Docker Desktop Linux engine pipe was absent when inspected. Start Docker Desktop before running the script. Source/static checks do not establish container startup, image builds, Node20 compatibility, database migration parity, PDF fidelity or full release qualification.
@@ -1,35 +0,0 @@
# Native MariaDB qualification: statistics and checklist recovery
18November2026. Isolated codex/perf-mariadb-qualification started at1db5f488; analytics41134d8f was cherry-picked asbe984f1b, then the recovered checklist correction was tested alongside it. No startup-script, existing app container, persistent development data, production service or model was changed.
## Actual provider evidence
Docker Desktop's local Linux engine became available after the user started the local app. The existing disposable MariaDB lane was used with its cached pinned12.2.2 manifest, a generated jobtracker-it project, fresh loopback port, tmpfs database,1CPU/768MiB limit and existing generated jt_it schema guard. Exact observed version: **12.2.2-MariaDB-ubu2404**. The fixture initialises the actual startup schema, uses independent TCP contexts and drops only each successfully-created schema. Locked restore used the existing NuGet cache with package sources cleared; no package versions changed or network restore was needed.
| Execution | Result | Meaning |
| --- | --- | --- |
| Original statistics, five new cases |3 expected budget failures /2 passes | Owned results/cancellation remained correct; measured5 commands for250/2500 active rows and4 empty |
| Original checklist, corrected native ordering |1 pass /2 failures | Genuine duplicate recovery succeeds; unrelated FK1452 and username-unique1062 errors were swallowed |
| Optimised statistics and narrowed checklist |8/8 passed,0skips | New actual-provider cases pass; statistics uses3 active/2 empty commands |
| Complete MariaDB persistence project |**98/98 passed,0skips**,169seconds | Includes those8; never add98+8 |
| Ordinary affected checklist project subset |**17/17 passed**,0skips | Includes two new SQLite concurrency cases and15 existing service cases; earlier2-case runs overlap17 |
This supersedes the prior NOT RUN boundary for these specific local MariaDB operations. It does not establish hosted CI, production equivalence, query plans/rows examined, load/p95/throughput, connection-pool tuning, restore/rollback, TLS, physical PDF fidelity or human/device/provider/model acceptance. Statistics' date projection still grows with applied active rows; only the measured roundtrips are reduced. No new cache, schema, migration, controller/DTO or overview change was introduced.
## Checklist defect and minimal correction
The original seed method recovered any DbUpdateException once another request had persisted all missing system keys. Native SQLite reproduced FK787 being swallowed; real MariaDB reproduced FK1452 and an unrelated username-unique1062 being swallowed. The catch now handles only the actual checklist system-key unique constraint. Unknown/foreign-key/concurrency failures propagate through existing error handling. MySQL matching uses the terminal key identity, so a duplicate value containing the checklist index's name cannot impersonate that index. SQLite requires its exact unique column-list suffix and native19/2067 codes. Existing missing-key revalidation and detach-only-this-call's-seeds behaviour remain.
Positive races retain the same15 persisted IDs,14 system items, dismissed/manual user decisions and job revision7. Other pending writes remain tracked after failure. This is bounded recovery correctness, not an unrestricted retry or proof that every network-uncertain write is idempotent.
The first native unrelated-unique proposal hit the genuine checklist constraint before the intended username error. Its corrected test interceptor temporarily detaches only new checklist seeds, flushes the unrelated tracked user first and restores those seeds; real EF/MySqlConnector still produces the error. The final synthetic duplicate value was shortened so MariaDB's diagnostic truncation retains the entire index-name text. Original and corrected negative runs are retained; these verifier changes are not application fixes. Red test-file snapshots were not frozen at execution; original production Git baseline and native failure outputs are retained, rather than claiming complete immutable red test sources.
The historical reminders log contains two distinct observations: expected duplicate-key diagnostics and a separate OperationCanceledException stack in GetReminders. Deterministic duplicate races can return both successful service results despite EF logging. No request correlation proves the cause or harmlessness of the historical cancelled HTTP request, and this package does not claim to fix it.
## Isolation and evidence
After the98-case run, zero jt_it schemas remained. Cleanup verified generated project/service labels, pinned image and tmpfs at /var/lib/mysql with **no persistent mounts**, retained server logs, then removed only the owned mariadb-test service with Compose rm--stop--force. No down/-v was used. Docker reports this tmpfs in HostConfig.Tmpfs rather than Mounts; an initial stricter inspection failed safely before cleanup, then was corrected from the actual fields. The user's three local app containers remained healthy.
Exact source/native gzip/TRX, target identity, cleanup and counts: [receipts](native-mariadb-20261118/evidence/SOURCE_RECEIPTS.json). All data/accounts are synthetic; application credentials and browser traces are excluded. The ordinary test source and API classifier were copied byte-for-byte from the recovered worktree; current source hashes bind both test projects. Adding the ordinary test file after the MariaDB run changes neither the API nor the separate MariaDB assembly, so unchanged native evidence is reused. Source/API/tests have no pending product changes beyond those listed.
AST-only update passed19,974nodes/49,552edges with existing PDF/SQL/symbol-free input warnings; no model processing. Rollback restores the small predicate/count deltas and removes their tests; no data migration or rollback is required. Formal roadmap/security/release gates remain open.
+1 -5
View File
@@ -1,4 +1,4 @@
# PERF-06 · Analytics stats aggregate queries
# PERF-06 · Analytics stats aggregate queries
Application baseline `1db5f488f6138e4f0f33749452b7d9f47658f4b0`, isolated `codex/analytics-query-batch`. Roadmap source `271d37d1`, `docs/direct-roadmap/LATEST_CHECKPOINT.md` and PERF-06 in `ROADMAP_TODO.md`, required a measured baseline before combining queries. The only application edit is inside `AnalyticsService.GetStatsAsync`; controller, DTO, overview, schema, configuration, Career completeness and caching are unchanged.
@@ -37,7 +37,3 @@ Nine of those dedicated cases execute SQLite. The legacy **null Status** case us
**Actual MariaDB execution/server acceptance, EXPLAIN/rows examined, native cancellation and provider-specific status collation remain NOT RUN.** Pomelo SQL generation alone does not establish those properties. Before MariaDB qualification, execute the actual service against a disposable pinned MariaDB fixture with the same ownership/deletion/date/status cases and measure its command/plan behavior. SQLite results do not qualify the standard MariaDB deployment or infer throughput gains. The change adds no cross-query transaction snapshot; status/date queries remain separate, as before.
No full backend suite, frontend regression, browser, hosted CI, production workload, provider/model, deployment or orchestrator work was performed. Parent review/integration and real-provider qualification remain separate decisions. No main merge or push was performed by this worker.
## Subsequent actual-provider qualification
The historical boundaries above describe this original package. The later [native MariaDB qualification](NATIVE_MARIADB_20261118.md) records 98 passing local persistence tests, including the real-provider statistics cases and measured command counts. Hosted/production, query plans and workload performance remain separate.
@@ -12,22 +12,3 @@ 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
@@ -1,30 +0,0 @@
# 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.
@@ -1,15 +0,0 @@
# 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.
@@ -1,28 +0,0 @@
# 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.
@@ -1,95 +0,0 @@
// 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));
}
@@ -1,365 +0,0 @@
{
"baseline": "1db5f488f6138e4f0f33749452b7d9f47658f4b0",
"candidateHead": "be984f1b",
"candidateDelta": "Reviewed ApplicationChecklistService narrow classifier; source hashes below",
"native": [
{
"file": "state.json.gz",
"rawBytes": 263,
"rawSha256": "14a8a012e7af5f731540d6c539187a1b9590536e43fceb97170154a010dae5b6",
"gzipSha256": "081326aef36aec9879e4b51c063ec87151f287a0417e35224fe54b8372604edf"
},
{
"file": "target.json.gz",
"rawBytes": 480,
"rawSha256": "3094a11fbbbad68ca01ca9668438564a29b4142752abeafb0b5afcb755ecb177",
"gzipSha256": "eca5d54bd9672274af0fad1e0005a08722dbfa941fb06a20a771ef42b7484f5c"
},
{
"file": "start.txt.gz",
"rawBytes": 1698,
"rawSha256": "ed8b02e69cda13fa442dac34fc5bf1d046b481cfd77a436c2b001099871667a6",
"gzipSha256": "2bed921ad2d3cc917a6b8360a1cbeea2779e235aa9f25f17dd1219b93710150f"
},
{
"file": "restore.txt.gz",
"rawBytes": 1708,
"rawSha256": "e2e1cd7fe736511fa682d7f6f1d458fa00be57e44bbd3fb12a4e5e9996f93a84",
"gzipSha256": "e47176aab7f430b34dfe9af83cd3fe03b6c43c0639b23f68b27becaa10335225"
},
{
"file": "baseline.txt.gz",
"rawBytes": 18572,
"rawSha256": "0c7ba5b475c16b561c955c3dad149a4ebf15ff6796c31438d963420fa70f93a7",
"gzipSha256": "ddbdfe2febf5c72ff53e7fd60fe0650f4eb340d35a1520e1d382e5bd690b64ed"
},
{
"file": "baseline.trx.gz",
"rawBytes": 26073,
"rawSha256": "76ba28b8d14eac934492ef5d1b9e66ec828015c2e1cea60251fb5db833583121",
"gzipSha256": "06a80722382e3de1c6d1b65fd72eaf1003fbe59116f73edd812e66e5f1112fae"
},
{
"file": "baseline.exit.txt.gz",
"rawBytes": 3,
"rawSha256": "f1b2f662800122bed0ff255693df89c4487fbdcf453d3524a42d4ec20c3d9c04",
"gzipSha256": "baf0683e1103b94b68d94e8a12d7e144b4e0571e9948de7fb0d85103b045460e"
},
{
"file": "checklist-baseline.txt.gz",
"rawBytes": 11890,
"rawSha256": "6f18ee0c89d2671fe77885cf9e6fea6eb217b0b881659aa88661e760d52478c7",
"gzipSha256": "eb4e72dc1dcc4f0b825a223fdbb04030494fd8bdc1018598b56990ed9d18b9b8"
},
{
"file": "checklist-baseline.trx.gz",
"rawBytes": 15303,
"rawSha256": "80a736c8c7f10dd008512a84b85d2ef70fe7781f694e7c4070d278b195b44db3",
"gzipSha256": "949cc22dc48cfde8cb0db7c6c1c660419550f43286c27a985d1a4f1bc3819d5b"
},
{
"file": "checklist-baseline.exit.txt.gz",
"rawBytes": 3,
"rawSha256": "f1b2f662800122bed0ff255693df89c4487fbdcf453d3524a42d4ec20c3d9c04",
"gzipSha256": "baf0683e1103b94b68d94e8a12d7e144b4e0571e9948de7fb0d85103b045460e"
},
{
"file": "checklist-baseline-corrected.txt.gz",
"rawBytes": 11916,
"rawSha256": "0b0ecfa6ea70e76a87991e40c3390513d0040388af1ed880956bf322fcce52a7",
"gzipSha256": "ee4585a14dc3db7ec102a612d5206fda90814d02a47ade651912142a64586347"
},
{
"file": "checklist-baseline-corrected.trx.gz",
"rawBytes": 15307,
"rawSha256": "00948a9f9bbf5ecc0f013e1ef99613248fc57949532d529eab6cd6760fb1b586",
"gzipSha256": "9a8a4f35f256ad58ec336bc33e036f259e005adf0c9b14797fc2ae0acffb2184"
},
{
"file": "checklist-baseline-corrected.exit.txt.gz",
"rawBytes": 3,
"rawSha256": "f1b2f662800122bed0ff255693df89c4487fbdcf453d3524a42d4ec20c3d9c04",
"gzipSha256": "baf0683e1103b94b68d94e8a12d7e144b4e0571e9948de7fb0d85103b045460e"
},
{
"file": "candidate.txt.gz",
"rawBytes": 2868,
"rawSha256": "9fb27fcbb311262987c7358323cc95049a4243d4eb6063c06742218f2cbba51f",
"gzipSha256": "af3b11c6ac1d10339a9ee88e124509a34f3cfa2b455867be4753525d4dd74f56"
},
{
"file": "candidate.trx.gz",
"rawBytes": 19793,
"rawSha256": "765b4c7d01de8d1b2110e7e598d6d3fdb849333bb5135a9a92038110b7639043",
"gzipSha256": "2ffd80b6496310b4ea3260a852008590d92c756ced5d63c4c2d6ef6215464fe5"
},
{
"file": "candidate.exit.txt.gz",
"rawBytes": 3,
"rawSha256": "13bf7b3039c63bf5a50491fa3cfd8eb4e699d1ba1436315aef9cbe5711530354",
"gzipSha256": "7f636460b48b02e48ffda30b26e6cf24cebee6b983bfd77e79a2f7205a71497f"
},
{
"file": "full.txt.gz",
"rawBytes": 1204,
"rawSha256": "cdd7e671c5f3f1d448537268abc8ba21179cf8a0ff285ee876a4da8938266665",
"gzipSha256": "5cb8bc51c0dc2114843da48065dc0655a6822465fd127505f8af3910dd94fc86"
},
{
"file": "full.trx.gz",
"rawBytes": 167700,
"rawSha256": "f132ccbdf646187418f5e98fd2f501ba88ade812e5f12feba485026c0203873d",
"gzipSha256": "1fb3eed294d94ce4d4a173bd7b241ea375134742e655e026fa089dfcffcc6f09"
},
{
"file": "full.exit.txt.gz",
"rawBytes": 3,
"rawSha256": "13bf7b3039c63bf5a50491fa3cfd8eb4e699d1ba1436315aef9cbe5711530354",
"gzipSha256": "7f636460b48b02e48ffda30b26e6cf24cebee6b983bfd77e79a2f7205a71497f"
},
{
"file": "server.txt.gz",
"rawBytes": 6252,
"rawSha256": "49263816a13229f4fad67c3408abd580651a1036bc5fd8baed18a9ed806de695",
"gzipSha256": "b4f5d10e4b0bfb7fbdf2f33b02abb02a8ea6ac2e4e8c7e94bcd68a7659703aca"
},
{
"file": "remaining-schemas.txt.gz",
"rawBytes": 2,
"rawSha256": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa",
"gzipSha256": "8afc61325213625995e1de8b0d2df70f01b1d5304993484a41cc9df249f00fad"
},
{
"file": "cleanup.txt.gz",
"rawBytes": 408,
"rawSha256": "6f14edd5ae32f306d6d9fe6e0462430dcc52a7f097a718dc2e233b6d2316a0c7",
"gzipSha256": "6c384ac059786a9bdeb8f4310aac50f6c1053e40ed981c4f56adb41028fe73ec"
},
{
"file": "cleanup.exit.txt.gz",
"rawBytes": 3,
"rawSha256": "13bf7b3039c63bf5a50491fa3cfd8eb4e699d1ba1436315aef9cbe5711530354",
"gzipSha256": "7f636460b48b02e48ffda30b26e6cf24cebee6b983bfd77e79a2f7205a71497f"
},
{
"file": "cleanup.py.gz",
"rawBytes": 2509,
"rawSha256": "942ef2644c4d8078f5db05ee2e4227a75e8922433b77dd0f1a791e34cf6b537b",
"gzipSha256": "22ca184e044bf336caebbc3fe0a28d703dcaf0f02080b3693bf9af160ec85f1e"
},
{
"file": "serial.runsettings.gz",
"rawBytes": 147,
"rawSha256": "5a1dc26f49fa2a9874e30aa868ca5de5973449bd5325d23ae1e3e84fcd560fc5",
"gzipSha256": "cf64d8cbc38b1cf9677671e4e1ea6e9d944e3cea6965235b1df73f37536e8006"
},
{
"file": "resources.compose.yml.gz",
"rawBytes": 58,
"rawSha256": "102bff56fc8f487656fecb2aa308f4b79972dbca2c259d7ee931546a206d3b03",
"gzipSha256": "e10009fa468b5f677d955e1151b125efbf746380428ab4aecd9aba14d841d781"
},
{
"file": "NuGet.Config.gz",
"rawBytes": 74,
"rawSha256": "9508cae5f76364f56e80eb97cb16493977243cf38e5cca6284e3d74f83b20a2c",
"gzipSha256": "05db889e8047b1623c559f092197f603f433f4d73b1774ff936736ba488fe087"
},
{
"file": "unit-baseline.stdout.txt.gz",
"rawBytes": 4856,
"rawSha256": "0bbb5b8c9b03be13f83127bc850d86efe3a1d32864611b37d22e79767ec56eec",
"gzipSha256": "f6999c1104c316f34f69fb96a2f8122e453ff154d89a4015e6e9a4240f041206"
},
{
"file": "unit-baseline.stderr.txt.gz",
"rawBytes": 193,
"rawSha256": "142203fabbdb3da84197036c836b727f68b527336a2f5b5dd7ac6d4baeab9e21",
"gzipSha256": "2aa698372ab8697ad475e4a6824a8b226cc486cd31a6f3fd5959f45547a64b8e"
},
{
"file": "unit-baseline.exit.json.gz",
"rawBytes": 478,
"rawSha256": "908fe0dc4832b47d8f80f791afae55e892ae64e6ee1c8da70ebfe95ee46b6955",
"gzipSha256": "eccb1d15d394dcbc636c0930476d2e5a217309bde7a0deb082066df56fb1c458"
},
{
"file": "unit-final.stdout.txt.gz",
"rawBytes": 1634,
"rawSha256": "d74c1aa6cb7d281ecae4aa24fb2eb4fbcf9bfb7f7529552cdf29755a4f871580",
"gzipSha256": "e5c6468347a57a83c4ecdb6a85687f294214ddf226b34b14e7aea9aa9ef460c0"
},
{
"file": "unit-final.exit.json.gz",
"rawBytes": 473,
"rawSha256": "d0e384c114af6e1454f9ce7bd596509c635774e9a32d6dbb07c0ee9387650da8",
"gzipSha256": "f71572b28404d28cf64457bdc55adbf0cb76b5d854683ffb119418a3b1e6d593"
},
{
"file": "unit-qualified-related.stdout.txt.gz",
"rawBytes": 1658,
"rawSha256": "76025529ace3e58eea933eada5957a694af8aa1ef487b3e26dbbb91b2fc21d08",
"gzipSha256": "613acb0ab3cd2d02a9fa93a646374c8b24fc1fcc456765101bd0b79229e0c074"
},
{
"file": "unit-qualified-related.exit.json.gz",
"rawBytes": 497,
"rawSha256": "f9fb6160fd85e2bb0c4151931742847a235df35361865f6bc3b62fe148f78fc7",
"gzipSha256": "5ec423cd4f69b05058ed1c9f9122dfd87d13f1a8c43305e4c96e4746fc0b9220"
},
{
"file": "unit-checklist-all.stdout.txt.gz",
"rawBytes": 3368,
"rawSha256": "527f0a8189d6c04d32b8afad1f182034397e101d9729259a36af87376c7ebecb",
"gzipSha256": "579fab8fa01132747591fcdc15007e29484f755785b9a54641fb25cd8a633b95"
},
{
"file": "unit-checklist-all.exit.json.gz",
"rawBytes": 472,
"rawSha256": "80f0fea9a71d254f6fbf3582f4029447e2399710a93cdc70692f22ce528d713c",
"gzipSha256": "23b9b1bca5c2aa2e9ac1ce26abb33f3844883a9d6b2c7c69106f27e4aa459a72"
},
{
"file": "unit-checklist-all.trx.gz",
"rawBytes": 27089,
"rawSha256": "6ff38bc16958b118cdea606df44f1c69114b79d7f4ff4069c9ef9cfa8b80c99b",
"gzipSha256": "f9e28cc034f78897835ae493485adbcd8d7f95feeb83d4bd5f13eeb9a71dee83"
}
],
"sources": {
"JobTrackerApi/Services/AnalyticsService.cs": "0859ad9202bbaf4de810f8b1bc9946cbed061f69105c02993f079715f59aa2b1",
"JobTrackerApi/Services/ApplicationChecklistService.cs": "0c807ab96cbb4a638d3f5ba62b2608cdfb599751df2de4e3d58b6d599b69b5e8",
"JobTrackerApi.MariaDb.Tests/AnalyticsStatsPersistenceTests.cs": "7b95ba1a69456aaf61aa6fd7825e7f0374756d6997066275b8e48f77910b9e68",
"JobTrackerApi.MariaDb.Tests/ApplicationChecklistPersistenceTests.cs": "4e455291fdc786ed368891cd20c0aec3fac20fe32b84201fbebdbd784ab19bf0",
"JobTrackerApi.MariaDb.Tests/MariaDbDatabase.cs": "1375d97093f686f77d511ef6d81ad2d62ecf329aa6e7bf53036cd6e199035e40",
"JobTrackerApi.MariaDb.Tests/JobTrackerApi.MariaDb.Tests.csproj": "2df22a5b79fae14566b437081932218254eb811c8dc1b2af3d51692d8e0d6825",
"JobTrackerApi.MariaDb.Tests/packages.lock.json": "0389a52bfdf31aac07feac5c2ad2ce6771d9b450c899caf9c53ef7ecace0db49",
"JobTrackerApi/JobTrackerApi.csproj": "50164c5dceafc805cc73018bfcd444428736029f6fdad220e4ff07cf38e116c4",
"JobTrackerApi/packages.lock.json": "f63bbf68503fd46effda290a29551ebacac84d0faf8c367fe28caa11ec404abf",
"JobTrackerApi.Tests/ApplicationChecklistConcurrencyTests.cs": "b8c520e15d7886b501d39367acaa4e08529b0605a8f470242eec09c8ae23f84c",
"JobTrackerApi.Tests/JobTrackerApi.Tests.csproj": "6564ff0044af2ce8c55d557b180c57e16e238395424778878b56eb9e3e082c0d",
"JobTrackerApi.Tests/packages.lock.json": "548f67d1ef3b5a9acfe5fc6124891583b6073ac4b6ca515241330e097152bc4a"
},
"trx": {
"baseline.trx": {
"total": "5",
"executed": "5",
"passed": "2",
"failed": "3",
"error": "0",
"timeout": "0",
"aborted": "0",
"inconclusive": "0",
"passedButRunAborted": "0",
"notRunnable": "0",
"notExecuted": "0",
"disconnected": "0",
"warning": "0",
"completed": "0",
"inProgress": "0",
"pending": "0"
},
"checklist-baseline.trx": {
"total": "3",
"executed": "3",
"passed": "1",
"failed": "2",
"error": "0",
"timeout": "0",
"aborted": "0",
"inconclusive": "0",
"passedButRunAborted": "0",
"notRunnable": "0",
"notExecuted": "0",
"disconnected": "0",
"warning": "0",
"completed": "0",
"inProgress": "0",
"pending": "0"
},
"checklist-baseline-corrected.trx": {
"total": "3",
"executed": "3",
"passed": "1",
"failed": "2",
"error": "0",
"timeout": "0",
"aborted": "0",
"inconclusive": "0",
"passedButRunAborted": "0",
"notRunnable": "0",
"notExecuted": "0",
"disconnected": "0",
"warning": "0",
"completed": "0",
"inProgress": "0",
"pending": "0"
},
"candidate.trx": {
"total": "8",
"executed": "8",
"passed": "8",
"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"
},
"full.trx": {
"total": "98",
"executed": "98",
"passed": "98",
"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"
},
"unit-checklist-all.trx": {
"total": "17",
"executed": "17",
"passed": "17",
"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"
}
},
"isolation": {
"name": "jobtracker-it-fc0e8c29a256416d8b911f07f80fef8d-mariadb-test-1",
"id": "e4e7603940fdd67f7e24787867036f8436b1fc7320c1c36f6e1d5fdf67a0aac6",
"project": "jobtracker-it-fc0e8c29a256416d8b911f07f80fef8d",
"service": "mariadb-test",
"image": "mariadb:12.2.2@sha256:42a27baaba3e8f3f0159d16381d5a7156661aa91dcc65f663cabb6a6f9503c00",
"tmpfsDatabase": true,
"persistentMounts": [],
"memoryBytes": 805306368,
"cpuNano": 1000000000,
"port": 56408
}
}
@@ -1,161 +0,0 @@
{
"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"
}
]
}
@@ -1,15 +0,0 @@
# PDF admission test fixture
Verified on Windows x64 with SDK 9.0.317, VSTest 17.14.1 and a locked restore from the local NuGet package cache. The source baseline was `245f2feaa8bee2db8f5da0797b3e33f6ef8b056e`.
| Build | Test selection | Result |
| --- | --- | --- |
| Before fix, Release with a fresh `--artifacts-path` | `Default_limit_refuses_second_actual_browser_until_first_exits` | FAILED. The SDK built the stub in the requested location. The test output lacked the stub and the exporter reported that no browser was available. |
| After fix, Release with a fresh `--artifacts-path` | `PdfRenderAdmissionTests` | PASSED, 22 of 22. |
| After fix, Debug with the conventional output directory | `PdfRenderAdmissionTests` | PASSED, the same 22 of 22. |
Both successful runs built and launched the fixture through `dotnet test`. In each output layout the fixture directory contained exactly the apphost, assembly, symbols, dependency manifest and runtime configuration. All five SHA-256 hashes matched the corresponding stub project output. The conventional stub project's `bin` and `obj` directories already existed during the final relocated run and were excluded from the test content.
To repeat with restored dependencies, use `dotnet test JobTrackerApi.Tests/JobTrackerApi.Tests.csproj -c Debug --filter FullyQualifiedName~PdfRenderAdmissionTests`. For the relocated case, use `-c Release` and add `--artifacts-path <fresh-directory>`.
These tests exercise local process admission, cancellation and cleanup with the synthetic browser. Linux execution, visual PDF acceptance and production rendering remain separate qualifications.
@@ -1,11 +0,0 @@
# Combined connected-workflow validation
18 November 2026. A3 source `1ec15429`; source-equivalent isolated browser checkout `e2629c9d`. A fresh Release API build passed with zero warnings/errors using cached dependencies and no restore. Production frontend source/dependencies are unchanged since the qualified export, so that exact export was reused rather than rebuilding it. API/DLL/spec/config/lock/export hashes are retained.
**Four connected browser cases passed, zero skips/unexpected/flaky, eight zero-violation axe scans/eight screenshots**, 45.4 seconds, one Chromium worker. These are the two EN-desktop/NB-phone discovery→review→explicit tracked application cases plus the two application status→follow-up→calendar→linked workspace→clear cases, now on the combined analytics aggregate and narrowed checklist error classifier. Counts overlap the original packages; do not add reruns to distinct-case coverage.
Only disposable loopback SQLite fixtures were used. Existing external browser traffic guards, fixture search/source/import-preview, and disabled model/import/alert workers remained. No live provider, AI quality, deployed service, production data or device/assistive-technology acceptance is claimed. Existing fixture migration and development Data Protection warnings remain. No HTTP failure appears in this run; that does not explain or retrospectively fix the historical GetReminders cancellation.
The unchanged frontend needs no repeated full Jest/build for this backend integration. Full backend/security/recovery/release and visual/native-language acceptance remain separate. Actual MariaDB 98-case evidence is in its own report; these browser fixtures remain SQLite.
[Native report, build log, all attachments and source receipts](evidence/combined-connected/SOURCE_RECEIPTS.json). Rollback: revert the associated bounded implementation commits; no schema/data migration.
@@ -1,23 +0,0 @@
# Discovery to application: connected native boundary
18 November 2026. Test-only increment on existing `1db5f488` application/export/API, with pinned dependencies unchanged. The two new cases extend the existing `phase7-discovery.spec.ts` fixture and preserve its external-traffic guard. No provider, model or additional international source was activated.
## Verified journey
English/light/1440 desktop and Bokmål/dark/390 phone: discover a synthetic NAV vacancy, open its synthetic source advert, return to results, explicitly review its import preview, choose an existing company, create one actual tracked application, revisit it through the applications interface and verify its full workspace. Search, external advert HTML and import-preview responses are intercepted. Company setup, application creation (201), subsequent API reads, duplicate lookup and foreign-owner denial (404) execute against the isolated actual API and disposable SQLite database.
The application GET DTO does not expose canonical job provenance. A read-only SQLite query joins the linked job with both owner IDs constrained, proving retained source `nav` and country `NO`; the existing generated fixture-root/path guard and query-only connection prevent mutation. Career Profile and company data remain unchanged. Advert language is independently `nb`, including during English UI execution. There is one explicit create, with no automatic creation or alternative-application chooser.
Final result: **2/2 passed, zero skips/unexpected/flaky; four scoped axe scans with zero violations; four retained screenshots**, zero root horizontal overflow. Final TypeScript and scoped ESLint passed. These two cases are additional connected coverage, not a full regression or final A3 acceptance.
The original two failures were verifier mistakes: provenance was asserted on the application DTO rather than its linked job. After correcting that boundary, one desktop assertion still assumed a link where the real keyboard-enabled table exposes a row; the phone exposes a link. Both original and intermediate outputs are retained. No application changes were made to satisfy those assumptions.
## Visual review and limits
The retained desktop workspace shows the approved right-side context and flat section hierarchy. The phone workspace stacks context below content and uses the hybrid bottom navigation. These are full-page captures at the journey's current scroll position: sticky header/bottom navigation appear within the stitched phone image, and the route heading is partly under the header in that capture. This is a capture/scroll review limitation requiring a controlled viewport check, not proof that every screen or header state is accepted. The Bokmål activity entry still displays the server event text `Created`; synthetic company content is English. These captures do not establish complete native-language acceptance or resolve the existing visual discrepancy register.
The fixture advert deadline is historical synthetic data. This package does not exercise live NAV access, provider rights, saved-run ingestion, provider dismissal persistence, extraction/model quality, physical devices, assistive technology, browser zoom, or production. The frozen backend predates the later checklist error-classification correction and analytics aggregate change: combined affected browser validation remains separate.
Exact original/intermediate/final reports, native logs, screenshots, audits, request boundaries, readbacks and LF-normalised source hashes are retained in [evidence receipts](evidence/connected-discovery/SOURCE_RECEIPTS.json). The source test is the rollback unit; no application/data rollback or migration is needed.
AST-only graph refresh passed: 19,963 nodes / 49,440 edges. Existing optional PDF/SQL extractors and symbol-free generated-input warnings remain; no model labeling was run.
@@ -1,55 +0,0 @@
# Native application status, follow-up and calendar connection
18 November 2026. Application baseline `1db5f488f6138e4f0f33749452b7d9f47658f4b0`; roadmap receipt `271d37d1a875256643602db20bbd3c381a291c05`. Isolated branch `codex/a3-connected-followup`. Test/evidence changes only: no application, API, model, provider, data model or scheduling-policy change.
## Missing boundary now exercised
The original 34-route/57-group registers and A3 design/IM10 authority remain unchanged. The existing [controlled follow-up journey](visual-correction/FOLLOWUP_JOURNEY_REVIEW.md) passed eight representative journeys with every response intercepted. It already established the parent refresh-token repair; this package does not repeat that matrix or claim another stale-agenda defect. Existing `phase7-reminders.spec.ts` native tests checked actual reminder dates/history/retry/ownership but did not assert the adjacent calendar's native readback after the user mutation. The separately completed 44-case native package covers other families and is not added to these counts.
Two new cases in the existing `job-tracker-ui/e2e/phase7-reminders.spec.ts` cover EN/light/1440 and Bokmål/dark/390:
- Create a disposable synthetic care-coordinator application, then use the real Applications row menu to set Waiting. Require PATCH204 and durable status readback, preserving the existing follow-up date.
- Open Reminders, schedule three days through the existing control, require PATCH204 and the subsequent actual calendar GET200 with the moved date/recordedAt. The retained policy is absolute-millisecond arithmetic followed by the UTC date slice; no local-calendar/DST reinterpretation.
- Open Month and the populated day, keyboard-open the linked application, require the matching workspace GET200/Waiting, return and retain Month preference.
- Clear the follow-up through the existing control. Require PATCH204, calendar GET200 without that event, the selected day still selected with count zero, unchanged Month mode, empty-day feedback and durable null follow-up with Waiting unchanged.
- Preserve exact status/date payloads and two FollowUpSet history values. No draft/send/model/provider action is issued. Each case records eight reminder GETs from the existing Shell/page/navigation sources, not a claim of one GET per page.
No runtime defect was required to make the new cases pass. The complete affected-file run exposed two inherited verifier failures: both searched for the retired exact header name `Norsk`. Actual snapshots show `Norsk bokmål`. Only those two selector strings changed; existing moved-focus, no-extra-read, explicit retry, captured date and history assertions remain intact. The original negative reports and their source hash are retained.
## Executed results
| Run | Outcome | Accounting |
| --- | --- | --- |
| New focused cases | 2 passed | Initial actual HTTP/browser proof, included again below |
| Affected file before inherited selector repair | 6 passed / 2 failed | Both failures are the obsolete header name, not application behavior |
| Final complete affected file | **8 passed**, zero skipped/unexpected/flaky | Six existing cases plus the two new cases; this is the final total |
Final run retained **21 screenshots and 21 complete all-enabled axe/target-size vectors, zero returned violations**, with incomplete findings preserved. Four screenshots/audits and two native readback records for the new cases are extracted alongside the native receipts. EN desktop and NB phone scheduled-month captures were inspected: recorded date/context, visible selected day and wrapping remain usable in those samples. Full-page sticky navigation can overlay an off-viewport segment in a tall capture; these images do not establish physical-device or comprehensive focus-occlusion acceptance.
Scoped TypeScript compiler API checking the complete spec plus imported types returned zero diagnostics; scoped ESLint and source whitespace checks passed. No full Jest, new application build or backend unit run was performed for this test-only increment.
AST-only `graphify update . --no-cluster` completed exit 0 with 19,930 nodes / 49,369 edges. Generated graph stays local/untracked; missing PDF/SQL extractors and 147 symbol-free inputs (including owned temporary transform-cache data) remain graph limits, not product acceptance gaps.
## Source/runtime identity and isolation
The existing qualified root E-drive frontend export/API DLL were reused read-only through this worktree's own `node_modules`, `out` and API `bin` junctions. Entry comparison found no root working-tree difference from the application baseline under `job-tracker-ui/src` or `JobTrackerApi`. Frontend source tree: `6a8b38361f57f199ebe298d2193de63d90b009e4`. Backend tree: `b7701b2459186f665fe5759a533b6e434cc122b0`, identical at `eb253877` and this baseline, so the previously qualified Release API binary was reused. No installation, shared module/export/binary mutation, rebuild or restore.
The existing Playwright config managed fresh API5302/UI3300, disposable E-drive SQLite, synthetic Identity/CSRF/session accounts and one serial Chromium worker. `PLAYWRIGHT_STATIC_EXPORT=true`, `PLAYWRIGHT_PREBUILT_EXPORT=true`, `PLAYWRIGHT_REUSE_SERVERS=false`; SDK host `C:/Users/Connor/.dotnet/dotnet.exe`; TEMP/TMP and test output remain on E. Model/import/alert workers and delivery remain disabled under the existing fixture contracts. External requests are blocked by the existing owner fixture: final report records zero blocked external attempts. Both owned ports were confirmed closed after the run.
From `job-tracker-ui`, the native test command was:
```text
rtk proxy node node_modules/@playwright/test/cli.js test e2e/phase7-reminders.spec.ts --project chromium --workers=1 --reporter=line,json
```
Exact source, raw/gzip native hashes, original-source derivation, case outcomes and extracted artifacts are bound in [SOURCE_RECEIPTS.json](evidence/connected-calendar/SOURCE_RECEIPTS.json). Traces and disposable credentials stay outside Git.
## Backend log finding remains open
Both affected runs logged `UNIQUE constraint failed: ApplicationChecklistItems.JobApplicationId, ApplicationChecklistItems.SystemKey`. The final log also contains a middleware exception stack naming `JobApplicationsController.GetReminders` at line 689. No backend fix or clean-server claim is made. The focused new-two-case run did not record that uniqueness error; this does not establish absence.
Exact local native log: `E:/Storage/Projects/Active/temp docs/jobjakt-local-build/a3-connected-followup/.artifacts/reminders-qualified.log` (UTF-16LE). Its byte-identical gzip is committed as `evidence/connected-calendar/reminders-qualified.log.gz`. The uniqueness exception chain appears at lines 39/57 following the first existing test marker at line 29. New EN/NB test markers appear at 75/76, followed by the remaining middleware stack through 107 (`GetReminders` at 88). Native EN case start `2026-11-18T12:12:30.248Z`, duration 6,969 ms; NB start `12:12:37.228Z`, duration 7,448 ms; both have empty Playwright error arrays.
Server lines lack request IDs/timestamps, and the existing request-boundary collector records request metadata rather than unsolicited GET response statuses. Therefore this evidence cannot correlate the exception to a specific Shell/page GET or infer its client response status. Selected status/follow-up/calendar/workspace responses are asserted separately. Concurrent Shell/page reminder materialization is a reproduction candidate, not an established cause. Root was notified for independent backend triage.
SQLite migration/Data Protection and Node color-environment warnings remain in raw logs. No warning suppression or database workaround was used. MariaDB/hosted CI, real delivery/providers, timezone/precision/interview scheduling models, native devices/AT/native-language, final owner/A3/Phase10/security/recovery/release acceptance remain separate. No orchestrator, push, main merge or deployment.
@@ -1,162 +0,0 @@
{
"application": "1ec1542936e6f8ce466a8b805f7502ea986f27ab",
"executionBranchHead": "e2629c9d",
"stats": {
"startTime": "2026-11-18T17:57:43.516Z",
"duration": 45413.711,
"expected": 4,
"skipped": 0,
"unexpected": 0,
"flaky": 0
},
"scans": 8,
"screenshots": 8,
"sourcesSha256": {
"JobTrackerApi/Services/AnalyticsService.cs": "0859ad9202bbaf4de810f8b1bc9946cbed061f69105c02993f079715f59aa2b1",
"JobTrackerApi/Services/ApplicationChecklistService.cs": "0c807ab96cbb4a638d3f5ba62b2608cdfb599751df2de4e3d58b6d599b69b5e8",
"JobTrackerApi/bin/Release/net9.0/JobTrackerApi.dll": "c46c42392a544b426db8acaed1ab48d175836069fc9c071c60b6d267bfe29072",
"job-tracker-ui/e2e/phase7-discovery.spec.ts": "bcf2c84d0bc86d6fa6fdf43b62eaa70e066acf3ba1425b9496b6c9ea5ac7de46",
"job-tracker-ui/e2e/phase7-reminders.spec.ts": "dab45b17dcb5963ef45f6ec8b00f5476d2eeb9e14e83776de23235ca94267e45",
"job-tracker-ui/playwright.config.ts": "9252c961ac2779485bb72b24c31d526773d7c09f764eca638c4c1d47235e9f65",
"job-tracker-ui/package-lock.json": "7ebd728f99a1ed9a5334542fb578b30127b4a0c7984efe2913266e89e2fbfbd3",
"job-tracker-ui/out/index.html": "31dfd9b2d2e7ea7d9e696b5485d24d7b8daf0b1e078e6539e94a04955b8ff1f8"
},
"artifacts": [
{
"file": "combined-connected.json.gz",
"bytes": 730768,
"sha256": "469576593c2cd8a03972106f8c4940d0c7370942c26414b66318d8ebe48ef7a8"
},
{
"file": "combined-connected.txt.gz",
"bytes": 1012,
"sha256": "e818d13e41c00f68126935748e3f29a45b8d162c11dab335187c5e75e29280b6"
},
{
"file": "combined-api-build.txt.gz",
"bytes": 195,
"sha256": "2a2b2009fff6684fb11d0de9a34304c802b587d15f9c9f0a619b0717ddc64374"
},
{
"file": "discovery-en-p7-discovery-en-light-1440-connected-fixture-result-return-audit.json",
"bytes": 10841,
"sha256": "abfb946f956a214aa64675ed02508f26ee8b885d9d3f28c87b1a1697e1c38814"
},
{
"file": "discovery-en-p7-discovery-en-light-1440-connected-fixture-result-return.png",
"bytes": 93768,
"sha256": "585938f848e8eb5b8ced8f64fe8fbaa1b61c03e6a6fcb761c474c7d8a7546dac"
},
{
"file": "discovery-en-connected-native-tracker-readbacks.json",
"bytes": 3739,
"sha256": "e0f89c19d78bfcf1f537efc924b87f0647d7949e133f8dd29bbfd65c1265aa3d"
},
{
"file": "discovery-en-p7-discovery-en-light-1440-connected-native-workspace-audit.json",
"bytes": 9267,
"sha256": "3b40499d0a139f6e0fb1e8ad1edc3361c60d8fcbea588c7c85a69c2bc00c9f27"
},
{
"file": "discovery-en-p7-discovery-en-light-1440-connected-native-workspace.png",
"bytes": 122626,
"sha256": "84fd3e413476353bedfe9e7221d1c2140018bd590ad78af5582e30bc8bc4fc38"
},
{
"file": "discovery-en-discovery-request-boundary.json",
"bytes": 1264,
"sha256": "1b566579e51d569be46ed43d6fc8fb8b4cf4959831493bccb0dd67086fe2ed30"
},
{
"file": "discovery-nb-p7-discovery-nb-dark-390-connected-fixture-result-return-audit.json",
"bytes": 11333,
"sha256": "f9a09992219a3a5ff0f9848785227eccb34f336af3281c4343fc6665aab4e52d"
},
{
"file": "discovery-nb-p7-discovery-nb-dark-390-connected-fixture-result-return.png",
"bytes": 41080,
"sha256": "907ab5bba5793caa220a974506b791b28183e1e1b1bde82b26bb8ba3d69634e7"
},
{
"file": "discovery-nb-connected-native-tracker-readbacks.json",
"bytes": 3737,
"sha256": "2b0cb04374867d23b033e542cbd27006f5f25a90dccb7c280c3530faf4f64c5f"
},
{
"file": "discovery-nb-p7-discovery-nb-dark-390-connected-native-workspace-audit.json",
"bytes": 14328,
"sha256": "714231108ce7ee9781e16d3ac6a4780eaada0685e15c2b03ec7e3be713c40614"
},
{
"file": "discovery-nb-p7-discovery-nb-dark-390-connected-native-workspace.png",
"bytes": 81638,
"sha256": "eacdcadd05b014cb45e0038486513fa828a7a099f004c73d3468ebd5d597db1b"
},
{
"file": "discovery-nb-discovery-request-boundary.json",
"bytes": 1264,
"sha256": "1b566579e51d569be46ed43d6fc8fb8b4cf4959831493bccb0dd67086fe2ed30"
},
{
"file": "calendar-en-p7-reminders-en-light-1440-connected-status-scheduled-month-audit.json",
"bytes": 15937,
"sha256": "c5ec062d98a065579d7d90744be53c4d93872e54a5f81facc892cbb4d813ef35"
},
{
"file": "calendar-en-p7-reminders-en-light-1440-connected-status-scheduled-month.png",
"bytes": 108611,
"sha256": "75522112b2266a7c1839dd568425df6a6936c6638daf562e0ac9c7b1e715e302"
},
{
"file": "calendar-en-p7-reminders-en-light-1440-connected-cleared-selected-day-audit.json",
"bytes": 15112,
"sha256": "4cbdca1279d1d34ada9d93edc7a1287cbca1609414f8b83e89d58c17d8d12044"
},
{
"file": "calendar-en-p7-reminders-en-light-1440-connected-cleared-selected-day.png",
"bytes": 103893,
"sha256": "97489a0eac4c270f141c0e443414e91510edbb677e1df14cffe282e1392847a5"
},
{
"file": "calendar-en-connected-calendar-native-readbacks.json",
"bytes": 4543,
"sha256": "6b980f237490ea3adeb2d42e8a7a211046245b240ba5b58f8e25230e6e5f81bd"
},
{
"file": "calendar-en-reminders-request-boundary.json",
"bytes": 2464,
"sha256": "79a6723a8ce0963884787861f4b2a0e794a6164ef07ec1d5d9801bf8ae46c8fb"
},
{
"file": "calendar-nb-p7-reminders-nb-dark-390-connected-status-scheduled-month-audit.json",
"bytes": 16897,
"sha256": "157d6b8b31f076a477ff3be79f203be563b4f69e928d76a6234e4763be21b891"
},
{
"file": "calendar-nb-p7-reminders-nb-dark-390-connected-status-scheduled-month.png",
"bytes": 71335,
"sha256": "cb052d8cbbbd1f947b018fef4a766e5b73d34d9389411d39cac28bbcbc878049"
},
{
"file": "calendar-nb-p7-reminders-nb-dark-390-connected-cleared-selected-day-audit.json",
"bytes": 16099,
"sha256": "d1ea35c624166edceecd80eef7b9443a01e867806cbad96a512cd5947351c93a"
},
{
"file": "calendar-nb-p7-reminders-nb-dark-390-connected-cleared-selected-day.png",
"bytes": 68123,
"sha256": "e1f4dc9eae3ba585e2ae3e0d114fb493da000010453ef70ed95a013e53bab726"
},
{
"file": "calendar-nb-connected-calendar-native-readbacks.json",
"bytes": 4542,
"sha256": "e6ec078dbbed51bc552ee0b9273e70637e27f7a9899ac16dcc8aa9bb36348f31"
},
{
"file": "calendar-nb-reminders-request-boundary.json",
"bytes": 2464,
"sha256": "0bb856c14aecae8dfba9d088858a6662d2ea7346ae73cf4ea20589a71030c8fe"
}
],
"boundary": "Fresh Release API, unchanged frontend export reused; loopback disposable SQLite, external provider/model operations disabled or fixtures. Four cases overlap prior connected evidence."
}
@@ -1 +0,0 @@
{"boundary":"Actual owner HTTP fixtures, follow-up PATCH204, reloads, history and ownership checks use disposable isolated SQLite. Free account entitlements disable model access; the serial runtime disables AI, follow-up delivery and saved-search alert workers. No provider/model/send endpoint, raw SQL or schema is invoked. Controlled PATCH/GET failure and held requests qualify presentation and recovery, not production reliability. Browser request metadata excludes session/CSRF headers. The Shell independently requests the identical reminders?upcomingDays=14 endpoint initially and every60s; observed counts retain that source and do not claim one total GET per page. Existing absolute-millisecond-to-UTC-date scheduling and followMode route metadata are preserved; no DST/calendar or deferred composer qualification is claimed.","sample":{"language":"en","theme":"light","width":1440,"height":900},"waiting":{"id":3,"companyId":3,"company":{"id":3,"ownerUserId":"a49a2972-d293-4792-872d-30a20b770881","name":"Connected synthetic care employer","location":"Oslo","source":"User","recruiterName":null,"recruiterEmail":null,"recruiterLinkedIn":null,"lastContactedAt":null,"nextContactAt":null,"pipelineStage":null},"jobTitle":"Recorded community care coordinator — æøå","status":"Waiting","dateApplied":"2026-01-01T12:00:00","savedAt":"2026-11-18T17:58:10.5808212","responseReceived":false,"responseDate":null,"notes":null,"coverLetterText":null,"jobUrl":null,"description":null,"translatedDescription":null,"descriptionLanguage":null,"tags":null,"deadline":null,"location":null,"salary":null,"salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":"2026-10-14T00:00:00","feedbackRequestedAt":null,"hasResume":false,"hasCoverLetter":false,"hasPortfolio":false,"hasOtherAttachment":false,"isDeleted":false,"deletedAt":null,"daysSince":321,"needsFollowUp":true,"followUpReason":"Waiting 14d","tailoredCvText":null,"workflowSignal":{"actionKey":"package-work","reason":"Tailored CV and saved application answers still need work.","workspaceTab":"tailored-cv","followMode":null,"needsAttention":true,"hasPackageGap":true,"needsInterviewPrep":false,"needsFollowUpAction":true,"hasTailoredCv":false,"hasSavedApplicationAnswerDraft":false,"hasInterviewPrepNotes":false},"shortSummary":null,"fullSummary":null,"version":2},"scheduledItems":[{"jobApplicationId":3,"jobTitle":"Recorded community care coordinator — æøå","companyName":"Connected synthetic care employer","kind":"follow-up","date":"2026-10-16","recordedAt":"2026-10-16T00:00:00"}],"final":{"id":3,"companyId":3,"company":{"id":3,"ownerUserId":"a49a2972-d293-4792-872d-30a20b770881","name":"Connected synthetic care employer","location":"Oslo","source":"User","recruiterName":null,"recruiterEmail":null,"recruiterLinkedIn":null,"lastContactedAt":null,"nextContactAt":null,"pipelineStage":null},"jobTitle":"Recorded community care coordinator — æøå","status":"Waiting","dateApplied":"2026-01-01T12:00:00","savedAt":"2026-11-18T17:58:10.5808212","responseReceived":false,"responseDate":null,"notes":null,"coverLetterText":null,"jobUrl":null,"description":null,"translatedDescription":null,"descriptionLanguage":null,"tags":null,"deadline":null,"location":null,"salary":null,"salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":null,"feedbackRequestedAt":null,"hasResume":false,"hasCoverLetter":false,"hasPortfolio":false,"hasOtherAttachment":false,"isDeleted":false,"deletedAt":null,"daysSince":321,"needsFollowUp":true,"followUpReason":"Waiting 14d","tailoredCvText":null,"workflowSignal":{"actionKey":"package-work","reason":"Tailored CV and saved application answers still need work.","workspaceTab":"tailored-cv","followMode":null,"needsAttention":true,"hasPackageGap":true,"needsInterviewPrep":false,"needsFollowUpAction":true,"hasTailoredCv":false,"hasSavedApplicationAnswerDraft":false,"hasInterviewPrepNotes":false},"shortSummary":null,"fullSummary":null,"version":4},"history":[{"id":5,"type":"FollowUpSet","oldValue":"2026-10-14T00:00:00.0000000","newValue":"2026-10-16T00:00:00.0000000","note":null,"at":"2026-11-18T18:58:13.3698069"},{"id":6,"type":"FollowUpSet","oldValue":"2026-10-16T00:00:00.0000000","newValue":null,"note":null,"at":"2026-11-18T18:58:16.6970157"}],"qualification":"Actual disposable status/followup/calendar/workspace HTTP. Preserved UTC-slice scheduling only; no delivery/provider, timezone migration or interview appointment model."}
@@ -1 +0,0 @@
{"boundary":"Actual owner HTTP fixtures, follow-up PATCH204, reloads, history and ownership checks use disposable isolated SQLite. Free account entitlements disable model access; the serial runtime disables AI, follow-up delivery and saved-search alert workers. No provider/model/send endpoint, raw SQL or schema is invoked. Controlled PATCH/GET failure and held requests qualify presentation and recovery, not production reliability. Browser request metadata excludes session/CSRF headers. The Shell independently requests the identical reminders?upcomingDays=14 endpoint initially and every60s; observed counts retain that source and do not claim one total GET per page. Existing absolute-millisecond-to-UTC-date scheduling and followMode route metadata are preserved; no DST/calendar or deferred composer qualification is claimed.","requests":[{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null},{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null},{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null},{"method":"GET","path":"/api/jobapplications","query":{"page":"1","pageSize":"15","includeDeleted":"false","sortBy":"dateApplied","sortDir":"desc"},"body":null},{"method":"PATCH","path":"/api/jobapplications/3/status","query":{},"body":{"status":"Waiting"}},{"method":"GET","path":"/api/jobapplications","query":{"page":"1","pageSize":"15","includeDeleted":"false","sortBy":"dateApplied","sortDir":"desc"},"body":null},{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null},{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null},{"method":"PATCH","path":"/api/jobapplications/3/followup","query":{},"body":{"followUpAt":"2026-10-16"}},{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null},{"method":"GET","path":"/api/jobapplications/3/status-suggestion","query":{},"body":null},{"method":"GET","path":"/api/jobapplications/3/workspace","query":{},"body":null},{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null},{"method":"PATCH","path":"/api/jobapplications/3/followup","query":{},"body":{"followUpAt":null}},{"method":"GET","path":"/api/jobapplications/reminders","query":{"upcomingDays":"14"},"body":null}],"blockedExternalRequests":[]}
@@ -1 +0,0 @@
{"boundary":"Actual owner HTTP fixtures, follow-up PATCH204, reloads, history and ownership checks use disposable isolated SQLite. Free account entitlements disable model access; the serial runtime disables AI, follow-up delivery and saved-search alert workers. No provider/model/send endpoint, raw SQL or schema is invoked. Controlled PATCH/GET failure and held requests qualify presentation and recovery, not production reliability. Browser request metadata excludes session/CSRF headers. The Shell independently requests the identical reminders?upcomingDays=14 endpoint initially and every60s; observed counts retain that source and do not claim one total GET per page. Existing absolute-millisecond-to-UTC-date scheduling and followMode route metadata are preserved; no DST/calendar or deferred composer qualification is claimed.","sample":{"language":"nb","theme":"dark","width":390,"height":844},"waiting":{"id":4,"companyId":4,"company":{"id":4,"ownerUserId":"b5560773-049c-4045-8fdb-9e0eefe17446","name":"Connected synthetic care employer","location":"Oslo","source":"User","recruiterName":null,"recruiterEmail":null,"recruiterLinkedIn":null,"lastContactedAt":null,"nextContactAt":null,"pipelineStage":null},"jobTitle":"Recorded community care coordinator — æøå","status":"Waiting","dateApplied":"2026-01-01T12:00:00","savedAt":"2026-11-18T17:58:19.6056642","responseReceived":false,"responseDate":null,"notes":null,"coverLetterText":null,"jobUrl":null,"description":null,"translatedDescription":null,"descriptionLanguage":null,"tags":null,"deadline":null,"location":null,"salary":null,"salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":"2026-10-14T00:00:00","feedbackRequestedAt":null,"hasResume":false,"hasCoverLetter":false,"hasPortfolio":false,"hasOtherAttachment":false,"isDeleted":false,"deletedAt":null,"daysSince":321,"needsFollowUp":true,"followUpReason":"Waiting 14d","tailoredCvText":null,"workflowSignal":{"actionKey":"package-work","reason":"Tailored CV and saved application answers still need work.","workspaceTab":"tailored-cv","followMode":null,"needsAttention":true,"hasPackageGap":true,"needsInterviewPrep":false,"needsFollowUpAction":true,"hasTailoredCv":false,"hasSavedApplicationAnswerDraft":false,"hasInterviewPrepNotes":false},"shortSummary":null,"fullSummary":null,"version":2},"scheduledItems":[{"jobApplicationId":4,"jobTitle":"Recorded community care coordinator — æøå","companyName":"Connected synthetic care employer","kind":"follow-up","date":"2026-10-16","recordedAt":"2026-10-16T00:00:00"}],"final":{"id":4,"companyId":4,"company":{"id":4,"ownerUserId":"b5560773-049c-4045-8fdb-9e0eefe17446","name":"Connected synthetic care employer","location":"Oslo","source":"User","recruiterName":null,"recruiterEmail":null,"recruiterLinkedIn":null,"lastContactedAt":null,"nextContactAt":null,"pipelineStage":null},"jobTitle":"Recorded community care coordinator — æøå","status":"Waiting","dateApplied":"2026-01-01T12:00:00","savedAt":"2026-11-18T17:58:19.6056642","responseReceived":false,"responseDate":null,"notes":null,"coverLetterText":null,"jobUrl":null,"description":null,"translatedDescription":null,"descriptionLanguage":null,"tags":null,"deadline":null,"location":null,"salary":null,"salaryMin":null,"salaryMax":null,"salaryCurrency":null,"salaryPeriod":null,"nextAction":null,"followUpAt":null,"feedbackRequestedAt":null,"hasResume":false,"hasCoverLetter":false,"hasPortfolio":false,"hasOtherAttachment":false,"isDeleted":false,"deletedAt":null,"daysSince":321,"needsFollowUp":true,"followUpReason":"Waiting 14d","tailoredCvText":null,"workflowSignal":{"actionKey":"package-work","reason":"Tailored CV and saved application answers still need work.","workspaceTab":"tailored-cv","followMode":null,"needsAttention":true,"hasPackageGap":true,"needsInterviewPrep":false,"needsFollowUpAction":true,"hasTailoredCv":false,"hasSavedApplicationAnswerDraft":false,"hasInterviewPrepNotes":false},"shortSummary":null,"fullSummary":null,"version":4},"history":[{"id":9,"type":"FollowUpSet","oldValue":"2026-10-14T00:00:00.0000000","newValue":"2026-10-16T00:00:00.0000000","note":null,"at":"2026-11-18T18:58:22.4492282"},{"id":10,"type":"FollowUpSet","oldValue":"2026-10-16T00:00:00.0000000","newValue":null,"note":null,"at":"2026-11-18T18:58:25.8603492"}],"qualification":"Actual disposable status/followup/calendar/workspace HTTP. Preserved UTC-slice scheduling only; no delivery/provider, timezone migration or interview appointment model."}

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