fix: Hyperscript chip submit + comprehensive mascot documentation
Chips: - Replace broken onclick with Hyperscript: `on click set #chat-input.value to '...' then trigger submit on #chat-form` — Hyperscript dispatches a native DOM submit event that HTMX intercepts correctly Documentation (doc/28-AI-CHAT-AGENT.md — complete rewrite, ~544 lines): - 18 sections covering full mascot feature reference - Architecture diagram with end-to-end flow (11 steps) - All 4 component files documented with code patterns - query_cv tool: 11 section types in tables with examples - Cross-section search mechanics explained - Agent intelligence: 8 question-type strategies - Suggested questions: chip-to-question mapping for both languages - Design system: CV color tokens, typography, dark theme comparison - Session management: OOB swap lifecycle - Security: input/output sanitization, privacy rules - Testing: 46 Playwright assertions across 25 test groups - Configuration, dependencies, ADK Go concepts table
This commit is contained in:
@@ -47,26 +47,26 @@
|
||||
<div class="chat-suggestions">
|
||||
{{if eq .Lang "es"}}
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='¿Qué proyectos en Go ha hecho?'; htmx.trigger('#chat-form', 'submit');">¿Proyectos en Go?</button>
|
||||
_="on click set #chat-input.value to '¿Qué proyectos en Go ha hecho?' then trigger submit on #chat-form">¿Proyectos en Go?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='¿Cuántos años de experiencia tiene?'; htmx.trigger('#chat-form', 'submit');">¿Años de experiencia?</button>
|
||||
_="on click set #chat-input.value to '¿Cuántos años de experiencia tiene?' then trigger submit on #chat-form">¿Años de experiencia?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='¿En qué empresas ha trabajado?'; htmx.trigger('#chat-form', 'submit');">¿Empresas?</button>
|
||||
_="on click set #chat-input.value to '¿En qué empresas ha trabajado?' then trigger submit on #chat-form">¿Empresas?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='¿Conoce React?'; htmx.trigger('#chat-form', 'submit');">¿Conoce React?</button>
|
||||
_="on click set #chat-input.value to '¿Conoce React?' then trigger submit on #chat-form">¿Conoce React?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='¿Qué certificaciones tiene?'; htmx.trigger('#chat-form', 'submit');">¿Certificaciones?</button>
|
||||
_="on click set #chat-input.value to '¿Qué certificaciones tiene?' then trigger submit on #chat-form">¿Certificaciones?</button>
|
||||
{{else}}
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='What Go projects has he built?'; htmx.trigger('#chat-form', 'submit');">Go projects?</button>
|
||||
_="on click set #chat-input.value to 'What Go projects has he built?' then trigger submit on #chat-form">Go projects?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='How many years of experience?'; htmx.trigger('#chat-form', 'submit');">Years of experience?</button>
|
||||
_="on click set #chat-input.value to 'How many years of experience?' then trigger submit on #chat-form">Years of experience?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='What companies has he worked at?'; htmx.trigger('#chat-form', 'submit');">Companies?</button>
|
||||
_="on click set #chat-input.value to 'What companies has he worked at?' then trigger submit on #chat-form">Companies?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='Does he know React?'; htmx.trigger('#chat-form', 'submit');">Knows React?</button>
|
||||
_="on click set #chat-input.value to 'Does he know React?' then trigger submit on #chat-form">Knows React?</button>
|
||||
<button type="button" class="chat-chip"
|
||||
onclick="document.getElementById('chat-input').value='What certifications?'; htmx.trigger('#chat-form', 'submit');">Certifications?</button>
|
||||
_="on click set #chat-input.value to 'What certifications?' then trigger submit on #chat-form">Certifications?</button>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user