Tidy settings sidebar and AI settings page (#14111)

* chore: Tidy settings sidebar and AI settings page

* fix: Accessible names for theme select and MCP switch
This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-17 08:43:44 -04:00
1 parent 79522b5084
commit dc6e05aab1
11 files changed
+95 -113

No files matched your search

+47 -46
View File
@@ -30,13 +30,13 @@ import useCurrentUser from "./useCurrentUser";
import usePolicy from "./usePolicy";
import useStores from "./useStores";
const AI = lazy(() => import("~/scenes/Settings/AI"));
const ApiKeys = lazy(() => import("~/scenes/Settings/ApiKeys"));
const Applications = lazy(() => import("~/scenes/Settings/Applications"));
const APIAndAccess = lazy(() => import("~/scenes/Settings/APIAndAccess"));
const Authentication = lazy(() => import("~/scenes/Settings/Authentication"));
const Details = lazy(() => import("~/scenes/Settings/Details"));
const Export = lazy(() => import("~/scenes/Settings/Export"));
const Features = lazy(() => import("~/scenes/Settings/Features"));
const Groups = lazy(() => import("~/scenes/Settings/Groups"));
const Import = lazy(() => import("~/scenes/Settings/Import"));
const Integrations = lazy(() => import("~/scenes/Settings/Integrations"));
@@ -114,11 +114,11 @@ const useSettingsConfig = () => {
preload: APIAndAccess.preload,
enabled: true,
group: t("Account"),
icon: PadlockIcon,
icon: CodeIcon,
},
// Workspace
{
name: t("Details"),
name: t("General"),
path: settingsPath("details"),
component: Details.Component,
preload: Details.preload,
@@ -126,33 +126,6 @@ const useSettingsConfig = () => {
group: t("Workspace"),
icon: TeamIcon,
},
{
name: t("Authentication"),
path: settingsPath("authentication"),
component: Authentication.Component,
preload: Authentication.preload,
enabled: can.update,
group: t("Workspace"),
icon: PadlockIcon,
},
{
name: t("Security"),
path: settingsPath("security"),
component: Security.Component,
preload: Security.preload,
enabled: can.update,
group: t("Workspace"),
icon: ShieldIcon,
},
{
name: t("AI"),
path: settingsPath("features"),
component: Features.Component,
preload: Features.preload,
enabled: can.update,
group: t("Workspace"),
icon: SparklesIcon,
},
{
name: t("Users"),
path: settingsPath("users"),
@@ -171,6 +144,24 @@ const useSettingsConfig = () => {
group: t("Workspace"),
icon: GroupIcon,
},
{
name: t("Authentication"),
path: settingsPath("authentication"),
component: Authentication.Component,
preload: Authentication.preload,
enabled: can.update,
group: t("Workspace"),
icon: PadlockIcon,
},
{
name: t("Security"),
path: settingsPath("security"),
component: Security.Component,
preload: Security.preload,
enabled: can.update,
group: t("Workspace"),
icon: ShieldIcon,
},
{
name: t("Templates"),
path: settingsPath("templates"),
@@ -190,25 +181,16 @@ const useSettingsConfig = () => {
icon: SmileyIcon,
},
{
name: t("API Keys"),
path: settingsPath("api-keys"),
component: ApiKeys.Component,
preload: ApiKeys.preload,
enabled: can.listApiKeys,
name: t("AI"),
path: settingsPath("ai"),
component: AI.Component,
preload: AI.preload,
enabled: can.update,
group: t("Workspace"),
icon: CodeIcon,
icon: SparklesIcon,
},
{
name: t("Applications"),
path: settingsPath("applications"),
component: Applications.Component,
preload: Applications.preload,
enabled: can.listOAuthClients,
group: t("Workspace"),
icon: InternetIcon,
},
{
name: t("Shared Links"),
name: t("Shared links"),
path: settingsPath("shares"),
component: Shares.Component,
preload: Shares.preload,
@@ -256,6 +238,25 @@ const useSettingsConfig = () => {
group: t("Integrations"),
icon: PlusIcon,
},
// Developer
{
name: t("API keys"),
path: settingsPath("api-keys"),
component: ApiKeys.Component,
preload: ApiKeys.preload,
enabled: can.listApiKeys,
group: t("Developer"),
icon: CodeIcon,
},
{
name: t("Applications"),
path: settingsPath("applications"),
component: Applications.Component,
preload: Applications.preload,
enabled: can.listOAuthClients,
group: t("Developer"),
icon: InternetIcon,
},
];
// Plugins
+2
View File
@@ -32,6 +32,8 @@ function SettingsRoutes() {
from={settingsPath("members")}
to={settingsPath("users")}
/>
{/* Features was renamed to AI, redirect for backwards compatibility */}
<Redirect exact from={settingsPath("features")} to={settingsPath("ai")} />
{/* TODO: Refactor these exceptions into config? */}
<Route
exact
@@ -17,7 +17,7 @@ import CopyToClipboard from "~/components/CopyToClipboard";
import NudeButton from "~/components/NudeButton";
import { useTheme } from "styled-components";
function Features() {
function AI() {
const { t } = useTranslation();
const team = useCurrentTeam();
const theme = useTheme();
@@ -53,18 +53,18 @@ function Features() {
<Scene title={t("AI")} icon={<SparklesIcon />}>
<Heading>{t("AI")}</Heading>
<Text as="p" type="secondary">
<Trans>Manage AI and integration features for your workspace.</Trans>
<Trans>Control how AI features are used in the workspace.</Trans>
</Text>
<Heading as="h2">{t("MCP server")}</Heading>
<SettingRow
name={TeamPreference.MCP}
label={t("MCP server")}
border={!team.getPreference(TeamPreference.MCP)}
label={t("Enabled")}
description={
<>
<Text type="secondary" as="p">
{t(
"Allow members to connect to this workspace with MCP to read and write data."
"Let members connect AI assistants and other apps to this workspace. Connected apps can read and edit content with the same permissions as the member who connects them."
)}
</Text>
{team.getPreference(TeamPreference.MCP) && (
@@ -75,7 +75,7 @@ function Features() {
style={{ marginTop: 8, marginBottom: 4 }}
>
<Trans
defaults="Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>."
defaults="Use this URL in your MCP client. See <a>the setup guide</a> for more details."
components={{
a: (
<Text
@@ -106,6 +106,7 @@ function Features() {
<Switch
id={TeamPreference.MCP}
name={TeamPreference.MCP}
aria-label={t("MCP server")}
checked={team.getPreference(TeamPreference.MCP)}
onChange={handleMCPChange}
/>
@@ -114,12 +115,13 @@ function Features() {
{team.getPreference(TeamPreference.MCP) && (
<SettingRow
name="guidanceMCP"
label={t("Additional guidance")}
label={t("Custom instructions")}
border={false}
description={
<>
<div style={{ marginBottom: 8 }}>
{t(
"You can use these optional instructions to tell MCP clients how to use your knowledge base."
"Optional instructions that are sent to connected AI apps, for example how your workspace is organized or where to find important information."
)}
</div>
<Input
@@ -139,11 +141,12 @@ function Features() {
/>
)}
<Heading as="h2">{t("AI answers")}</Heading>
<SettingRow
name="answers"
label={t("AI answers")}
label={t("Enabled")}
description={t(
"Use AI to get direct answers to questions in search. This feature requires a paid license."
"Show AI-generated answers to questions in search, based on content in your workspace. Requires a paid license."
)}
border={false}
>
@@ -153,4 +156,4 @@ function Features() {
);
}
export default observer(Features);
export default observer(AI);
+2 -2
View File
@@ -1,5 +1,5 @@
import { observer } from "mobx-react";
import { PadlockIcon } from "outline-icons";
import { CodeIcon } from "outline-icons";
import { useTranslation, Trans } from "react-i18next";
import type ApiKey from "~/models/ApiKey";
import type OAuthAuthentication from "~/models/oauth/OAuthAuthentication";
@@ -29,7 +29,7 @@ function APIAndAccess() {
return (
<Scene
title={t("API & Access")}
icon={<PadlockIcon />}
icon={<CodeIcon />}
actions={
<>
{can.createApiKey && (
+1 -1
View File
@@ -117,7 +117,7 @@ function ApiKeys() {
}
wide
>
<Heading>{t("API Keys")}</Heading>
<Heading>{t("API keys")}</Heading>
<Text as="p" type="secondary">
<Trans
defaults="API keys can be used to authenticate with the API and programmatically control your workspace’s data. For more details see the <em>developer documentation</em>."
+3 -3
View File
@@ -185,8 +185,8 @@ function Details() {
return (
<ThemeProvider theme={newTheme}>
<Scene title={t("Details")} icon={<TeamIcon />}>
<Heading>{t("Details")}</Heading>
<Scene title={t("General")} icon={<TeamIcon />}>
<Heading>{t("General")}</Heading>
<Text as="p" type="secondary">
<Trans>
These settings affect the way that your workspace appears to
@@ -195,7 +195,7 @@ function Details() {
</Text>
<form onSubmit={handleSubmit} ref={form}>
<Heading as="h2">{t("Display")}</Heading>
<Heading as="h2">{t("Appearance")}</Heading>
<SettingRow
label={t("Logo")}
name="avatarUrl"
+3 -3
View File
@@ -181,7 +181,7 @@ function Preferences() {
<Trans>Manage settings that affect your personal experience.</Trans>
</Text>
<Heading as="h2">{t("Display")}</Heading>
<Heading as="h2">{t("Appearance")}</Heading>
<SettingRow
label={t("Language")}
name="language"
@@ -212,14 +212,14 @@ function Preferences() {
</SettingRow>
<SettingRow
name="theme"
label={t("Appearance")}
label={t("Theme")}
description={t("Choose your preferred interface color scheme.")}
>
<InputSelect
options={themeOptions}
value={ui.theme}
onChange={handleThemeChange}
label={t("Appearance")}
label={t("Theme")}
labelHidden
/>
</SettingRow>
-23
View File
@@ -31,7 +31,6 @@ function Security() {
memberCollectionCreate: team.memberCollectionCreate,
memberTeamCreate: team.memberTeamCreate,
inviteRequired: team.inviteRequired,
passkeysEnabled: team.passkeysEnabled,
});
const userRoleOptions: Option[] = React.useMemo(
@@ -132,13 +131,6 @@ function Security() {
[saveData]
);
const handlePasskeysEnabledChange = React.useCallback(
async (checked: boolean) => {
await saveData({ passkeysEnabled: checked });
},
[saveData]
);
const handleMemberCollectionCreateChange = React.useCallback(
async (checked: boolean) => {
await saveData({ memberCollectionCreate: checked });
@@ -312,21 +304,6 @@ function Security() {
</SettingRow>
)}
<Heading as="h2">{t("Authentication")}</Heading>
<SettingRow
label={t("Passkeys")}
name="passkeysEnabled"
description={t(
"Allow users to sign in with passkeys for passwordless authentication"
)}
>
<Switch
id="passkeysEnabled"
checked={data.passkeysEnabled}
onChange={handlePasskeysEnabledChange}
/>
</SettingRow>
<Heading as="h2">{t("Behavior")}</Heading>
<SettingRow
label={t("Public document sharing")}
+2 -2
View File
@@ -93,8 +93,8 @@ function Shares() {
}, [query, updateParams]);
return (
<Scene title={t("Shared Links")} icon={<GlobeIcon />} wide>
<Heading>{t("Shared Links")}</Heading>
<Scene title={t("Shared links")} icon={<GlobeIcon />} wide>
<Heading>{t("Shared links")}</Heading>
{can.update && !canShareDocuments && (
<>
+2 -2
View File
@@ -8,8 +8,8 @@ PluginManager.add([
...config,
type: Hook.Settings,
value: {
group: "Workspace",
after: "Shared Links",
group: "Developer",
after: "Applications",
icon: Icon,
description:
"Automate downstream workflows with real-time JSON POSTs, subscribe to events in Outline so external systems can react instantly.",
+19 -20
View File
@@ -854,18 +854,19 @@
"Unsubscribed": "Unsubscribed",
"Account": "Account",
"API & Access": "API & Access",
"Details": "Details",
"General": "General",
"Users": "Users",
"Authentication": "Authentication",
"Security": "Security",
"AI": "AI",
"Users": "Users",
"API Keys": "API Keys",
"Applications": "Applications",
"Shared Links": "Shared Links",
"Shared links": "Shared links",
"Import": "Import",
"Embeds": "Embeds",
"Configure which embed providers are available in the editor.": "Configure which embed providers are available in the editor.",
"Install": "Install",
"API keys": "API keys",
"Developer": "Developer",
"Applications": "Applications",
"API key": "API key",
"Show path to document": "Show path to document",
"Comment options": "Comment options",
@@ -1178,7 +1179,6 @@
"write": "write",
"create": "create",
"read and write": "read and write",
"API keys": "API keys",
"attachments": "attachments",
"collections": "collections",
"comments": "comments",
@@ -1216,6 +1216,18 @@
"Search titles only": "Search titles only",
"Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists",
"No documents found for your search filters.": "No documents found for your search filters.",
"Settings saved": "Settings saved",
"Copied to clipboard": "Copied to clipboard",
"Control how AI features are used in the workspace.": "Control how AI features are used in the workspace.",
"MCP server": "MCP server",
"Enabled": "Enabled",
"Let members connect AI assistants and other apps to this workspace. Connected apps can read and edit content with the same permissions as the member who connects them.": "Let members connect AI assistants and other apps to this workspace. Connected apps can read and edit content with the same permissions as the member who connects them.",
"Use this URL in your MCP client. See <a>the setup guide</a> for more details.": "Use this URL in your MCP client. See <a>the setup guide</a> for more details.",
"Copy URL": "Copy URL",
"Custom instructions": "Custom instructions",
"Optional instructions that are sent to connected AI apps, for example how your workspace is organized or where to find important information.": "Optional instructions that are sent to connected AI apps, for example how your workspace is organized or where to find important information.",
"AI answers": "AI answers",
"Show AI-generated answers to questions in search, based on content in your workspace. Requires a paid license.": "Show AI-generated answers to questions in search, based on content in your workspace. Requires a paid license.",
"Personal keys": "Personal keys",
"Create personal API keys to authenticate with the API and programmatically control your workspace’s data. For more details see the <em>developer documentation</em>.": "Create personal API keys to authenticate with the API and programmatically control your workspace’s data. For more details see the <em>developer documentation</em>.",
"API keys have been disabled by an admin for your account": "API keys have been disabled by an admin for your account",
@@ -1232,6 +1244,7 @@
"Displayed to users when authorizing": "Displayed to users when authorizing",
"Application icon": "Application icon",
"Confidential clients can securely store a secret": "Confidential clients can securely store a secret",
"Details": "Details",
"Developer information shown to users when authorizing": "Developer information shown to users when authorizing",
"Developer name": "Developer name",
"Developer URL": "Developer URL",
@@ -1239,7 +1252,6 @@
"Credentials": "Credentials",
"OAuth client ID": "OAuth client ID",
"The public identifier for this app": "The public identifier for this app",
"Copied to clipboard": "Copied to clipboard",
"OAuth client secret": "OAuth client secret",
"Store this value securely, do not expose it publicly": "Store this value securely, do not expose it publicly",
"Where users are redirected after authorizing this app": "Where users are redirected after authorizing this app",
@@ -1248,7 +1260,6 @@
"Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.": "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details see the <em>developer documentation</em>.",
"Group sync connected": "Group sync connected",
"Could not connect group sync": "Could not connect group sync",
"Settings saved": "Settings saved",
"Are you sure?": "Are you sure?",
"Removing": "Removing",
"Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.",
@@ -1399,7 +1410,6 @@
"Unable to upload new logo": "Unable to upload new logo",
"Delete workspace": "Delete workspace",
"These settings affect the way that your workspace appears to everyone on the team.": "These settings affect the way that your workspace appears to everyone on the team.",
"Display": "Display",
"The logo is displayed at the top left of the application.": "The logo is displayed at the top left of the application.",
"Workspace logo": "Workspace logo",
"The workspace name, usually the same as your company name.": "The workspace name, usually the same as your company name.",
@@ -1421,7 +1431,6 @@
"When enabled documents have a separate editing mode by default instead of being always editable. This setting can be overridden by user preferences.": "When enabled documents have a separate editing mode by default instead of being always editable. This setting can be overridden by user preferences.",
"Danger": "Danger",
"You can delete this entire workspace including collections, documents, and users.": "You can delete this entire workspace including collections, documents, and users.",
"Enabled": "Enabled",
"Allow supported providers to be inserted as interactive embeds in documents.": "Allow supported providers to be inserted as interactive embeds in documents.",
"Providers": "Providers",
"Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.",
@@ -1429,15 +1438,6 @@
"Export data": "Export data",
"A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to <em>{{ userEmail }}</em> when it’s complete.": "A full export might take some time, consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to <em>{{ userEmail }}</em> when it’s complete.",
"Recent exports": "Recent exports",
"Manage AI and integration features for your workspace.": "Manage AI and integration features for your workspace.",
"MCP server": "MCP server",
"Allow members to connect to this workspace with MCP to read and write data.": "Allow members to connect to this workspace with MCP to read and write data.",
"Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.": "Use the following endpoint to connect to the MCP server from your app. Find out more about setup in <a>the docs</a>.",
"Copy URL": "Copy URL",
"Additional guidance": "Additional guidance",
"You can use these optional instructions to tell MCP clients how to use your knowledge base.": "You can use these optional instructions to tell MCP clients how to use your knowledge base.",
"AI answers": "AI answers",
"Use AI to get direct answers to questions in search. This feature requires a paid license.": "Use AI to get direct answers to questions in search. This feature requires a paid license.",
"Could not load group members": "Could not load group members",
"Synced to {{ provider }}": "Synced to {{ provider }}",
"No description": "No description",
@@ -1528,7 +1528,6 @@
"Require members to be invited to the workspace before they can create an account using SSO.": "Require members to be invited to the workspace before they can create an account using SSO.",
"Default role": "Default role",
"The default user role for new accounts. Changing this setting does not affect existing user accounts.": "The default user role for new accounts. Changing this setting does not affect existing user accounts.",
"Allow users to sign in with passkeys for passwordless authentication": "Allow users to sign in with passkeys for passwordless authentication",
"When enabled, documents can be shared publicly on the internet by any member of the workspace": "When enabled, documents can be shared publicly on the internet by any member of the workspace",
"Viewer document exports": "Viewer document exports",
"When enabled, viewers can see download options for documents": "When enabled, viewers can see download options for documents",