Add author detail, idea detail, and gap-draft reverse link pages

- Author detail page (/authors/<person_id>): shows author info, all drafts
  with ratings, and co-authors with shared draft counts. Public route.
- Idea detail page (/ideas/<idea_id>): shows idea metadata, source draft,
  and top-5 most similar ideas via embedding cosine similarity. Admin route.
- Gap detail page: added "Related Drafts" section that finds drafts by
  extracting draft names from evidence text and searching by topic keywords.
- Updated author links across templates to use /authors/<person_id> URLs.
- Added DB methods: get_author_by_id, get_author_drafts, get_coauthors.
- Extended top_authors to include person_id (5th tuple element).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 03:45:00 +01:00
parent 4a368bde62
commit c755b2bbf3
16 changed files with 548 additions and 18 deletions

View File

@@ -37,6 +37,7 @@ from webui.data.authors import ( # noqa: F401
get_coauthor_network,
get_cross_org_data,
get_author_network_full,
get_author_detail,
)
# Ratings
@@ -51,6 +52,7 @@ from webui.data.ratings import ( # noqa: F401
from webui.data.gaps import ( # noqa: F401
get_all_gaps,
get_gap_detail,
get_drafts_for_gap,
)
# Analysis & Visualization
@@ -74,6 +76,7 @@ from webui.data.analysis import ( # noqa: F401
get_comparison_data,
get_architecture,
get_idea_analysis,
get_idea_detail,
get_trends_data,
get_complexity_data,
get_source_comparison,