feat(domain,application,infrastructure,backend,web-server,app-tauri,frontend): lot utilisateur #325 #326 — icônes projet avec watermark CLI custom et localisation FR/EN (QA verte)
Lot en un seul commit: les deux features partagent les mêmes contrats (domain/settings.rs, DTO, commandes Tauri/HTTP, web-server) et les mêmes surfaces UI — la séparation par fichiers était impossible sans chirurgie de hunks risquant des états intermédiaires non compilables (convention lot des batches #310-#313 et #315). #325 — icône configurable par projet, watermark CLI custom: - domaine: ProjectIconSet (devicon, simple-icons, lucide, idea), ProjectIconRef validé (nom ASCII 1..=64, -_. internes), champ icon optionnel sur ProjectSettings; sérialisation camelCase et try_from strict - application: UpdateProjectSettings.execute accepte un patch theme_color OU icon (absent = inchangé, null = défaut produit), tests in-dependants avec store mémoire - backend/app-tauri/web-server: ProjectIconRefDto, UpdateProjectSettingsRequestDto avec icon optionnel (désérialisation additive), commandes update_project_settings alignées Tauri/HTTP, tests DTO et HTTP (défaut null, set, clear, nom invalide rejeté) - frontend: catalogue projectIcons (recherche EN), ProjectIconPicker en grille multi-lignes dans Paramètres projet, affichage de l'icône dans ProjectTabs et watermark grand format à faible opacité en fond de CLI custom; ports ProjectSettings.icon, Partial<ProjectSettings>, adapters tauri/mock/http et tests alignés #326 — localisation FR/EN et traduction des textes IdeA: - domaine: IdeaLanguage (fr | en), champ language optionnel sur IdeaUserSettings (absence = défaut produit, série additive validée) - backend/web-server: UserSettingsDto.language, update_user_settings accepte language, tests HTTP alignés; fixtures structured_launch_d3 mises à jour - frontend: i18n/ (catalogue FR/EN, I18nProvider, scan anti-régression des sources visibles), GeneralSettings avec sélecteur de langue dans les paramètres, setupI18n dans vitest; migration de l'ensemble des textes hardcodés vers le catalogue sur toutes les surfaces (agents, layout, projets, tickets, sprints, web, plugins, permissions, git, templates, skills, mémoire, model servers, embedder, first-run, devices, scheduled tasks, workstate, dialogs), FR conservé par défaut; recherche d'icônes #325 en anglais conformément au ticket QA verte sur feature/batch-325-326-project-icons-localisation. Aucun push.
This commit is contained in:
@ -148,13 +148,13 @@ async function flush() {
|
||||
}
|
||||
|
||||
function controlsFor(cellId: string) {
|
||||
const selector = screen.getByLabelText(`agent selector ${cellId}`);
|
||||
const selector = screen.getByLabelText(`Sélecteur d’agent ${cellId}`);
|
||||
const controls = selector.parentElement as HTMLElement;
|
||||
return {
|
||||
selector,
|
||||
controls,
|
||||
splitColumns: screen.getByLabelText(`split ${cellId} columns`),
|
||||
close: screen.getByLabelText(`close ${cellId}`),
|
||||
splitColumns: screen.getByLabelText(`Diviser ${cellId} en colonnes`),
|
||||
close: screen.getByLabelText(`Fermer ${cellId}`),
|
||||
};
|
||||
}
|
||||
|
||||
@ -231,7 +231,7 @@ describe("LayoutGrid — ticket #48 cell control layering", () => {
|
||||
}) as HTMLButtonElement).disabled,
|
||||
).toBe(true);
|
||||
expect(
|
||||
(screen.getByLabelText(`agent selector ${setup.bId}`) as HTMLSelectElement)
|
||||
(screen.getByLabelText(`Sélecteur d’agent ${setup.bId}`) as HTMLSelectElement)
|
||||
.disabled,
|
||||
).toBe(true);
|
||||
expect(screen.getByText("Redémarrage de l’agent…")).toBeTruthy();
|
||||
@ -381,7 +381,7 @@ describe("LayoutGrid — ticket #48 cell control layering", () => {
|
||||
renderGrid(setup.gateways);
|
||||
|
||||
const group = await screen.findByRole("group", {
|
||||
name: `mode CLI agent ${setup.bId}`,
|
||||
name: `Mode CLI de l’agent ${setup.bId}`,
|
||||
});
|
||||
const { controls } = controlsFor(setup.bId);
|
||||
|
||||
@ -417,19 +417,19 @@ describe("LayoutGrid — ticket #48 cell control layering", () => {
|
||||
const mutate = vi.spyOn(setup.layout, "mutateLayout");
|
||||
|
||||
expect(customToolbar.className).toContain("z-20");
|
||||
expect(screen.getByLabelText(`agent selector ${setup.bId}`)).toBeTruthy();
|
||||
expect(screen.getByLabelText(`Sélecteur d’agent ${setup.bId}`)).toBeTruthy();
|
||||
expect(screen.getByRole("group", {
|
||||
name: `mode CLI agent ${setup.bId}`,
|
||||
name: `Mode CLI de l’agent ${setup.bId}`,
|
||||
})).toBeTruthy();
|
||||
expect(screen.getByLabelText(`split ${setup.bId} columns`)).toBeTruthy();
|
||||
expect(screen.getByLabelText(`split ${setup.bId} rows`)).toBeTruthy();
|
||||
expect(screen.getByLabelText(`close ${setup.bId}`)).toBeTruthy();
|
||||
expect(screen.getByLabelText(`Diviser ${setup.bId} en colonnes`)).toBeTruthy();
|
||||
expect(screen.getByLabelText(`Diviser ${setup.bId} en lignes`)).toBeTruthy();
|
||||
expect(screen.getByLabelText(`Fermer ${setup.bId}`)).toBeTruthy();
|
||||
expect(screen.queryByRole("button", {
|
||||
name: `cancel current turn ${setup.bId}`,
|
||||
})).toBeNull();
|
||||
expect(screen.queryByText("Busy")).toBeNull();
|
||||
|
||||
fireEvent.click(screen.getByLabelText(`split ${setup.bId} columns`));
|
||||
fireEvent.click(screen.getByLabelText(`Diviser ${setup.bId} en colonnes`));
|
||||
await waitFor(() =>
|
||||
expect(mutate).toHaveBeenCalledWith(
|
||||
"p1",
|
||||
@ -442,7 +442,7 @@ describe("LayoutGrid — ticket #48 cell control layering", () => {
|
||||
),
|
||||
);
|
||||
|
||||
const selector = screen.getByLabelText(`agent selector ${setup.bId}`);
|
||||
const selector = screen.getByLabelText(`Sélecteur d’agent ${setup.bId}`);
|
||||
fireEvent.change(selector, { target: { value: setup.otherAgentId } });
|
||||
await waitFor(() =>
|
||||
expect(mutate).toHaveBeenCalledWith(
|
||||
|
||||
Reference in New Issue
Block a user