diff --git a/src/webui/data.py b/src/webui/data.py index 915bd9a..3f04572 100644 --- a/src/webui/data.py +++ b/src/webui/data.py @@ -572,15 +572,22 @@ def get_author_network_full(db: Database) -> dict: if len(component) >= 2: org_mix: dict[str, int] = Counter() + cluster_drafts: dict[str, str] = {} # name -> title for m in component: org = author_info.get(m, {}).get("org", "") if org: org_mix[org] += 1 + for dn in author_info.get(m, {}).get("drafts", []): + if dn not in cluster_drafts: + d = db.get_draft(dn) + cluster_drafts[dn] = d.title[:80] if d else dn clusters.append({ "id": len(clusters), "members": component, "org_mix": dict(org_mix.most_common()), "size": len(component), + "drafts": [{"name": n, "title": t} for n, t in list(cluster_drafts.items())[:15]], + "draft_count": len(cluster_drafts), }) clusters.sort(key=lambda c: c["size"], reverse=True) diff --git a/src/webui/templates/authors.html b/src/webui/templates/authors.html index 6adfef2..d7d7063 100644 --- a/src/webui/templates/authors.html +++ b/src/webui/templates/authors.html @@ -118,16 +118,31 @@