32 Commits

Author SHA1 Message Date
LathanDevers 8c1fa79126 Revert "Merge remote-tracking branches 'origin/dev' and 'origin' into feat/account-management"
This reverts commit e8896df0b3, reversing
changes made to b3d7e312c4.
2026-08-04 15:28:07 +02:00
LathanDevers e8896df0b3 Merge remote-tracking branches 'origin/dev' and 'origin' into feat/account-management 2026-08-04 15:21:20 +02:00
maximus 84d7b7e847 Merge pull request 'Feat/test' (#42) from feat/test into dev
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 26s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
Reviewed-on: maximus/aegis#42
2026-08-04 15:06:44 +02:00
LathanDevers a0a77648ca fix err
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
2026-08-04 15:05:06 +02:00
LathanDevers 6cb35e82fe fix err 2026-08-04 15:00:02 +02:00
maximus b43cf6f036 Merge pull request 'Refact/neumorphism' (#39) from refact/neumorphism into dev
Reviewed-on: maximus/aegis#39
2026-08-04 14:55:54 +02:00
LathanDevers b573d20aab fix: résolution des conflits de fusion sur les workflows 2026-08-04 14:54:17 +02:00
LathanDevers b3d7e312c4 add account management 2026-08-04 14:40:57 +02:00
maximus 6e33a19d41 Merge pull request 'Acc' (#34) from acc into master
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 25s
Reviewed-on: maximus/aegis#34
2026-08-03 23:41:27 +02:00
maximus 641f634dfa Merge pull request 'Test' (#33) from test into acc
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 23s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 26s
Reviewed-on: maximus/aegis#33
2026-08-03 23:40:35 +02:00
maximus 689c5105fe Merge pull request 'Dev' (#32) from dev into test
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 25s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
Reviewed-on: maximus/aegis#32
2026-08-03 23:39:37 +02:00
maximus 38284dabb6 Merge pull request 'correction' (#31) from feat/workflow into dev
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 23s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
Reviewed-on: maximus/aegis#31
2026-08-03 23:38:20 +02:00
LathanDevers 74c6624317 correction
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
2026-08-03 23:36:35 +02:00
maximus dffa4c5a77 Merge pull request 'Test' (#28) from test into acc
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 27s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 26s
Reviewed-on: maximus/aegis#28
2026-08-03 23:27:39 +02:00
maximus c040b9e62d Merge pull request 'Dev' (#27) from dev into test
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 25s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
Reviewed-on: maximus/aegis#27
2026-08-03 23:24:42 +02:00
maximus 51078a68fc Merge pull request 'Feat/workflow' (#26) from feat/workflow into dev
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 27s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 28s
Reviewed-on: maximus/aegis#26
2026-08-03 23:23:18 +02:00
LathanDevers a4b2a870f3 quality
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
2026-08-03 23:16:20 +02:00
LathanDevers c74e19d732 quality
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité / qa-s-check (pull_request) Successful in 27s
2026-08-03 23:15:18 +02:00
maximus 39bf84cd0e Merge pull request 'Test' (#16) from test into acc
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 25s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 27s
Reviewed-on: maximus/aegis#16
2026-08-03 22:34:02 +02:00
maximus b989b6e8e8 Merge pull request 'Feat/workflow git' (#15) from dev into test
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 27s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 26s
Reviewed-on: maximus/aegis#15
2026-08-03 22:31:10 +02:00
LathanDevers 8e74ca50be correct deploy
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 25s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 26s
2026-08-03 22:26:11 +02:00
LathanDevers 5798881446 correct deploy
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 26s
2026-08-03 22:16:08 +02:00
LathanDevers f57e4d94f8 correct deploy
Déploiement AEGIS Portal / build-and-deploy (push) Successful in 25s
Contrôle Qualité & Sécurité (QA) / qa-s-check (push) Successful in 26s
2026-08-03 22:14:37 +02:00
maximus d543ba04ba Merge pull request 'Feat/workflow git' (#14) from feat/workflow-git into dev
Déploiement AEGIS Portal / build-and-deploy (push) Failing after 25s
Contrôle Qualité & Sécurité (QA) / qa-s-check (push) Successful in 26s
Reviewed-on: maximus/aegis#14
2026-08-03 22:05:43 +02:00
maximus 4c5ef84443 security: downgrade react-router vers v6.30.4 pour patcher CSRF
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Successful in 26s
2026-08-03 21:59:49 +02:00
maximus 5b0b2e1890 correct qa
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Failing after 22s
2026-08-03 21:50:59 +02:00
maximus c950249d15 correction qa
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Failing after 21s
2026-08-03 21:44:28 +02:00
LathanDevers 41433b4859 fix: correction des erreurs de linting pour le QA
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Failing after 20s
2026-08-03 15:57:11 +02:00
LathanDevers 3c4d9ec02a build: migration de la CI vers pnpm
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 0s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Failing after 19s
2026-08-03 15:40:08 +02:00
LathanDevers 8d86ccea01 dev correction
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Successful in 1s
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Failing after 4s
2026-08-03 14:28:07 +02:00
LathanDevers 011f572ef3 add
Contrôle Qualité & Sécurité (QA) / qa-s-check (pull_request) Failing after 4s
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Failing after 1s
2026-08-03 14:18:41 +02:00
LathanDevers 74588fbd5d feat: add workflow git
Sécurité - Architecture Git-Flow / validate-flow (pull_request) Failing after 0s
🔍 Contrôle Qualité & Sécurité (QA) / 🛡️ Quality Gate & Security Check (pull_request) Failing after 4s
2026-08-03 14:03:56 +02:00
32 changed files with 813 additions and 483 deletions
View File
+1
View File
@@ -0,0 +1 @@
VITE_PB_URL=
-1
View File
@@ -22,4 +22,3 @@ dist-ssr
*.njsproj
*.sln
*.sw?
+7
View File
@@ -0,0 +1,7 @@
import { describe, it, expect } from 'vitest';
describe('AEGIS Initial Test', () => {
it('devrait valider que 1 + 1 font 2', () => {
expect(1 + 1).toBe(2);
});
});
+17 -15
View File
@@ -7,35 +7,37 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"test": "vitest"
},
"dependencies": {
"@tailwindcss/vite": "^4.3.3",
"@zitadel/react-auth": "^1.2.1",
"clsx": "^2.1.1",
"lucide-react": "^1.27.0",
"lucide-react": "^1.28.0",
"oidc-client-ts": "^3.5.0",
"otpauth": "^9.5.1",
"pocketbase": "^0.27.0",
"pocketbase": "^0.27.1",
"qrcode.react": "^4.2.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-router-dom": "^7.18.1",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"react-router-dom": "^7.18.2",
"tailwind-merge": "^3.6.0",
"tailwindcss": "^4.3.3"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^24.13.2",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.3",
"eslint": "^10.6.0",
"@types/node": "^24.13.3",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitejs/plugin-react": "^6.0.5",
"eslint": "^10.8.0",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.3",
"globals": "^17.7.0",
"typescript": "~6.0.2",
"typescript-eslint": "^8.62.0",
"vite": "^8.1.1"
"globals": "^17.9.0",
"typescript": "~6.0.3",
"typescript-eslint": "^8.65.0",
"vite": "^8.2.0",
"vitest": "^4.1.10"
}
}
+461 -227
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -0,0 +1,3 @@
overrides:
react-router: "^6.30.4"
react-router-dom: "^6.30.4"
+1 -1
View File
@@ -43,7 +43,7 @@ export const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<
ref={ref}
className={cn(
// Séparation discrète (bordure fine plutôt qu'ombre inset, pour rester léger)
"px-6 py-5 flex flex-col space-y-1.5 border-black/5 dark:border-white/5 transition-all duration-300",
"px-6 py-5 flex flex-col space-y-1.5 border-b border-black/5 dark:border-white/5 transition-all duration-300 ease-in-out",
className
)}
{...props}
+1 -1
View File
@@ -57,7 +57,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
"bg-[#e8e8e8] dark:bg-[#1e293b]",
"text-slate-800 dark:text-slate-100 font-medium placeholder:text-slate-400 dark:placeholder:text-slate-500",
// Utilisation directe de tes constantes Neumorphic creusées
// 🎯 Utilisation directe de tes constantes Neumorphic creusées
NEUMORPHISM.insetLight,
NEUMORPHISM.insetDark,
+2 -2
View File
@@ -17,8 +17,8 @@ export default function BackupWidget({ onClick }: BackupWidgetProps) {
<Badge className="max-w-fit min-w-fit" name="PRA Immuable">
</Badge>
</CardHeader>
<CardContent className="p-6 flex flex-col h-full">
<Card variant="flat" className="rounded-lg p-4 border border-slate-100 mb-4">
<CardContent className="p-6">
<Card variant='digged' className="bg-slate-50 rounded-lg p-4 border border-slate-100 mb-4">
<p className="text-sm text-slate-500 mb-1">Dernier snapshot système</p>
<p className="text-slate-900 font-medium">Aujourd'hui à 03:00 AM</p>
</Card>
+34 -4
View File
@@ -1,7 +1,33 @@
import { Card, CardContent, CardHeader } from '@/components/ui/Card';
import type { Company } from '@/types/Company';
import type { User } from '@/types/user';
import { Loader } from '@/components/ui/Loader';
import { Building } from "lucide-react";
export function InformationWidget() {
interface InformationWidgetProps {
user: User;
company: Company;
isLoading: boolean;
error: string;
}
function setVipBadge(vip_level: string | undefined) {
switch (vip_level?.toLowerCase()) {
case "platinum":
return <span className="px-2 py-1 bg-amber-600 text-white text-xs font-bold rounded shadow-sm mr-2 tracking-wider">{vip_level?.toUpperCase()}</span>;
case "premium":
return <span className="px-2 py-1 bg-violet-600 text-white text-xs font-bold rounded shadow-sm mr-2 tracking-wider">{vip_level?.toUpperCase()}</span>;
default:
return <span className="px-2 py-1 bg-blue-600 text-white text-xs font-bold rounded shadow-sm mr-2 tracking-wider">{vip_level?.toUpperCase()}</span>;
}
}
export const InformationWidget: React.FC<InformationWidgetProps> = ({
user,
company,
isLoading,
error,
}) => {
return (
<Card>
<CardHeader className="p-6 border-slate-100">
@@ -12,23 +38,27 @@ export function InformationWidget() {
</CardHeader>
<CardContent>
{isLoading && !error && <Loader />}
{!isLoading && !error && (
<dl className="space-y-4 text-sm">
<div>
<dt className="text-slate-500 font-medium">Entité Légale</dt>
<dd className="mt-1 font-semibold text-slate-900">Cabinet Juridique Example & Associés</dd>
<dd className="mt-1 font-semibold text-slate-900">{company?.name}</dd>
</div>
<div>
<dt className="text-slate-500 font-medium">Administrateur du compte</dt>
<dd className="mt-1 text-slate-900">Direction Générale (direction@example.com)</dd>
<dd className="mt-1 text-slate-900">{user?.role} {user?.name}</dd>
<dd className="mt-1 text-slate-500">Email : {user?.emailVisibility && user?.email}{!user?.emailVisibility && "caché"}</dd>
</div>
<div>
<dt className="text-slate-500 font-medium">Niveau d'Infogérance (SLA)</dt>
<dd className="mt-1 flex items-center">
<span className="px-2 py-1 bg-blue-900 text-white text-xs font-bold rounded shadow-sm mr-2 tracking-wider">VIP PLATINUM</span>
{setVipBadge(company?.vip_level)}
<span className="text-slate-700 font-medium">Couverture 24/7 (99.99%)</span>
</dd>
</div>
</dl>
)}
</CardContent>
</Card>
);
+5 -3
View File
@@ -5,6 +5,8 @@ import { Button } from '@/components/ui/Button';
import { Input } from '@/components/ui/Input';
import { Select } from '@/components/ui/Select';
import { Textarea } from '@/components/ui/Textarea';
import type { TicketCategory } from '@/types/Category';
import type { ButtonVariantStyle } from '@/styles/VariantStyle';
interface NewTicketWidgetProps {
onCancel: () => void;
@@ -15,13 +17,13 @@ export const NewTicketWidget: React.FC<NewTicketWidgetProps> = ({ onCancel, onSu
const { createTicket, isSubmitting, error } = useCreateTicket();
// États locaux isolés dans le widget
const [category, setCategory] = useState<'Incident Critique' | 'Évolution' | 'Administratif'>('Incident Critique');
const [category, setCategory] = useState<TicketCategory>('Incident Critique');
const [ci, setCi] = useState('general');
const [subject, setSubject] = useState('');
const [affectedAsset, setAffectedAsset] = useState('');
const [incidentTime, setIncidentTime] = useState('');
const [description, setDescription] = useState('');
const [buttonVariant, setButtonVariant]=useState('primary');
const [buttonVariant, setButtonVariant]=useState<ButtonVariantStyle>('primary');
const handleSubmit = async (e: React.FormEvent) => {
e.preventDefault();
@@ -62,7 +64,7 @@ export const NewTicketWidget: React.FC<NewTicketWidgetProps> = ({ onCancel, onSu
<Select
label="Type de demande"
value={category}
onChange={(e) => {setCategory(e.target.value as any); setButtonVariant(e.target.value==="Incident Critique"?"danger":"primary")}}
onChange={(e) => {setCategory(e.target.value as TicketCategory); setButtonVariant(e.target.value==="Incident Critique"?"danger":"primary")}}
options={[
{ value: 'Incident Critique', label: 'Incident Critique (Panne, Dégradation)' },
{ value: 'Évolution', label: 'Évolution (Ajout de ressources, Modification)' },
+2 -2
View File
@@ -30,8 +30,8 @@ export default function ServicesWidget() {
))}
</div>
<Button className ="text-green-600" size="lg" onClick={() => navigate('/evolution-infrastructure')}>
Mise à niveau du Parc
<Button size="lg" onClick={() => navigate('/evolution-infrastructure')}>
Demander une évolution du parc
</Button>
</CardContent>
+3 -3
View File
@@ -8,14 +8,14 @@ export const SupportCtaWidget: React.FC = () => {
return (
<Card>
<CardContent className="p-6 rounded-xl">
<CardContent className="p-6">
<h3 className="text-lg font-semibold mb-2">Centre de Support</h3>
<p className="text-sm mb-4 leading-relaxed">
<p className="text-blue-900 text-sm mb-4 leading-relaxed">
Déclarez un incident critique ou demandez une évolution de votre infrastructure.
</p>
<Button
onClick={() => navigate('/support')}
className= "text-rose-500 w-full"
className="w-full text-blue-900"
>
Ouvrir un ticket sécurisé
</Button>
@@ -16,7 +16,7 @@ export const SupportFooterWidget: React.FC<SupportFooterWidgetProps> = ({
const navigate = useNavigate();
return (
<div className="mt-12 bg-slate-500 text-slate-300 rounded-xl p-6 flex flex-col sm:flex-row items-center justify-between gap-4 shadow-sm">
<div className="mt-12 bg-slate-900 text-slate-300 rounded-xl p-6 flex flex-col sm:flex-row items-center justify-between gap-4 shadow-sm">
<div>
<h4 className="text-sm font-bold text-white">{title}</h4>
<p className="text-xs text-slate-400 mt-0.5">
+1 -1
View File
@@ -28,7 +28,7 @@ export const TicketChatWidget: React.FC<TicketChatWidgetProps> = ({
try {
await onSendMessage(newMessage);
setNewMessage(''); // Vide l'input uniquement si l'envoi réussit
} catch (err) {
} catch {
alert("Erreur lors de l'envoi.");
}
};
+1
View File
@@ -24,6 +24,7 @@ export const useDocuments = () => {
}, []);
useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
fetchDocuments();
}, [fetchDocuments]);
+1 -1
View File
@@ -15,7 +15,7 @@ export const useInfrastructureNodes = () => {
sort: 'created',
});
setNodes(records);
} catch (err) {
} catch {
setError("Impossible de charger l'infrastructure.");
} finally {
setIsLoading(false);
+3 -4
View File
@@ -23,8 +23,7 @@ export const useLoginFlow = (onLoginSuccess: () => void) => {
try {
const authData = await pb.collection('aegis_users').authWithOAuth2({ provider: 'oidc' });
if (authData) onLoginSuccess();
} catch (err) {
console.error(err);
} catch {
setError("Échec de la connexion via GISE Identity.");
pb.authStore.clear();
} finally {
@@ -64,7 +63,7 @@ export const useLoginFlow = (onLoginSuccess: () => void) => {
} else {
onLoginSuccess();
}
} catch (err) {
} catch {
setError("Identifiants incorrects ou accès révoqué.");
pb.authStore.clear();
} finally {
@@ -98,7 +97,7 @@ export const useLoginFlow = (onLoginSuccess: () => void) => {
} else {
setError("Code de sécurité invalide ou expiré.");
}
} catch (err) {
} catch {
setError("Erreur critique lors de la vérification.");
} finally {
setIsLoading(false);
+3 -3
View File
@@ -37,6 +37,7 @@ export const useTicketDetail = (ticketId?: string) => {
}, [ticketId]);
useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
fetchTicketData();
}, [fetchTicketData]);
@@ -51,9 +52,8 @@ export const useTicketDetail = (ticketId?: string) => {
content: content.trim(),
});
await fetchTicketData(); // On recharge les messages après l'envoi
} catch (err) {
console.error("Erreur lors de l'envoi du message :", err);
throw new Error("Impossible d'envoyer le message.");
} catch (error) {
throw new Error("Impossible de charger le ticket", { cause: error });
} finally {
setIsSending(false);
}
+1
View File
@@ -24,6 +24,7 @@ export const useTickets = () => {
}, []);
useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect
fetchTickets();
}, [fetchTickets]);
+30
View File
@@ -0,0 +1,30 @@
import { pb } from "@/services/pocketbase";
import type { Company } from "@/types/Company";
import type { User } from "@/types/user";
import { useEffect, useState } from "react";
export const useUserInformations = () => {
const [user, setUser] = useState<User | null>(null);
const [company, setCompany] = useState<Company | null>(null);
const [isLoading, setIsLoading] = useState(true);
const [error, setError] = useState<string | null>(null);
useEffect(() => {
const fetchInformations = async () => {
setIsLoading(true);
try {
const userRecords = await pb.collection('aegis_users').getFullList<User>();
setUser(userRecords[0]);
const companyRecords = await pb.collection('aegis_companies').getFullList<Company>();
setCompany(companyRecords[0])
} catch (err) {
setError("Erreur lors de la récupération des infos utilisateur :"+err);
} finally {
setIsLoading(false);
}
};
fetchInformations();
}, []);
return { user, company, isLoading, error };
};
+9 -9
View File
@@ -1,29 +1,29 @@
import PageHeader from "@/components/ui/PageHeader";
import AccessWidget from "@/components/widgets/AccessWidget";
import InformationWidget from "@/components/widgets/InformationWidget";
import { useUserInformations } from "@/hooks/useUserInformations";
export default function AccountSettings() {
const { user, company, isLoading, error } = useUserInformations();
return (
<div className="font-sans relative min-h-[calc(100vh-4rem)]">
{/* Contenu Principal */}
<main className="max-w-7xl mx-auto px-8 sm:px-8 space-y-6 m-4">
{/* Header */}
<PageHeader
title="Paramètres du compte"
description="Gestion de la sécurité et informations contractuelles" />
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8">
{/* Colonne 1 : Sécurité */}
<AccessWidget/>
<AccessWidget />
{/* Colonne 2 : Organisation & Contrat */}
<InformationWidget/>
<InformationWidget
user={user}
company={company}
isLoading={isLoading}
error={error}
/>
</div>
</main>
</div>
);
+1 -1
View File
@@ -15,7 +15,7 @@ export default function ServiceDesk() {
title="Centre de Support (Service Desk)"
description="Canal de communication sécurisé avec vos experts GISE."
>
<Button className= "text-rose-500" onClick={() => navigate('/support/new')}>
<Button onClick={() => navigate('/support/new')}>
Ouvrir un ticket sécurisé
</Button>
</PageHeader>
@@ -6,7 +6,6 @@ import { useEvolutionRequest } from '@/hooks/useEvolutionRequest';
import { BackButton } from '@/components/ui/BackButton';
import { EmptyState } from '@/components/ui/EmptyState';
import { Button } from '@/components/ui/Button';
// Nos nouveaux composants
import { EvolutionOptionCard } from '@/components/widgets/EvolutionOptionCard';
+1
View File
@@ -0,0 +1 @@
export type ButtonVariantStyle = "primary" | "danger" | "secondary" | "success" | "outline" | "ghost";
+1
View File
@@ -0,0 +1 @@
export type TicketCategory = "Incident Critique" | "Évolution" | "Administratif";
+8
View File
@@ -0,0 +1,8 @@
export interface Company {
id: string;
name: string;
no: string;
vip_level: string;
created: string;
updated: string
}
+12
View File
@@ -0,0 +1,12 @@
export interface User {
id: string;
email: string;
emailVisibility: boolean;
verified: boolean;
name: string;
role: string;
company: string;
mfa_enabled: boolean;
created: string;
updated: string
}