Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

ui: Add two spaces before/after emojis to enhance readibility

Clémence Lesné6dbd0a5a54a9
diff --git a/public_website/list.html.jinja b/public_website/list.html.jinja
index 4b980d6..835928d 100644
--- a/public_website/list.html.jinja
+++ b/public_website/list.html.jinja
@@ -7,6 +7,7 @@ History for {{ phone_number or 'all numbers' }}
{% block content %}
<!-- Call me button -->
{% include "templates/call_me.html.jinja" %}
+
<!-- Search bar for phone number -->
<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">
@@ -19,12 +20,13 @@ History for {{ phone_number or 'all numbers' }}
</form>
</div>
</div>
+
<!-- History of calls -->
<div class="col-span-full rounded-md overflow-hidden lg:ring-1 ring-neutral-200/60 dark:ring-neutral-700/60">
<div class="grid grid-cols-4 border-b border-neutral-200/60 dark:border-neutral-700/60 text-neutral-600 dark:text-neutral-400">
- <div class="p-4 truncate">📞 Phone used</div>
- <div class="p-4 truncate">📅 Local date</div>
- <div class="p-4 truncate col-span-2">📝 Short summary</div>
+ <div class="p-4 truncate">📞&nbsp;&nbsp;Phone used</div>
+ <div class="p-4 truncate">📅&nbsp;&nbsp;Local date</div>
+ <div class="p-4 truncate col-span-2">📝&nbsp;&nbsp;Short summary</div>
</div>
{% for call in calls %}
<a href="/report/{{ call.call_id }}" title="Call from {{ call.initiate.phone_number }} the {{ call.created_at.astimezone(call.tz()).strftime('%d %b %Y, %H:%M (%Z)') }}" class="grid grid-cols-4 hover:bg-neutral-100/60 dark:hover:bg-neutral-800/60 {% if not loop.last %}border-b border-neutral-200/60 dark:border-neutral-700/60{% endif %}">
@@ -34,6 +36,8 @@ History for {{ phone_number or 'all numbers' }}
</a>
{% endfor %}
</div>
+
+<!-- Pagination -->
<div class="col-span-full px-4 text-neutral-600 dark:text-neutral-400">
{% if total < count %}
All {{ total }} results are displayed.
diff --git a/public_website/single.html.jinja b/public_website/single.html.jinja
index 6fb68f9..51bcaf7 100644
--- a/public_website/single.html.jinja
+++ b/public_website/single.html.jinja
@@ -7,15 +7,16 @@ Claim ({{ call.initiate.phone_number }})
{% block content %}
<!-- Call me button -->
{% include "templates/call_me.html.jinja" %}
+
<!-- Top introduction -->
<header class="col-span-full mx-4 mb-4">
<div class="my-4 text-neutral-600 dark:text-neutral-400">
<a class="hover:underline" href="/report?phone_number={{ call.initiate.phone_number | quote_plus }}">
- ⬅ Go back to your call history
+ ⬅&nbsp;&nbsp;Go back to your call history
</a>
</div>
- <h1>Hello {{ (call.claim.policyholder_name | title) if call.claim.policyholder_name else '' }} 👋🏻</h1>
+ <h1>Hello {{ (call.claim.policyholder_name | title) if call.claim.policyholder_name else '' }}&nbsp;&nbsp;👋🏻</h1>
<p class="text-2xl">Your claim {{ ('about ' ~ call.synthesis.short | lower) if call.synthesis.short }} is being processed.</p>
</header>
@@ -36,7 +37,7 @@ Claim ({{ call.initiate.phone_number }})
<!-- Conversation -->
<div class="col-start-1 col-end-5 order-last lg:order-none">
<div class="p-4 space-y-4 rounded-md lg:ring-1 ring-neutral-200/60 dark:ring-neutral-700/60">
- <h2 class="text-lg">💬 Conversation</h2>
+ <h2 class="text-lg">💬&nbsp;&nbsp;Conversation</h2>
<!-- Agent and customer -->
<div class="overflow-hidden space-y-6">
@@ -98,7 +99,7 @@ Claim ({{ call.initiate.phone_number }})
<div class="col-start-5 col-end-7 space-y-4">
<!-- Reminders -->
<div class="rounded-md lg:ring-1 ring-neutral-200/60 dark:ring-neutral-700/60 p-4 space-y-4">
- <h2 class="text-lg">⏰ Reminders</h2>
+ <h2 class="text-lg">⏰&nbsp;&nbsp;Reminders</h2>
{% if not call.reminders %}
<p class="text-neutral-600 dark:text-neutral-400">No reminder yet.</p>
@@ -118,7 +119,7 @@ Claim ({{ call.initiate.phone_number }})
<!-- Next actions -->
<div class="rounded-md lg:ring-1 ring-neutral-200/60 dark:ring-neutral-700/60 p-4 space-y-4">
- <h2 class="text-lg">📥 Next action</h2>
+ <h2 class="text-lg">📥&nbsp;&nbsp;Next action</h2>
{% if not call.next %}
<p class="text-neutral-600 dark:text-neutral-400">No further action for the moment.</p>
@@ -144,7 +145,7 @@ Claim ({{ call.initiate.phone_number }})
<!-- Details -->
<div class="rounded-md lg:ring-1 ring-neutral-200/60 dark:ring-neutral-700/60">
- <h2 class="text-lg px-4 pt-4">📁 Details</h2>
+ <h2 class="text-lg px-4 pt-4">📁&nbsp;&nbsp;Details</h2>
<table class="table-auto w-full">
<tbody>
{%
@@ -184,7 +185,7 @@ Claim ({{ call.initiate.phone_number }})
<!-- Task -->
<div class="rounded-md lg:ring-1 ring-neutral-200/60 dark:ring-neutral-700/60 p-4 space-y-4">
- <h2 class="text-lg">🫡 Task</h2>
+ <h2 class="text-lg">🫡&nbsp;&nbsp;Task</h2>
<p class="text-neutral-600 dark:text-neutral-400">
{{ call.initiate.task }}
</p>