Skip to content

feat(research): Implement Research Area System with Markdown Support#14

Merged
TKanX merged 18 commits intomainfrom
feature/13-implement-research-area-list-and-detail-pages
Jan 30, 2026
Merged

feat(research): Implement Research Area System with Markdown Support#14
TKanX merged 18 commits intomainfrom
feature/13-implement-research-area-list-and-detail-pages

Conversation

@TKanX
Copy link
Copy Markdown
Member

@TKanX TKanX commented Jan 30, 2026

Summary:

Implemented a robust system for managing and displaying research areas, featuring a hierarchical list view and detailed pages for individual topics. This update introduces Markdown rendering capabilities for rich content presentation and sophisticated database queries to aggregate statistics across parent and child research areas.

Changes:

  • Implemented Research List Page (src/app/(public)/research/page.tsx):

    • Designed a hierarchical view using ResearchHierarchy to display research areas and their sub-topics.
    • Added an overall statistics dashboard showing total research areas, publications, and citations.
  • Implemented Research Detail Page (src/app/(public)/research/[slug]/page.tsx):

    • Created a detail view featuring:
      • Rich Content: Integrated react-markdown with GFM and syntax highlighting support for rendering research descriptions.
      • Statistics: Real-time metrics for publications, researchers, and citations specific to the area.
      • Breadcrumbs: Navigation aid for hierarchical traversal.
      • Sub-areas: Grid display of child research topics.
      • Researchers: List of members associated with the area.
      • Publications: Chronological list of publications, expandable by year (PublicationsByYear).
  • Developed Database Queries (src/lib/db/queries/research.ts):

    • Implemented getResearchAreasHierarchy to fetch and structure nested research data.
    • Created logic to aggregate statistics (citations, counts) from child areas up to parent areas.
    • Added breadcrumb generation logic.
  • Enhanced UI Components:

    • Markdown Component: Added src/components/ui/markdown.tsx using @tailwindcss/typography for beautiful prose styling.
    • Research Cards: Created ResearchCard for consistent display of research topics in lists and grids.
    • Member Lists: Added ResearchMemberList for displaying associated researchers.
  • Updated Configuration & Dependencies:

    • Added @tailwindcss/typography, react-markdown, rehype-highlight, and remark-gfm for content rendering.
    • Configured tailwind.config.ts with a custom typography theme that adapts to light/dark modes.
    • Updated seed data to include a new "Machine Learning" research area with rich Markdown content and associated publications.

TKanX added 15 commits January 29, 2026 20:08
@TKanX TKanX self-assigned this Jan 30, 2026
Copilot AI review requested due to automatic review settings January 30, 2026 07:43
@TKanX TKanX added the enhancement ✨ New feature or request label Jan 30, 2026
@TKanX TKanX linked an issue Jan 30, 2026 that may be closed by this pull request
8 tasks
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements a comprehensive research area management system with hierarchical organization, Markdown content support, and statistical aggregation. The system allows for parent-child relationships between research areas and displays them with rich content, publication lists, and member associations.

Changes:

  • Added database query layer for research areas with hierarchical structure and statistics aggregation
  • Implemented research list and detail pages with Markdown rendering using react-markdown
  • Created UI components for displaying research areas in hierarchical card layouts
  • Configured Tailwind typography plugin with custom theme for prose styling
  • Added seed data for demonstration including a standalone "Machine Learning" research area

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/lib/db/queries/research.ts New database query module for research areas with statistics calculations and hierarchy management
src/types/index.ts Added type definitions for research areas with hierarchy, stats, and detail views
src/lib/metadata.ts Added metadata helper function for research area pages
src/components/ui/markdown.tsx New Markdown rendering component with GFM and syntax highlighting support
src/components/research/research-card.tsx Card component for displaying research area summaries with stats and member avatars
src/components/research/research-hierarchy.tsx Hierarchical layout component with visual connectors for parent-child relationships
src/components/research/research-member-list.tsx Member list component with avatars and positions for research areas
src/components/research/index.ts Barrel export for research components
src/app/(public)/research/page.tsx Research areas list page with overall statistics dashboard
src/app/(public)/research/[slug]/page.tsx Research area detail page with content, breadcrumbs, sub-areas, members, and publications
src/app/(public)/research/[slug]/publications-by-year.tsx Client component for displaying publications grouped and paginated by year
tailwind.config.ts Added typography plugin with custom prose styles for light/dark modes
package.json Added dependencies: react-markdown, rehype-highlight, remark-gfm, @tailwindcss/typography
package-lock.json Lock file updates for new dependencies
prisma/seed.ts Added Machine Learning research area with Markdown content and associated publications

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib/db/queries/research.ts Outdated
Comment thread src/lib/db/queries/research.ts Outdated
Comment thread src/lib/db/queries/research.ts Outdated
Comment thread src/lib/db/queries/research.ts Outdated
@TKanX TKanX force-pushed the feature/13-implement-research-area-list-and-detail-pages branch from 0ceeeb0 to dd7b795 Compare January 30, 2026 08:05
@TKanX TKanX merged commit aec7880 into main Jan 30, 2026
2 checks passed
@TKanX TKanX deleted the feature/13-implement-research-area-list-and-detail-pages branch January 30, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ✨ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Research Area List and Detail Pages

2 participants