From 7a17ba25ec2d4665b5203c0b97f3a6d604b30939 Mon Sep 17 00:00:00 2001 From: eikomaniac <41029143+eikomaniac@users.noreply.github.com> Date: Sun, 14 Dec 2025 14:30:38 +0000 Subject: [PATCH] feat(frontend): add feature flag for tribe multiplayer (@eikomaniac) (#7234) ### Description Adds a tribeEnabled feature flag to gate tribe multiplayer functionality. # Note Once this PR is approved and merged into `newtribemerge`, `newtribemerge` can safely be merged into `master` --------- Co-authored-by: Miodec --- backend/src/constants/base-configuration.ts | 8 ++++++++ frontend/src/html/header.html | 6 +++--- frontend/src/html/pages/settings.html | 6 +++--- frontend/src/styles/nav.scss | 11 +++++------ .../src/ts/commandline/lists/tribe-carets.ts | 2 ++ frontend/src/ts/commandline/lists/tribe-delta.ts | 2 ++ frontend/src/ts/config-metadata.ts | 8 +++++++- frontend/src/ts/controllers/route-controller.ts | 16 ++++++++++++++-- frontend/src/ts/pages/settings.ts | 6 ++++-- frontend/src/ts/ready.ts | 14 +++++++++++++- frontend/src/ts/tribe/tribe.ts | 9 ++++++++- frontend/src/ts/types/virtual-env-config.d.ts | 1 + frontend/src/ts/utils/misc.ts | 6 ++++++ frontend/vite-plugins/env-config.ts | 2 ++ packages/schemas/src/configuration.ts | 3 +++ 15 files changed, 81 insertions(+), 19 deletions(-) diff --git a/backend/src/constants/base-configuration.ts b/backend/src/constants/base-configuration.ts index 60063b733..9664f9cc2 100644 --- a/backend/src/constants/base-configuration.ts +++ b/backend/src/constants/base-configuration.ts @@ -104,6 +104,7 @@ export const BASE_CONFIGURATION: Configuration = { }, }, connections: { enabled: false, maxPerUser: 100 }, + tribe: { enabled: false }, }; type BaseSchema = { @@ -615,5 +616,12 @@ export const CONFIGURATION_FORM_SCHEMA: ObjectSchema = { }, }, }, + tribe: { + type: "object", + label: "Tribe (Multiplayer)", + fields: { + enabled: { type: "boolean", label: "Enabled" }, + }, + }, }, }; diff --git a/frontend/src/html/header.html b/frontend/src/html/header.html index ea2cee793..f2cd6525c 100644 --- a/frontend/src/html/header.html +++ b/frontend/src/html/header.html @@ -79,9 +79,9 @@ @@ -122,7 +122,7 @@ -
+
-
+