feat: move session sharing and collab rooms into a plugin (B12)

This commit is contained in:
LukeGus committed 2026-09-23 23:42:46 -05:00
1 parent 791d8656a1
commit a276f6898c
207 files changed
+35771 -11072

No files matched your search

-26
View File
@@ -54,10 +54,6 @@ import {
type HostDefaults,
type BrandingSettings,
} from "@/api/settings-api";
import {
getSessionSharingGloballyEnabled,
updateSessionSharingGloballyEnabled,
} from "@/api/session-sharing-api";
import {
getAcmeSslSettings,
updateAcmeSslSettings,
@@ -148,8 +144,6 @@ export function AdminSettingsPanel({
const [analyticsLocked, setAnalyticsLocked] = useState(false);
const [oidcSilentLoginDefaultLocked, setOidcSilentLoginDefaultLocked] =
useState(false);
const [sessionSharingGloballyEnabled, setSessionSharingGloballyEnabled] =
useState(true);
const [stepCaPrivateEndpoints, setStepCaPrivateEndpoints] = useState<
string[]
>([]);
@@ -361,7 +355,6 @@ export function AdminSettingsPanel({
secondFactorExternal,
oidcSilent,
analytics,
sessionSharingEnabled,
notificationEndpoints,
stepCaEndpoints,
secretSourceEndpoints,
@@ -378,7 +371,6 @@ export function AdminSettingsPanel({
getSecondFactorAfterExternalLogin(),
getOidcSilentLoginDefault(),
getAnalyticsEnabled(),
getSessionSharingGloballyEnabled(),
getNotificationPrivateEndpoints(),
getStepCaPrivateEndpoints(),
getSecretSourcePrivateEndpoints(),
@@ -418,9 +410,6 @@ export function AdminSettingsPanel({
setAnalyticsEnabled(analytics.value.enabled);
setAnalyticsLocked(analytics.value.locked ?? false);
}
if (sessionSharingEnabled.status === "fulfilled") {
setSessionSharingGloballyEnabled(sessionSharingEnabled.value.enabled);
}
if (stepCaEndpoints.status === "fulfilled") {
setStepCaPrivateEndpoints(stepCaEndpoints.value);
}
@@ -553,17 +542,6 @@ export function AdminSettingsPanel({
}
}
async function handleToggleSessionSharingGloballyEnabled() {
const newVal = !sessionSharingGloballyEnabled;
setSessionSharingGloballyEnabled(newVal);
try {
await updateSessionSharingGloballyEnabled(newVal);
} catch {
setSessionSharingGloballyEnabled(!newVal);
toast.error(t("admin.updateSessionSharingFailed"));
}
}
async function handleSaveStepCaSettings() {
try {
await updateStepCaSettings(stepCaSettings);
@@ -1088,7 +1066,6 @@ export function AdminSettingsPanel({
analyticsEnabled={analyticsEnabled}
analyticsLocked={analyticsLocked}
handleToggleAnalytics={handleToggleAnalytics}
sessionSharingGloballyEnabled={sessionSharingGloballyEnabled}
notificationPrivateEndpoints={notificationPrivateEndpoints}
stepCaPrivateEndpoints={stepCaPrivateEndpoints}
onSaveStepCaPrivateEndpoints={handleSaveStepCaPrivateEndpoints}
@@ -1102,9 +1079,6 @@ export function AdminSettingsPanel({
onSaveNotificationPrivateEndpoints={
handleSaveNotificationPrivateEndpoints
}
handleToggleSessionSharingGloballyEnabled={
handleToggleSessionSharingGloballyEnabled
}
allowRegistration={allowRegistration}
handleToggleRegistration={handleToggleRegistration}
allowPasswordLogin={allowPasswordLogin}