fix: show "General" headers for items without area/project in focus hierarchy

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 15:26:51 +00:00
parent ee757febbe
commit 963ad6b1c3
2 changed files with 2 additions and 6 deletions

View File

@@ -73,13 +73,13 @@ async def focus_view(
domain_map[dk] = {"label": dl, "color": dc, "areas": OrderedDict()}
ak = item.get("effective_area_id") or "__none__"
al = item.get("area_name") or ""
al = item.get("area_name") or "General"
area_map = domain_map[dk]["areas"]
if ak not in area_map:
area_map[ak] = {"label": al, "projects": OrderedDict()}
pk = item.get("effective_project_id") or "__none__"
pl = item.get("project_name") or ""
pl = item.get("project_name") or "General"
proj_map = area_map[ak]["projects"]
if pk not in proj_map:
proj_map[pk] = {"label": pl, "rows": []}