From ee1a894f3ba2dc468fbf6510afc50c3a7387e2c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Volhejn?= Date: Sun, 12 Oct 2025 16:28:05 +0200 Subject: [PATCH] Show tags in reference, more compact functions list --- .../src/repl/components/panel/Reference.jsx | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/website/src/repl/components/panel/Reference.jsx b/website/src/repl/components/panel/Reference.jsx index 3faa5c6f1..d1157ba26 100644 --- a/website/src/repl/components/panel/Reference.jsx +++ b/website/src/repl/components/panel/Reference.jsx @@ -11,6 +11,7 @@ const availableFunctions = (() => { for (const doc of jsdocJson.docs) { if (!isValid(doc)) continue; if (seen.has(doc.name)) continue; + doc.tags = doc.tags?.filter((t) => t && typeof t === 'string') || []; functions.push(doc); const synonyms = doc.synonyms || []; seen.add(doc.name); @@ -113,7 +114,7 @@ export function Reference() { return (
-
+
@@ -134,19 +135,21 @@ export function Reference() { ))}
-
+
@@ -161,8 +164,17 @@ export function Reference() { that you can already make music with a small set of functions!

{visibleFunctions.map((entry, i) => ( -
-

{entry.name}

+
+
+

+ {entry.name} +

+ {entry.tags && ( + + {entry.tags.join(', ')} + + )} +
{!!entry.synonyms_text && (

Synonyms: {entry.synonyms_text}