mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-08 11:23:25 +00:00
fix(app): simplify notifications settings heading
This commit is contained in:
parent
6776d1a81e
commit
3b645690ea
15 changed files with 16 additions and 9 deletions
|
|
@ -69,7 +69,7 @@ export const DialogSettings: Component<{
|
|||
</TabsV2.Trigger>
|
||||
<TabsV2.Trigger value="notifications">
|
||||
<Icon name="notifications" />
|
||||
{language.t("settings.general.section.notifications")}
|
||||
{language.t("settings.tab.notifications")}
|
||||
</TabsV2.Trigger>
|
||||
<TabsV2.Trigger value="shortcuts">
|
||||
<Icon name="keyboard" />
|
||||
|
|
|
|||
|
|
@ -6,11 +6,7 @@ import { useLanguage } from "@/context/language"
|
|||
import { useSettings } from "@/context/settings"
|
||||
import { SettingsListV2 } from "./parts/list"
|
||||
import { SettingsRowV2 } from "./parts/row"
|
||||
import {
|
||||
createSoundSettingsController,
|
||||
soundOptions,
|
||||
type SoundSettingsController,
|
||||
} from "./general-controllers"
|
||||
import { createSoundSettingsController, soundOptions, type SoundSettingsController } from "./general-controllers"
|
||||
import "./settings-v2.css"
|
||||
|
||||
const soundSettings = {
|
||||
|
|
@ -73,7 +69,7 @@ export const SettingsNotificationsV2: Component = () => {
|
|||
<>
|
||||
<div class="settings-v2-tab-header">
|
||||
<div class="settings-v2-tab-header-row">
|
||||
<h2 class="settings-v2-tab-title">{language.t("settings.general.section.notifications")}</h2>
|
||||
<h2 class="settings-v2-tab-title">{language.t("settings.tab.notifications")}</h2>
|
||||
<ButtonV2 size="small" variant="ghost-muted" onClick={restoreDefaults}>
|
||||
{language.t("common.reset")}
|
||||
</ButtonV2>
|
||||
|
|
@ -82,7 +78,6 @@ export const SettingsNotificationsV2: Component = () => {
|
|||
|
||||
<div class="settings-v2-tab-body">
|
||||
<div class="settings-v2-section">
|
||||
<h3 class="settings-v2-section-title">{language.t("settings.general.section.notifications")}</h3>
|
||||
<SettingsListV2>
|
||||
<SettingsRowV2
|
||||
title={language.t("settings.general.notifications.agent.title")}
|
||||
|
|
@ -128,7 +123,6 @@ export const SettingsNotificationsV2: Component = () => {
|
|||
<SoundSetting kind="agent" channel={sounds.agent} />
|
||||
<SoundSetting kind="permissions" channel={sounds.permissions} />
|
||||
<SoundSetting kind="errors" channel={sounds.errors} />
|
||||
|
||||
</SettingsListV2>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1024,4 +1024,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1040,4 +1040,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1116,4 +1116,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -846,6 +846,7 @@ export const dict = {
|
|||
"settings.tab.general": "General",
|
||||
"settings.tab.preferences": "Preferences",
|
||||
"settings.tab.shortcuts": "Shortcuts",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
"settings.tab.projects": "Projects",
|
||||
"settings.tab.extensions": "Extensions",
|
||||
"settings.server.all": "All servers",
|
||||
|
|
|
|||
|
|
@ -1124,4 +1124,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1127,4 +1127,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
} satisfies Partial<Record<Keys, string>>
|
||||
|
|
|
|||
|
|
@ -1040,4 +1040,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1119,4 +1119,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1103,4 +1103,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1122,4 +1122,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
} satisfies Partial<Record<Keys, string>>
|
||||
|
|
|
|||
|
|
@ -1121,4 +1121,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1094,4 +1094,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
} satisfies Partial<Record<Keys, string>>
|
||||
|
|
|
|||
|
|
@ -1090,4 +1090,5 @@ export const dict = {
|
|||
"settings.extensions.availableAll": "Available to all projects",
|
||||
"settings.extensions.manageConfig": "Manage in opencode.json",
|
||||
"settings.extensions.addSkills": "How to add skills",
|
||||
"settings.tab.notifications": "Notifications",
|
||||
} satisfies Partial<Record<Keys, string>>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue