From df998cc581db266444481df06711340552f18129 Mon Sep 17 00:00:00 2001 From: Ricel Leite Date: Wed, 18 Feb 2026 18:18:54 -0300 Subject: [PATCH] feat: Professional dashboard UI - Stats cards (Total, Analyzed, PRs, Confidence) - Issue list with filters - Issue detail modal - Integrations status panel - Repository info panel - Webhook endpoints reference --- api/main_v2.py | 362 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 322 insertions(+), 40 deletions(-) diff --git a/api/main_v2.py b/api/main_v2.py index 49fde17..cc5ccc0 100644 --- a/api/main_v2.py +++ b/api/main_v2.py @@ -343,46 +343,329 @@ async def get_issue(issue_id: int): return dict(row) # Dashboard HTML + +# Dashboard HTML +from app.dashboard_html import DASHBOARD_HTML if False else None # noqa + DASHBOARD_HTML = """ - -JIRA AI Fixer - -
-
-
-
🤖

JIRA AI Fixer

-Intelligent Support Case Resolution -
-
-
-
-
Total Issues
-
-
Analyzed
-
-
Pending
-
-
-

Recent Issues

-
-
-
-""" + + + + + JIRA AI Fixer + + + + + + +
+
+
+
+ 🤖 +
+

JIRA AI Fixer

+

Intelligent Support Case Resolution

+
+
+
+ ● Online +
+
+
+
+ +
+ +
+
+
+
+

Total Issues

+

0

+
+
+ 📋 +
+
+
+
+
+
+

Analyzed

+

0

+
+
+ +
+
+
+
+
+
+

PRs Created

+

0

+
+
+ 🔀 +
+
+
+
+
+
+

Avg Confidence

+

0%

+
+
+ 🎯 +
+
+
+
+ + +
+ +
+
+

Recent Issues

+ +
+
+
Loading...
+
+
+ + +
+ +
+

Integrations

+
+
+
+ 🎫 + TicketHub +
+ Active +
+
+
+ 📦 + Gitea +
+ Active +
+
+
+ 🔵 + JIRA +
+ Ready +
+
+
+ ⚙️ + ServiceNow +
+ Ready +
+
+
+ + +
+

Repositories

+
+
+ 📁 +
+

cobol-sample-app

+

4 COBOL files indexed

+
+
+
+
+ + +
+

Webhook Endpoints

+
+
+ POST /api/webhook/tickethub +
+
+ POST /api/webhook/jira +
+
+
+
+
+
+ + + + + + +""" @app.get("/", response_class=HTMLResponse) async def dashboard(): @@ -391,7 +674,6 @@ async def dashboard(): @app.get("/dashboard", response_class=HTMLResponse) async def dashboard_alt(): return DASHBOARD_HTML - # ============================================ # GIT INTEGRATION - Create Branch and PR # ============================================