fix: lint
This commit is contained in:
@@ -28,9 +28,9 @@ export function JiraConfigForm({ config }: JiraConfigFormProps) {
|
|||||||
// Pour cette démo, on affiche juste un message informatif
|
// Pour cette démo, on affiche juste un message informatif
|
||||||
setMessage({
|
setMessage({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
text: 'Configuration sauvegardée. Redémarrez l\'application pour appliquer les changements.'
|
text: 'Configuration sauvegardée. Redémarrez l'application pour appliquer les changements.'
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch {
|
||||||
setMessage({
|
setMessage({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
text: 'Erreur lors de la sauvegarde de la configuration'
|
text: 'Erreur lors de la sauvegarde de la configuration'
|
||||||
@@ -47,7 +47,7 @@ export function JiraConfigForm({ config }: JiraConfigFormProps) {
|
|||||||
{/* Statut actuel */}
|
{/* Statut actuel */}
|
||||||
<div className="flex items-center justify-between p-4 bg-[var(--card)] rounded border">
|
<div className="flex items-center justify-between p-4 bg-[var(--card)] rounded border">
|
||||||
<div>
|
<div>
|
||||||
<h3 className="font-medium">Statut de l'intégration</h3>
|
<h3 className="font-medium">Statut de l'intégration</h3>
|
||||||
<p className="text-sm text-[var(--muted-foreground)]">
|
<p className="text-sm text-[var(--muted-foreground)]">
|
||||||
{isJiraConfigured
|
{isJiraConfigured
|
||||||
? 'Jira est configuré et prêt à être utilisé'
|
? 'Jira est configuré et prêt à être utilisé'
|
||||||
@@ -101,7 +101,7 @@ export function JiraConfigForm({ config }: JiraConfigFormProps) {
|
|||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<p className="text-xs text-[var(--muted-foreground)] mt-1">
|
<p className="text-xs text-[var(--muted-foreground)] mt-1">
|
||||||
L'URL de votre instance Jira Cloud (ex: https://monentreprise.atlassian.net)
|
L'URL de votre instance Jira Cloud (ex: https://monentreprise.atlassian.net)
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ export function JiraConfigForm({ config }: JiraConfigFormProps) {
|
|||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<p className="text-xs text-[var(--muted-foreground)] mt-1">
|
<p className="text-xs text-[var(--muted-foreground)] mt-1">
|
||||||
L'email de votre compte Jira
|
L'email de votre compte Jira
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -171,16 +171,16 @@ export function JiraConfigForm({ config }: JiraConfigFormProps) {
|
|||||||
<h3 className="font-medium mb-2">💡 Instructions de configuration</h3>
|
<h3 className="font-medium mb-2">💡 Instructions de configuration</h3>
|
||||||
<div className="text-sm text-[var(--muted-foreground)] space-y-2">
|
<div className="text-sm text-[var(--muted-foreground)] space-y-2">
|
||||||
<p><strong>1. URL de base:</strong> Votre domaine Jira Cloud (ex: https://monentreprise.atlassian.net)</p>
|
<p><strong>1. URL de base:</strong> Votre domaine Jira Cloud (ex: https://monentreprise.atlassian.net)</p>
|
||||||
<p><strong>2. Email:</strong> L'email de votre compte Jira/Atlassian</p>
|
<p><strong>2. Email:</strong> L'email de votre compte Jira/Atlassian</p>
|
||||||
<p><strong>3. Token API:</strong> Créez un token depuis votre profil Atlassian :</p>
|
<p><strong>3. Token API:</strong> Créez un token depuis votre profil Atlassian :</p>
|
||||||
<ul className="ml-4 space-y-1 list-disc">
|
<ul className="ml-4 space-y-1 list-disc">
|
||||||
<li>Allez sur <a href="https://id.atlassian.com/manage-profile/security/api-tokens" target="_blank" rel="noopener noreferrer" className="text-[var(--primary)] hover:underline">id.atlassian.com</a></li>
|
<li>Allez sur <a href="https://id.atlassian.com/manage-profile/security/api-tokens" target="_blank" rel="noopener noreferrer" className="text-[var(--primary)] hover:underline">id.atlassian.com</a></li>
|
||||||
<li>Cliquez sur "Create API token"</li>
|
<li>Cliquez sur "Create API token"</li>
|
||||||
<li>Donnez un nom descriptif (ex: "TowerControl")</li>
|
<li>Donnez un nom descriptif (ex: "TowerControl")</li>
|
||||||
<li>Copiez le token généré</li>
|
<li>Copiez le token généré</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p className="mt-3 text-xs">
|
<p className="mt-3 text-xs">
|
||||||
<strong>Note:</strong> Ces variables doivent être configurées dans l'environnement du serveur (JIRA_BASE_URL, JIRA_EMAIL, JIRA_API_TOKEN)
|
<strong>Note:</strong> Ces variables doivent être configurées dans l'environnement du serveur (JIRA_BASE_URL, JIRA_EMAIL, JIRA_API_TOKEN)
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { Header } from '@/components/ui/Header';
|
import { Header } from '@/components/ui/Header';
|
||||||
import { Card, CardHeader, CardContent } from '@/components/ui/Card';
|
import { Card, CardHeader, CardContent } from '@/components/ui/Card';
|
||||||
import { Button } from '@/components/ui/Button';
|
|
||||||
import { JiraConfigForm } from '@/components/settings/JiraConfigForm';
|
import { JiraConfigForm } from '@/components/settings/JiraConfigForm';
|
||||||
import { JiraSync } from '@/components/jira/JiraSync';
|
import { JiraSync } from '@/components/jira/JiraSync';
|
||||||
import { JiraLogs } from '@/components/jira/JiraLogs';
|
import { JiraLogs } from '@/components/jira/JiraLogs';
|
||||||
|
|||||||
@@ -319,7 +319,6 @@ export class TasksService {
|
|||||||
updatedAt: prismaTask.updatedAt,
|
updatedAt: prismaTask.updatedAt,
|
||||||
jiraProject: prismaTask.jiraProject ?? undefined,
|
jiraProject: prismaTask.jiraProject ?? undefined,
|
||||||
jiraKey: prismaTask.jiraKey ?? undefined,
|
jiraKey: prismaTask.jiraKey ?? undefined,
|
||||||
// @ts-expect-error - jiraType existe mais n'est pas encore dans les types générés
|
|
||||||
jiraType: prismaTask.jiraType ?? undefined,
|
jiraType: prismaTask.jiraType ?? undefined,
|
||||||
assignee: prismaTask.assignee ?? undefined
|
assignee: prismaTask.assignee ?? undefined
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { NextRequest, NextResponse } from 'next/server';
|
import { NextResponse } from 'next/server';
|
||||||
import { createJiraService } from '@/services/jira';
|
import { createJiraService } from '@/services/jira';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Route POST /api/jira/sync
|
* Route POST /api/jira/sync
|
||||||
* Synchronise les tickets Jira avec la base locale
|
* Synchronise les tickets Jira avec la base locale
|
||||||
*/
|
*/
|
||||||
export async function POST(request: NextRequest) {
|
export async function POST() {
|
||||||
try {
|
try {
|
||||||
const jiraService = createJiraService();
|
const jiraService = createJiraService();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user