feat: Implement user profile preferences for start page, Git identity, and task drawer auto-open, alongside Git server default branch configuration.

This commit is contained in:
2026-03-08 10:19:38 +03:00
parent 12d17ec35e
commit e864a9e08b
30 changed files with 2041 additions and 211 deletions

View File

@@ -59,6 +59,20 @@ export const gitService = {
return requestApi(`${API_BASE}/config/${configId}`, 'DELETE');
},
/**
* [DEF:updateConfig:Function]
* @purpose Updates an existing Git server configuration.
* @pre configId must exist and configData must be valid.
* @post Config is updated and returned.
* @param {string} configId - ID of the config to update.
* @param {Object} config - Updated configuration details.
* @returns {Promise<Object>} Updated config.
*/
async updateConfig(configId, config) {
console.log(`[updateConfig][Action] Updating Git config ${configId}`);
return requestApi(`${API_BASE}/config/${configId}`, 'PUT', config);
},
/**
* [DEF:testConnection:Function]
* @purpose Tests the connection to a Git server with provided credentials.