feat(provider): Akahu integration (#1921)

* First pass of Akahu

* fix up sync all

* conflicts

* fix db migration issue? - fix auto selection of akahu account type

* Address Akahu PR feedback

* Complete provider metadata

* Fix PR 1921 CI tests

* PR feedback

* PR feedback

* post merge

---------

Co-authored-by: failing <failing@users.noreply.github.com>
Co-authored-by: Juan José Mata <jjmata@jjmata.com>
Co-authored-by: sure-admin <sure-admin@splashblot.com>
This commit is contained in:
Brad
2026-06-03 07:44:57 +12:00
committed by GitHub
parent 53e831039d
commit 1b8b21760b
55 changed files with 3752 additions and 52 deletions

View File

@@ -22,10 +22,10 @@ export default class extends Controller {
this.cardTargets.forEach((card) => {
const name = card.dataset.providerName ?? "";
const region = card.dataset.providerRegion ?? "";
const kind = card.dataset.providerKind ?? "";
const haystack = `${name} ${region} ${kind}`;
const kindTokens = (card.dataset.providerKind ?? "").split(/\s+/);
const haystack = `${name} ${region} ${kindTokens.join(" ")}`;
const matchesQuery = !query || haystack.includes(query);
const matchesKind = activeKind === "all" || kind === activeKind;
const matchesKind = activeKind === "all" || kindTokens.includes(activeKind);
const visible = matchesQuery && matchesKind;
card.classList.toggle("hidden", !visible);
if (visible) visibleCount++;