Skip to content
Closed
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
19 changes: 10 additions & 9 deletions src/pages/bugReport/BugReportForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ const BugReportForm = () => {
const mutation = useMutation({
mutationFn: (values: CreateIssuePostRequest) =>
ISSUES_API.issuesCreatePost({ createIssuePostRequest: values }),
onSuccess: (response) => {
if (response.data?.state === 'open') {
form.resetFields()
// setFileList([])
}
onSuccess: () => {
form.resetFields()
},
onError: (error) => {
console.error('Error submitting bug report:', error)
Expand Down Expand Up @@ -62,11 +59,15 @@ const BugReportForm = () => {
</p>
}>
<span>{t('reportBug.description')}</span>
{mutation.isSuccess && mutation.data?.data && (
{mutation.isSuccess && (
<Alert severity="success" sx={{ marginBottom: 2 }}>
<a href={mutation.data.data.url} target="_blank" rel="noopener noreferrer">
{t('reportBug.viewIssue')} (Github)
</a>
{mutation.data?.data?.url ? (
<a href={mutation.data.data.url} target="_blank" rel="noopener noreferrer">
{t('reportBug.viewIssue')} (Github)

Copilot AI Apr 15, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link label uses "Github"; the correct brand capitalization is "GitHub" (and other strings in the repo use "GitHub"). Please update the text to avoid inconsistent UI copy.

Suggested change
{t('reportBug.viewIssue')} (Github)
{t('reportBug.viewIssue')} (GitHub)

Copilot uses AI. Check for mistakes.
</a>
) : (
t('reportBug.success', { defaultValue: 'Bug report submitted successfully!' })

Copilot AI Apr 15, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t('reportBug.success', { defaultValue: ... }) hardcodes an English fallback even though reportBug.success is already defined in the locale JSON files. Consider using t('reportBug.success') to keep the message fully controlled by translations (and avoid accidental English text in non-English locales if the key changes).

Suggested change
t('reportBug.success', { defaultValue: 'Bug report submitted successfully!' })
t('reportBug.success')

Copilot uses AI. Check for mistakes.
)}
</Alert>
)}

Expand Down
Loading