fix: show "General" headers for items without area/project in focus hierarchy
Items without a project or area were missing group headers, causing them to appear under the previous project's group visually. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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": []}
|
||||
|
||||
Reference in New Issue
Block a user