MCPcopy
hub / github.com/codeaashu/claude-code / createRecentActivityFeed

Function createRecentActivityFeed

src/components/LogoV2/feedConfigs.tsx:11–26  ·  view source on GitHub ↗
(activities: LogOption[])

Source from the content-addressed store, hash-verified

9import { formatRelativeTimeAgo } from '../../utils/format.js';
10import type { FeedConfig, FeedLine } from './Feed.js';
11export function createRecentActivityFeed(activities: LogOption[]): FeedConfig {
12 const lines: FeedLine[] = activities.map(log => {
13 const time = formatRelativeTimeAgo(log.modified);
14 const description = log.summary && log.summary !== 'No prompt' ? log.summary : log.firstPrompt;
15 return {
16 text: description || '',
17 timestamp: time
18 };
19 });
20 return {
21 title: 'Recent activity',
22 lines,
23 footer: lines.length > 0 ? '/resume for more' : undefined,
24 emptyMessage: 'No recent activity'
25 };
26}
27export function createWhatsNewFeed(releaseNotes: string[]): FeedConfig {
28 const lines: FeedLine[] = releaseNotes.map(note => {
29 if ("external" === 'ant') {

Callers 1

LogoV2Function · 0.85

Calls 1

formatRelativeTimeAgoFunction · 0.85

Tested by

no test coverage detected