From caac392c31c0669aef0e1a58c0d51d1e5e1f4e3c Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Mon, 26 Oct 2026 10:34:37 +0100 Subject: [PATCH] Open a package request from the "Add to channel" button The button linked to an anchor on the Contributing page that no longer exists. It now opens the Package request form on RoboStack/robostack, prefilled with the package and the distro page it came from, so robostack-bot opens the pull request. Deprecated and end-of-life distros don't get the button anymore, because nothing builds them. The label now hides once the table is narrower than its full width, instead of at a fixed 1400px viewport. --- .../package-table/PackageTable.astro | 12 +++-- .../package-table/PackageTable.svelte | 54 +++++++++++++++---- 2 files changed, 50 insertions(+), 16 deletions(-) diff --git a/src/components/package-table/PackageTable.astro b/src/components/package-table/PackageTable.astro index e7ccd47b..dc706d2b 100644 --- a/src/components/package-table/PackageTable.astro +++ b/src/components/package-table/PackageTable.astro @@ -1,6 +1,6 @@ --- import type { Distro } from "../../data/distros"; -import { browseUrl } from "../../data/distros"; +import { browseUrl, isDeprecated } from "../../data/distros"; import PackageTable from "./PackageTable.svelte"; interface Props { @@ -9,12 +9,14 @@ interface Props { const { distro } = Astro.props; const browse = browseUrl(distro); +const requestable = !isDeprecated(distro) && distro.status !== "eol"; --- {/* - The `eol` prop suppresses the per-row "Add to channel" button. Inviting - contributions to a distro upstream has stopped supporting would waste - someone's afternoon. + The `requestable` prop shows the per-row "Add to channel" button, which opens + a package request in the RoboStack/robostack monorepo. Only the distros the + monorepo builds get it: inviting contributions to a distro nobody rebuilds, + or one upstream has stopped supporting, would waste someone's afternoon. The island renders and updates everything itself; this wrapper only feeds it the distro facts that are known at build time. @@ -22,7 +24,7 @@ const browse = browseUrl(distro);