← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / frontend / src / components / customize / README.md

frontend/src/components/customize

中文说明

F-19 Customize modal. Nine tab components, a nested editor overlay, and vendors/ cards. Class names (#cust, .cust-tab, .prof-row, .cust-row, .toggle) match the E2E contract. Tab unmount disposes the timer lease.

Files

File Responsibility
ComputeTab.tsx Compute, remote GPU, jobs. Job poll 1500ms on the lease.
ConnectorsTab.tsx Connector list; DataPro card is isolated in vendors/.
Customize.tsx #cust shell, tablist, Esc / backdrop close.
GeneralTab.tsx Theme, layout, language, API-key shortcut.
DiagnosticsTab.tsx Passive security posture, explicit checks, and redacted support-bundle download. Mounted from General.
DiagnosticsTab.test.tsx Page load is a single status GET; checks and bundle wait for a click.
MemoryTab.tsx Memory enable / add / edit / delete with explicit scope.
ModelsTab.tsx Profiles, local scan, probe, capability-receipt badges. With no active profile it shows the live GET /config/llm model (environment or saved settings) as the active row.
ModelsTab.test.tsx An .env-configured install with no profiles shows its active model instead of "No models configured yet"; no extra row when a profile is active; an unreadable config does not hide profiles; a profile on the environment key is labelled so, not "No key".
NestedEditor.tsx Skill / specialist / connector / job-output overlay.
SkillImport.test.tsx Import review shows requirements, network mode, and readiness before enable.
NetworkTab.tsx Doubao card, allowlist, Tavily backup, telemetry drain.
PermissionsTab.tsx Per-scope approval rules.
SkillsTab.tsx Personal / project / collection skills.
SpecialistsTab.tsx Custom specialists and builtin roles.
customize.css Lane-local modal chrome until F-21 ports style.css.
icons.tsx Lucide paths used by this modal.
index.ts Re-exports Customize.
ui.tsx Shared Hdr / CustRow / Seg / Toggle / Pill.
use-timer-lease.ts useTimerLease / useAlive bound to unmount.

Subdirectories

Directory Responsibility
vendors/ Volcengine / DataPro / Doubao cards, kept out of the tab shell.