Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
ux: The search bar is now fixed during scrolling
Clémence Lesné614792ff5513
diff --git a/public_website/list.html.jinja b/public_website/list.html.jinjaindex 117d66a..dc39f83 100644--- a/public_website/list.html.jinja+++ b/public_website/list.html.jinja@@ -6,11 +6,14 @@ Historique pour {{ phone_number or 'tous les numéros' }}{% block content %}<!-- Search bar for phone number -->-<div class="p-4 col-span-full lg:grid lg:grid-cols-6">+<div class="p-4 -mb-4 col-span-full sticky top-0 lg:px-0 lg:grid lg:grid-cols-6"><div class="lg:col-start-2 lg:col-end-6"><form action="/report" method="GET" class="flex space-x-4">- <input type="tel" name="phone_number" placeholder="Restrict search to a phone number (E164, e.g. +33612345678)" value="{{ phone_number or '' }}" class="p-4 grow rounded-full bg-neutral-200/60 dark:bg-neutral-700/60">- <button type="submit" class="p-4 rounded-full bg-gradient-to-r from-pink-300/30 dark:from-pink-700/30 to-violet-300/30 dark:to-violet-700/30">Search</button>+ <div class="grow flex space-x-4 rounded-full backdrop-blur shadow-md bg-neutral-200/60 hover:bg-neutral-300/60 dark:bg-neutral-700/60 dark:hover:bg-neutral-600/60">+ <span class="pl-6 py-4 select-none cursor-default">🔎</span>+ <input type="tel" name="phone_number" placeholder="Limiter la recherche à un numéro (E164, ex. +33612345678)" value="{{ phone_number or '' }}" class="py-4 grow bg-transparent outline-none">+ </div>+ <button type="submit" class="px-6 py-4 rounded-full backdrop-blur shadow-md font-semibold bg-gradient-to-r from-pink-300/30 hover:from-pink-400/30 dark:from-pink-700/30 dark:hover:from-pink-600/30 to-violet-300/30 hover:to-violet-400/30 dark:to-violet-700/30 dark:hover:to-violet-600/30">Rechercher</button></form></div></div>diff --git a/public_website/single.html.jinja b/public_website/single.html.jinjaindex c194de8..a073bf2 100644--- a/public_website/single.html.jinja+++ b/public_website/single.html.jinja@@ -7,7 +7,7 @@ Sinistre {{ call.claim.claim_id }} ({{ call.phone_number }}){% block content %}<!-- Top introduction --><header class="col-span-full mx-4 mb-4">- <div class="mb-4 text-neutral-600 dark:text-neutral-400">+ <div class="my-4 text-neutral-600 dark:text-neutral-400"><a class="hover:underline" href="/report?phone_number={{ call.phone_number | quote_plus }}">⬅ Go back to your call history</a>diff --git a/public_website/templates/base.html.jinja b/public_website/templates/base.html.jinjaindex dbb38bd..bb8f483 100644--- a/public_website/templates/base.html.jinja+++ b/public_website/templates/base.html.jinja@@ -8,7 +8,7 @@<title>{% block title %}{% endblock %}</title>{% endblock %}</head>- <body class="lg:container overflow-x-hidden mx-auto py-4 lg:px-4 text-black dark:text-white bg-white dark:bg-neutral-900 text-sm">+ <body class="lg:container overflow-x-hidden mx-auto lg:px-4 text-black dark:text-white bg-white dark:bg-neutral-900 text-sm"><!-- Main content --><div class="flex flex-col lg:grid lg:grid-cols-6 gap-4">