MCPcopy
hub / github.com/stemdeckapp/stemdeck / getRecentTracks

Function getRecentTracks

static/js/catalog.js:925–931  ·  view source on GitHub ↗
(trashIds, n = 3)

Source from the content-addressed store, hash-verified

923// ─── Rendering helpers ───
924
925function getRecentTracks(trashIds, n = 3) {
926 return Object.entries(tracks)
927 .filter(([id, t]) => !trashIds.has(id) && t.title)
928 .sort(([, a], [, b]) => (b.createdAt ?? 0) - (a.createdAt ?? 0))
929 .slice(0, n)
930 .map(([id]) => id);
931}
932
933function getAllTags(trashIds) {
934 const counts = {};

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected