claude-roi 0.8.1 → 0.8.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dashboard.html +18 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-roi",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Correlate Claude Code token usage with git output to measure AI coding agent ROI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -810,6 +810,19 @@
810
810
  transform: scale(1.1);
811
811
  }
812
812
  tr.orphaned { background: rgba(245, 158, 11, 0.06); }
813
+ .expand-chevron {
814
+ display: inline-block;
815
+ width: 16px;
816
+ height: 16px;
817
+ margin-right: 6px;
818
+ vertical-align: middle;
819
+ transition: transform 0.2s ease;
820
+ color: var(--text-muted);
821
+ font-size: 0.7rem;
822
+ flex-shrink: 0;
823
+ }
824
+ tr:hover .expand-chevron { color: var(--accent-blue); }
825
+ tr.expanded .expand-chevron { transform: rotate(90deg); }
813
826
  .expand-row {
814
827
  display: none;
815
828
  background: var(--overlay-subtle);
@@ -2530,7 +2543,7 @@ function renderSessionsTable(sessions) {
2530
2543
  const thArrow = col => col === sortCol ? (sortOrder === 1 ? ' ^' : ' v') : '';
2531
2544
 
2532
2545
  return `<div class="sessions-section">
2533
- <h2>Sessions (${sessions.length})</h2>
2546
+ <h2>Sessions (${sessions.length}) <span style="font-size:0.75rem;font-weight:400;color:var(--accent-blue);opacity:0.7;margin-left:6px;">&#9654; click a row to view git commits</span></h2>
2534
2547
  <div class="sessions-table-wrap">
2535
2548
  <table>
2536
2549
  <colgroup><col><col><col><col><col><col><col><col><col></colgroup>
@@ -2562,8 +2575,8 @@ function renderSessionsTable(sessions) {
2562
2575
  : primaryName;
2563
2576
  const rowClass = s.isOrphaned ? 'orphaned' : '';
2564
2577
  return `
2565
- <tr class="${rowClass}" style="cursor:pointer;" onclick="toggleExpand(${idx})">
2566
- <td>${formatDate(s.startTime)}</td>
2578
+ <tr class="${rowClass}" style="cursor:pointer;" onclick="toggleExpand(${idx}, this)">
2579
+ <td><span class="expand-chevron">&#9654;</span>${formatDate(s.startTime)}</td>
2567
2580
  <td>${s.projectName || '—'}</td>
2568
2581
  <td>${modelDisplay}</td>
2569
2582
  <td>${s.userMessageCount + s.assistantMessageCount}</td>
@@ -2980,9 +2993,10 @@ function bindEvents() {
2980
2993
  }
2981
2994
  }
2982
2995
 
2983
- window.toggleExpand = function(idx) {
2996
+ window.toggleExpand = function(idx, clickedRow) {
2984
2997
  const row = document.getElementById(`expand-${idx}`);
2985
2998
  if (row) row.classList.toggle('open');
2999
+ if (clickedRow) clickedRow.classList.toggle('expanded');
2986
3000
  };
2987
3001
 
2988
3002
  window.sortTable = function(col) {