Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: version panel shows Forge labels + author badge

- Version items now display meta.label (from Forge workspace_update)
as a named version badge alongside existing meta.name
- Forge-authored versions get a distinct blue accent on the author name
- Shows "Initial plan", "Step 2 complete", etc. in the version list

+6 -2
+4
src/css/app.css
··· 7758 7758 .version-panel-author { 7759 7759 color: var(--color-text-faint); 7760 7760 } 7761 + .version-panel-author--forge { 7762 + color: oklch(0.65 0.1 250); 7763 + font-weight: 500; 7764 + } 7761 7765 7762 7766 .version-panel-count { 7763 7767 color: var(--color-text-faint);
+2 -2
src/version-panel.ts
··· 233 233 const author = (typeof meta['author'] === 'string' ? meta['author'] : null) || 'Unknown'; 234 234 const countVal = typeof meta[countKey] === 'number' ? (meta[countKey] as number) : null; 235 235 const countLabel = docType === 'sheet' ? 'cells' : 'words'; 236 - const namedVersion = v._name || (typeof meta['name'] === 'string' ? meta['name'] as string : null); 236 + const namedVersion = v._name || (typeof meta['name'] === 'string' ? meta['name'] as string : null) || (typeof meta['label'] === 'string' ? meta['label'] as string : null); 237 237 238 238 const deltaClass = stats.delta > 0 ? 'positive' : stats.delta < 0 ? 'negative' : ''; 239 239 ··· 243 243 ${namedVersion ? `<span class="version-panel-named-badge">${escapeHtml(namedVersion)}</span>` : ''} 244 244 </div> 245 245 <div class="version-panel-item-meta"> 246 - <span class="version-panel-author">${escapeHtml(author)}</span> 246 + <span class="version-panel-author${author === 'forge' ? ' version-panel-author--forge' : ''}">${escapeHtml(author)}</span> 247 247 ${countVal !== null ? `<span class="version-panel-count">${countVal} ${countLabel}</span>` : ''} 248 248 <span class="version-panel-delta ${deltaClass}">${stats.label}</span> 249 249 </div>