This commit is contained in:
2026-08-22 19:23:15 +02:00
parent 0c154254c3
commit bd762d1ccf
21 changed files with 1047 additions and 111 deletions
@@ -8,6 +8,8 @@
} from "$lib/billing-display";
import { i18n } from "$lib/i18n";
import { FolderTree, ListTree, Package, Rss, Sparkles } from "@lucide/svelte";
import { planCapabilities } from "$lib/plan-capabilities.svelte";
import { featureKeyForHref } from "$lib/plan-capabilities";
let {
stats,
@@ -89,7 +91,12 @@
icon: Rss,
tour: "stats-feeds"
}
]);
// Every tile is a link, so hide the ones this member cannot open — a plan gate
// or the owner's per-member overlay (settings > team) can deny any of them.
].filter((card) => {
const key = featureKeyForHref(card.href);
return !key || planCapabilities.can(key);
}));
</script>
<div