Updated backend to calculate employee tier with spiky skill distribution; simplified domain count to 4

This commit is contained in:
Muyu He 2026-03-05 18:12:48 -08:00
parent 6d6f0a855d
commit eb18c5a90c
22 changed files with 226 additions and 864 deletions

View file

@ -18,13 +18,10 @@ SPARK_CHARS = "▁▂▃▄▅▆▇█"
# Domain → (display name, color) for styled inline display
DOMAIN_STYLE = {
"system": ("System", "bright_cyan"),
"research": ("Research", "bright_magenta"),
"data": ("Data", "bright_blue"),
"frontend": ("Frontend", "bright_yellow"),
"backend": ("Backend", "bright_green"),
"training": ("Training", "red"),
"hardware": ("Hardware", "white"),
"research": ("Research", "bright_magenta"),
"inference": ("Inference", "bright_cyan"),
"data_environment": ("Data/Env", "bright_blue"),
"training": ("Training", "red"),
}
@ -132,7 +129,7 @@ def _query_detailed_snapshot(db_factory, company_id) -> dict[str, Any]:
]
deadline_str = t.deadline.strftime("%Y-%m-%d") if t.deadline else "-"
tasks_detail.append(TaskInfo(
title=t.title,
title=t.title[:20],
status=status.value,
prestige=t.required_prestige,
reward_dollars=t.reward_funds_cents / 100.0,