feat(blueprints): refactor investigation-summary and report page layouts
All checks were successful
Deploy / Deploy to Production (push) Successful in 17s
All checks were successful
Deploy / Deploy to Production (push) Successful in 17s
Investigation Summary: - Reorganize fields for better UX (cover moved up) - Enhance video system with preview and URL fields - Convert synthesis field to writer with formatting options - Change team field to multiselect with database query - Adjust field widths for better layout Report: - Simplify page layout and column structure - Make cover image required - Remove metadata tab (fields integrated in main tab) - Add gallery block to available blocks - Move authors field to main content area Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
93f7b45c97
commit
c8492cd27e
2 changed files with 51 additions and 76 deletions
|
|
@ -16,6 +16,15 @@ tabs:
|
||||||
display: DD / MM / YYYY
|
display: DD / MM / YYYY
|
||||||
default: today
|
default: today
|
||||||
width: 1/2
|
width: 1/2
|
||||||
|
cover:
|
||||||
|
label: Visuel de couverture
|
||||||
|
type: files
|
||||||
|
multiple: false
|
||||||
|
layout: cards
|
||||||
|
image:
|
||||||
|
ratio: 12/7
|
||||||
|
cover: true
|
||||||
|
help: Image utilisée dans les listes d'enquêtes
|
||||||
reportSection:
|
reportSection:
|
||||||
label: Rapport
|
label: Rapport
|
||||||
type: pages
|
type: pages
|
||||||
|
|
@ -27,18 +36,10 @@ tabs:
|
||||||
type: writer
|
type: writer
|
||||||
nodes: false
|
nodes: false
|
||||||
buttons: false
|
buttons: false
|
||||||
cover:
|
|
||||||
label: Visuel de couverture
|
|
||||||
type: files
|
|
||||||
multiple: false
|
|
||||||
layout: cards
|
|
||||||
image:
|
|
||||||
ratio: 12/7
|
|
||||||
cover: true
|
|
||||||
help: Image utilisée dans les listes d'enquêtes
|
|
||||||
heroType:
|
heroType:
|
||||||
label: Type de hero
|
label: Type de hero
|
||||||
type: select
|
type: select
|
||||||
|
default: image
|
||||||
options:
|
options:
|
||||||
image: Image simple
|
image: Image simple
|
||||||
video: Vidéo
|
video: Vidéo
|
||||||
|
|
@ -49,25 +50,40 @@ tabs:
|
||||||
type: files
|
type: files
|
||||||
multiple: true
|
multiple: true
|
||||||
layout: cards
|
layout: cards
|
||||||
|
width: 1/3
|
||||||
when:
|
when:
|
||||||
heroType: image
|
heroType: image
|
||||||
videoExtractUrl:
|
videoPreview:
|
||||||
label: URL vidéo d'extrait (autoplay)
|
label: Preview
|
||||||
type: url
|
type: files
|
||||||
|
multiple: false
|
||||||
|
help: Extrait joué en autoplay muet.
|
||||||
|
width: 1/3
|
||||||
when:
|
when:
|
||||||
heroType: video
|
heroType: video
|
||||||
width: 1/2
|
videoUrl:
|
||||||
videoFullUrl:
|
|
||||||
label: URL vidéo complète (YouTube embed)
|
label: URL vidéo complète (YouTube embed)
|
||||||
type: url
|
type: url
|
||||||
|
width: 1/3
|
||||||
when:
|
when:
|
||||||
heroType: video
|
heroType: video
|
||||||
width: 1/2
|
|
||||||
synthesis:
|
synthesis:
|
||||||
label: Synthèse
|
label: Synthèse
|
||||||
type: textarea
|
type: writer
|
||||||
size: large
|
size: large
|
||||||
buttons: false
|
headings:
|
||||||
|
- 4
|
||||||
|
nodes:
|
||||||
|
- heading
|
||||||
|
- bulletlist
|
||||||
|
- orderedlist
|
||||||
|
marks:
|
||||||
|
- bold
|
||||||
|
- italic
|
||||||
|
- underline
|
||||||
|
- link
|
||||||
|
- '|'
|
||||||
|
- clear
|
||||||
metadataTab:
|
metadataTab:
|
||||||
label: Métadonnées
|
label: Métadonnées
|
||||||
icon: table
|
icon: table
|
||||||
|
|
@ -106,13 +122,13 @@ tabs:
|
||||||
type: multiselect
|
type: multiselect
|
||||||
options: query
|
options: query
|
||||||
query: page('database').keywords.split
|
query: page('database').keywords.split
|
||||||
width: 1/2
|
width: 1/3
|
||||||
methodologies:
|
methodologies:
|
||||||
label: Méthodologies
|
label: Méthodologies
|
||||||
options: query
|
options: query
|
||||||
query: page('database').methodologies.split
|
query: page('database').methodologies.split
|
||||||
type: multiselect
|
type: multiselect
|
||||||
width: 1/2
|
width: 1/3
|
||||||
partners:
|
partners:
|
||||||
label: Partenaires
|
label: Partenaires
|
||||||
type: structure
|
type: structure
|
||||||
|
|
@ -126,7 +142,9 @@ tabs:
|
||||||
type: url
|
type: url
|
||||||
team:
|
team:
|
||||||
label: Équipe Index
|
label: Équipe Index
|
||||||
type: tags
|
type: multiselect
|
||||||
|
options: query
|
||||||
|
query: page('database').team.split
|
||||||
width: 1/2
|
width: 1/2
|
||||||
relatedInvestigations:
|
relatedInvestigations:
|
||||||
label: Enquêtes en lien
|
label: Enquêtes en lien
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,7 @@ tabs:
|
||||||
label: Contenu
|
label: Contenu
|
||||||
icon: page
|
icon: page
|
||||||
columns:
|
columns:
|
||||||
- width: 1/6
|
- width: 1/4
|
||||||
fields:
|
|
||||||
emptyLeft:
|
|
||||||
type: gap
|
|
||||||
- width: 4/6
|
|
||||||
fields:
|
fields:
|
||||||
created:
|
created:
|
||||||
label: Première publication
|
label: Première publication
|
||||||
|
|
@ -20,25 +16,27 @@ tabs:
|
||||||
display: DD / MM / YYYY
|
display: DD / MM / YYYY
|
||||||
default: today
|
default: today
|
||||||
width: 1/2
|
width: 1/2
|
||||||
subtitle:
|
authors:
|
||||||
label: Sous-titre
|
label: Auteur(s)
|
||||||
type: text
|
type: text
|
||||||
width: 1/2
|
placeholder: INDEX Investigation
|
||||||
chapo:
|
default: INDEX Investigation
|
||||||
label: Chapo
|
|
||||||
type: writer
|
|
||||||
nodes: false
|
|
||||||
buttons: false
|
|
||||||
cover:
|
cover:
|
||||||
label: Visuel de couverture
|
label: Visuel de couverture
|
||||||
type: files
|
type: files
|
||||||
multiple: false
|
multiple: false
|
||||||
min: 1
|
min: 1
|
||||||
|
required: true
|
||||||
layout: cards
|
layout: cards
|
||||||
size: full
|
size: full
|
||||||
image:
|
image:
|
||||||
ratio: 12/7
|
ratio: 12/7
|
||||||
cover: true
|
cover: true
|
||||||
|
- width: 3/4
|
||||||
|
fields:
|
||||||
|
subtitle:
|
||||||
|
label: Sous-titre
|
||||||
|
type: text
|
||||||
body:
|
body:
|
||||||
label: Corps
|
label: Corps
|
||||||
type: layout
|
type: layout
|
||||||
|
|
@ -51,47 +49,6 @@ tabs:
|
||||||
- image
|
- image
|
||||||
- beforeafter
|
- beforeafter
|
||||||
- video
|
- video
|
||||||
- horizontal-gallery
|
# - horizontal-gallery
|
||||||
- width: 1/6
|
- gallery
|
||||||
fields:
|
|
||||||
emptyRight:
|
|
||||||
type: gap
|
|
||||||
metadataTab:
|
|
||||||
label: Métadonnées
|
|
||||||
icon: table
|
|
||||||
fields:
|
|
||||||
authors:
|
|
||||||
label: Auteur(s)
|
|
||||||
default: INDEX Investigation
|
|
||||||
type: tags
|
|
||||||
incidentDate:
|
|
||||||
label: Date de l'incident
|
|
||||||
type: date
|
|
||||||
display: DD / MM / YYYY
|
|
||||||
width: 1/3
|
|
||||||
incidentLocation:
|
|
||||||
label: Lieu de l'incident
|
|
||||||
type: text
|
|
||||||
width: 1/3
|
|
||||||
incidentConsequences:
|
|
||||||
label: Conséquence(s)
|
|
||||||
type: text
|
|
||||||
width: 1/3
|
|
||||||
keywords:
|
|
||||||
label: Mots-clés
|
|
||||||
type: tags
|
|
||||||
width: 1/2
|
|
||||||
partners:
|
|
||||||
label: Partenaires
|
|
||||||
type: structure
|
|
||||||
width: 1/2
|
|
||||||
fields:
|
|
||||||
name:
|
|
||||||
label: Nom
|
|
||||||
type: text
|
|
||||||
link:
|
|
||||||
label: Lien
|
|
||||||
type: link
|
|
||||||
options:
|
|
||||||
- url
|
|
||||||
seo: seo/page
|
seo: seo/page
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue