Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions components/troubleshooting-flow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ type TroubleshootingPath = {
};

type EvidenceFields = {
projectName: string;
username: string;
appVersion: string;
extensionVersion: string;
operatingSystem: string;
Expand Down Expand Up @@ -233,6 +235,8 @@ const troubleshootingPaths: TroubleshootingPath[] = [
const VERSION_HELP_HREF = '/docs/project-management/update-extensions#verifying-your-versions';

const requiredFields: { key: EvidenceFieldKey; label: string; placeholder: string; multiline: boolean; helpHref?: string; helpLabel?: string }[] = [
{ key: 'projectName', label: 'Project name', placeholder: 'e.g. My Translation Project', multiline: false },
{ key: 'username', label: 'Username', placeholder: 'Your Codex account username', multiline: false },
{ key: 'appVersion', label: 'Codex app version', placeholder: 'e.g. 1.108.11148', multiline: false, helpHref: `${VERSION_HELP_HREF}`, helpLabel: 'How to find this (Help → About)' },
{ key: 'extensionVersion', label: 'Extension version', placeholder: 'e.g. 1.8.0', multiline: false, helpHref: `${VERSION_HELP_HREF}`, helpLabel: 'How to find this (Extensions panel)' },
{ key: 'operatingSystem', label: 'Operating system', placeholder: 'e.g. macOS 15, Ubuntu 24.04, Windows 11', multiline: false },
Expand All @@ -248,6 +252,8 @@ const optionalFields: { key: EvidenceFieldKey; label: string; placeholder: strin
];

const emptyEvidence: EvidenceFields = {
projectName: '',
username: '',
appVersion: '',
extensionVersion: '',
operatingSystem: '',
Expand Down Expand Up @@ -383,6 +389,9 @@ export function TroubleshootingFlow() {

return `Issue category: ${selectedPath?.title ?? '(not selected)'}

Project: ${templateValue(evidence.projectName)}
Username: ${templateValue(evidence.username)}

Environment
- Codex version: ${templateValue(evidence.appVersion)}
- Extension version: ${templateValue(evidence.extensionVersion)}
Expand Down
Loading