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.
This commit is contained in:
2026-02-03 15:49:09 +01:00
parent db35a7b0c9
commit 7be21969e7

View File

@@ -63,6 +63,14 @@ function clearChipLS(gameId, entryId) {
} catch {} } 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() { function AdminPanel() {
const [users, setUsers] = useState([]); const [users, setUsers] = useState([]);