feat: add project key support for Jira analytics
- Introduced `projectKey` and `ignoredProjects` fields in Jira configuration to enhance analytics capabilities. - Implemented project validation logic in `JiraConfigClient` and integrated it into the `JiraConfigForm` for user input. - Updated `IntegrationsSettingsPageClient` to display analytics dashboard link based on the configured project key. - Enhanced API routes to handle project key in Jira sync and user preferences. - Marked related tasks as complete in `TODO.md`.
This commit is contained in:
@@ -9,6 +9,8 @@ export interface SaveJiraConfigRequest {
|
||||
baseUrl: string;
|
||||
email: string;
|
||||
apiToken: string;
|
||||
projectKey?: string;
|
||||
ignoredProjects?: string[];
|
||||
}
|
||||
|
||||
export interface SaveJiraConfigResponse {
|
||||
@@ -41,6 +43,19 @@ class JiraConfigClient {
|
||||
async deleteJiraConfig(): Promise<{ success: boolean; message: string }> {
|
||||
return httpClient.delete(this.basePath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Valide l'existence d'un projet Jira
|
||||
*/
|
||||
async validateProject(projectKey: string): Promise<{
|
||||
success: boolean;
|
||||
exists: boolean;
|
||||
projectName?: string;
|
||||
error?: string;
|
||||
message: string;
|
||||
}> {
|
||||
return httpClient.post('/jira/validate-project', { projectKey });
|
||||
}
|
||||
}
|
||||
|
||||
export const jiraConfigClient = new JiraConfigClient();
|
||||
|
||||
Reference in New Issue
Block a user