Extended-brief supporte maintenant images + PDF comme client-brief
All checks were successful
Deploy Preprod / Build and Deploy to Preprod (push) Successful in 28s

- Blueprint : ajout champs moodboard et description
- Kanban : utilise ClientBrief au lieu de SimpleDocument
- Validation : support extended-brief depuis PDF et page images
- Navigation : paths dynamiques basés sur step.slug

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-01-30 09:13:31 +01:00
parent 2b5175900c
commit 7ca72c6d82
4 changed files with 14 additions and 4 deletions

View file

@ -42,4 +42,14 @@ tabs:
type: files
multiple: false
uploads: pdf
description:
type: textarea
size: tiny
buttons: false
moodboard:
label: Images
type: files
template: image
layout: cards
size: medium
files: tabs/files

View file

@ -37,7 +37,7 @@ const { step } = defineProps({
const cardsMap = {
clientBrief: ClientBrief,
proposal: MultipleDocuments,
extendedBrief: SimpleDocument,
extendedBrief: ClientBrief,
industrialIdeation: SimpleDocument,
virtualSample: VirtualSample,
physicalSample: PhysicalSample,

View file

@ -16,7 +16,7 @@
<template #header>
<button
v-if="
dialog.content.id === 'clientBrief' &&
['clientBrief', 'extendedBrief'].includes(dialog.content.id) &&
dialog.content.isValidated !== true
"
class="btn"
@ -91,7 +91,7 @@ const correspondingDTLProposal = computed(() => {
// Functions
async function validate() {
const response = await api.validateBrief(
route.path + '/client-brief',
route.path + '/' + dialog.content.slug,
route.fullPath
);
if (response.success) {

View file

@ -49,6 +49,6 @@ const pdf = computed(() => {
});
function goToImagesBrief() {
router.push(location.pathname + "/client-brief");
router.push(location.pathname + "/" + step.slug);
}
</script>