Téléverser les fichiers vers "/"
This commit is contained in:
commit
51825fdeee
1401
index.html
Normal file
1401
index.html
Normal file
File diff suppressed because it is too large
Load Diff
847
prompt.html
Normal file
847
prompt.html
Normal file
@ -0,0 +1,847 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>générer un compte rendu de réunion de projet automatiquement</title>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0
|
||||
}
|
||||
|
||||
.oc-wrap {
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
background: #f8fafc;
|
||||
border-radius: 18px;
|
||||
border: 1px solid #e2e8f0;
|
||||
padding: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.oc-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
padding-bottom: 18px;
|
||||
}
|
||||
|
||||
.oc-header-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px
|
||||
}
|
||||
|
||||
.oc-kicker {
|
||||
font-size: .65rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .2em;
|
||||
text-transform: uppercase;
|
||||
color: hsl(247, 80%, 62%);
|
||||
font-family: 'Nunito', sans-serif
|
||||
}
|
||||
|
||||
.oc-title {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 900;
|
||||
color: #0f172a;
|
||||
letter-spacing: -.02em;
|
||||
line-height: 1.2;
|
||||
font-family: 'Nunito', sans-serif
|
||||
}
|
||||
|
||||
.oc-badge {
|
||||
background: hsl(247, 85%, 96%);
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 14px;
|
||||
padding: 8px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .04);
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.oc-badge-t {
|
||||
font-size: .6rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: hsl(247, 80%, 35%);
|
||||
opacity: .8;
|
||||
font-family: 'Nunito', sans-serif
|
||||
}
|
||||
|
||||
.oc-badge-v {
|
||||
font-size: 1rem;
|
||||
font-weight: 900;
|
||||
color: hsl(247, 80%, 35%);
|
||||
font-family: 'Nunito', sans-serif
|
||||
}
|
||||
|
||||
.oc-tooltip {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
width: 280px;
|
||||
background-color: #ffffff;
|
||||
color: #334155;
|
||||
text-align: left;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
right: 0;
|
||||
top: 110%;
|
||||
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid #e2e8f0;
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
transform: translateY(4px);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.oc-tooltip::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
right: 24px;
|
||||
border-width: 6px;
|
||||
border-style: solid;
|
||||
border-color: transparent transparent #ffffff transparent;
|
||||
}
|
||||
|
||||
.oc-tooltip::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 100%;
|
||||
right: 23px;
|
||||
border-width: 7px;
|
||||
border-style: solid;
|
||||
border-color: transparent transparent #e2e8f0 transparent;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.oc-badge:hover .oc-tooltip {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.oc-tooltip strong {
|
||||
display: block;
|
||||
color: hsl(247, 80%, 35%);
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 6px;
|
||||
font-family: 'Nunito', sans-serif;
|
||||
}
|
||||
|
||||
.oc-tooltip p {
|
||||
font-size: 0.78rem;
|
||||
color: #64748b;
|
||||
margin-bottom: 8px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.oc-tooltip ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.oc-tooltip li {
|
||||
font-size: 0.75rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.oc-tooltip li strong {
|
||||
display: inline;
|
||||
margin: 0;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.oc-tooltip .dot-role,
|
||||
.oc-tooltip .dot-ctx,
|
||||
.oc-tooltip .dot-task,
|
||||
.oc-tooltip .dot-fmt {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.oc-tooltip .dot-role { background: hsl(247, 80%, 50%); }
|
||||
.oc-tooltip .dot-ctx { background: hsl(162, 75%, 28%); }
|
||||
.oc-tooltip .dot-task { background: hsl(36, 90%, 35%); }
|
||||
.oc-tooltip .dot-fmt { background: hsl(0, 75%, 38%); }
|
||||
|
||||
.sec-label {
|
||||
font-size: .65rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .1em;
|
||||
text-transform: uppercase;
|
||||
color: #475569;
|
||||
font-family: 'Nunito', sans-serif;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
margin-bottom: 8px
|
||||
}
|
||||
|
||||
.sec-label i {
|
||||
font-size: 1rem;
|
||||
color: hsl(247, 80%, 62%)
|
||||
}
|
||||
|
||||
.tab-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap
|
||||
}
|
||||
|
||||
.t-btn {
|
||||
font-size: .75rem;
|
||||
font-weight: 700;
|
||||
padding: 5px 13px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #fff;
|
||||
color: #475569;
|
||||
cursor: pointer;
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
transition: all .2s cubic-bezier(.4, 0, .2, 1);
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
.t-btn:hover {
|
||||
border-color: hsl(247, 80%, 62%);
|
||||
background: hsl(247, 85%, 96%);
|
||||
color: hsl(247, 80%, 35%);
|
||||
transform: translateY(-1px)
|
||||
}
|
||||
|
||||
.t-btn.active {
|
||||
background: hsl(247, 85%, 96%);
|
||||
color: hsl(247, 80%, 62%);
|
||||
border-color: hsl(247, 85%, 88%);
|
||||
font-weight: 800
|
||||
}
|
||||
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
||||
gap: 10px
|
||||
}
|
||||
|
||||
.id-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 14px;
|
||||
padding: 10px 14px;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .05);
|
||||
transition: all .25s ease;
|
||||
}
|
||||
|
||||
.id-field:focus-within {
|
||||
border-color: hsl(247, 80%, 62%);
|
||||
box-shadow: 0 0 0 3px hsla(247, 80%, 62%, .12)
|
||||
}
|
||||
|
||||
.f-lbl {
|
||||
font-size: .65rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: .08em;
|
||||
text-transform: uppercase;
|
||||
color: #475569;
|
||||
font-family: 'Nunito', sans-serif
|
||||
}
|
||||
|
||||
.id-field input,
|
||||
.id-field select {
|
||||
border: none;
|
||||
background: transparent;
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: .88rem;
|
||||
color: #0f172a;
|
||||
padding: 2px 0 0;
|
||||
width: 100%;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.id-field input::placeholder {
|
||||
color: #94a3b8;
|
||||
opacity: .7
|
||||
}
|
||||
|
||||
.pills-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px
|
||||
}
|
||||
|
||||
.sec-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 12px;
|
||||
border-radius: 20px;
|
||||
font-size: .75rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
transition: all .2s cubic-bezier(.4, 0, .2, 1);
|
||||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .04);
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.sec-pill i {
|
||||
font-size: 13px;
|
||||
color: #94a3b8
|
||||
}
|
||||
|
||||
.sec-pill.on {
|
||||
background: hsl(247, 85%, 96%);
|
||||
color: hsl(247, 80%, 35%);
|
||||
border-color: hsl(247, 85%, 88%)
|
||||
}
|
||||
|
||||
.sec-pill.on i {
|
||||
color: hsl(247, 80%, 62%)
|
||||
}
|
||||
|
||||
.notice-box {
|
||||
background: hsl(247, 85%, 96%);
|
||||
border-left: 4px solid hsl(247, 80%, 62%);
|
||||
border-radius: 0 14px 14px 0;
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: flex-start;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
.notice-box.amber {
|
||||
background: hsl(36, 85%, 96%);
|
||||
border-left-color: hsl(36, 90%, 45%)
|
||||
}
|
||||
|
||||
.notice-box.green {
|
||||
background: hsl(162, 85%, 96%);
|
||||
border-left-color: hsl(162, 75%, 34%)
|
||||
}
|
||||
|
||||
.notice-box i {
|
||||
font-size: 1.1rem;
|
||||
color: hsl(247, 80%, 62%);
|
||||
flex-shrink: 0;
|
||||
margin-top: 1px
|
||||
}
|
||||
|
||||
.notice-box.amber i {
|
||||
color: hsl(36, 90%, 45%)
|
||||
}
|
||||
|
||||
.notice-box.green i {
|
||||
color: hsl(162, 75%, 34%)
|
||||
}
|
||||
|
||||
.notice-box p {
|
||||
font-size: .85rem;
|
||||
color: #475569;
|
||||
line-height: 1.6
|
||||
}
|
||||
|
||||
.notice-box strong {
|
||||
font-weight: 800;
|
||||
color: hsl(247, 80%, 35%)
|
||||
}
|
||||
|
||||
.notice-box.amber strong {
|
||||
color: hsl(36, 95%, 22%)
|
||||
}
|
||||
|
||||
.notice-box.green strong {
|
||||
color: hsl(162, 80%, 20%)
|
||||
}
|
||||
|
||||
.prompt-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 18px;
|
||||
padding: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .04);
|
||||
}
|
||||
|
||||
.prompt-out {
|
||||
font-family: 'DM Sans', monospace;
|
||||
font-size: .8rem;
|
||||
line-height: 1.8;
|
||||
color: #0f172a;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
min-height: 110px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 14px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.span-role {
|
||||
color: hsl(247, 80%, 40%);
|
||||
font-weight: 700
|
||||
}
|
||||
|
||||
.span-ctx {
|
||||
color: hsl(162, 75%, 28%);
|
||||
font-weight: 700
|
||||
}
|
||||
|
||||
.span-task {
|
||||
color: hsl(36, 90%, 35%);
|
||||
font-weight: 700
|
||||
}
|
||||
|
||||
.span-fmt {
|
||||
color: hsl(0, 75%, 38%);
|
||||
font-weight: 700
|
||||
}
|
||||
|
||||
.legend-row {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap
|
||||
}
|
||||
|
||||
.leg {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: .72rem;
|
||||
color: #475569;
|
||||
font-weight: 600;
|
||||
font-family: 'Nunito', sans-serif
|
||||
}
|
||||
|
||||
.leg-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%
|
||||
}
|
||||
|
||||
.actions-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: .8rem;
|
||||
font-weight: 700;
|
||||
padding: 8px 16px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #fff;
|
||||
color: #475569;
|
||||
cursor: pointer;
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
transition: all .2s ease;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
border-color: hsl(247, 80%, 62%);
|
||||
background: hsl(247, 85%, 96%);
|
||||
color: hsl(247, 80%, 35%);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .08)
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: .8rem;
|
||||
font-weight: 800;
|
||||
padding: 8px 18px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid hsl(247, 80%, 62%);
|
||||
background: hsl(247, 80%, 62%);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
transition: all .2s ease;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: hsl(247, 80%, 50%);
|
||||
border-color: hsl(247, 80%, 50%);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 8px 12px -2px rgba(109, 93, 219, .3)
|
||||
}
|
||||
|
||||
.btn-primary:active {
|
||||
transform: scale(.98)
|
||||
}
|
||||
|
||||
.toast {
|
||||
font-size: .75rem;
|
||||
color: hsl(162, 75%, 28%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-weight: 700;
|
||||
opacity: 0;
|
||||
transition: opacity .3s;
|
||||
font-family: 'Nunito', sans-serif
|
||||
}
|
||||
|
||||
.toast.show {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.divider {
|
||||
height: 1px;
|
||||
background: #e2e8f0
|
||||
}
|
||||
|
||||
.textarea-field {
|
||||
background: #fff;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 14px;
|
||||
padding: 10px 14px;
|
||||
transition: all .25s ease;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
.textarea-field:focus-within {
|
||||
border-color: hsl(247, 80%, 62%);
|
||||
box-shadow: 0 0 0 3px hsla(247, 80%, 62%, .12)
|
||||
}
|
||||
|
||||
.textarea-field textarea {
|
||||
border: none;
|
||||
background: transparent;
|
||||
font-family: 'DM Sans', sans-serif;
|
||||
font-size: .88rem;
|
||||
color: #0f172a;
|
||||
width: 100%;
|
||||
outline: none;
|
||||
resize: vertical;
|
||||
min-height: 72px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.textarea-field textarea::placeholder {
|
||||
color: #94a3b8;
|
||||
opacity: .7
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="oc-wrap">
|
||||
|
||||
<div class="oc-header">
|
||||
<div class="oc-header-left">
|
||||
<span class="oc-kicker">IA-PRO · Gestion de projet</span>
|
||||
<div class="oc-title">Générateur de prompt CR</div>
|
||||
<div style="font-size:.85rem;color:#475569;margin-top:4px;line-height:1.5">Configurez, copiez, générez — votre
|
||||
compte-rendu en 30 secondes</div>
|
||||
</div>
|
||||
<div class="oc-badge">
|
||||
<span class="oc-badge-t">Méthode</span>
|
||||
<span class="oc-badge-v">RCTF</span>
|
||||
<div class="oc-tooltip">
|
||||
<strong>Méthode RCTF</strong>
|
||||
<p>Une structure de prompt efficace et rigoureuse :</p>
|
||||
<ul>
|
||||
<li><span class="dot-role"></span> <strong>R</strong>ôle : Définir l'expertise attendue</li>
|
||||
<li><span class="dot-ctx"></span> <strong>C</strong>ontexte : Situer le projet & la situation</li>
|
||||
<li><span class="dot-task"></span> <strong>T</strong>âche : Exprimer clairement l'action</li>
|
||||
<li><span class="dot-fmt"></span> <strong>F</strong>ormat : Préciser le rendu et le ton</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="sec-label"><i class="ti ti-layout-grid" aria-hidden="true"></i>Template de départ</div>
|
||||
<div class="tab-row" id="templateTabs">
|
||||
<button class="t-btn active" onclick="applyTemplate('standard',this)">CR standard</button>
|
||||
<button class="t-btn" onclick="applyTemplate('risque',this)">Réunion à risques</button>
|
||||
<button class="t-btn" onclick="applyTemplate('client',this)">Réunion client</button>
|
||||
<button class="t-btn" onclick="applyTemplate('sprint',this)">Sprint / agile</button>
|
||||
<button class="t-btn" onclick="applyTemplate('vide',this)">Personnalisé</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div>
|
||||
<div class="sec-label"><i class="ti ti-settings" aria-hidden="true"></i>Paramètres de la réunion</div>
|
||||
<div class="card-grid">
|
||||
<div class="id-field">
|
||||
<div class="f-lbl">Nom du projet</div>
|
||||
<input type="text" id="projet" placeholder="ex. Refonte site e-commerce" oninput="buildPrompt()">
|
||||
</div>
|
||||
<div class="id-field">
|
||||
<div class="f-lbl">Type de réunion</div>
|
||||
<select id="typeReunion" onchange="buildPrompt()">
|
||||
<option value="réunion de suivi de projet">Suivi de projet</option>
|
||||
<option value="réunion de lancement (kick-off)">Kick-off</option>
|
||||
<option value="réunion client">Réunion client</option>
|
||||
<option value="réunion de sprint planning">Sprint planning</option>
|
||||
<option value="réunion de rétrospective">Rétrospective</option>
|
||||
<option value="comité de pilotage">COPIL</option>
|
||||
<option value="réunion de crise">Réunion de crise</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="id-field">
|
||||
<div class="f-lbl">Participants</div>
|
||||
<input type="text" id="participants" placeholder="ex. Chef de projet, dev, client" oninput="buildPrompt()">
|
||||
</div>
|
||||
<div class="id-field">
|
||||
<div class="f-lbl">Langue de sortie</div>
|
||||
<select id="langue" onchange="buildPrompt()">
|
||||
<option value="français">Français</option>
|
||||
<option value="anglais">Anglais</option>
|
||||
<option value="espagnol">Espagnol</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="sec-label"><i class="ti ti-list-check" aria-hidden="true"></i>Sections à inclure dans le CR</div>
|
||||
<div class="pills-row" id="sections">
|
||||
<div class="sec-pill on" data-val="résumé exécutif (3 phrases max)" onclick="togglePill(this)"><i
|
||||
class="ti ti-bolt" aria-hidden="true"></i>Résumé exécutif</div>
|
||||
<div class="sec-pill on" data-val="participants et rôles" onclick="togglePill(this)"><i class="ti ti-users"
|
||||
aria-hidden="true"></i>Participants</div>
|
||||
<div class="sec-pill on" data-val="décisions prises" onclick="togglePill(this)"><i class="ti ti-check"
|
||||
aria-hidden="true"></i>Décisions</div>
|
||||
<div class="sec-pill on" data-val="plan d'action avec responsable et délai pour chaque tâche"
|
||||
onclick="togglePill(this)"><i class="ti ti-checklist" aria-hidden="true"></i>Plan d'action</div>
|
||||
<div class="sec-pill on" data-val="risques et points de blocage identifiés" onclick="togglePill(this)"><i
|
||||
class="ti ti-alert-triangle" aria-hidden="true"></i>Risques / blocages</div>
|
||||
<div class="sec-pill" data-val="points restés en suspens (parking lot)" onclick="togglePill(this)"><i
|
||||
class="ti ti-clock" aria-hidden="true"></i>Points en suspens</div>
|
||||
<div class="sec-pill" data-val="date et ordre du jour de la prochaine réunion" onclick="togglePill(this)"><i
|
||||
class="ti ti-calendar" aria-hidden="true"></i>Prochaine réunion</div>
|
||||
<div class="sec-pill" data-val="indicateurs clés de progression (si mentionnés)" onclick="togglePill(this)"><i
|
||||
class="ti ti-chart-bar" aria-hidden="true"></i>KPIs / indicateurs</div>
|
||||
<div class="sec-pill" data-val="budget et ressources (si abordé)" onclick="togglePill(this)"><i class="ti ti-coin"
|
||||
aria-hidden="true"></i>Budget</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="sec-label"><i class="ti ti-adjustments" aria-hidden="true"></i>Tonalité et format</div>
|
||||
<div class="card-grid">
|
||||
<div class="id-field">
|
||||
<div class="f-lbl">Tonalité</div>
|
||||
<select id="tonalite" onchange="buildPrompt()">
|
||||
<option value="professionnelle et concise">Professionnelle concise</option>
|
||||
<option value="formelle (pour un client ou un COPIL)">Formelle — client / COPIL</option>
|
||||
<option value="décontractée et directe (équipe interne)">Décontractée — équipe interne</option>
|
||||
<option value="orientée action, sans superflu">Action uniquement</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="id-field">
|
||||
<div class="f-lbl">Format de sortie</div>
|
||||
<select id="format" onchange="buildPrompt()">
|
||||
<option value="Markdown avec titres et listes à puces">Markdown structuré</option>
|
||||
<option value="Texte brut sans formatage">Texte brut</option>
|
||||
<option value="Tableau pour le plan d'action, texte pour le reste">Tableau (plan d'action)</option>
|
||||
<option value="Email prêt à envoyer">Email prêt à envoyer</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="id-field">
|
||||
<div class="f-lbl">Longueur cible</div>
|
||||
<select id="longueur" onchange="buildPrompt()">
|
||||
<option value="court (moins de 200 mots)">Court — moins de 200 mots</option>
|
||||
<option value="moyen (200 à 400 mots)" selected>Moyen — 200 à 400 mots</option>
|
||||
<option value="détaillé (plus de 400 mots)">Détaillé — plus de 400 mots</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class="sec-label"><i class="ti ti-notes" aria-hidden="true"></i>Notes brutes de la réunion</div>
|
||||
<div class="textarea-field">
|
||||
<textarea id="notes" placeholder="Collez ici vos notes brutes, la transcription ou les points clés discutés…"
|
||||
oninput="buildPrompt()"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div>
|
||||
<div class="sec-label"><i class="ti ti-sparkles" aria-hidden="true"></i>Prompt généré — méthode RCTF</div>
|
||||
<div class="prompt-card">
|
||||
<div class="prompt-out" id="promptOut"></div>
|
||||
<div class="legend-row">
|
||||
<div class="leg">
|
||||
<div class="leg-dot" style="background:hsl(247,80%,50%)"></div>Rôle
|
||||
</div>
|
||||
<div class="leg">
|
||||
<div class="leg-dot" style="background:hsl(162,75%,28%)"></div>Contexte
|
||||
</div>
|
||||
<div class="leg">
|
||||
<div class="leg-dot" style="background:hsl(36,90%,35%)"></div>Tâche
|
||||
</div>
|
||||
<div class="leg">
|
||||
<div class="leg-dot" style="background:hsl(0,75%,38%)"></div>Format
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions-row">
|
||||
<button class="btn-primary" onclick="sendToChat()"><i class="ti ti-send" aria-hidden="true"></i>Générer le CR
|
||||
maintenant ↗</button>
|
||||
<div class="toast" id="toast"><i class="ti ti-check" aria-hidden="true"></i>Copié !</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="notice-box amber">
|
||||
<i class="ti ti-bulb" aria-hidden="true"></i>
|
||||
<p><strong>Astuce :</strong> Si vous n'avez pas encore de notes, cliquez directement sur "Générer le CR maintenant"
|
||||
— Claude créera un exemple fictif pour que vous voyiez le rendu avant de l'utiliser en production.</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const templates = {
|
||||
standard: { projet: 'Refonte site e-commerce', typeReunion: 'réunion de suivi de projet', participants: 'Chef de projet, développeur front, développeur back, designer', notes: '', sections: ["résumé exécutif (3 phrases max)", "participants et rôles", "décisions prises", "plan d'action avec responsable et délai pour chaque tâche", "risques et points de blocage identifiés"], tonalite: 'professionnelle et concise', format: 'Markdown avec titres et listes à puces', longueur: 'moyen (200 à 400 mots)' },
|
||||
risque: { projet: 'Migration infrastructure cloud', typeReunion: 'comité de pilotage', participants: 'Directeur technique, chef de projet, équipe ops, sponsor', notes: '', sections: ["résumé exécutif (3 phrases max)", "décisions prises", "risques et points de blocage identifiés", "plan d'action avec responsable et délai pour chaque tâche", "budget et ressources (si abordé)"], tonalite: 'formelle (pour un client ou un COPIL)', format: 'Markdown avec titres et listes à puces', longueur: 'détaillé (plus de 400 mots)' },
|
||||
client: { projet: 'Application mobile v2', typeReunion: 'réunion client', participants: 'Chef de projet, client (décideur), responsable commercial', notes: '', sections: ["résumé exécutif (3 phrases max)", "décisions prises", "plan d'action avec responsable et délai pour chaque tâche", "date et ordre du jour de la prochaine réunion"], tonalite: 'formelle (pour un client ou un COPIL)', format: 'Email prêt à envoyer', longueur: 'court (moins de 200 mots)' },
|
||||
sprint: { projet: 'Produit SaaS', typeReunion: 'réunion de sprint planning', participants: 'Product Owner, Scrum Master, équipe dev (5 personnes)', notes: '', sections: ["décisions prises", "plan d'action avec responsable et délai pour chaque tâche", "risques et points de blocage identifiés", "indicateurs clés de progression (si mentionnés)"], tonalite: 'décontractée et directe (équipe interne)', format: 'Markdown avec titres et listes à puces', longueur: 'court (moins de 200 mots)' },
|
||||
vide: { projet: '', typeReunion: 'réunion de suivi de projet', participants: '', notes: '', sections: [], tonalite: 'professionnelle et concise', format: 'Markdown avec titres et listes à puces', longueur: 'moyen (200 à 400 mots)' }
|
||||
};
|
||||
|
||||
function applyTemplate(key, btn) {
|
||||
document.querySelectorAll('.t-btn').forEach(b => b.classList.remove('active'));
|
||||
btn.classList.add('active');
|
||||
const t = templates[key];
|
||||
document.getElementById('projet').value = t.projet;
|
||||
document.getElementById('typeReunion').value = t.typeReunion;
|
||||
document.getElementById('participants').value = t.participants;
|
||||
document.getElementById('notes').value = t.notes || '';
|
||||
document.getElementById('tonalite').value = t.tonalite;
|
||||
document.getElementById('format').value = t.format;
|
||||
document.getElementById('longueur').value = t.longueur;
|
||||
document.querySelectorAll('#sections .sec-pill').forEach(p => {
|
||||
p.classList.toggle('on', t.sections.includes(p.dataset.val));
|
||||
});
|
||||
buildPrompt();
|
||||
}
|
||||
|
||||
function togglePill(el) { el.classList.toggle('on'); buildPrompt() }
|
||||
|
||||
function getSections() {
|
||||
return Array.from(document.querySelectorAll('#sections .sec-pill.on')).map(p => p.dataset.val);
|
||||
}
|
||||
|
||||
function buildPrompt() {
|
||||
const projet = document.getElementById('projet').value.trim() || '[Nom du projet]';
|
||||
const type = document.getElementById('typeReunion').value;
|
||||
const participants = document.getElementById('participants').value.trim() || '[Participants]';
|
||||
const tonalite = document.getElementById('tonalite').value;
|
||||
const format = document.getElementById('format').value;
|
||||
const longueur = document.getElementById('longueur').value;
|
||||
const langue = document.getElementById('langue').value;
|
||||
const notes = document.getElementById('notes').value.trim();
|
||||
const sections = getSections();
|
||||
|
||||
const role = `Tu es un assistant spécialisé en gestion de projet, expert en rédaction de comptes-rendus clairs et actionnables.`;
|
||||
const ctx = `Contexte : il s'agit d'une ${type} pour le projet "${projet}". Participants : ${participants}.`;
|
||||
const task = `Ta mission : rédiger un compte-rendu complet et structuré à partir des notes brutes ci-dessous.\n${sections.length > 0 ? 'Le CR doit impérativement contenir les sections suivantes :\n' + sections.map((s, i) => `${i + 1}. ${s}`).join('\n') : 'Inclure les sections pertinentes selon le contenu des notes.'}`;
|
||||
const fmt = `Format de sortie : ${format}. Tonalité : ${tonalite}. Longueur : ${longueur}. Langue : ${langue}.`;
|
||||
const notesBlock = notes ? `\n\n--- NOTES BRUTES ---\n${notes}\n--- FIN DES NOTES ---` : `\n\n--- NOTES BRUTES ---\n[Collez vos notes ici avant d'envoyer]\n--- FIN DES NOTES ---`;
|
||||
|
||||
window._rawPrompt = `${role}\n\n${ctx}\n\n${task}\n\n${fmt}${notesBlock}`;
|
||||
|
||||
const out = document.getElementById('promptOut');
|
||||
out.innerHTML =
|
||||
'<span class="span-role">' + h(role) + '</span>\n\n' +
|
||||
'<span class="span-ctx">' + h(ctx) + '</span>\n\n' +
|
||||
'<span class="span-task">' + h(task) + '</span>\n\n' +
|
||||
'<span class="span-fmt">' + h(fmt) + '</span>' +
|
||||
h(notesBlock);
|
||||
}
|
||||
|
||||
function h(s) { return s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>') }
|
||||
|
||||
function copyPrompt() {
|
||||
if (navigator.clipboard && window._rawPrompt) {
|
||||
navigator.clipboard.writeText(window._rawPrompt).then(() => {
|
||||
const t = document.getElementById('toast');
|
||||
t.classList.add('show');
|
||||
setTimeout(() => t.classList.remove('show'), 2000);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function downloadTxtFile(text, filename) {
|
||||
const blob = new Blob([text], { type: 'text/plain;charset=utf-8' });
|
||||
const url = URL.createObjectURL(blob);
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.download = filename;
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
URL.revokeObjectURL(url);
|
||||
}
|
||||
|
||||
function sendToChat() {
|
||||
const notes = document.getElementById('notes').value.trim();
|
||||
let promptText = window._rawPrompt;
|
||||
if (!notes) {
|
||||
promptText = promptText.replace("[Collez vos notes ici avant d'envoyer]", "Pas de notes pour l'instant — génère un exemple de compte-rendu fictif pour un projet web avec 3 risques détectés et 4 actions à suivre.");
|
||||
}
|
||||
|
||||
downloadTxtFile(promptText, "prompt-compte-rendu.txt");
|
||||
|
||||
if (typeof sendPrompt === 'function') {
|
||||
sendPrompt(promptText);
|
||||
}
|
||||
}
|
||||
|
||||
buildPrompt();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue
Block a user