fix(connaissances): passe autofeedback — liens soulignés dans le texte (a11y 100), résumé d'organisation sans redite, libellés du graphe à 8 rem au téléphone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0179wsewuntMrKBA2s9y7ZeX
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0ff71d9b7f
commit
d83ef12269
@@ -266,9 +266,13 @@ export function toMiniConnaissance(objet: ObjetCouche, jeu: JeuCouche): MiniFich
|
||||
const porteurs = porteursDe(objet, rendus)
|
||||
const echelles = echellesDe(objet, jeu, rendus)
|
||||
const nomsPorteurs = porteurs.filter((p) => p.id !== objet.id).map((p) => p.nom_canonique)
|
||||
// Une organisation se porte elle-même : « titre — porteur » redirait son nom ; on dit son statut et son adresse.
|
||||
const domaine = typeof objet.url_canonique === 'string' ? objet.url_canonique.replace(/^https?:\/\/(www\.)?/, '').replace(/\/.*$/, '') : ''
|
||||
const resume = objet.nature === 'concept'
|
||||
? (objet.definition_courte ?? '')
|
||||
: [objet.nom_canonique, nomsPorteurs.join(', ')].filter(Boolean).join(' — ')
|
||||
: objet.nature === 'organisation'
|
||||
? [objet.statut ? `statut : ${objet.statut}` : '', domaine].filter(Boolean).join(' · ')
|
||||
: [objet.nom_canonique, nomsPorteurs.join(', ')].filter(Boolean).join(' — ')
|
||||
return {
|
||||
id: objet.id,
|
||||
kind: objet.nature,
|
||||
|
||||
Reference in New Issue
Block a user