Standardize Settings layout and save feedback (#2122)

* Group settings navigation menu

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Revert "Group settings navigation menu"

This reverts commit 5983a4e82074b8dab1084af1cadd803ba28ea65d.

* Standardize settings layout feedback

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Fix settings save status timer typing

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Retain settings save status

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Report color mode save state

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Match Appearance settings to two-column layout

Rebuild Appearance into Color mode & Theme, Localization, and Density & type sections with responsive two-column grids, consistent section headers, page description, and green save status.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Migrate settings pages to SettingsPageLayout and SettingsSection

Replace ScrollableOverlay/max-w-3xl shells with the shared settings
layout primitives across entity and static settings pages, normalize
section headers, and add settings.page.behavior.description locales.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Unify remaining settings pages on shared section chrome

Wire Appearance, Projects, and Remote Instances through SettingsSection/SettingsPageLayout so every settings surface shares the same header, divider, and page shell treatment.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Align settings UI with OpenChamber design system kit

Apply kit geometry and control specs: 840px content width, 32/48 padding, fixed 260/280 sidebars, radius/spacing tokens, settings select height, stepper dimensions, and shared field/link typography.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Migrate OpenChamberVisualSettings to shared settings primitives

Replace ad-hoc radio/checkbox/chip/field layouts with SettingsSection
shared chrome for Appearance, Density, Navigation, Chat/behavior, and
Privacy while preserving handlers and data-settings-item anchors.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Migrate settings pages to shared field/checkbox/radio primitives

Unify Defaults, Notifications, Behavior, Git, Session Retention, Passkeys,
OpenCode CLI, Commands, About, Keyboard Shortcuts, and Desktop Network on
SettingsFieldRow / SettingsCheckboxRow / SettingsRadioGroup / SettingsChipGroup
for consistent grid, spacing, and DRY layout. Also remove the GitPage double
SettingsSection wrap around GitHubSettings.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Unify remaining settings pages onto shared field primitives

Migrate Agents, Snippets, Skills, Usage, MCP identity rows and selects to
SettingsFieldRow/CheckboxRow/ChipGroup and SETTINGS_SELECT_*; align page
titles; light-touch Voice/Tunnel/Providers/Plugins without rewriting
complex OAuth, permissions, or tunnel flows.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Polish settings section dividers and transport helper text

Slightly stronger section borders for clearer group separation, and keep
message-stream transport description under the chip control.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Fix settings grid alignment, control heights, and Chat section titles

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Tighten settings grid: flat Chat 2x2 and full-width stacked selects

Message options use a flat two-column grid so row headers share a baseline.
Stacked selects fill their column; field-row selects keep a fixed sm:w-56 width.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Align mixed settings controls to shared FieldRow/CheckboxRow grid

Separate FieldRows from CheckboxRows with SettingsInset, move enum
radios into ControlGroups, and convert misplaced StackedFields to
full-width FieldRows so left edges no longer clash.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Translate Behavior response-style preset labels for es and pl

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Group settings nav into categories and improve icons/order

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Fix settings layout: fewer hrs, shared control widths, chat transport section

Remove SettingsInset top borders, align App install/Density controls to full cluster width, give Message Stream Transport its own Chat section, and fold Sessions Small Model into the first section to cut extra dividers.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Align Voice and MCP settings labels with shared heading classes

Swap form field labels to SETTINGS_FIELD_LABEL_CLASS and use
SettingsGroupTitle for MCP control-group headings (manual auth fallback,
request headers).

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Differentiate settings heading levels by context

Page titles are larger and quieter than section titles; group and field
labels use dedicated shared classes so hierarchy is consistent across
settings surfaces without ad-hoc typography mixes.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Use shared settings title classes in SettingsView home

Wire home and unavailable headings through the shared L1/L2 class
constants so they stay aligned with SettingsPageLayout.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Keep settings number steppers from stretching +/- buttons

Density & type NumberInputs no longer flex-grow across the row, and
NumberInput locks minus/plus to fixed width so the plus side cannot
inflate when the control is placed in a full-width cluster.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Place spacing and input-bar offset on their own row

Density & type now lays out as font families, then font sizes, then
Spacing Density / Input Bar Offset on the row below.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Regroup settings nav and improve Voice layout

Drop Advanced/Usage/Git nav categories: Voice and About under
Interface, Usage under OpenCode, Git under Workspace. Voice provider
chips and STT model cards use shared settings primitives with roomier
spacing and a two-column model grid.

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>

* Space out chat feature groups in visual settings

* Polish settings: save-state wiring, container-query layouts, unified dropdown triggers

- Wire shared save indicator into Behavior page saves and git identity CRUD
- Convert settings layout primitives and page rows from viewport to container
  queries so narrow panes stack instead of clipping
- Unify custom dropdown triggers (model/agent/provider pickers) and remaining
  page selects on the settings control size
- Bump global radius scale by 1px; align variant input with select size
- Migrate stray raw controls (MCP OAuth checkbox, worktree remove button,
  git identity dialog rows, skills dialog labels) onto shared primitives
- Make settings nav items span full sidebar width; trim nav to 240px

* Add General settings page, regroup nav, cap control widths, promote chat feature headers

* Mobile settings nav: plain background and touch-sized rows

* Hide secondary settings descriptions behind clickable info hints

* Move quota credentials to Usage, navigation settings to General, rename External Tunnel

* Quiet settings save indicator: silent success, delayed spinner, visible errors

* Rewrite settings-ui-patterns skill around shared primitives and refactored conventions

* Remove settings starter page; open last visited page, defaulting to General

* Settings polish: spacing, control sizes, trigger widths, readable model names, device dates

* Centralize dropdown trigger chrome, settings nav polish, mobile-only input bar offset

* Fix global line-height regression, auto-hide first-section divider, shortcut row spacing

* Global line-height 1.45, align scheduled tasks header button with select

* Hide editor toolbar and About in VS Code, animate chat render preview outside desktop dialog

* Rebuild agent tool permissions on source-of-truth model

Edit the agent's own permission map verbatim (inherit vs explicit actions, pattern rules only for pattern-capable keys), save permission-only, drop the server-side non-wildcard re-merge that resurrected deleted rules, and surface session-granted rules as read-only.

* Agents model parameters polish: row spacing, variant dropdown, unified widths, dash for unset numbers

---------

Co-authored-by: Serhii Dziupin <makeittech@users.noreply.github.com>
Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
Serhii Dziupin
2026-07-18 00:11:05 +03:00
committed by GitHub
co-authored by Serhii Dziupin Bohdan Triapitsyn
parent 1b402fcb67
commit 17f1b24709
103 changed files with 6406 additions and 6110 deletions
@@ -47,6 +47,10 @@ export const settingsDict = {
'settings.view.search.aria': '設定を検索',
'settings.view.search.clear': '設定検索をクリア',
'settings.view.search.noResults': '該当する設定がありません',
'settings.view.nav.group.general': 'OpenChamber',
'settings.view.nav.group.projects': 'ワークスペース',
'settings.view.nav.group.opencode': 'OpenCode',
'settings.view.nav.group.content': 'ライブラリ',
'settings.page.projects.title': 'プロジェクト',
'settings.page.remoteInstances.title': 'リモートインスタンス',
'settings.page.providers.title': 'プロバイダー',
@@ -59,13 +63,22 @@ export const settingsDict = {
'settings.page.skillsCatalog.title': 'スキルカタログ',
'settings.page.git.title': 'Git',
'settings.page.appearance.title': '外観',
'settings.page.appearance.description': 'OpenChamber の見た目と操作感をカスタマイズします。',
'settings.page.chat.title': 'チャット',
'settings.page.chat.description': 'メッセージとツールの表示方法を設定します。',
'settings.page.shortcuts.title': 'ショートカット',
'settings.page.shortcuts.description': 'キーボードショートカットをカスタマイズします。',
'settings.page.general.title': '一般',
'settings.page.general.description': 'アプリの起動、セキュリティ、接続、プライバシー。',
'settings.page.sessions.title': 'セッション',
'settings.page.sessions.description': 'セッションのデフォルトと保持期間を設定します。',
'settings.page.magicPrompts.title': 'マジックプロンプト',
'settings.page.notifications.title': '通知',
'settings.page.notifications.description': '通知のタイミングと方法を選択します。',
'settings.page.voice.title': '音声',
'settings.page.tunnel.title': 'リモートトンネル',
'settings.page.voice.description': '音声読み上げとディクテーションを設定します。',
'settings.page.tunnel.title': '外部トンネル',
'settings.page.tunnel.description': 'このインスタンスをリモートトンネルで公開します。',
'settings.page.about.title': '概要',
'settings.page.snippets.title': 'スニペット',
'settings.snippets.sidebar.title': 'スニペット',
@@ -123,7 +136,7 @@ export const settingsDict = {
'settings.promptTemplates.page.toast.created': 'Template を作成しました',
'settings.promptTemplates.page.toast.createFailed': 'Template の作成に失敗しました',
'settings.promptTemplates.page.toast.saveUnexpectedError': '保存中に予期しないエラーが発生しました',
'settings.openchamber.tunnel.title': 'リモートトンネル',
'settings.openchamber.tunnel.title': '外部トンネル',
'settings.openchamber.tunnel.description': 'クイックリンクまたは自身で管理するリモート Cloudflare Tunnel を使用して安全なリモートアクセスを設定します。',
'settings.openchamber.tunnel.note.serverSideEnforced': '安全な Tunnel アクセスはサーバー側で強制されます。',
'settings.openchamber.tunnel.note.connectLinksOneTime': '接続リンクは一度きりで、Tunnel が停止するか接続リンクの TTL が期限切れになると無効になります。',
@@ -399,6 +412,7 @@ export const settingsDict = {
'settings.remoteInstances.page.logsDialog.selectedInstanceFallback': '選択したインスタンス',
'settings.remoteInstances.page.patternDialog.descriptionWithHost': '{host} には具体的な接続先が必要です。',
'settings.remoteInstances.page.patternDialog.description': '接続先を入力してください。',
'settings.common.infoAria': '詳細情報',
'settings.common.actions.cancel': 'キャンセル',
'settings.common.actions.create': '作成',
'settings.common.actions.delete': '削除',
@@ -409,6 +423,8 @@ export const settingsDict = {
'settings.common.actions.copyAll': 'すべてコピー',
'settings.common.actions.clear': 'クリア',
'settings.common.actions.saving': '保存中...',
'settings.common.status.saved': '保存済み',
'settings.common.status.saveFailed': '保存に失敗しました',
'settings.common.actions.saveChanges': '変更を保存',
'settings.common.scope.global': 'グローバル',
'settings.common.scope.project': 'プロジェクト',
@@ -493,6 +509,33 @@ export const settingsDict = {
'settings.agents.page.section.identityRole': '識別情報と役割',
'settings.agents.page.section.modelParameters': 'モデルとパラメーター',
'settings.agents.page.section.systemPrompt': 'システムプロンプト',
'settings.agents.page.permissionsEditor.sectionInfo': 'このエージェント自身の権限ルールを、設定に保存されているとおりに編集します。「継承」はキーを未設定のままにし、グローバル設定とデフォルトが適用されます。',
'settings.agents.page.permissionsEditor.defaultLabel': '全ツールのデフォルト',
'settings.agents.page.permissionsEditor.defaultAria': '全ツールのデフォルト権限',
'settings.agents.page.permissionsEditor.defaultInfo': 'エージェントレベルのフォールバック(* キー)。個別ルールのないツールに適用されます。',
'settings.agents.page.permissionsEditor.effectiveHint': '→ {action}',
'settings.agents.page.permissionsEditor.ruleCount': '{count} 件のルール',
'settings.agents.page.permissionsEditor.keyAria': '{key} の権限',
'settings.agents.page.permissionsEditor.patternPlaceholder': 'パターン(例: rm -rf * や /path/**)',
'settings.agents.page.permissionsEditor.patternActionAria': '{key} パターンのアクション',
'settings.agents.page.permissionsEditor.customKeyPlaceholder': 'カスタム権限キー…',
'settings.agents.page.permissionsEditor.sessionRulesTitle': 'セッションで許可(未保存)',
'settings.agents.page.permissionsEditor.sessionRulesInfo': 'ライブセッション中に許可されたルール(「常に許可」の回答など)。現在は有効ですが、保存された設定には含まれず、再起動で消えます。',
'settings.agents.page.permissionsEditor.action.default': 'デフォルト',
'settings.agents.page.permissionsEditor.action.inherit': '継承',
'settings.agents.page.permissionsEditor.action.allow': '許可',
'settings.agents.page.permissionsEditor.action.ask': '確認',
'settings.agents.page.permissionsEditor.action.deny': '拒否',
'settings.agents.page.permissionsEditor.actions.save': '権限を保存',
'settings.agents.page.permissionsEditor.actions.discard': '破棄',
'settings.agents.page.permissionsEditor.actions.addRule': 'ルールを追加',
'settings.agents.page.permissionsEditor.actions.addKey': 'キーを追加',
'settings.agents.page.permissionsEditor.actions.removeRuleAria': 'ルールを削除',
'settings.agents.page.permissionsEditor.actions.retry': '再試行',
'settings.agents.page.permissionsEditor.state.loadFailed': 'エージェントの権限設定を読み込めませんでした。',
'settings.agents.page.permissionsEditor.toast.saved': '権限を保存しました',
'settings.agents.page.permissionsEditor.toast.savedRestartRequired': '権限を保存しました — 適用するには OpenCode サーバーを再起動してください',
'settings.agents.page.permissionsEditor.toast.saveFailed': '権限の保存に失敗しました',
'settings.agents.page.section.toolPermissions': 'ツール権限',
'settings.agents.page.field.agentName': 'Agent 名',
'settings.agents.page.field.agentNamePlaceholder': 'agent-name',
@@ -528,6 +571,7 @@ export const settingsDict = {
'settings.agents.page.permissions.permissionPlaceholder': '権限...',
'settings.agents.page.permissions.patternPlaceholder': 'パターン(例: *)',
'settings.page.behavior.title': '動作',
'settings.page.behavior.description': 'エージェントの応答の仕方をガイドします。',
'settings.behavior.page.title': '動作',
'settings.behavior.page.warning.title': 'グローバルルールはプロジェクトルールと組み合わされます',
'settings.behavior.page.warning.description': 'ここでの変更は {path} を更新します。OpenCode はプロジェクトレベルの AGENTS.md ルールも存在する場合は含めます。',
@@ -913,6 +957,8 @@ export const settingsDict = {
'settings.openchamber.desktopNetwork.field.allowLanAccessDescription': 'アプリを再起動して、Wi-Fi 上の他のデバイスから開けるようにします。',
'settings.openchamber.desktopNetwork.field.warning': '警告: 有効にすると、アプリは同じローカルネットワーク上の誰からもアクセス可能になります。',
'settings.openchamber.desktopNetwork.field.passwordRequiredWarning': 'LAN アクセスには Desktop UI パスワードが必要です。設定されるまで、Desktop アプリはローカルのみで起動します。',
'settings.openchamber.desktopPassword.actions.showPassword': 'パスワードを表示',
'settings.openchamber.desktopPassword.actions.hidePassword': 'パスワードを非表示',
'settings.openchamber.desktopPassword.field.password': 'Desktop UI パスワード',
'settings.openchamber.desktopPassword.field.passwordPlaceholder': 'パスワード不要',
'settings.openchamber.desktopPassword.field.passwordDescription': 'OpenChamber は再起動後、およびログイン Session の有効期限後(12時間、または「このデバイスを信頼」の場合は7日)に確認を求めます。空のままにするとログインが無効になります。',
@@ -1618,6 +1664,7 @@ export const settingsDict = {
'settings.voice.page.section.playbackAndSummary': '再生',
'settings.voice.page.field.provider': 'プロバイダー',
'settings.voice.page.provider.browser': 'ブラウザ',
'settings.voice.page.provider.openai': 'OpenAI',
'settings.voice.page.provider.custom': 'カスタム',
'settings.voice.page.provider.say': 'Say',
'settings.voice.page.provider.server': 'サーバー',
@@ -1697,18 +1744,24 @@ export const settingsDict = {
'settings.voice.page.field.ttsInputModeRaw': '生 Markdown',
'settings.voice.page.field.ttsInputModeSummarized': '要約',
'settings.openchamber.visual.section.colorMode': 'カラーモード',
'settings.openchamber.visual.section.colorModeAndTheme': 'カラーモードとテーマ',
'settings.openchamber.visual.section.mobileLayout': 'モバイルレイアウト',
'settings.openchamber.visual.option.mobileLayout.default': '旧',
'settings.openchamber.visual.option.mobileLayout.new': '新',
'settings.openchamber.visual.section.localization': 'ローカライゼーション',
'settings.openchamber.visual.section.spacingAndLayout': '間隔とレイアウト',
'settings.openchamber.visual.section.densityAndType': '密度と書体',
'settings.openchamber.visual.section.appInstall': 'アプリのインストール',
'settings.openchamber.visual.section.navigation': 'ナビゲーション',
'settings.openchamber.visual.section.chatRenderMode': 'Chat 表示モード',
'settings.openchamber.visual.section.chatRenderModeAria': 'Chat 表示モード',
'settings.openchamber.visual.section.chatDisplay': '表示',
'settings.openchamber.visual.section.chatMessageOptions': 'メッセージオプション',
'settings.openchamber.visual.section.chatFeatures': '機能',
'settings.openchamber.visual.section.messageStreamTransport': 'メッセージストリーム転送',
'settings.openchamber.visual.section.activityDefault': 'アクティビティデフォルト',
'settings.openchamber.visual.section.activityDefaultAria': 'アクティビティデフォルトモード',
'settings.openchamber.visual.section.showToolsOpenedByDefault': 'デフォルトで開くツールを表示:',
'settings.openchamber.visual.section.showToolsOpenedByDefault': 'デフォルトで開くツールを表示',
'settings.openchamber.visual.section.sessionAssistance': 'セッション支援',
'settings.openchamber.visual.section.reasoning': '推論',
'settings.openchamber.visual.section.messageAppearance': 'メッセージの外観',
@@ -1839,8 +1892,11 @@ export const settingsDict = {
'settings.openchamber.visual.field.sendAnonymousUsageReports': '匿名使用状況レポートを送信',
'settings.openchamber.visual.field.sendAnonymousUsageReportsHint': 'どのアプリバージョンがアクティブに使用されているかを把握し、改善の優先順位を決めるのに役立ちます。収集されるのはアプリバージョン、プラットフォーム、ランタイムのみで、個人データやコードは収集されません。',
'settings.openchamber.visual.option.themeMode.system': 'システム',
'settings.openchamber.visual.option.themeMode.system.description': 'システム設定に合わせる',
'settings.openchamber.visual.option.themeMode.light': 'ライト',
'settings.openchamber.visual.option.themeMode.light.description': '常にライト表示を使用',
'settings.openchamber.visual.option.themeMode.dark': 'ダーク',
'settings.openchamber.visual.option.themeMode.dark.description': '常にダーク表示を使用',
'settings.openchamber.visual.option.diffLayout.dynamic.label': '動的',
'settings.openchamber.visual.option.diffLayout.dynamic.description': '新規はインライン、変更は並列表示。',
'settings.openchamber.visual.option.diffLayout.inline.label': '常にインライン',