tech-debt-visualizer 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,6 +41,12 @@ function buildHtml(run, title, darkMode) {
41
41
  <meta charset="UTF-8" />
42
42
  <meta name="viewport" content="width=device-width, initial-scale=1" />
43
43
  <title>${escapeHtml(title)}</title>
44
+ <meta property="og:title" content="${escapeHtml(title)} — ${cleanliness.tier}/5 ${escapeHtml(cleanliness.label)}" />
45
+ <meta property="og:description" content="${escapeHtml(cleanliness.description)}" />
46
+ <meta property="og:type" content="website" />
47
+ <meta name="twitter:card" content="summary" />
48
+ <meta name="twitter:title" content="${escapeHtml(title)} — ${cleanliness.tier}/5" />
49
+ <meta name="twitter:description" content="${escapeHtml(cleanliness.label)}: ${escapeHtml(cleanliness.description)}" />
44
50
  <style>
45
51
  :root {
46
52
  --bg: #fff;
@@ -80,24 +86,28 @@ function buildHtml(run, title, darkMode) {
80
86
  .hero-caption { font-size: 12px; color: var(--text-muted); margin: 0 0 0.5rem; text-align: center; }
81
87
  .hero { text-align: center; margin-bottom: 1.5rem; }
82
88
  .score-badge {
83
- display: inline-block;
84
- width: 100px;
85
- padding: 0.75rem 0.5rem;
86
- background: var(--surface);
87
- color: var(--tier-fg);
88
- border: 2px solid var(--tier-fg);
89
+ display: inline-flex;
90
+ flex-direction: column;
91
+ align-items: center;
92
+ justify-content: center;
93
+ width: 110px;
94
+ height: 120px;
89
95
  margin-bottom: 0.5rem;
96
+ background: var(--tier-bg);
97
+ color: var(--tier-num);
98
+ clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
99
+ -webkit-clip-path: polygon(50% 0%, 100% 18%, 100% 82%, 50% 100%, 0% 82%, 0% 18%);
90
100
  }
91
- .score-badge .num { display: block; font-size: 2.25rem; font-weight: bold; line-height: 1; text-align: center; }
92
- .score-badge .of { display: block; font-size: 11px; text-align: center; margin-top: 0.2rem; color: var(--text-muted); }
101
+ .score-badge .num { display: block; font-size: 2.75rem; font-weight: 900; line-height: 1; text-align: center; }
102
+ .score-badge .of { display: block; font-size: 12px; font-weight: bold; text-align: center; margin-top: 0.15rem; color: var(--tier-num); opacity: 0.95; }
93
103
  .hero .score-label { font-size: 1.1rem; font-weight: bold; color: var(--text); margin: 0 0 0.2rem; }
94
104
  .hero .score-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 0.35rem; max-width: 360px; margin-left: auto; margin-right: auto; }
95
105
  .hero .report-meta { font-size: 12px; color: var(--text-muted); }
96
- .hero.tier-1 { --tier-fg: #c00; }
97
- .hero.tier-2 { --tier-fg: #e85d00; }
98
- .hero.tier-3 { --tier-fg: #b8860b; }
99
- .hero.tier-4 { --tier-fg: #069; }
100
- .hero.tier-5 { --tier-fg: #0a6b0a; }
106
+ .hero.tier-1 { --tier-bg: #c00; --tier-num: #fff; }
107
+ .hero.tier-2 { --tier-bg: #e85d00; --tier-num: #fff; }
108
+ .hero.tier-3 { --tier-bg: #b8860b; --tier-num: #fff; }
109
+ .hero.tier-4 { --tier-bg: #069; --tier-num: #fff; }
110
+ .hero.tier-5 { --tier-bg: #0a6b0a; --tier-num: #fff; }
101
111
  .summary-cards {
102
112
  display: grid;
103
113
  grid-template-columns: repeat(4, 1fr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tech-debt-visualizer",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Language-agnostic CLI that analyzes repos and generates interactive technical debt visualizations with AI-powered insights",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",