feat(frontend): Rename notifications page to System Status and add sync operations section

Co-authored-by: elisiariocouto <818914+elisiariocouto@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-09-21 23:05:12 +00:00
committed by Elisiário Couto
parent 61f9592095
commit 3f2ff21eac
4 changed files with 148 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ import type {
HealthData,
AccountUpdate,
TransactionStats,
SyncOperationsResponse,
} from "../types/api";
// Use VITE_API_URL for development, relative URLs for production
@@ -219,6 +220,17 @@ export const apiClient = {
>(`/transactions/monthly-stats?${queryParams.toString()}`);
return response.data.data;
},
// Get sync operations history
getSyncOperations: async (
limit: number = 50,
offset: number = 0,
): Promise<SyncOperationsResponse> => {
const response = await api.get<ApiResponse<SyncOperationsResponse>>(
`/sync/operations?limit=${limit}&offset=${offset}`,
);
return response.data.data;
},
};
export default apiClient;