{% from "icons.html" import icon %}
{# Shown while a brief is being written: by the schedule (from the server), or after a click (htmx adds .htmx-request to it until Claude has answered). #}
WRITINGmyOrb is writing a new brief… This usually takes 20–40 seconds.
{% if error %} {% endif %}
Day at a glance ● Now {{ now.strftime("%H:%M") }} · {{ glance.count }} {{ "event" if glance.count == 1 else "events" }} · {{ duration(glance.free_minutes) }} free until 18:00
{% if not configured %}

myOrb can write you a short brief every morning from your calendar, email and tasks. It uses Claude, Anthropic's AI, with your own API key.{% if brief %} Below is the last brief it wrote.{% endif %}

Connect Claude
{% endif %} {% if configured and not brief %}

No brief yet. myOrb writes one every morning; you can also ask for one now.

{% elif brief %}
SummaryAI · {{ brief.sources | join(" · ") }}
{% for paragraph in brief.content.summary %}

{{ paragraph }}

{% endfor %}
Needs you{{ brief.content.priorities | length }} {{ "item" if brief.content.priorities | length == 1 else "items" }}
{% for item in brief.content.priorities %}
{{ item.tag }} {{ item.title }}{% if item.detail %}{{ item.detail }}{% endif %}
{% else %}

Nothing needs you right now.

{% endfor %}
{% endif %} {% if sources %}
SourcesChange since yesterday · click for details
{% for source in sources %} {% set data = source.data %} {% endfor %}
{% endif %}