feat: the plugin listing, built from registry data
One YAML file per plugin. There is deliberately no version and no runtimes field in an entry: both are read from npm and JSR when the page is built, so a card cannot go stale or claim support a package never declared. The strictness lives in one flag. Under CI a registry that does not answer fails the build, because a listing that silently drops a plugin is worse than no deploy. Locally an unpublished package falls back to scripts/preview.mjs and says so — a site nobody can look at until its packages ship is a site nobody can design. The three seed plugins are unpublished today, so that fallback is what renders them; it goes away with them. Every card shows all four runtimes, never only the supported ones. Colour means the package declares it runs there, dim grey means it does not — and the tooltip is what separates "declared unsupported" from "nobody said", which look identical but are not the same fact. The brand marks carry no <title>: an SVG's own title wins over its parent's, which is why the first attempt showed a help cursor and no tooltip. They are aria-hidden and pointer-events: none, so the label and the hover both belong to the list item, and the tooltip works from the keyboard too. Type and palette are self-hosted from green-tea-site, so the sites read as one project rather than three that share a colour. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
24 files changed
+5203
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// What the seed plugins declare, copied from their `package.json` in Green-Tea/plugins.
|
||||
//
|
||||
// This exists so the site can be designed and reviewed before the packages ship. It is used ONLY
|
||||
// when a registry has no answer and `CI` is unset — in GitHub Actions a missing package fails the
|
||||
// build instead, which is where the real check lives.
|
||||
//
|
||||
// **Delete this file, and its import in `src/pages/index.astro`, once the three are published.**
|
||||
// Every entry here is a claim nobody verified; the registry is the source of truth and this is a
|
||||
// stand-in for a registry that does not have the package yet.
|
||||
export const PREVIEW = {
|
||||
'@green-tea/jwt': { version: '26.9.0-beta.0', engines: { node: '>=22', deno: '>=2', bun: '>=1.3' } },
|
||||
'@green-tea/metrics': { version: '26.9.0-beta.0', engines: { node: '>=22', deno: '>=2', bun: '>=1.3' } },
|
||||
'@green-tea/rate-limit': { version: '26.9.0-beta.0', engines: { node: '>=22', deno: '>=2', bun: '>=1.3' } },
|
||||
};
|
||||
Reference in new issue
Block a user