mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
Add E2E tests for internationalization across multiple pages
- Implemented navigation.spec.ts to test language switching and translation of navigation elements. - Created sessions-page.spec.ts to verify translations on the sessions page, including headers, status badges, and date formatting. - Developed settings-page.spec.ts to ensure settings page content is translated and persists across sessions. - Added skills-page.spec.ts to validate translations for skill categories, action buttons, and empty states.
This commit is contained in:
@@ -125,7 +125,10 @@ export function useIssues(options: UseIssuesOptions = {}): UseIssuesReturn {
|
||||
};
|
||||
|
||||
for (const issue of allIssues) {
|
||||
issuesByStatus[issue.status].push(issue);
|
||||
// Defensive check: only push if the status key exists
|
||||
if (issue.status in issuesByStatus) {
|
||||
issuesByStatus[issue.status].push(issue);
|
||||
}
|
||||
}
|
||||
|
||||
// Group by priority
|
||||
@@ -137,7 +140,10 @@ export function useIssues(options: UseIssuesOptions = {}): UseIssuesReturn {
|
||||
};
|
||||
|
||||
for (const issue of allIssues) {
|
||||
issuesByPriority[issue.priority].push(issue);
|
||||
// Defensive check: only push if the priority key exists
|
||||
if (issue.priority in issuesByPriority) {
|
||||
issuesByPriority[issue.priority].push(issue);
|
||||
}
|
||||
}
|
||||
|
||||
const refetch = async () => {
|
||||
|
||||
Reference in New Issue
Block a user