{% extends "base.html" %} {% block title %}{{ pkg.name }} — Data Packages — {{ config.INSTANCE_NAME or 'AI Data Analyst' }}{% endblock %} {% block head_extra %} {% endblock %} {% block content %} ← All data packages {# Initials fallback when no icon set, mirrors the card macro. #} {% set _name_parts = (pkg.name or '?').split() %} {% if _name_parts|length >= 2 %} {% set _initials = (_name_parts[0][0] ~ _name_parts[1][0])|upper %} {% else %} {% set _initials = (pkg.name or '?')[:2]|upper %} {% endif %}
{% if pkg.icon %}{{ pkg.icon }}{% else %}{{ _initials }}{% endif %}

{{ pkg.name }}

{% for b in badges %} {{ b|capitalize }} {% endfor %}
{% if pkg.owner_name %}
Owned by {{ pkg.owner_name }}{% if pkg.owner_team %} · {{ pkg.owner_team }}{% endif %}
{% endif %} {% if pkg.description %}

{{ pkg.description }}

{% endif %}
{{ tables|length }} table{{ 's' if tables|length != 1 else '' }} {% if total_size_bytes %} · {{ total_size_display }}{% endif %}
{% if pkg.tags %}
{% for t in pkg.tags %}{{ t }}{% endfor %}
{% endif %}
{% if effective_requirement == 'required' %} {% elif in_stack %} {% else %} {% endif %} {% if user.is_admin %} Edit {% endif %}
{# ── What it is ──────────────────────────────────────────── #} {% if pkg.long_description %}

What it is

{{ pkg.long_description }}
{% endif %} {# ── Use it when / Skip it when ──────────────────────────── #} {% if pkg.when_to_use or pkg.when_not_to_use %}
{% if pkg.when_to_use %}

Use it when

    {% for b in pkg.when_to_use %}
  • {{ b }}
  • {% endfor %}
{% endif %} {% if pkg.when_not_to_use %}

Skip it when

    {% for b in pkg.when_not_to_use %}
  • {{ b }}
  • {% endfor %}
{% endif %}
{% endif %} {# ── Tables in this package ─────────────────────────────── #}

Tables in this package

{% if tables %} {% for t in tables %}
{{ t.name }} {{ t.query_mode or 'local' }} {% if t.description %} {{ t.description }} {% endif %} {{ t.last_sync_display or '—' }}{% if t.size_display %} · {{ t.size_display }}{% endif %}
{% if t.grain %}
Grain
{{ t.grain }}
{% endif %} {% if t.platforms %}
Platforms
{{ t.platforms|join(' · ') }}
{% endif %} {% if t.partition_col %}
Partition
{{ t.partition_col }}
{% endif %} {% if t.history %}
History
{{ t.history }}
{% endif %}
{% if t.gotchas %}
{% for g in t.gotchas %}
{% if g.key %}Key gotcha{% endif %}{{ g.body }}
{% endfor %}
{% endif %} {% if t.sample_questions %}
Try one of these:
    {% for q in t.sample_questions %}
  • {{ q }}
  • {% endfor %}
{% endif %} {% if not (t.grain or t.platforms or t.partition_col or t.history or t.gotchas or t.sample_questions) %}
No extended documentation yet for this table.
{% endif %}
{% endfor %} {% else %}
No tables in this package yet.
{% endif %}
{# ── Example questions you can ask Claude ────────────────── #} {% if pkg.example_questions %}

Example questions you can ask Claude

    {% for q in pkg.example_questions %}
  1. {{ q }}
  2. {% endfor %}
{% endif %} {% endblock %}