Open History to see the last commit
1import { msg, T, useGT, useMessages, Var, type Msg } from "gt-react-native";
2import { useNavigation } from "@react-navigation/native";
3import { SettingsRow } from "./components/SettingsRow";
4import { AuthSettingsWriteScope } from "@t3tools/contracts";
5import { readEnvironmentScope, useEnvironmentsWithScope } from "../../state/session";
6import { ScreenScrollView as ScrollView } from "../../components/ui/ScreenScrollView";
7import { AppText as Text } from "../../components/ui/AppText";
8import {
9 type ResponseStreamingMode,
10 type ServerSettings,
11 type ServerSettingsPatch,
12 type ThreadEnvMode,
13 type WorktreeSubmodules,
14 PROJECT_SCOPED_SERVER_SETTING_KEYS,
15 type ProjectScopedServerSettingKey,
16} from "@t3tools/contracts";
17import { useRef, useState } from "react";
18import { View } from "react-native";
19import { useSafeAreaInsets } from "react-native-safe-area-context";
20
21import {
22 RUNTIME_MODE_CHOICES,
23 withManagedRuntimeModeLimits,
24} from "../threads/thread-settings-options";
25import { SettingsScreen } from "./components/SettingsScreen";
26import { useSettingsEnvironmentMenu } from "./components/SettingsEnvironmentFilterHeader";
27import { BranchNamingSettings } from "./components/BranchNamingSettings";
28import { DatabaseStorageNotice } from "./components/DatabaseStorageNotice";
29import { ListChoiceRow as SettingsChoiceRow } from "../../components/ui/ListChoiceRow";
30import { SettingsSection } from "./components/SettingsSection";
31import { SettingsSwitchRow } from "./components/SettingsSwitchRow";
32import { IssueTrackerSection } from "./components/IssueTrackerSection";
33import { SourceControlProvidersSection } from "./components/SourceControlProvidersSection";
34import { SettingsProjectOverridesSection } from "./components/SettingsProjectOverridesSection";
35import { useSettingsEnvironmentFilter } from "./settings-environment-filter";
36import { useSettingsWriter } from "./useSettingsWriter";
37import {
38 managedSettingReason,
39 planMobileScopedSettingsClear,
40 planMobileScopedSettingsPatch,
41 resolveMobileSettingsTargets,
42 uniformMobileSetting,
43 type ScopedMobileSettingsTarget,
44} from "./settings-scoped-server";
45import { PullRequestGlyph } from "../pull-requests/pullRequestGlyphs";
46import { AutoSettleSettingsRows } from "./ThreadSettingsSections";
47import { supportsSharedSettingsSync } from "@t3tools/client-runtime/state/shared-settings";
48
49type SettingsPage = "threads" | "source-control" | "worktrees" | "maintenance";
50
51const PAGE_TITLES: Record<SettingsPage, string | Msg> = {
52 threads: msg({ context: "settings page title" })`Threads`,
53 "source-control": msg("Source control & issues"),
54 worktrees: msg("Worktrees"),
55 maintenance: msg("Maintenance"),
56};
57
58const PAGE_PROJECT_KEYS: Record<SettingsPage, readonly ProjectScopedServerSettingKey[]> = {
59 threads: [
60 "defaultThreadEnvMode",
61 "defaultRuntimeMode",
62 "responseStreamingMode",
63 "enableAgentBrowserAccess",
64 "sidebarAutoSettleOnMerge",
65 "sidebarAutoSettleAfterDays",
66 ],
67 "source-control": ["defaultAutoPull", "removeAgentCreditsOnMerge"],
68 worktrees: [
69 "newWorktreesStartFromOrigin",
70 "worktreeSubmodules",
71 "branchNamingMode",
72 "branchNamePrefix",
73 "branchNameInstructions",
74 ],
75 maintenance: ["continueThreadsAfterServerUpdate"],
76};
77
78const SUBMODULE_CHOICES: ReadonlyArray<{
79 readonly mode: WorktreeSubmodules | null;
80 readonly label: string | Msg;
81 readonly description: string;
82}> = [
83 {
84 mode: null,
85 label: msg({ context: "use the inherited value" })`Inherit`,
86 description: msg("Use the repository's t3.json, or initialize recursively."),
87 },
88 {
89 mode: "recursive",
90 label: msg({ context: "initialize submodules recursively" })`Recursive`,
91 description: msg("Initialize nested submodules too."),
92 },
93 {
94 mode: "top-level",
95 label: msg("Top level only"),
96 description: msg("Skip submodules declared inside other submodules."),
97 },
98 {
99 mode: "none",
100 label: msg({ context: "do not initialize submodules" })`Skip`,
101 description: msg("Leave submodules empty for a setup script."),
102 },
103];
104
105const WORKSPACE_CHOICES: ReadonlyArray<{
106 readonly mode: ThreadEnvMode | null;
107 readonly label: string | Msg;
108 readonly description: string;
109}> = [
110 {
111 mode: null,
112 label: msg({ context: "use the inherited value" })`Inherit`,
113 description: msg("Use the repository's t3.json, or the current checkout."),
114 },
115 {
116 mode: "local",
117 label: msg("Current checkout"),
118 description: msg("Start new threads in the existing workspace."),
119 },
120 {
121 mode: "worktree",
122 label: msg("New worktree"),
123 description: msg("Give each new thread a separate checkout."),
124 },
125];
126
127const STREAMING_CHOICES: ReadonlyArray<{
128 readonly mode: ResponseStreamingMode;
129 readonly label: string;
130 readonly description: string;
131}> = [
132 {
133 mode: "turn",
134 label: msg("After the turn"),
135 description: msg("Show the answer when the agent finishes."),
136 },
137 {
138 mode: "paragraph",
139 label: msg("Finished paragraphs"),
140 description: msg("Show each paragraph or code block as it completes."),
141 },
142];
143
144// Only servers with thread auto-settlement store these, so other targets get the rest of a patch.
145const AUTO_SETTLE_SETTING_KEYS: ReadonlySet<string> = new Set([
146 "sidebarAutoSettleOnMerge",
147 "sidebarAutoSettleAfterDays",
148 "autoResumeLimitedThreads",
149 "snoozeLimitedThreads",
150]);
151
152function planServerSettingsWrites(
153 targets: readonly ScopedMobileSettingsTarget[],
154 projectSelected: boolean,
155 patch: ServerSettingsPatch,
156) {
157 const capable = targets.filter((target) => supportsSharedSettingsSync(target.environment));
158 const others = targets.filter((target) => !supportsSharedSettingsSync(target.environment));
159 const othersPatch = Object.fromEntries(
160 Object.entries(patch).filter(([key]) => !AUTO_SETTLE_SETTING_KEYS.has(key)),
161 ) as ServerSettingsPatch;
162 return [
163 ...planMobileScopedSettingsPatch(capable, projectSelected, patch),
164 ...(Object.keys(othersPatch).length > 0
165 ? planMobileScopedSettingsPatch(others, projectSelected, othersPatch)
166 : []),
167 ];
168}
169
170export function SettingsThreadsRouteScreen() {
171 return <ServerSettingsDetail page="threads" />;
172}
173
174export function SettingsEnvironmentSourceControlRouteScreen() {
175 return <ServerSettingsDetail page="source-control" />;
176}
177
178export function SettingsWorktreesRouteScreen() {
179 return <ServerSettingsDetail page="worktrees" />;
180}
181
182export function SettingsEnvironmentMaintenanceRouteScreen() {
183 return <ServerSettingsDetail page="maintenance" />;
184}
185
186function ServerSettingsDetail(props: { readonly page: SettingsPage }) {
187 const gt = useGT();
188 const m = useMessages();
189 const environmentMenu = useSettingsEnvironmentMenu();
190 const insets = useSafeAreaInsets();
191 const navigation = useNavigation();
192 const { selectedTargets, projectGroups, selectedProjectKey } = useSettingsEnvironmentFilter();
193 const selectedProject = projectGroups.find((group) => group.key === selectedProjectKey);
194 const writableEnvironments = useEnvironmentsWithScope(selectedTargets, AuthSettingsWriteScope);
195 const projectSelected = selectedProjectKey !== null;
196 const targets = resolveMobileSettingsTargets(
197 selectedTargets,
198 projectSelected ? (selectedProject?.members.map((member) => member.project) ?? []) : null,
199 );
200 const [pendingWrites, setPendingWrites] = useState(0);
201 const writeInFlight = useRef(false);
202 // Closing views can save after controls disable; queue those patches behind the pending write.
203 const queuedPatch = useRef<{ key: string; patch: ServerSettingsPatch } | null>(null);
204 const targetsKey = targets
205 .map((target) => `${target.environment.environmentId}:${target.projectId}`)
206 .join(",");
207 const [pendingTargets, setPendingTargets] = useState<
208 readonly ScopedMobileSettingsTarget[] | null
209 >(null);
210 const canWriteSettings =
211 targets.length > 0 &&
212 targets.every((target) => writableEnvironments.has(target.environment.environmentId));
213 const displayTargets = pendingWrites > 0 && pendingTargets !== null ? pendingTargets : targets;
214 const hasConnectedSelection = targets.length > 0;
215 const reference = displayTargets[0] ?? null;
216 const uniform = <K extends keyof ServerSettings>(key: K) =>
217 uniformMobileSetting(displayTargets, key);
218 // `uniform` folds a real null into "mixed"; nullable keys need the distinction.
219 const isMixed = (key: keyof ServerSettings) =>
220 reference === null ||
221 displayTargets.some((entry) => entry.settings[key] !== reference.settings[key]);
222 const writeSettings = useSettingsWriter();
223 const write = (patch: ServerSettingsPatch) => {
224 if (writeInFlight.current) {
225 const queued = queuedPatch.current;
226 queuedPatch.current = {
227 key: targetsKey,
228 patch: queued?.key === targetsKey ? { ...queued.patch, ...patch } : patch,
229 };
230 return;
231 }
232 if (
233 !hasConnectedSelection ||
234 !targets.every((target) =>
235 readEnvironmentScope(target.environment.environmentId, AuthSettingsWriteScope),
236 )
237 )
238 return;
239 const writes = planServerSettingsWrites(targets, projectSelected, patch);
240 if (writes.length === 0) return;
241 writeInFlight.current = true;
242 setPendingTargets(targets);
243 setPendingWrites((count) => count + 1);
244 void writeSettings(targets, writes).finally(() => {
245 writeInFlight.current = false;
246 setPendingTargets(null);
247 setPendingWrites((count) => count - 1);
248 const queued = queuedPatch.current;
249 queuedPatch.current = null;
250 // These targets may not show this write yet, so send it again with the
251 // queued patch; project overrides are replaced whole.
252 if (queued?.key === targetsKey) write({ ...patch, ...queued.patch });
253 });
254 };
255 const clearProjectOverrides = () => {
256 if (
257 writeInFlight.current ||
258 !targets.every((target) =>
259 readEnvironmentScope(target.environment.environmentId, AuthSettingsWriteScope),
260 )
261 )
262 return;
263 const writes = planMobileScopedSettingsClear(targets, PAGE_PROJECT_KEYS[props.page]);
264 if (writes.length === 0) return;
265 writeInFlight.current = true;
266 setPendingTargets(targets);
267 setPendingWrites((count) => count + 1);
268 void writeSettings(targets, writes).finally(() => {
269 writeInFlight.current = false;
270 // Resending a draft over these pre-clear targets would undo the clear.
271 queuedPatch.current = null;
272 setPendingTargets(null);
273 setPendingWrites((count) => count - 1);
274 });
275 };
276 const disabled = !canWriteSettings || pendingWrites > 0 || !hasConnectedSelection;
277 const managed = (...keys: string[]) => managedSettingReason(targets, keys, m);
278 // A locked row keeps its explanation and says who manages it.
279 const managedSubtitle = (key: string, subtitle: string) => {
280 const reason = managed(key);
281 return reason === undefined ? subtitle : gt`${{ subtitle }} ${{ reason }}`;
282 };
283 const runtimeModeChoices = withManagedRuntimeModeLimits(
284 RUNTIME_MODE_CHOICES,
285 targets.map((target) => target.environment.serverConfig.managedPolicy),
286 m,
287 );
288 const disabledFor = (key: string) =>
289 disabled ||
290 managed(key) !== undefined ||
291 (projectSelected &&
292 !PROJECT_SCOPED_SERVER_SETTING_KEYS.includes(
293 key as (typeof PROJECT_SCOPED_SERVER_SETTING_KEYS)[number],
294 ));
295
296 return (
297 <SettingsScreen title={m(PAGE_TITLES[props.page])} menus={[environmentMenu]}>
298 <ScrollView
299 contentInsetAdjustmentBehavior="automatic"
300 showsVerticalScrollIndicator={false}
301 className="flex-1"
302 contentContainerClassName="gap-6 px-5 pt-4"
303 contentContainerStyle={{ paddingBottom: Math.max(insets.bottom, 18) + 18 }}
304 >
305 {!hasConnectedSelection || reference === null ? (
306 <Text className="px-2 text-base text-foreground-muted">
307 {projectSelected
308 ? gt`Select a project with a checkout on a connected environment.`
309 : gt`Use the filter above to select a connected environment.`}
310 </Text>
311 ) : (
312 <>
313 <ManagedPolicyNotice targets={targets} />
314 {projectSelected ? (
315 <SettingsProjectOverridesSection
316 projectLabel={selectedProject?.label ?? gt`Unavailable project`}
317 hasOverrides={targets.some((target) =>
318 PAGE_PROJECT_KEYS[props.page].some((key) => target.sources[key] === "project"),
319 )}
320 pending={pendingWrites > 0}
321 disabled={!canWriteSettings}
322 onClear={clearProjectOverrides}
323 />
324 ) : null}
325 {props.page === "threads" ? (
326 <>
327 <SettingsSection
328 title={gt`Default workspace`}
329 footer={managed("defaultThreadEnvMode")}
330 trailing={
331 pendingWrites === 0 && isMixed("defaultThreadEnvMode") ? (
332 <MixedValuesLabel projectSelected={projectSelected} />
333 ) : null
334 }
335 >
336 {WORKSPACE_CHOICES.filter(
337 (choice) => choice.mode !== null || !projectSelected,
338 ).map((choice, index) => (
339 <SettingsChoiceRow
340 key={choice.mode ?? "inherit"}
341 label={m(choice.label)}
342 description={m(choice.description)}
343 selected={
344 !isMixed("defaultThreadEnvMode") &&
345 uniform("defaultThreadEnvMode") === choice.mode
346 }
347 separated={index > 0}
348 disabled={disabledFor("defaultThreadEnvMode")}
349 onPress={() => write({ defaultThreadEnvMode: choice.mode })}
350 />
351 ))}
352 </SettingsSection>
353 <SettingsSection
354 title={gt`Default permissions`}
355 footer={managed("defaultRuntimeMode")}
356 trailing={
357 pendingWrites === 0 && uniform("defaultRuntimeMode") === null ? (
358 <MixedValuesLabel projectSelected={projectSelected} />
359 ) : null
360 }
361 >
362 {runtimeModeChoices.map((choice, index) => (
363 <SettingsChoiceRow
364 key={choice.mode}
365 label={m(choice.label)}
366 description={choice.disabledReason ?? m(choice.description)}
367 selected={uniform("defaultRuntimeMode") === choice.mode}
368 separated={index > 0}
369 disabled={
370 disabledFor("defaultRuntimeMode") || choice.disabledReason !== undefined
371 }
372 onPress={() => write({ defaultRuntimeMode: choice.mode })}
373 />
374 ))}
375 </SettingsSection>
376 <SettingsSection
377 title={gt`Response streaming`}
378 footer={managed("responseStreamingMode")}
379 trailing={
380 pendingWrites === 0 && uniform("responseStreamingMode") === null ? (
381 <MixedValuesLabel projectSelected={projectSelected} />
382 ) : null
383 }
384 >
385 {STREAMING_CHOICES.map((choice, index) => (
386 <SettingsChoiceRow
387 key={choice.mode}
388 label={m(choice.label)}
389 description={m(choice.description)}
390 selected={uniform("responseStreamingMode") === choice.mode}
391 separated={index > 0}
392 disabled={disabledFor("responseStreamingMode")}
393 onPress={() => write({ responseStreamingMode: choice.mode })}
394 />
395 ))}
396 </SettingsSection>
397 <SettingsSection title={gt`Preview browser`}>
398 <SettingsSwitchRow
399 icon="globe"
400 label={gt`Agent browser access`}
401 subtitle={managedSubtitle(
402 "enableAgentBrowserAccess",
403 gt`Allow agents to use the in-app preview browser.`,
404 )}
405 value={uniform("enableAgentBrowserAccess")}
406 disabled={disabledFor("enableAgentBrowserAccess")}
407 onValueChange={(value) => write({ enableAgentBrowserAccess: value })}
408 />
409 </SettingsSection>
410 <AutoSettleSettingsRows write={write} pending={pendingWrites > 0} />
411 </>
412 ) : null}
413
414 {props.page === "source-control" ? (
415 <>
416 {projectSelected ? null : (
417 <SourceControlProvidersSection
418 environments={selectedTargets}
419 canWrite={(environmentId) => writableEnvironments.has(environmentId)}
420 />
421 )}
422 {projectSelected ? null : <IssueTrackerSection environments={selectedTargets} />}
423 <SettingsSection title={gt`Pull requests`}>
424 <SettingsSwitchRow
425 icon={PullRequestGlyph.merged}
426 label={gt`Remove agent credits when merging`}
427 subtitle={managedSubtitle(
428 "removeAgentCreditsOnMerge",
429 gt`Remove recognized agent credits from merge and squash messages on hosts that support it, keeping human co-authors. Includes auto-merge. Excludes merge queues, stack merges, and existing commits.`,
430 )}
431 value={uniform("removeAgentCreditsOnMerge")}
432 disabled={disabledFor("removeAgentCreditsOnMerge")}
433 onValueChange={(value) => write({ removeAgentCreditsOnMerge: value })}
434 />
435 </SettingsSection>
436 <SettingsSection title={gt`Default branch`}>
437 <SettingsSwitchRow
438 icon="arrow.down.circle"
439 label={gt`Automatically pull`}
440 subtitle={managedSubtitle(
441 "defaultAutoPull",
442 gt`Keep the default branch current when there are no local changes.`,
443 )}
444 value={uniform("defaultAutoPull")}
445 disabled={disabledFor("defaultAutoPull")}
446 onValueChange={(value) => write({ defaultAutoPull: value })}
447 />
448 </SettingsSection>
449 <SettingsSection title={gt`Clones`}>
450 <SettingsSwitchRow
451 icon="folder"
452 label={gt`Clone into host folders`}
453 subtitle={gt`Clones go to ${{ path: "github.com/owner/repo" }} under the Add project folder, like ${{ tool: "ghq" }}.`}
454 value={uniform("ghqCloneLayout")}
455 disabled={disabledFor("ghqCloneLayout")}
456 onValueChange={(value) => write({ ghqCloneLayout: value })}
457 />
458 </SettingsSection>
459 </>
460 ) : null}
461
462 {props.page === "worktrees" ? (
463 <>
464 <SettingsSection title={gt`New worktrees`}>
465 <SettingsSwitchRow
466 icon="arrow.triangle.branch"
467 label={gt`Start from remote`}
468 subtitle={managedSubtitle(
469 "newWorktreesStartFromOrigin",
470 gt`Uses the latest commit of the base branch’s tracked remote branch, even if its name differs. Otherwise uses the same-named branch on origin. Uses your local branch if that remote branch is missing.`,
471 )}
472 value={uniform("newWorktreesStartFromOrigin")}
473 disabled={disabledFor("newWorktreesStartFromOrigin")}
474 onValueChange={(value) => write({ newWorktreesStartFromOrigin: value })}
475 />
476 </SettingsSection>
477 <SettingsSection
478 title={gt`Worktree submodules`}
479 footer={managed("worktreeSubmodules")}
480 trailing={
481 pendingWrites === 0 && isMixed("worktreeSubmodules") ? (
482 <MixedValuesLabel projectSelected={projectSelected} />
483 ) : null
484 }
485 >
486 {SUBMODULE_CHOICES.filter(
487 (choice) => choice.mode !== null || !projectSelected,
488 ).map((choice, index) => (
489 <SettingsChoiceRow
490 key={choice.mode ?? "inherit"}
491 label={m(choice.label)}
492 description={m(choice.description)}
493 selected={
494 !isMixed("worktreeSubmodules") &&
495 uniform("worktreeSubmodules") === choice.mode
496 }
497 separated={index > 0}
498 disabled={disabledFor("worktreeSubmodules")}
499 onPress={() => write({ worktreeSubmodules: choice.mode })}
500 />
501 ))}
502 </SettingsSection>
503 <BranchNamingSettings
504 key={targetsKey}
505 mode={uniform("branchNamingMode")}
506 prefix={uniform("branchNamePrefix")}
507 instructions={uniform("branchNameInstructions")}
508 disabled={{
509 mode: disabledFor("branchNamingMode"),
510 prefix: disabledFor("branchNamePrefix"),
511 instructions: disabledFor("branchNameInstructions"),
512 }}
513 onChange={write}
514 />
515 </>
516 ) : null}
517
518 {props.page === "maintenance" ? (
519 <>
520 {!projectSelected ? (
521 <DatabaseStorageNotice
522 targets={selectedTargets.filter(
523 (target) =>
524 target.serverConfig.environment.capabilities.databaseStorage === true,
525 )}
526 />
527 ) : null}
528 {!projectSelected ? (
529 <SettingsSection title={gt`Manage environments`}>
530 {selectedTargets.map((target) => (
531 <SettingsRow
532 key={target.environmentId}
533 icon="server.rack"
534 label={target.label}
535 value={gt`Server and provider updates`}
536 onPress={() =>
537 navigation.navigate("SettingsEnvironmentDetail", {
538 environmentId: target.environmentId,
539 })
540 }
541 />
542 ))}
543 </SettingsSection>
544 ) : null}
545 <SettingsSection title={gt`Updates`}>
546 <SettingsSwitchRow
547 icon="arrow.clockwise"
548 label={gt`Check provider updates`}
549 subtitle={managedSubtitle(
550 "enableProviderUpdateChecks",
551 projectSelected
552 ? gt`Environment-wide setting. Select All projects to change it.`
553 : gt`Check installed provider CLIs for newer versions and fetch model catalog updates. When off, new models may not appear.`,
554 )}
555 value={uniform("enableProviderUpdateChecks")}
556 disabled={disabledFor("enableProviderUpdateChecks")}
557 onValueChange={(value) => write({ enableProviderUpdateChecks: value })}
558 />
559 <View className="border-t border-border-subtle">
560 <SettingsSwitchRow
561 icon="arrow.uturn.forward"
562 label={gt`Continue after restart`}
563 subtitle={managedSubtitle(
564 "continueThreadsAfterServerUpdate",
565 gt`Resume interrupted threads after an update or restart.`,
566 )}
567 value={uniform("continueThreadsAfterServerUpdate")}
568 disabled={disabledFor("continueThreadsAfterServerUpdate")}
569 onValueChange={(value) => write({ continueThreadsAfterServerUpdate: value })}
570 />
571 </View>
572 <View className="border-t border-border-subtle">
573 <SettingsSwitchRow
574 icon="bolt.circle"
575 label={gt`Keep awake while agents work`}
576 subtitle={managedSubtitle(
577 "keepAwakeWhileAgentsWork",
578 projectSelected
579 ? gt`Environment-wide setting. Select All projects to change it.`
580 : gt`Stop the computer from sleeping while agents work. Closing a laptop lid still sleeps it.`,
581 )}
582 value={uniform("keepAwakeWhileAgentsWork")}
583 disabled={disabledFor("keepAwakeWhileAgentsWork")}
584 onValueChange={(value) => write({ keepAwakeWhileAgentsWork: value })}
585 />
586 </View>
587 </SettingsSection>
588 </>
589 ) : null}
590 </>
591 )}
592 </ScrollView>
593 </SettingsScreen>
594 );
595}
596
597function MixedValuesLabel(props: { readonly projectSelected: boolean }) {
598 const gt = useGT();
599 return (
600 <Text
601 accessibilityLabel={
602 props.projectSelected
603 ? gt`Selected project checkouts use different values`
604 : gt`Selected environments use different values`
605 }
606 className="px-2 text-sm text-foreground-muted android:px-4"
607 >
608 <T>Mixed</T>
609 </Text>
610 );
611}
612
613/** Locked settings are refused when saved; say so before the user tries. */
614function ManagedPolicyNotice(props: { readonly targets: readonly ScopedMobileSettingsTarget[] }) {
615 const organizations = [
616 ...new Set(
617 props.targets.flatMap((target) => {
618 const policy = target.environment.serverConfig.managedPolicy;
619 return policy !== undefined && policy.lockedSettings.length > 0
620 ? [policy.organization]
621 : [];
622 }),
623 ),
624 ];
625 if (organizations.length === 0) return null;
626 return (
627 <Text className="px-2 text-sm text-foreground-muted android:px-4">
628 <T>
629 Some settings are managed by <Var>{organizations.join(", ")}</Var> and cannot be changed
630 here.
631 </T>
632 </Text>
633 );
634}