{# The index: every operation, grouped by tag, plus the schemas underneath. A partial of its own because the filter box swaps it. Everything it reads is in the context the router built. `groups` arrives already filtered, filtered there rather than here so that no template can render the unfiltered `docs.groups` and produce a list ignoring what was typed. It renders standalone: the page embeds it and `GET …/nav?q=` returns it. #} {% from "apidocs/macros.html" import model_link, op_link %} {% from "ui/sidebar.html" import sidebar_group %} {# `hx-swap-oob` when a panel swap brought this along. Clicking an operation replaces only the detail panel, so without this the sidebar keeps pointing at whatever was open three clicks ago: the highlight is correct on a cold load and stale for the rest of the session, and the page reads as confused about where you are. The operation route renders this alongside the panel, and htmx puts it back in the sidebar by id. #}