feat: add settings data upload and single-name user forms

Allow SuperAdmins to upload import JSON from settings, and update user UI for merged name, gender, and extended profile fields.
This commit is contained in:
2026-08-15 01:31:47 +03:30
parent 833584b1b4
commit 6b5549019c
11 changed files with 268 additions and 27 deletions
+9 -1
View File
@@ -3,5 +3,13 @@ import axiosInstance from './axiosInstance';
export const seedApi = {
getStatus: () => axiosInstance.get('/seed/status'),
runSeed: () => axiosInstance.post('/seed', {}, { timeout: 60000 })
runSeed: () => axiosInstance.post('/seed', {}, { timeout: 60000 }),
importData: (file) => {
const formData = new FormData();
formData.append('file', file);
return axiosInstance.post('/data-import', formData, {
timeout: 180000,
headers: { 'Content-Type': 'multipart/form-data' }
});
}
};