From 7be21969e7445e336acbda5000274c748dd54320 Mon Sep 17 00:00:00 2001 From: nessi Date: Tue, 3 Feb 2026 15:49:09 +0100 Subject: [PATCH] Add cycleTag function for tag value transitions Implemented the cycleTag function to handle transitions between tag states ("i", "m", "s") and reset for special cases starting with "s.". This prepares the application to support dynamic tag cycling functionality. --- frontend/src/App.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 1c7bb14..318687f 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -63,6 +63,14 @@ function clearChipLS(gameId, entryId) { } catch {} } +function cycleTag(tag) { + if (!tag) return "i"; + if (tag === "i") return "m"; + if (tag === "m") return "s"; + if (typeof tag === "string" && tag.startsWith("s.")) return null; + return null; +} + function AdminPanel() { const [users, setUsers] = useState([]);