lance-context 1.3.0 → 1.4.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/dashboard/ui.ts"],"names":[],"mappings":"AAkCA;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAk5CzC"}
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/dashboard/ui.ts"],"names":[],"mappings":"AAkCA;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CA86CzC"}
@@ -534,6 +534,16 @@ export function getDashboardHTML() {
534
534
  opacity: 1;
535
535
  }
536
536
 
537
+ /* Bar hover highlighting for legend */
538
+ #chartLegend.bar-hover li {
539
+ opacity: 0.3;
540
+ transition: opacity 0.15s ease;
541
+ }
542
+
543
+ #chartLegend.bar-hover li.highlight {
544
+ opacity: 1;
545
+ }
546
+
537
547
  .usage-total {
538
548
  display: flex;
539
549
  justify-content: space-between;
@@ -1227,12 +1237,14 @@ export function getDashboardHTML() {
1227
1237
  chartLegend.style.display = 'flex';
1228
1238
  usageTotal.style.display = 'flex';
1229
1239
 
1230
- const maxCount = Math.max(...usage.map(u => u.count));
1240
+ // Sort by count descending (most used first)
1241
+ const sortedUsage = usage.slice().sort(function(a, b) { return b.count - a.count; });
1242
+ const maxCount = Math.max(...sortedUsage.map(u => u.count));
1231
1243
 
1232
1244
  let chartHtml = '';
1233
1245
  let legendHtml = '';
1234
1246
  let idx = 0;
1235
- for (const item of usage) {
1247
+ for (const item of sortedUsage) {
1236
1248
  if (item.count === 0) continue;
1237
1249
 
1238
1250
  const percent = maxCount > 0 ? (item.count / maxCount) : 0;
@@ -1266,6 +1278,22 @@ export function getDashboardHTML() {
1266
1278
  });
1267
1279
  });
1268
1280
  });
1281
+
1282
+ // Bar hover highlighting (reverse - highlight legend item)
1283
+ usageChartBody.querySelectorAll('td').forEach(function(td) {
1284
+ td.addEventListener('mouseenter', function() {
1285
+ var idx = this.parentElement.getAttribute('data-idx');
1286
+ chartLegend.classList.add('bar-hover');
1287
+ var legendItem = chartLegend.querySelector('li[data-idx="' + idx + '"]');
1288
+ if (legendItem) legendItem.classList.add('highlight');
1289
+ });
1290
+ td.addEventListener('mouseleave', function() {
1291
+ chartLegend.classList.remove('bar-hover');
1292
+ chartLegend.querySelectorAll('li').forEach(function(li) {
1293
+ li.classList.remove('highlight');
1294
+ });
1295
+ });
1296
+ });
1269
1297
  }
1270
1298
 
1271
1299
  // Beads section elements
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/dashboard/ui.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;OAwBV,CAAC;AAER;;GAEG;AACH,MAAM,WAAW,GAAG,sBAAsB,kBAAkB,CAAC,onCAAonC,CAAC,EAAE,CAAC;AAErrC;;;GAGG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO;;;;;;gDAMuC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAitB9B,CAAC;AACT,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lance-context",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "MCP plugin for semantic code search using LanceDB - gives AI coding agents deep context from your entire codebase",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",