Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Feedback: header screenshots at in-between widths in the browser test

Bowen Xue8a204a0fce43
diff --git a/freevideo_engine/comfy_progress.py b/freevideo_engine/comfy_progress.py
index 2a016c3..8b22e38 100644
--- a/freevideo_engine/comfy_progress.py
+++ b/freevideo_engine/comfy_progress.py
@@ -318,6 +318,12 @@ def register():
return web.Response(body=data, content_type='image/jpeg', headers={
'Cache-Control': 'no-store', 'X-Content-Type-Options': 'nosniff'})
+ @server.routes.get('/freevideo/feedback-info')
+ async def feedback_info(request):
+ from . import feedback
+ info = await asyncio.to_thread(feedback.collect, request.query.get('report_id'))
+ return web.json_response(info, headers={'Cache-Control': 'no-store'})
+
@server.routes.get('/freevideo/progress')
async def progress(request):
return web.json_response({'progress': STATE.snapshot()},
diff --git a/freevideo_engine/feedback.py b/freevideo_engine/feedback.py
new file mode 100644
index 0000000..2c2f0c2
--- /dev/null
+++ b/freevideo_engine/feedback.py
@@ -0,0 +1,69 @@
+"""The diagnostic summary a user may add to a suggestion (it is put in the GitHub page).
+
+Only the redacted fields the report form already uses: version, hardware,
+settings and timings. No prompt, reference or picture is read here.
+"""
+import json
+import re
+
+# The summary travels in a GitHub page address, which has to stay short.
+MAX_DIAGNOSTICS = 3000
+# Anything that looks like a file location or a long secret-like token is replaced.
+# A location may contain spaces, so it is removed to the end of the line or quote.
+PATH = re.compile(r'(?:[A-Za-z]:[\\/]|\\\\|~[\\/])[^\'"<>|\r\n]+|(?<![\w/.])/[\w.\-]+(?:/[^\'"<>|\r\n]+)+')
+TOKEN = re.compile(r'\b[A-Za-z0-9_\-]{32,}\b')
+HARDWARE_KEYS = ('gpu_name', 'vram_total', 'ram_total', 'system', 'architecture', 'driver_version',
+ 'torch_version', 'cuda_version')
+
+
+def scrub(value):
+ return TOKEN.sub('<token>', PATH.sub('<path>', str(value)))
+
+
+def summary(report, machine=None):
+ """The diagnostic summary: the same redacted fields the report form uses, no prompt or picture.
+
+ report is the parsed diagnostic report of the latest generation (or None);
+ machine is the installation's machine record (or None).
+ """
+ out = {}
+ hardware = {}
+ if isinstance(machine, dict) and isinstance(machine.get('hardware'), dict):
+ hardware.update({k: v for k, v in machine['hardware'].items() if k in HARDWARE_KEYS})
+ analysis = report.get('analysis') if isinstance(report, dict) else None
+ if isinstance(analysis, dict):
+ if isinstance(analysis.get('hardware'), dict):
+ hardware.update({k: v for k, v in analysis['hardware'].items() if k in HARDWARE_KEYS})
+ for key in ('version', 'status', 'request_seconds', 'geometry', 'config', 'stages', 'budgets'):
+ if key in analysis:
+ out[key] = analysis[key]
+ errors = analysis.get('errors')
+ if isinstance(errors, list):
+ out['errors'] = [scrub(e)[:300] for e in errors[:3]]
+ if hardware:
+ out['hardware'] = hardware
+ # Bound the whole summary; drop the largest optional parts first.
+ for key in ('stages', 'config', 'errors', 'budgets', 'geometry'):
+ if len(json.dumps(out, separators=(',', ':'), ensure_ascii=False)) <= MAX_DIAGNOSTICS:
+ break
+ out.pop(key, None)
+ return out
+
+
+def collect(report_id=None):
+ """The diagnostic summary for the latest generation, or for this machine alone before any."""
+ report = machine = None
+ try:
+ from .comfy_progress import REPORTS
+ with REPORTS.lock:
+ token = report_id if report_id in REPORTS.runs else next(reversed(REPORTS.runs), None)
+ if token:
+ report = json.loads(REPORTS.snapshot(token))
+ except (KeyError, OSError, RuntimeError, ValueError, TypeError):
+ report = None
+ try:
+ from .comfy_bridge import installation
+ machine = installation()[1]
+ except Exception: # Setup problems must not stop a suggestion from being sent.
+ machine = None
+ return summary(report, machine)
diff --git a/web/autopilot.js b/web/autopilot.js
index 9453dd5..a0db975 100644
--- a/web/autopilot.js
+++ b/web/autopilot.js
@@ -6,6 +6,7 @@ import { openEditorView } from './editor_loader.js';
import { closeDialog } from './motion.js';
import { productVersion } from './updates.js';
import { openSetup } from './setup.js';
+import { feedbackButton } from './feedback.js';
import { openExtendEditor, openStudio, showNodes } from './studio.js';
import { viewChanged, viewSwitch } from './view_navigation.js';
import { wordmark } from './wordmark.js';
@@ -33,7 +34,7 @@ export function openAutopilotView(node, {studio = null} = {}) {
go.type = halt.type = 'button'; go.append(ring, name, more, percent, eta); now.append(go, halt);
halt.title = t('Stop all', '全部停止'); halt.setAttribute('aria-label', halt.title);
const line = el('i', 'fv-autopilot-line');
- tools.append(now, lamp, settings);
+ tools.append(now, lamp, feedbackButton(t), settings);
// The view chosen next takes over once this page has closed; Escape goes back to what is underneath.
let next = () => studio?.open ? viewChanged('studio', node) : viewChanged('nodes', node);
const leave = action => { next = action; closeDialog(dialog); };
diff --git a/web/editor.js b/web/editor.js
index 048f632..64f4abd 100644
--- a/web/editor.js
+++ b/web/editor.js
@@ -4,6 +4,7 @@ import {isText} from './editor_text_model.js';
import {viewSwitch, viewChanged} from './view_navigation.js';
import {wordmark} from './wordmark.js';
import {openSetup} from './setup.js';
+import {feedbackButton} from './feedback.js';
import * as model from './editor_model.js';
import {createEditorState} from './editor_state.js';
import {createEditorStore, sourceKey, mediaURL} from './editor_store.js';
@@ -182,7 +183,7 @@ export function openEditor({api, app, from = null, panel = {}, components: given
}, 'fv-primary');
const exportCancel = button('', () => store.cancelExport(exportStatus.id).catch(error)); exportCancel.hidden = true; exportCancel.append(icon('m4 4 8 8M12 4l-8 8')); exportCancel.setAttribute('aria-label', t('Cancel', '取消'));
exportBox.append(exportHint, exportButton, exportCancel); brand.append(wordmark(), title);
- headerActions.append(exportBox, button(t('Settings', '设置'), openSetup, 'fv-quiet'));
+ headerActions.append(exportBox, feedbackButton(t), button(t('Settings', '设置'), openSetup, 'fv-quiet'));
top.append(brand, navigation, headerActions);
const headerFit = fitEditorHeader(top, brand, title, navigation, headerActions);
const menu = el('div', 'fv-ed-name-menu'); menu.hidden = true; menu.setAttribute('role', 'menu');
diff --git a/web/feedback.css b/web/feedback.css
new file mode 100644
index 0000000..5cfe82f
--- /dev/null
+++ b/web/feedback.css
@@ -0,0 +1,15 @@
+.fv-feedback textarea{margin-top:16px;min-height:112px}
+.fv-feedback label.fv-check{margin:14px 0 0}
+.fv-feedback .fv-feedback-shot{position:relative;margin:10px 0 0 25px;width:max-content;max-width:calc(100% - 25px)}
+.fv-feedback .fv-feedback-shot img{display:block;max-width:100%;max-height:96px;border:1px solid var(--fv-border);border-radius:var(--fv-r-sm)}
+.fv-feedback .fv-feedback-shot button{position:absolute;top:4px;right:4px;min-height:22px;width:22px;padding:0;line-height:1;border-radius:50%;background:var(--fv-bg);border-color:var(--fv-border);color:var(--fv-ink)}
+.fv-feedback .fv-feedback-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:20px}
+.fv-feedback .fv-feedback-status{flex:1;margin:0;min-width:0;color:#a5b3c6;font-size:13px;line-height:1.45;text-decoration:none}
+.fv-feedback .fv-feedback-actions button{flex:none;min-width:88px}
+/* Header buttons never break into lines; where the header cannot hold the entry beside Settings, only Settings stays. */
+.fv-header-actions>button{white-space:nowrap}
+@media(max-width:1040px){.fv-autopilot .fv-header-actions>.fv-feedback-entry{display:none}}
+/* Below 801 px the editor's header has room for the name, the view switch and Export only; the entry is in the other views. */
+@media(max-width:800px){.fv-editor .fv-header-actions>.fv-feedback-entry{display:none}}
+/* On a narrow screen the line gets the whole width above the button. */
+@media(max-width:480px){.fv-feedback .fv-feedback-actions{flex-wrap:wrap;row-gap:10px}.fv-feedback .fv-feedback-status{flex:1 0 100%}.fv-feedback .fv-feedback-status:empty{display:none}}
diff --git a/web/feedback.js b/web/feedback.js
new file mode 100644
index 0000000..6dd3510
--- /dev/null
+++ b/web/feedback.js
@@ -0,0 +1,223 @@
+// The "Feedback" entry: one sentence, optionally the page's picture and a
+// diagnostic summary (both off until ticked). Sending opens the GitHub
+// suggestion page with the text (and summary) filled in; the user submits it
+// there. The picture cannot travel in a link, so it is put on the clipboard
+// for pasting. The entry sits beside Settings in every view.
+import { api } from '../../scripts/api.js';
+import { closeDialog } from './motion.js';
+import { isolateDialogKeys, routeDialogKey } from './dialog_keys.js';
+import { productVersion } from './updates.js';
+
+const ISSUE_FORM = 'https://github.com/FlashML-org/FreeVideo/issues/new';
+const DRAFT_KEY = 'freevideo.feedback-draft';
+const MAX_TEXT = 1500;
+const MAX_DIAGNOSTICS = 3000;
+const MAX_ADDRESS = 7000;
+const SHOT_WIDTH = 1600;
+
+for (const name of ['setup.css', 'feedback.css']) {
+ if (document.head.querySelector(`link[href$="${name}"]`)) continue;
+ const link = document.createElement('link'); link.rel = 'stylesheet'; link.href = new URL('./' + name, import.meta.url).href;
+ document.head.append(link);
+}
+
+// The GitHub page for a suggestion, with the text (and, when asked for, the
+// summary) already in it.
+export function feedbackIssueURL(text, version = null, diagnostics = '') {
+ return feedbackIssueParts(text, version, diagnostics).url;
+}
+
+// Same, and whether the end of the text had to be left off to fit the address.
+export function feedbackIssueParts(text, version = null, diagnostics = '') {
+ const build = (body, extra) => {
+ const params = new URLSearchParams({ template: 'feedback.yml', title: '[Feedback]', feedback: body });
+ if (version) params.set('version', `v${version}`);
+ if (extra) params.set('diagnostics', extra);
+ return `${ISSUE_FORM}?${params}`;
+ };
+ const whole = String(text || '').slice(0, MAX_TEXT);
+ let body = whole, extra = String(diagnostics || '').slice(0, MAX_DIAGNOSTICS);
+ // GitHub refuses very long addresses; the summary gives way first, then the end of the text.
+ while (build(body, extra).length > MAX_ADDRESS && extra) extra = extra.slice(0, Math.max(0, extra.length - 250));
+ while (build(body, extra).length > MAX_ADDRESS && body.length > 1) body = body.slice(0, Math.floor(body.length * 0.9));
+ return { url: build(body, extra), truncated: body.length < whole.length };
+}
+
+function readDraft() { try { return localStorage.getItem(DRAFT_KEY) || ''; } catch { return ''; } }
+function writeDraft(text) {
+ try { text ? localStorage.setItem(DRAFT_KEY, text) : localStorage.removeItem(DRAFT_KEY); } catch { /* The text stays in the box. */ }
+}
+
+// The current tab as one PNG: the browser asks the user to share it, and the
+// dialog hides for the moment of capture so the page is what shows.
+async function capturePage(hide) {
+ const media = navigator.mediaDevices;
+ if (!media?.getDisplayMedia) throw Object.assign(new Error('unsupported'), { name: 'NotSupportedError' });
+ const stream = await media.getDisplayMedia({ video: { displaySurface: 'browser' }, audio: false,
+ preferCurrentTab: true, selfBrowserSurface: 'include', surfaceSwitching: 'exclude' });
+ try {
+ const video = document.createElement('video'); video.muted = true; video.srcObject = stream;
+ // A tab that never produces a frame must not leave the box waiting.
+ await Promise.race([video.play(), new Promise((_, fail) => setTimeout(() => fail(new Error('no frame')), 5000))]);
+ const restore = hide();
+ try {
+ await new Promise(done => setTimeout(done, 180));
+ const width = video.videoWidth, height = video.videoHeight;
+ if (!width || !height) throw new Error('empty');
+ const scale = Math.min(1, SHOT_WIDTH / width);
+ const canvas = document.createElement('canvas');
+ canvas.width = Math.max(1, Math.round(width * scale)); canvas.height = Math.max(1, Math.round(height * scale));
+ canvas.getContext('2d').drawImage(video, 0, 0, canvas.width, canvas.height);
+ const blob = await new Promise(done => canvas.toBlob(done, 'image/png'));
+ if (!blob) throw new Error('empty');
+ return blob;
+ } finally { restore(); }
+ } finally { for (const track of stream.getTracks()) track.stop(); }
+}
+
+// The engine's redacted summary (hardware, settings, timings; no prompt or
+// picture) as one compact line of text; '' when it cannot be read.
+export async function readDiagnostics(fetchApi = p => api.fetchApi(p)) {
+ try {
+ const response = await fetchApi('/freevideo/feedback-info');
+ if (!response.ok) return '';
+ return JSON.stringify(await response.json()).slice(0, MAX_DIAGNOSTICS);
+ } catch { return ''; }
+}
+
+// Puts the picture on the clipboard; resolves to whether it got there.
+export async function copyPicture(blob, clipboard = navigator.clipboard) {
+ try {
+ if (!clipboard?.write || typeof ClipboardItem === 'undefined') return false;
+ await clipboard.write([new ClipboardItem({ [blob.type]: blob })]);
+ return true;
+ } catch { return false; }
+}
+
+const el = (tag, cls, text) => {
+ const e = document.createElement(tag); if (cls) e.className = cls; if (text != null) e.textContent = text;
+ return e;
+};
+
+// True when the browser opened the page; false when it blocked it.
+function openPage(address) {
+ const page = window.open(address, '_blank');
+ if (!page) return false;
+ try { page.opener = null; } catch { /* Same-origin only; the page is GitHub's. */ }
+ return true;
+}
+
+async function copyText(text, clipboard = navigator.clipboard) {
+ try { await clipboard.writeText(text); return true; } catch { return false; }
+}
+
+let current = null;
+
+export function openFeedback(t, { open = openPage, version = productVersion,
+ fetchApi = p => api.fetchApi(p) } = {}) {
+ if (current?.open) { current.querySelector('textarea')?.focus(); return current; }
+ const dialog = el('dialog', 'fv-setup fv-setup-small fv-feedback'); current = dialog;
+ dialog.setAttribute('aria-label', t('Feedback', '反馈'));
+ dialog.style.pointerEvents = 'auto';
+ const head = el('header', 'fv-setup-head'), close = el('button', 'fv-close', '×');
+ close.type = 'button'; close.setAttribute('aria-label', t('Close', '关闭')); close.onclick = () => closeDialog(dialog);
+ head.append(el('h2', null, t('Feedback', '反馈')), close);
+
+ const field = el('textarea'); field.rows = 5; field.maxLength = MAX_TEXT;
+ field.placeholder = t('What could be better?', '哪里可以做得更好?');
+ field.setAttribute('aria-label', t('Feedback', '反馈'));
+ field.value = readDraft();
+
+ const check = label => {
+ const row = el('label', 'fv-check'), box = el('input'); box.type = 'checkbox';
+ row.append(box, el('span', null, label)); return { row, box };
+ };
+ const shotCheck = check(t('Attach a screenshot of this page', '附上这一页的截图'));
+ const diagCheck = check(t('Include diagnostic info (no prompts or images)', '附上诊断信息(不含提示词和画面)'));
+
+ const preview = el('div', 'fv-feedback-shot'); preview.hidden = true;
+ const thumb = el('img'); thumb.alt = '';
+ const remove = el('button', 'fv-quiet', '×'); remove.type = 'button'; remove.setAttribute('aria-label', t('Remove', '移除'));
+ preview.append(thumb, remove);
+
+ const send = el('button', 'fv-primary', t('Submit on GitHub', '在 GitHub 提交')); send.type = 'button';
+ const status = el('p', 'fv-feedback-status'); status.setAttribute('role', 'status');
+ const actions = el('div', 'fv-feedback-actions'); actions.append(status, send);
+ dialog.append(head, field, shotCheck.row, preview, diagCheck.row, actions);
+
+ let picture = null, previewURL = null, diagnostics = '';
+ const setPicture = blob => {
+ if (previewURL) URL.revokeObjectURL(previewURL);
+ picture = blob; previewURL = blob ? URL.createObjectURL(blob) : null;
+ preview.hidden = !blob; thumb.src = previewURL || '';
+ shotCheck.box.checked = Boolean(blob);
+ };
+ const refresh = () => { send.disabled = !field.value.trim(); };
+ field.addEventListener('input', () => { writeDraft(field.value); refresh(); });
+ remove.onclick = () => setPicture(null);
+ shotCheck.box.addEventListener('change', async () => {
+ if (!shotCheck.box.checked) { setPicture(null); return; }
+ shotCheck.box.disabled = true; status.replaceChildren();
+ try {
+ setPicture(await capturePage(() => { dialog.style.visibility = 'hidden'; return () => { dialog.style.visibility = ''; }; }));
+ } catch (error) {
+ setPicture(null);
+ console.warn('FreeVideo feedback screenshot:', error);
+ // Declining the browser's prompt is the user's own answer; anything else is said once.
+ if (error?.name !== 'NotAllowedError') status.textContent = t("Couldn't capture this page. You can submit without it.", '没能截取这一页,可以不带截图提交。');
+ } finally { shotCheck.box.disabled = false; }
+ });
+ // Read while the box is ticked, so the page can open in the same click as Send.
+ diagCheck.box.addEventListener('change', async () => {
+ diagnostics = '';
+ if (!diagCheck.box.checked) return;
+ status.replaceChildren(); diagCheck.box.disabled = true;
+ diagnostics = await readDiagnostics(fetchApi);
+ diagCheck.box.disabled = false;
+ if (!diagnostics) { diagCheck.box.checked = false; status.textContent = t("Couldn't read the diagnostic info. You can submit without it.", '没能读取诊断信息,可以不带它提交。'); }
+ });
+ send.onclick = async () => {
+ const text = field.value.trim();
+ if (!text) return;
+ const { url: address, truncated } = feedbackIssueParts(text, version(), diagCheck.box.checked ? diagnostics : '');
+ // Opening and copying both start inside the click, which is what lets the browser allow them.
+ const reached = open(address);
+ const hadPicture = Boolean(picture);
+ const copied = reached ? (picture ? copyPicture(picture) : truncated ? copyText(text) : Promise.resolve(false))
+ : copyText(address);
+ // A text too long for the address stays in the box, so nothing is lost with the dialog.
+ if (reached && !truncated) writeDraft('');
+ const done = await copied;
+ status.textContent = reached && truncated
+ ? (hadPicture || !done
+ ? t('GitHub is open, but the text was too long and was cut short there. Your full text stays here.', '已打开 GitHub,但文字过长,那边被截短了,完整文字仍留在这里。')
+ : t('GitHub is open, but the text was too long and was cut short there. The full text is copied; paste it in.', '已打开 GitHub,但文字过长,那边被截短了,完整文字已复制,请粘贴补全。'))
+ : !reached
+ ? (done ? t("Couldn't open GitHub. The link is copied; paste it into your browser.", '没能打开 GitHub,链接已复制,请粘贴到浏览器。')
+ : t("Couldn't open GitHub. Please try again later.", '没能打开 GitHub,请稍后再试。'))
+ : hadPicture && done
+ ? t('GitHub is open and the screenshot is copied. Paste it in, then submit.', '已打开 GitHub,截图已复制,粘贴后提交。')
+ : hadPicture
+ ? t("GitHub is open with your text filled in, but the screenshot couldn't be copied. Submit it there without it.", '已打开 GitHub,文字已填好,但截图没能复制,可不带截图提交。')
+ : t('GitHub is open with your text filled in. Submit it there.', '已打开 GitHub,文字已填好,确认后提交。');
+ };
+
+ const stopKeys = isolateDialogKeys(dialog, event => routeDialogKey(event, dialog));
+ // A press that starts and ends on the backdrop closes; selecting text and releasing outside does not.
+ let downOnBackdrop = false;
+ dialog.addEventListener('pointerdown', event => { downOnBackdrop = event.target === dialog; });
+ dialog.addEventListener('click', event => { if (event.target === dialog && downOnBackdrop) closeDialog(dialog); });
+ dialog.addEventListener('close', () => {
+ stopKeys(); setPicture(null); dialog.remove(); if (current === dialog) current = null;
+ });
+ document.body.append(dialog);
+ dialog.showModal(); refresh(); field.focus();
+ return dialog;
+}
+
+// The header entry, in the style of the Settings button beside it.
+export function feedbackButton(t, className = 'fv-quiet') {
+ const button = el('button', `${className} fv-feedback-entry`, t('Feedback', '反馈')); button.type = 'button';
+ button.onclick = () => openFeedback(t);
+ return button;
+}
diff --git a/web/health.js b/web/health.js
index b924443..be18cf5 100644
--- a/web/health.js
+++ b/web/health.js
@@ -15,7 +15,7 @@ const launchVisit = query.get('freevideo') === 'launch';
// Every script this folder ships; a test keeps the list in step with web/*.js.
export const MODULES = ['agent_activity.js', 'agent_connect.js', 'agent_session.js', 'autopilot.js', 'autopilot_chat.js', 'autopilot_conversations.js', 'browser_extension.js', 'caret_rect.js', 'chain_support.js', 'capability_view.js', 'cast_generate.js', 'cast_mention.js', 'cast_overlay.js', 'cast_source.js', 'compatibility.js', 'error_panel.js', 'first_run_guide.js', 'fonts.js', 'freevideo.js', 'generation_progress.js',
'editor.js', 'editor_actions.js', 'editor_adjust.js', 'editor_adjust_picture.js', 'editor_picture_fields.js', 'editor_picture_session.js', 'editor_preview_picture.js', 'editor_entry.js', 'editor_expand.js', 'editor_export_dialog.js', 'editor_first_frame.js', 'editor_media_references.js', 'editor_references.js', 'editor_genbar.js', 'editor_geometry.js', 'editor_library.js', 'editor_menu.js', 'editor_model.js', 'editor_frame.js', 'editor_player.js', 'editor_room.js', 'editor_select.js', 'editor_state.js', 'editor_store.js', 'editor_tracks.js', 'editor_generation.js', 'editor_transport.js', 'editor_transport_model.js', 'editor_audio.js', 'editor_audio_model.js', 'editor_audio_notes.js', 'editor_audio_replace.js', 'editor_audio_rules.js', 'editor_speed.js', 'editor_speed_model.js', 'editor_failure.js', 'editor_header_fit.js',
- 'editor_loader.js', 'editor_text_coverage.js', 'editor_text.js', 'editor_toolbar_more.js', 'editor_text_model.js', 'editor_text_layout.js', 'editor_notes.js', 'editor_icons.js', 'dialog_keys.js', 'done_notify.js', 'frame_sizes.js', 'health.js', 'image_commands.js', 'image_editor.js', 'image_editor_engine.js', 'image_generation.js', 'launcher.js', 'length_plan.js', 'lora_triggers.js', 'library.js', 'motion.js', 'output_download.js', 'port_notice.js', 'preview_scene.js',
+ 'editor_loader.js', 'editor_text_coverage.js', 'editor_text.js', 'editor_toolbar_more.js', 'editor_text_model.js', 'editor_text_layout.js', 'editor_notes.js', 'editor_icons.js', 'dialog_keys.js', 'done_notify.js', 'feedback.js', 'frame_sizes.js', 'health.js', 'image_commands.js', 'image_editor.js', 'image_editor_engine.js', 'image_generation.js', 'launcher.js', 'length_plan.js', 'lora_triggers.js', 'library.js', 'motion.js', 'output_download.js', 'port_notice.js', 'preview_scene.js',
'progress_connection.js', 'prompt_draft.js', 'prompt_enhance.js', 'prompt_references.js', 'prompt_terms.js', 'request_assets.js', 'report_issue.js', 'studio_recent.js',
'result_actions.js', 'sampling_effort.js', 'setup.js', 'share.js', 'share_layout.js', 'studio.js', 'studio_chain.js', 'studio_extend.js', 'studio_length.js', 'first_frame_row.js', 'optional_inputs.js', 'studio_queue.js', 'studio_size.js',
'toolbar_position.js', 'updates.js', 'view_navigation.js', 'wordmark.js', 'cast_library.js'];
diff --git a/web/studio.js b/web/studio.js
index e94bf23..5839ca2 100644
--- a/web/studio.js
+++ b/web/studio.js
@@ -4,6 +4,7 @@ import {cleanOptionalPrompt} from './optional_inputs.js';
import { app } from '../../scripts/app.js';
import { api } from '../../scripts/api.js';
import { openSetup } from './setup.js';
+import { feedbackButton } from './feedback.js';
import { wordmark } from './wordmark.js';
import { createGenerationProgress, referenceTrimText, thermalText, sharedGpuText, encoderFileText, encoderFilePath } from './generation_progress.js';
import { viewSwitch, viewChanged, agentTabReady, openAutopilot } from './view_navigation.js';
@@ -472,7 +473,7 @@ export function openStudio(node, {extendFrom = null} = {}) {
const tools = el('div', null, 'fv-header-actions');
const agents = createAgentActivity(t, api, dialog); tools.append(agents.element); cleanup.push(agents.dispose);
const versionInfo = createVersionInfo(cn); tools.append(versionInfo.element); cleanup.push(versionInfo.dispose);
- tools.append(button(t('Settings', '设置'), openSetup, 'fv-quiet'));
+ tools.append(feedbackButton(t), button(t('Settings', '设置'), openSetup, 'fv-quiet'));
// The Agent's page is the fourth tab, shown where the Agent interface is on; the guide's last step circles it.
agentTabReady(agentInterfaceEnabled(api));
const navigation = viewSwitch('studio', () => {}, () => showNodes(node, dialog),
diff --git a/web/view_navigation.js b/web/view_navigation.js
index 69b9dc3..579862f 100644
--- a/web/view_navigation.js
+++ b/web/view_navigation.js
@@ -1,5 +1,6 @@
import { app } from '../../scripts/app.js';
import { openSetup } from './setup.js';
+import { feedbackButton } from './feedback.js';
import { wordmark } from './wordmark.js';
import { createUpdateNotice, createVersionInfo } from './updates.js';
import { makeMovable } from './toolbar_position.js';
@@ -119,7 +120,7 @@ export function installNavigation(openStudio, agent = false) {
const handle = await openEditorView(node);
if (created) handle?.notify(t('Created an editing project for you.', '已为你新建一个剪辑工程'));
return handle;
- }, true), () => choose(node => openAutopilot(node), true)), createVersionInfo(cn).element, settings); toolbar.append(row);
+ }, true), () => choose(node => openAutopilot(node), true)), createVersionInfo(cn).element, feedbackButton(t, 'fv-view-settings'), settings); toolbar.append(row);
toolbar.append(createUpdateNotice(cn).element);
document.body.append(toolbar); refreshNavigation();
makeMovable(toolbar);