Add burst job scheduling, enhance timeline lane management, and improve tooltip functionality

This commit is contained in:
2026-05-25 20:01:24 +12:00
parent 3be35f6b0a
commit 469ac9bc5a
8 changed files with 105 additions and 10 deletions
+21
View File
@@ -140,6 +140,27 @@ def get_fake_jobs(now: datetime) -> list[FakeReconJob]:
),
]
# A burst of jobs all scheduled at the same time (16:00) — the engine will
# serialise these so the dashboard caps the stack at 3 lanes and chains the
# rest horizontally on the bottom lane.
burst_due = _at(today, 16, 0) if now < _at(today, 16, 0) else now + timedelta(minutes=30)
burst_names = [
("Branch Cash Recon", "branch-cash"),
("Card Settlement Recon", "card-settlement"),
("ATM Float Recon", "atm-float"),
("Loan Disbursement Recon","loan-disb"),
("Mortgage Payment Recon", "mortgage-pmt"),
("Term Deposit Recon", "term-deposit"),
("Wire Transfer Recon", "wire-transfer"),
]
for i, (name, ref) in enumerate(burst_names):
jobs.append(FakeReconJob(
id=210 + i, name=name, as_at_date=today,
recon_config_reference=ref,
due_datetime=burst_due,
status="created",
))
# Add a 7-day history (excluding the two days above) so totals look real.
history_template = [
("FX Settlement Recon", "fx-settlement", 6, 45, "completed"),