botserver/ui/suite/partials/suggestions.html
Rodrigo Rodriguez (Pragmatismo) e68a12176d Add Suite app documentation, templates, and Askama config
- Add askama.toml for template configuration (ui/ directory)
- Add Suite app documentation with flow diagrams (SVG)
  - App launcher, chat flow, drive flow, tasks flow
  - Individual app docs: chat, drive, tasks, mail, etc.
- Add HTML templates for Suite apps
  - Base template with header and app launcher
  - Auth login page
  - Chat, Drive, Mail, Meet, Tasks templates
  - Partial templates for messages, sessions, notifications
- Add Extensions type to AppState for type-erased storage
- Add mTLS module for service-to-service authentication
- Update web handlers to use new template paths (suite/)
- Fix auth module to avoid axum-extra TypedHeader dependency
2025-11-30 21:00:48 -03:00

17 lines
613 B
HTML

<div class="suggestions-list">
{% for suggestion in suggestions %}
<button class="suggestion-chip"
hx-post="/api/chat/message"
hx-vals='{"content": "{{ suggestion }}"}'
hx-target="#messages"
hx-swap="beforeend"
hx-on::after-request="document.getElementById('messages').scrollTop = document.getElementById('messages').scrollHeight">
{{ suggestion }}
</button>
{% endfor %}
</div>
{% if suggestions.is_empty() %}
<div class="suggestions-empty">
<span class="suggestion-chip disabled">No suggestions available</span>
</div>
{% endif %}