feat: Enhance task filtering, smart scheduling, audit logs and translations
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -60,3 +60,46 @@ Implement a "Reward Shop" where users can spend their hard-earned XP on virtual
|
||||
1. **Browse**: Check if rewards load in the new tab.
|
||||
2. **Buy (Success)**: Click buy on an affordable item -> XP decreases, item marked owned.
|
||||
3. **Buy (Fail)**: Click buy on expensive item -> Error toast "Not enough XP".
|
||||
|
||||
# Localization Polish & E2E Testing Plan
|
||||
|
||||
## Goal
|
||||
address the user's request to polish localization (Audit Logs) and add E2E tests for Recurring Tasks and Data Export.
|
||||
|
||||
## Proposed Changes
|
||||
|
||||
### Localization
|
||||
#### [MODIFY] [en.json](file:///Users/paul/Development/task-manager/client/src/i18n/locales/en.json) & [de.json](file:///Users/paul/Development/task-manager/client/src/i18n/locales/de.json)
|
||||
- Add `audit` section with translations for:
|
||||
- Actions: `CREATE`, `UPDATE`, `DELETE`, `COMPLETE`, `GENERATE_API_KEY`, `REVOKE_API_KEY`, `EXPORT_DATA`, `LOGIN`, `LOGOUT`
|
||||
- Entities: `TASK`, `USER`, `LABEL`, `SETTINGS`, `AI_CONFIG`, `MCP`
|
||||
- Sources: `WEB`, `AI`, `SYSTEM`, `Unknown`
|
||||
|
||||
#### [MODIFY] [AuditLogsTable.tsx](file:///Users/paul/Development/task-manager/client/src/components/admin/AuditLogsTable.tsx)
|
||||
- Use `t('audit.action.' + log.action)` for lookup.
|
||||
- Use `t('audit.entity.' + log.entityType)`.
|
||||
- Use `t('audit.source.' + log.source)`.
|
||||
- Use localized date formatting (maybe `Intl.DateTimeFormat` or `date-fns` with `de` locale from `date-fns/locale`).
|
||||
|
||||
### E2E Testing
|
||||
#### [NEW] [tests/e2e/recurring_tasks.spec.ts](file:///Users/paul/Development/task-manager/tests/e2e/recurring_tasks.spec.ts)
|
||||
- Test Case:
|
||||
1. Login as User.
|
||||
2. Create Task "Recurring Task Test" with Recurrence: Daily, Every 1 Day.
|
||||
3. Verify task appears with recurrence icon.
|
||||
4. Complete task.
|
||||
5. Verify original is "Done".
|
||||
6. Verify NEW task "Recurring Task Test" appears (Due tomorrow).
|
||||
|
||||
#### [NEW] [tests/e2e/data_export.spec.ts](file:///Users/paul/Development/task-manager/tests/e2e/data_export.spec.ts)
|
||||
- Test Case:
|
||||
1. Login as User.
|
||||
2. Nav to Settings.
|
||||
3. Intercept `POST /api/user/export`.
|
||||
4. Click "Export Data".
|
||||
5. Verify request payload (includes tasks, labels).
|
||||
6. Verify response status 200 and JSON structure.
|
||||
|
||||
## Verification
|
||||
- Run `npm run test:e2e` (or specific specs).
|
||||
- Manual check of Audit Logs page.
|
||||
|
||||
Reference in New Issue
Block a user