Skip to content

Commit 19681fd

Browse files
authored
Experimental settings BETA tag (#509)
* Add BETA tag for experimental setting * Mark node searchbox impl as experimental * nit
1 parent add2f9b commit 19681fd

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

src/components/dialog/content/setting/SettingGroup.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
class="setting-item"
99
>
1010
<div class="setting-label">
11-
<span
12-
>{{ setting.name }}
11+
<span>
12+
<Tag v-if="setting.experimental" :value="$t('experimental')" />
13+
{{ setting.name }}
1314
<i
1415
v-if="setting.tooltip"
1516
class="pi pi-info-circle info-chip"
@@ -38,6 +39,7 @@ import InputNumber from 'primevue/inputnumber'
3839
import Select from 'primevue/select'
3940
import ToggleSwitch from 'primevue/toggleswitch'
4041
import Divider from 'primevue/divider'
42+
import Tag from 'primevue/tag'
4143
import CustomSettingValue from '@/components/dialog/content/setting/CustomSettingValue.vue'
4244
import InputSlider from '@/components/dialog/content/setting/InputSlider.vue'
4345
import { formatCamelCase } from '@/utils/formatUtil'

src/i18n.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { createI18n } from 'vue-i18n'
33
const messages = {
44
en: {
55
delete: 'Delete',
6+
experimental: 'BETA',
67
loadWorkflow: 'Load Workflow',
78
settings: 'Settings',
89
searchSettings: 'Search Settings',

src/scripts/ui/menu/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ export class ComfyAppMenu {
160160
id: 'Comfy.UseNewMenu',
161161
category: ['Comfy', 'Menu', 'UseNewMenu'],
162162
defaultValue: 'Disabled',
163-
name: '[Beta] Use new menu and workflow management.',
163+
name: 'Use new menu and workflow management.',
164+
experimental: true,
164165
tooltip: 'On small screens the menu will always be at the top.',
165166
type: 'combo',
166167
options: ['Disabled', 'Top', 'Bottom'],

src/stores/settingStore.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export const useSettingStore = defineStore('setting', {
6969
app.ui.settings.addSetting({
7070
id: 'Comfy.NodeSearchBoxImpl',
7171
category: ['Comfy', 'Node Search Box', 'Implementation'],
72-
name: 'Node Search box implementation',
72+
experimental: true,
73+
name: 'Node search box implementation',
7374
type: 'combo',
7475
options: ['default', 'litegraph (legacy)'],
7576
defaultValue: 'default'
@@ -88,7 +89,7 @@ export const useSettingStore = defineStore('setting', {
8889
app.ui.settings.addSetting({
8990
id: 'Comfy.NodeSearchBoxImpl.NodePreview',
9091
category: ['Comfy', 'Node Search Box', 'NodePreview'],
91-
name: 'Node Preview',
92+
name: 'Node preview',
9293
tooltip: 'Only applies to the default implementation',
9394
type: 'boolean',
9495
defaultValue: true

src/types/settingTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ export interface SettingParams {
4343
// default category from id.
4444
// Note: Like id, category value need to be unique.
4545
category?: string[]
46+
experimental?: boolean
4647
}

0 commit comments

Comments
 (0)