@grove-dev/cli 0.5.4 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,13 +15,13 @@ pnpm dlx @grove-dev/cli init my-directory
15
15
  - `grove cleanup [--strict]` writes the human-review report.
16
16
  - `grove collection promote --from PATH --slug SLUG [--title T] [--description D]` writes a curated collection YAML from a filter URL.
17
17
  - `grove readme generate [--stdout] [--path PATH] [--check]` renders the awesome-list README block.
18
- - `grove audit` runs Lighthouse 100×4 across every page declared in `grove.config.ts` `audit.pages[]`.
18
+ - `grove audit` runs Lighthouse against every page declared in `grove.config.ts` `audit.pages[]` and enforces the default quality budget.
19
19
 
20
20
  There are no framework, blueprint, template, deployment, build, or dev commands. Use Astro's normal `pnpm dev` and `pnpm build`; the integration prepares data automatically. The CLI bundles a release snapshot of the repository's real `apps/example/`, so the demo and generated project cannot drift into separate implementations.
21
21
 
22
22
  ## Audit
23
23
 
24
- `grove audit` runs Lighthouse against every page declared in `grove.config.ts` `audit.pages[]` and enforces the standard 100×4 budget (Lighthouse cannot meaningfully score 404 responses, so `type: "404"` pages are audited for completeness but are exempt from the budget).
24
+ `grove audit` runs Lighthouse against every page declared in `grove.config.ts` `audit.pages[]` and enforces the default quality budget (Lighthouse cannot meaningfully score 404 responses, so `type: "404"` pages are audited for completeness but are exempt from the budget).
25
25
 
26
26
  ### Options
27
27
 
@@ -30,18 +30,19 @@ There are no framework, blueprint, template, deployment, build, or dev commands.
30
30
  | `--base-url <url>` | Override the `baseUrl` declared in `grove.config.ts` (default: `http://127.0.0.1:4321`). |
31
31
  | `--mobile` | Audit only the mobile profile. |
32
32
  | `--desktop` | Audit only the desktop profile. |
33
- | `--runs <n>` | Number of runs per page/profile (clamped to 1–5, default `4`). |
33
+ | `--runs <n>` | Number of runs per page/profile (clamped to 1–5, default `3`). |
34
34
  | `--page <path>` | Restrict the audit to specific page paths (repeatable). |
35
35
  | `--json <file>` | Write a machine-readable JSON report to `<file>`. |
36
36
  | `--junit <file>` | Write a JUnit XML report to `<file>`. |
37
37
 
38
38
  ### Default budget
39
39
 
40
- The shipped budget requires a perfect score in every Lighthouse category and the following metric ceilings:
40
+ The shipped budget targets Lighthouse "good" thresholds on every score category and metric:
41
41
 
42
- - **LCP** ≤ 1800 ms
43
- - **CLS** ≤ 0.05
44
- - **TBT** ≤ 100 ms
42
+ - **Score categories** (`performance`, `accessibility`, `best-practices`, `seo`) ≥ 0.9
43
+ - **LCP** ≤ 2500 ms
44
+ - **CLS** ≤ 0.25
45
+ - **TBT** ≤ 200 ms
45
46
 
46
47
  The budget is skipped for `type: "404"` pages — Lighthouse returns `0`/`Infinity` for missing pages by design.
47
48
 
@@ -51,6 +52,6 @@ The budget is skipped for `type: "404"` pages — Lighthouse returns `0`/`Infini
51
52
  - stderr: a list of every budget violation, when any occur.
52
53
  - optional `--json` and `--junit` reports capture the full result set for CI.
53
54
 
54
- `grove audit` exits with code `0` when every page passes the 100×4 budget and `1` if any violation is detected, so it drops cleanly into CI pipelines.
55
+ `grove audit` exits with code `0` when every page passes the budget and `1` if any violation is detected, so it drops cleanly into CI pipelines.
55
56
 
56
57
  MIT
package/dist/audit-cli.js CHANGED
@@ -2,7 +2,7 @@ import { Command } from "commander";
2
2
  import { runAudit } from "./audit.js";
3
3
  export function buildAuditCommand() {
4
4
  return new Command("audit")
5
- .description("Run Lighthouse 100×4 against every page in grove.config.ts audit.pages[].")
5
+ .description("Run Lighthouse against every page in grove.config.ts audit.pages[] and enforce the default quality budget.")
6
6
  .option("--base-url <url>", "Override audit.baseUrl from grove.config.ts")
7
7
  .option("--mobile", "Mobile profile only")
8
8
  .option("--desktop", "Desktop profile only")
@@ -1 +1 @@
1
- {"version":3,"file":"audit-cli.js","sourceRoot":"","sources":["../src/audit-cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MA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ACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAsB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA6ErE;AAED,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAAC,CAqCxG;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,EAAE,CAAC,uBAAuB,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAalH;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,uBAAuB,GAAG,iBAAiB,CAUlF;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,GAAG,MAAM,CAKtD;AAuBD,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,gBAAgB,CAQ7D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,GAAG,iBAAiB,CAO/D;AAED,wBAAgB,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,GACrC,WAAW,CAwBb"}
package/dist/audit.js CHANGED
@@ -72,7 +72,14 @@ export async function runAudit(opts) {
72
72
  }
73
73
  return 1;
74
74
  }
75
- process.stdout.write(`\n✓ ${results.length} page/profile combinations passed 100×4\n`);
75
+ // The scorecard message used to claim "100×4" (perfect on every
76
+ // category). The default budget now targets Google's "good"
77
+ // thresholds (0.9 / lcp 2500 / cls 0.25 / tbt 200), so the literal
78
+ // claim no longer matches reality. Describe the actual budget in
79
+ // the message so consumers and the unit test regex don't drift from
80
+ // the code that enforces it.
81
+ process.stdout.write(`\n✓ ${results.length} page/profile combinations passed the budget ` +
82
+ `(scores ≥ 0.9, lcp ≤ 2500ms, cls ≤ 0.25, tbt ≤ 200ms)\n`);
76
83
  return 0;
77
84
  }
78
85
  export async function loadManifest(cwd) {
package/dist/audit.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"audit.js","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,iBAAiB,CAAC;AAClD,OAAO,UAAuC,MAAM,YAAY,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,cAAc,EACd,cAAc,GAQf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,aAAa,GAAG,IAAI,GAAG,CAAW,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAYlH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,IAAqB;IAClD,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,QAAQ,CAAC,OAAO,CAAC;IACjD,MAAM,QAAQ,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CA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jJ,CAAC,CAAC,EAAE,CAAC;QACP,OAAO,mBAAmB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,6BAA6B,OAAO,aAAa,CAAC;IAC5H,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,MAAM,GAAG,GAAG;uCACyB,OAAO,CAAC,MAAM,eAAe,UAAU,CAAC,MAAM;EACnF,KAAK;aACM,CAAC;IACZ,MAAM,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,GAAG,CAAC,CAAS;IACpB,OAAO,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC1H,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,IAAI,MAAM,CAWvC;AAOD,wBAAgB,cAAc,IAAI,MAAM,CAMvC;AAwBD,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAwCrD"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,IAAI,MAAM,CAWvC;AAOD,wBAAgB,cAAc,IAAI,MAAM,CAMvC;AAwBD,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAwCrD"}
package/dist/init.js CHANGED
@@ -9,6 +9,7 @@ const GENERATED_PUBLIC_NAMES = new Set([
9
9
  "sitemap.xml",
10
10
  "robots.txt",
11
11
  "og-image.svg",
12
+ "og",
12
13
  ]);
13
14
  const GROVE_PACKAGES = ["@grove-dev/astro", "@grove-dev/cli", "@grove-dev/core"];
14
15
  export function readCliVersion() {
package/dist/init.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;AAC5E,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IACrC,UAAU;IACV,eAAe;IACf,aAAa;IACb,YAAY;IACZ,cAAc;CACf,CAAC,CAAC;AACH,MAAM,cAAc,GAAG,CAAC,kBAAkB,EAAE,gBAAgB,EAAE,iBAAiB,CAAU,CA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,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAClD,MAAM,SAAS,CACb,UAAU,EACV,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAChF,MAAM,CACP,CAAC;IACF,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAC5C,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grove-dev/cli",
3
- "version": "0.5.4",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "Grove CLI — scaffolds Grove-powered spaces and orchestrates @grove-dev/core commands.",
6
6
  "license": "MIT",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@astrojs/check": "^0.9.9",
23
- "@grove-dev/astro": "^0.5.4",
24
- "@grove-dev/cli": "^0.5.4",
25
- "@grove-dev/core": "^0.5.4",
23
+ "@grove-dev/astro": "^0.6.1",
24
+ "@grove-dev/cli": "^0.6.1",
25
+ "@grove-dev/core": "^0.6.1",
26
26
  "@tailwindcss/vite": "^4.3.0",
27
27
  "astro": "^7.1.3",
28
28
  "tailwindcss": "^4.3.3",
@@ -0,0 +1,246 @@
1
+ ---
2
+ /**
3
+ * DirectoryBrowse — the browse page body, shared by the two routes
4
+ * that render it: `/{slug}/` (page 1) and `/{slug}/page/{n}/`.
5
+ *
6
+ * Layout, top to bottom:
7
+ * - PageHeader (the only place the page names itself)
8
+ * - Search + Sort on one row
9
+ * - Every facet filter on the next row
10
+ * - Applied-filter chips + Clear all on their own row
11
+ * - Result count / sort / page line
12
+ * - Card grid, then pagination
13
+ *
14
+ * Navigation model: **pages are real paths.** Each route prerenders
15
+ * only its own 20 records, so an unfiltered directory of any size is
16
+ * crawlable, works without JavaScript, and never ships the whole
17
+ * catalogue as DOM.
18
+ *
19
+ * Filtering stays client-side: these routes are PRERENDERED, so at
20
+ * build time `Astro.url.searchParams` is empty. `DirectoryIndexClient`
21
+ * re-reads `location.search` and re-derives the result list, chips,
22
+ * pagination, and facet intersection counts with the same
23
+ * `@grove-dev/core/directory` functions the server used. Filtered views
24
+ * paginate with `?page=N` on the base route.
25
+ */
26
+ import siteConfig from "@grove/generated/site-config.json";
27
+ import { getDirectoryIndexModel, itemLabel, itemLabelPlural, seoTitle, taxonomy, titleCaseFirst } from "@grove-dev/astro/server";
28
+ import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
29
+ import CardGrid from "@grove-dev/astro/components/CardGrid.astro";
30
+ import RefinePanel from "@grove-dev/astro/components/RefinePanel.astro";
31
+ import IndexRow from "@grove-dev/astro/components/IndexRow.astro";
32
+ import Pagination from "@grove-dev/astro/components/Pagination.astro";
33
+ import DirectoryIndexClient from "@grove-dev/astro/components/DirectoryIndexClient.astro";
34
+ import { SORT_OPTIONS, sortDisplay } from "@grove-dev/astro";
35
+ import { formatCount } from "@grove-dev/core";
36
+ import { buttonClass, chipClass } from "@grove-dev/astro/ui/button";
37
+ import PageHeader from "@grove-dev/astro/ui/PageHeader.astro";
38
+ import SearchField from "@grove-dev/astro/ui/SearchField.astro";
39
+ import FilterDrawer from "@grove-dev/astro/ui/FilterDrawer.astro";
40
+
41
+ interface Props {
42
+ /** 1-based page this route renders. */
43
+ routePage?: number;
44
+ }
45
+
46
+ const { routePage = 1 } = Astro.props;
47
+ const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
48
+ const {
49
+ total,
50
+ filters,
51
+ facetGroups,
52
+ searchPlaceholder,
53
+ sort,
54
+ sorted,
55
+ pageItems,
56
+ pages,
57
+ page,
58
+ chips,
59
+ clearFiltersHref,
60
+ hrefForResultPage,
61
+ seo,
62
+ } = getDirectoryIndexModel(Astro.url.searchParams, siteConfig, { page: routePage });
63
+
64
+ // Page 2+ gets a distinct title and skips the ItemList JSON-LD so the
65
+ // list markup isn't duplicated across every paginated route. The
66
+ // per-page description is built inside `getDirectoryIndexModel` so it
67
+ // fits inside the 160-char cap; this view just forwards `seo.title`.
68
+ const title =
69
+ page > 1
70
+ ? seoTitle(`Browse ${titleCaseFirst(itemLabelPlural())} — Page ${page}`, siteConfig.name)
71
+ : seo.title;
72
+ const description = seo.description;
73
+ ---
74
+
75
+ <BaseLayout
76
+ title={title}
77
+ description={description}
78
+ image={seo.image}
79
+ jsonLd={page > 1 ? undefined : seo.jsonLd}
80
+ site={siteConfig}
81
+ submitHref="/submit"
82
+ submitLabel={`Submit ${itemLabel()}`}
83
+ >
84
+ <section class="border-b border-border bg-background">
85
+ <div class="mx-auto w-full max-w-container px-5 pt-10 sm:px-7 sm:pt-12">
86
+ <PageHeader
87
+ eyebrow={slug}
88
+ title={`Browse ${slug}`}
89
+ description={`Search, filter, and explore ${formatCount(total, { singular: itemLabel(), plural: itemLabelPlural() })} in this directory.`}
90
+ />
91
+
92
+ {/* Row 1 — search and sort. Search filters as you type (see
93
+ DirectoryIndexClient); the submit button is sr-only so Enter
94
+ still works when JavaScript never arrives. */}
95
+ <form
96
+ method="get"
97
+ action={`/${slug}`}
98
+ id="search-form"
99
+ class="mt-6 flex flex-col gap-2 sm:flex-row"
100
+ role="search"
101
+ >
102
+ <SearchField
103
+ class="flex-1"
104
+ label={`Search ${itemLabelPlural()}`}
105
+ value={filters.q ?? ""}
106
+ placeholder={searchPlaceholder}
107
+ shortcut
108
+ />
109
+ <label class="relative">
110
+ <span class="sr-only">{`Sort ${itemLabelPlural()}`}</span>
111
+ <select
112
+ id="sort-select"
113
+ name="sort"
114
+ class="h-10 w-full cursor-pointer appearance-none rounded-md border border-input bg-background py-1.5 pl-3 pr-8 text-sm font-medium text-foreground transition-colors hover:border-ring focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring/20 sm:w-auto"
115
+ >
116
+ {SORT_OPTIONS.map((o) => (
117
+ <option value={o.value} selected={o.value === sort}>{o.label}</option>
118
+ ))}
119
+ </select>
120
+ <svg
121
+ viewBox="0 0 16 16"
122
+ width="11"
123
+ height="11"
124
+ aria-hidden="true"
125
+ class="pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"
126
+ fill="currentColor"
127
+ >
128
+ <path d="M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z" />
129
+ </svg>
130
+ </label>
131
+ <button type="submit" class="sr-only">Search</button>
132
+ </form>
133
+
134
+ {/* Row 2 — every filter on one line. On mobile they collapse into
135
+ a full-width "Filters (n)" button opening a bottom sheet. */}
136
+ <div class="mt-3">
137
+ <FilterDrawer label="Filters" activeCount={chips.length} clearHref={clearFiltersHref}>
138
+ <RefinePanel
139
+ class="max-md:flex-col max-md:items-stretch"
140
+ groups={facetGroups}
141
+ initial={filters}
142
+ pathPrefix={`/${slug}`}
143
+ hide={["sort"]}
144
+ />
145
+ </FilterDrawer>
146
+ </div>
147
+
148
+ {/* Row 3 — what is currently narrowing the list, and one way out
149
+ of all of it. Server-rendered empty on this prerendered route;
150
+ the client fills it from the live query string. */}
151
+ <div
152
+ id="active-filters"
153
+ class:list={["mt-3 flex flex-wrap items-center gap-1.5 pb-6", chips.length === 0 && "hidden"]}
154
+ aria-label="Active filters"
155
+ >
156
+ {chips.map((chip) => (
157
+ <a href={chip.href} class={chipClass()} aria-label={`Remove filter: ${chip.label}`}>
158
+ {chip.label} <span aria-hidden="true">×</span>
159
+ </a>
160
+ ))}
161
+ {chips.length > 0 && (
162
+ <a
163
+ href={clearFiltersHref}
164
+ class="text-2xs font-medium text-ink-500 underline decoration-border underline-offset-2 hover:text-ink-900 dark:hover:text-ink-100"
165
+ aria-label="Clear all active filters"
166
+ >
167
+ Clear all
168
+ </a>
169
+ )}
170
+ </div>
171
+ {chips.length === 0 && <div class="pb-6"></div>}
172
+ </div>
173
+ </section>
174
+
175
+ <section class="py-10 sm:py-12">
176
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
177
+ {/* The count line IS the results heading — it carries a fact,
178
+ which "All projects / Every item in the directory" did not,
179
+ and it keeps the document's heading order intact above the
180
+ cards' own h3s. */}
181
+ <h2
182
+ id="results-heading"
183
+ class="m-0 mb-5 text-2xs font-normal text-ink-500 dark:text-ink-400"
184
+ >
185
+ <span id="results-count" class="font-mono font-semibold text-ink-900 dark:text-ink-100">
186
+ {sorted.length} {sorted.length === 1 ? itemLabel() : itemLabelPlural()}
187
+ </span>
188
+ <span id="results-sort">{` · sorted by ${sortDisplay(sort)}`}</span>
189
+ <span id="results-page">{pages > 1 ? ` · page ${page} of ${pages}` : ""}</span>
190
+ </h2>
191
+
192
+ <CardGrid id="results-list">
193
+ {pageItems.map((item, i) => (
194
+ <li class="m-0 p-0" data-record-slug={item.slug}>
195
+ <IndexRow
196
+ record={item as Parameters<typeof IndexRow>[0]["record"]}
197
+ detailHref={`/${slug}/${item.slug}`}
198
+ eager={i < 3}
199
+ />
200
+ </li>
201
+ ))}
202
+ </CardGrid>
203
+
204
+ <div id="empty-state" class:list={["py-12 text-center", sorted.length > 0 && "hidden"]}>
205
+ <p class="m-0 text-sm font-medium text-ink-700 dark:text-ink-200">
206
+ {`No ${itemLabelPlural()} match these filters.`}
207
+ </p>
208
+ <a href={clearFiltersHref} class={buttonClass("secondary", "sm", "mt-4")}>Clear filters</a>
209
+ </div>
210
+ {/* Plain div wrapper — Pagination renders its own
211
+ <nav aria-label="Pagination">, so a nav here would nest two
212
+ identical landmarks. */}
213
+ <div id="results-pagination" class="mt-8 flex flex-wrap items-center justify-center gap-1.5">
214
+ <Pagination current={page} total={pages} hrefFor={hrefForResultPage} />
215
+ </div>
216
+ </div>
217
+ </section>
218
+
219
+ <section class="border-t border-ink-200 dark:border-ink-800">
220
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
221
+ <div class="flex flex-col items-center gap-3 py-12 text-center">
222
+ <h2 class="m-0 text-xl font-semibold tracking-tight text-ink-900 dark:text-ink-100">
223
+ {`Know a real ${itemLabel()} that belongs here?`}
224
+ </h2>
225
+ <p class="m-0 max-w-2xl text-sm text-ink-500 dark:text-ink-400">
226
+ {`Open a pull request with a YAML file. We review every submission against the bar — no marketing, no tutorials.`}
227
+ </p>
228
+ <a
229
+ href="/submit"
230
+ class={buttonClass("primary", "sm", "mt-2")}
231
+ >
232
+ {`Submit ${itemLabel()}`}
233
+ </a>
234
+
235
+ </div>
236
+ </div>
237
+ </section>
238
+
239
+ <DirectoryIndexClient
240
+ slug={slug}
241
+ singular={itemLabel()}
242
+ plural={itemLabelPlural()}
243
+ taxonomy={taxonomy}
244
+ routePage={page}
245
+ />
246
+ </BaseLayout>
@@ -69,7 +69,7 @@ const hrefPrefix = backHref.replace(/\/$/, "");
69
69
  type CardRecord = Parameters<typeof ProjectCard>[0]["record"];
70
70
  ---
71
71
 
72
- <section class="mx-auto w-full max-w-wide px-5 py-12 sm:px-7 sm:py-16">
72
+ <section class="mx-auto w-full max-w-container px-5 py-12 sm:px-7 sm:py-16">
73
73
  <p class="m-0 text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">{eyebrow}</p>
74
74
  <h1 class="m-0 mt-2 text-[1.875rem] font-semibold tracking-tight text-ink-900 sm:text-[2.125rem] dark:text-ink-100">
75
75
  {displayName} {itemNoun.plural}
@@ -13,8 +13,8 @@ import { buttonClass } from "@grove-dev/astro/ui/button";
13
13
  import SearchField from "@grove-dev/astro/ui/SearchField.astro";
14
14
 
15
15
  const slug = indexSlug();
16
- const title = `Not found — ${siteConfig.name}`;
17
- const description = `That page doesn't exist on ${siteConfig.name}.`;
16
+ const title = `Page not found | ${siteConfig.name}`;
17
+ const description = `That page doesn't exist on ${siteConfig.name}. Search the directory or browse from the home page.`;
18
18
  ---
19
19
 
20
20
  <BaseLayout
@@ -26,20 +26,22 @@ const detail = getRecordDetailModel(
26
26
  Astro.params.slug ?? dirSlug,
27
27
  );
28
28
  if (!detail) return Astro.redirect(`/${dirSlug}`);
29
- const { record, name, title, description, itemSingular, jsonLd } = detail;
29
+ const { record, itemSingular, seo } = detail;
30
30
  ---
31
31
 
32
32
  <BaseLayout
33
- title={title}
34
- description={description}
33
+ title={seo.title}
34
+ description={seo.description}
35
+ image={seo.image}
36
+ imageAlt={seo.imageAlt}
35
37
  site={siteConfig}
36
38
  type="article"
37
- jsonLd={jsonLd}
39
+ jsonLd={seo.jsonLd}
38
40
  submitHref="/submit"
39
41
  submitLabel={`Submit ${itemSingular}`}
40
42
  >
41
43
  <article class="py-8 sm:py-10">
42
- <div class="mx-auto w-full max-w-[1240px] px-5 sm:px-7">
44
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
43
45
  <RecordHeader detail={detail} />
44
46
 
45
47
  <div
@@ -1,257 +1,19 @@
1
1
  ---
2
2
  /**
3
- * List page — the discovery / browse page.
3
+ * List page — page 1 of the discovery / browse page.
4
4
  *
5
- * Mirrors the openapps list structure:
6
- * - SmartLensTabs (curated views only; sorting stays in the sort select)
7
- * - RefinePanel (Stack / Platform / Category / License / Sort)
8
- * - RecordSection rows (full record cards; the `ItemSection` V0
9
- * name was renamed to `RecordSection` in V1)
10
- *
11
- * Generic: the URL slug (e.g. `/projects/`, `/resources/`,
12
- * `/entities/`) is derived from the blueprint via `getStaticPaths`,
13
- * so the same page works for every blueprint without per-blueprint
14
- * forks.
15
- *
16
- * Navigation model: the URL is the single source of truth for filter
17
- * state — the form submits via `method="get"` so every change is a
18
- * full-page navigation to `?q=...&sort=...&stack=...`. But this route
19
- * is PRERENDERED: at build time `Astro.url.searchParams` is empty, so
20
- * the server renders the unfiltered state once. `DirectoryIndexClient`
21
- * re-reads `location.search` on load and re-derives the result list,
22
- * chips, pagination, and facet intersection counts with the same
23
- * `@grove-dev/core/directory` functions the server used.
5
+ * The body lives in `DirectoryBrowse` because two routes render it:
6
+ * this one and `/{slug}/page/{n}/`. The URL slug (e.g. `/projects/`,
7
+ * `/resources/`, `/entities/`) is derived from the blueprint, so the
8
+ * same page works for every blueprint without per-blueprint forks.
24
9
  */
25
10
  import siteConfig from "@grove/generated/site-config.json";
26
- import { getDirectoryIndexModel, itemLabel, itemLabelPlural, taxonomy } from "@grove-dev/astro/server";
27
- import type { IndexFilters } from "@grove-dev/astro";
28
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
29
- import CardGrid from "@grove-dev/astro/components/CardGrid.astro";
30
- import SmartLensTabs from "@grove-dev/astro/components/SmartLensTabs.astro";
31
- import RefinePanel from "@grove-dev/astro/components/RefinePanel.astro";
32
- import IndexRow from "@grove-dev/astro/components/IndexRow.astro";
33
- import Pagination from "@grove-dev/astro/components/Pagination.astro";
34
- import DirectoryIndexClient from "@grove-dev/astro/components/DirectoryIndexClient.astro";
35
- import { removeFilter, searchParamsFromFilters, sortDisplay, SORT_OPTIONS } from "@grove-dev/astro";
36
- import { formatCount, PRIMARY_LENSES } from "@grove-dev/core";
37
- import { buttonClass, chipClass } from "@grove-dev/astro/ui/button";
38
- import PageHeader from "@grove-dev/astro/ui/PageHeader.astro";
39
- import SearchField from "@grove-dev/astro/ui/SearchField.astro";
40
- import FilterDrawer from "@grove-dev/astro/ui/FilterDrawer.astro";
11
+ import DirectoryBrowse from "../../components/DirectoryBrowse.astro";
41
12
 
42
13
  export function getStaticPaths() {
43
14
  const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
44
15
  return [{ params: { slug: routeSlug } }];
45
16
  }
46
-
47
- const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
48
- const {
49
- total,
50
- filters,
51
- facetGroups,
52
- searchPlaceholder,
53
- sort,
54
- sorted,
55
- pages,
56
- page,
57
- chips,
58
- clientItemsJson,
59
- } = getDirectoryIndexModel(Astro.url.searchParams, siteConfig);
60
-
61
- const title = `Browse ${slug} — ${siteConfig.name}`;
62
- const description = `A searchable directory of ${itemLabelPlural()} for ${siteConfig.name}.`;
63
-
64
- function hrefForPage(target: number): string {
65
- const next: IndexFilters = { ...filters, page: target };
66
- const query = searchParamsFromFilters(next).toString();
67
- return query ? `/${slug}?${query}` : `/${slug}`;
68
- }
69
-
70
- function hrefForRemove(key: keyof IndexFilters, value: string): string {
71
- const params = searchParamsFromFilters(removeFilter(filters, key, value));
72
- const query = params.toString();
73
- return query ? `/${slug}?${query}` : `/${slug}`;
74
- }
75
-
76
- const clearQuery = searchParamsFromFilters({ sort }).toString();
77
- const clearFiltersHref = clearQuery ? `/${slug}?${clearQuery}` : `/${slug}`;
78
17
  ---
79
18
 
80
- <BaseLayout
81
- title={title}
82
- description={description}
83
- site={siteConfig}
84
- submitHref="/submit"
85
- submitLabel={`Submit ${itemLabel()}`}
86
- >
87
- <section class="border-b border-border bg-background">
88
- <div class="mx-auto w-full max-w-wide px-5 pt-10 sm:px-7 sm:pt-12">
89
- <PageHeader
90
- eyebrow={slug}
91
- title={`Browse ${slug}`}
92
- description={`Search, filter, and explore ${formatCount(total, { singular: itemLabel(), plural: itemLabelPlural() })} in this directory.`}
93
- />
94
-
95
- {/* Discovery bar: one compact row on desktop — search grows,
96
- sort and submit sit beside it. */}
97
- <form
98
- method="get"
99
- action={`/${slug}`}
100
- id="search-form"
101
- class="mt-6 flex flex-col gap-2 sm:flex-row"
102
- role="search"
103
- >
104
- <SearchField
105
- class="flex-1"
106
- label={`Search ${itemLabelPlural()}`}
107
- value={filters.q ?? ""}
108
- placeholder={searchPlaceholder}
109
- />
110
- <label class="relative">
111
- <span class="sr-only">{`Sort ${itemLabelPlural()}`}</span>
112
- <select
113
- id="sort-select"
114
- name="sort"
115
- class="h-10 w-full cursor-pointer appearance-none rounded-md border border-input bg-background py-1.5 pl-3 pr-8 text-sm font-medium text-foreground transition-colors hover:border-ring focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring/20 sm:w-auto"
116
- >
117
- {SORT_OPTIONS.map((o) => (
118
- <option value={o.value} selected={o.value === sort}>{o.label}</option>
119
- ))}
120
- </select>
121
- <svg
122
- viewBox="0 0 16 16"
123
- width="11"
124
- height="11"
125
- aria-hidden="true"
126
- class="pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"
127
- fill="currentColor"
128
- >
129
- <path d="M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z" />
130
- </svg>
131
- </label>
132
- <button type="submit" class={buttonClass("primary", "bare", "h-10 px-4 text-sm max-sm:min-h-11")}>Search</button>
133
- </form>
134
-
135
- {/* One toolbar row on desktop: view tabs on the left, facet
136
- filters pushed to the right. On mobile the tabs become a
137
- single horizontally scrolling strip and the facets collapse
138
- into a full-width "Filters" button opening a bottom sheet. */}
139
- <div class="mt-4 flex flex-col gap-3 pb-6 md:flex-row md:items-center">
140
- <div class="max-md:-mx-5 max-md:overflow-x-auto max-md:px-5">
141
- <SmartLensTabs
142
- class="max-md:w-max"
143
- currentParams={Astro.url.searchParams}
144
- pathPrefix={`/${slug}`}
145
- lensIds={PRIMARY_LENSES}
146
- allLabel={`All ${itemLabelPlural()}`}
147
- />
148
- </div>
149
-
150
- <FilterDrawer label="Filters" activeCount={chips.length} class="md:ml-auto">
151
- <RefinePanel
152
- class="max-md:flex-col max-md:items-stretch"
153
- groups={facetGroups}
154
- initial={filters}
155
- pathPrefix={`/${slug}`}
156
- hide={["sort"]}
157
- />
158
- </FilterDrawer>
159
- </div>
160
- </div>
161
- </section>
162
-
163
- <section class="py-10 sm:py-12">
164
- <div class="mx-auto w-full max-w-wide px-5 sm:px-7">
165
- <header class="mb-6">
166
- <h2 id="results-heading" class="m-0 text-[1.5rem] sm:text-[1.625rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
167
- {`All ${itemLabelPlural()}`}
168
- </h2>
169
- <p id="results-description" class="m-0 mt-1 max-w-[60ch] text-[0.9375rem] text-ink-500 dark:text-ink-400">
170
- {`Every ${itemLabel()} in the directory.`}
171
- </p>
172
- </header>
173
- <div class="mb-5 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
174
- <p class="m-0 text-2xs text-ink-500 dark:text-ink-400">
175
- <span id="results-count" class="font-mono text-ink-900 dark:text-ink-100">
176
- {sorted.length} {sorted.length === 1 ? itemLabel() : itemLabelPlural()}
177
- </span>
178
- <span id="results-sort">{` · sorted by ${sortDisplay(sort)}`}</span>
179
- <span id="results-page">{pages > 1 ? ` · page ${page} of ${pages}` : ""}</span>
180
- </p>
181
- <div
182
- id="active-filters"
183
- class:list={["flex flex-wrap items-center gap-1.5", chips.length === 0 && "hidden"]}
184
- aria-label="Active filters"
185
- >
186
- {chips.length > 0 && (
187
- <>
188
- {chips.map((chip) => (
189
- <a
190
- href={hrefForRemove(chip.key, chip.value)}
191
- class={chipClass()}
192
- >
193
- {chip.label} <span aria-hidden="true">x</span>
194
- </a>
195
- ))}
196
- <a href={clearFiltersHref} class="text-2xs font-medium text-ink-500 hover:text-ink-900">
197
- Clear all
198
- </a>
199
- </>
200
- )}
201
- </div>
202
- </div>
203
-
204
- <CardGrid id="results-list">
205
- {sorted.map((item, i) => (
206
- <li class="m-0 p-0" data-record-slug={item.slug}>
207
- <IndexRow
208
- record={item as Parameters<typeof IndexRow>[0]["record"]}
209
- detailHref={`/${slug}/${item.slug}`}
210
- eager={i < 3}
211
- />
212
- </li>
213
- ))}
214
- </CardGrid>
215
- <div id="empty-state" class:list={["py-12 text-center", sorted.length > 0 && "hidden"]}>
216
- <p class="m-0 text-sm font-medium text-ink-700 dark:text-ink-200">
217
- {`No ${itemLabelPlural()} match these filters.`}
218
- </p>
219
- <a href={clearFiltersHref} class={buttonClass("secondary", "sm", "mt-4")}>Clear filters</a>
220
- </div>
221
- {/* Plain div wrapper — Pagination renders its own
222
- <nav aria-label="Pagination">, so a nav here would nest two
223
- identical landmarks. */}
224
- <div id="results-pagination" class="mt-8 flex flex-wrap items-center justify-center gap-1.5">
225
- <Pagination current={page} total={pages} hrefFor={hrefForPage} />
226
- </div>
227
- </div>
228
- </section>
229
-
230
- <section class="border-t border-ink-200 dark:border-ink-800">
231
- <div class="mx-auto w-full max-w-wide px-5 sm:px-7">
232
- <div class="flex flex-col items-center gap-3 py-12 text-center">
233
- <h2 class="m-0 text-xl font-semibold tracking-tight text-ink-900 dark:text-ink-100">
234
- {`Know a real ${itemLabel()} that belongs here?`}
235
- </h2>
236
- <p class="m-0 max-w-2xl text-sm text-ink-500 dark:text-ink-400">
237
- {`Open a pull request with a YAML file. We review every submission against the bar — no marketing, no tutorials.`}
238
- </p>
239
- <a
240
- href="/submit"
241
- class={buttonClass("primary", "sm", "mt-2")}
242
- >
243
- {`Submit ${itemLabel()}`}
244
- </a>
245
-
246
- </div>
247
- </div>
248
- </section>
249
-
250
- <DirectoryIndexClient
251
- clientItemsJson={clientItemsJson}
252
- slug={slug}
253
- singular={itemLabel()}
254
- plural={itemLabelPlural()}
255
- taxonomy={taxonomy}
256
- />
257
- </BaseLayout>
19
+ <DirectoryBrowse routePage={1} />
@@ -0,0 +1,32 @@
1
+ ---
2
+ /**
3
+ * Browse pages 2..n — `/{slug}/page/2/`, `/{slug}/page/3/`, …
4
+ *
5
+ * Real prerendered paths rather than a `?page=` query, so every record
6
+ * in a large directory is reachable by a crawler and by a visitor with
7
+ * no JavaScript. The `/page/` segment keeps these clear of
8
+ * `/{slug}/{recordSlug}`, which would otherwise claim `/projects/2/`
9
+ * for a record slugged "2".
10
+ *
11
+ * Page 1 is the bare `/{slug}/` route — it is not duplicated here, so
12
+ * there is one canonical URL for the first page.
13
+ */
14
+ import siteConfig from "@grove/generated/site-config.json";
15
+ import { getDirectoryIndexModel } from "@grove-dev/astro/server";
16
+ import DirectoryBrowse from "../../../components/DirectoryBrowse.astro";
17
+
18
+ export function getStaticPaths() {
19
+ const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
20
+ // Page count comes from the model, not from `stats.totalRecords` —
21
+ // the browse list is scoped to the blueprint's own records.
22
+ const { pages: count } = getDirectoryIndexModel(new URLSearchParams(), siteConfig);
23
+ return Array.from({ length: Math.max(0, count - 1) }, (_, index) => ({
24
+ params: { slug: routeSlug, page: String(index + 2) },
25
+ props: { routePage: index + 2 },
26
+ }));
27
+ }
28
+
29
+ const { routePage } = Astro.props;
30
+ ---
31
+
32
+ <DirectoryBrowse routePage={routePage} />
@@ -0,0 +1,50 @@
1
+ ---
2
+ /**
3
+ * Card source for client-side filtering — `/{slug}/page/cards/`.
4
+ *
5
+ * Every record's card, rendered once by the same component the browse
6
+ * page uses, as a bare fragment with no layout.
7
+ *
8
+ * Why it exists: browse pages prerender only their own 20 records, so
9
+ * the page a visitor lands on is small and crawlable. Filtering happens
10
+ * on the client and can surface any record in the directory, so the
11
+ * controller needs cards it was not given. Fetching them from here —
12
+ * lazily, once, after the page is interactive — keeps the card markup
13
+ * to a single definition instead of a second one written in JavaScript.
14
+ *
15
+ * `noindex`: this is a machine surface. Every record it contains is
16
+ * already indexable through the paginated browse pages and its own
17
+ * detail page.
18
+ */
19
+ import siteConfig from "@grove/generated/site-config.json";
20
+ import { getDirectoryIndexModel } from "@grove-dev/astro/server";
21
+ import IndexRow from "@grove-dev/astro/components/IndexRow.astro";
22
+
23
+ export function getStaticPaths() {
24
+ const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
25
+ return [{ params: { slug: routeSlug } }];
26
+ }
27
+
28
+ const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
29
+ const { sorted } = getDirectoryIndexModel(new URLSearchParams(), siteConfig);
30
+ ---
31
+
32
+ <html lang="en">
33
+ <head>
34
+ <meta charset="utf-8" />
35
+ <meta name="robots" content="noindex, nofollow" />
36
+ <title>{`${slug} card source`}</title>
37
+ </head>
38
+ <body>
39
+ <ul id="grove-index-cards">
40
+ {sorted.map((item) => (
41
+ <li class="m-0 p-0" data-record-slug={item.slug}>
42
+ <IndexRow
43
+ record={item as Parameters<typeof IndexRow>[0]["record"]}
44
+ detailHref={`/${slug}/${item.slug}`}
45
+ />
46
+ </li>
47
+ ))}
48
+ </ul>
49
+ </body>
50
+ </html>
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Record index for client-side filtering — `/{slug}/page/records.json`.
3
+ *
4
+ * The browse page used to inline this array in a `<script type=
5
+ * "application/json">`. That put the entire directory into every
6
+ * paginated page's HTML: at 300 records the browse page weighed over
7
+ * 300 kB before a single card was read. Fetched instead, it arrives
8
+ * once, on idle, and the browser caches it across every page of the
9
+ * directory.
10
+ */
11
+ import siteConfig from "@grove/generated/site-config.json";
12
+ import { getDirectoryIndexModel } from "@grove-dev/astro/server";
13
+
14
+ export function getStaticPaths() {
15
+ const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
16
+ return [{ params: { slug: routeSlug } }];
17
+ }
18
+
19
+ export function GET() {
20
+ const { clientItemsJson } = getDirectoryIndexModel(new URLSearchParams(), siteConfig);
21
+ return new Response(clientItemsJson, {
22
+ headers: { "content-type": "application/json; charset=utf-8" },
23
+ });
24
+ }
@@ -16,19 +16,18 @@
16
16
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
17
17
  import Container from "@grove-dev/astro/layouts/Container.astro";
18
18
  import siteConfig from "@grove/generated/site-config.json";
19
- import { getPageContentHtml, indexSlug, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
19
+ import { getAboutPageSeo, getPageContentHtml, indexSlug, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
20
20
  import { buttonClass } from "@grove-dev/astro/ui/button";
21
21
 
22
22
  const githubUrl = siteConfig.repoUrl;
23
- const title = `About — ${siteConfig.name}`;
24
- const description = `${siteConfig.tagline} Built with Grove.`;
23
+ const seo = getAboutPageSeo(siteConfig);
25
24
  const slug = indexSlug();
26
25
  const item = itemLabel();
27
26
  const items = itemLabelPlural();
28
27
  const pageContentHtml = getPageContentHtml("about");
29
28
  ---
30
29
 
31
- <BaseLayout title={title} description={description} site={siteConfig}>
30
+ <BaseLayout title={seo.title} description={seo.description} image={seo.image} jsonLd={seo.jsonLd} site={siteConfig}>
32
31
  <Container size="narrow">
33
32
  <article class="py-12 sm:py-16">
34
33
  <nav class="text-2xs text-muted-foreground" aria-label="Breadcrumb">
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
3
- import { filterRecords } from "@grove-dev/core";
4
- import indexPayload from "@grove/generated/records.index.json";
3
+ import { getTaxonomyPageModel, itemLabelPlural } from "@grove-dev/astro/server";
5
4
  import siteConfig from "@grove/generated/site-config.json";
6
5
  import TaxonomyList from "../../components/TaxonomyList.astro";
7
6
 
@@ -15,28 +14,22 @@ export function getStaticPaths() {
15
14
 
16
15
  const { displayName } = Astro.props;
17
16
  const name = Astro.params.name;
18
- const indexRecords = (indexPayload as { records: unknown[] }).records as never;
19
- const categoryRecords = filterRecords(indexRecords, {
20
- categories: [name],
21
- }) as Array<{
22
- slug: string;
23
- name?: string;
24
- title?: string;
25
- description?: string;
26
- repoUrl?: string;
27
- }>;
17
+ const model = getTaxonomyPageModel("categories", name, displayName, siteConfig);
28
18
  ---
29
19
 
30
20
  <BaseLayout
31
- title={`${displayName} projects`}
32
- description={`Open-source projects in the ${displayName} category.`}
21
+ title={model.seo.title}
22
+ description={model.seo.description}
23
+ image={model.seo.image}
24
+ imageAlt={model.seo.imageAlt}
25
+ jsonLd={model.seo.jsonLd}
33
26
  site={siteConfig}
34
27
  >
35
28
  <TaxonomyList
36
29
  name={name}
37
30
  eyebrow="Category"
38
31
  displayName={displayName}
39
- lede={`Browse open-source projects in this directory in the ${displayName} category.`}
40
- records={categoryRecords}
32
+ lede={`Browse ${itemLabelPlural()} in this directory in the ${displayName} category.`}
33
+ records={model.records}
41
34
  />
42
- </BaseLayout>
35
+ </BaseLayout>
@@ -7,16 +7,19 @@
7
7
  import siteConfig from "@grove/generated/site-config.json";
8
8
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
9
9
  import CategoryGrid from "@grove-dev/astro/components/CategoryGrid.astro";
10
- import { getTaxonomyIndexModel, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
10
+ import { getTaxonomyIndexModel, getTaxonomyIndexSeo, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
11
11
 
12
12
  const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
13
13
  const { categories } = getTaxonomyIndexModel();
14
14
  const itemNoun = { singular: itemLabel(), plural: itemLabelPlural() };
15
+ const seo = getTaxonomyIndexSeo("categories", siteConfig);
15
16
  ---
16
17
 
17
18
  <BaseLayout
18
- title={`Categories — ${siteConfig.name}`}
19
- description={`Browse every category of ${itemLabelPlural()} in ${siteConfig.name}.`}
19
+ title={seo.title}
20
+ description={seo.description}
21
+ image={seo.image}
22
+ jsonLd={seo.jsonLd}
20
23
  site={siteConfig}
21
24
  >
22
25
  <CategoryGrid
@@ -23,11 +23,15 @@ const entries = recordsToCollectionEntries(
23
23
  (records as { records: unknown[] }).records as never,
24
24
  siteConfig,
25
25
  );
26
- const model = getCollectionPageModel(collection, entries, collections);
26
+ const model = getCollectionPageModel(collection, entries, collections, siteConfig);
27
27
  ---
28
28
  <BaseLayout
29
- title={model.collection.title}
30
- description={model.collection.description}
29
+ title={model.seo.title}
30
+ description={model.seo.description}
31
+ image={model.seo.image}
32
+ imageAlt={model.seo.imageAlt}
33
+ jsonLd={model.seo.jsonLd}
34
+ noindex={model.seo.noindex}
31
35
  site={siteConfig}
32
36
  >
33
37
  <CollectionPage
@@ -14,15 +14,18 @@ const entries = recordsToCollectionEntries(
14
14
  (records as { records: unknown[] }).records as never,
15
15
  siteConfig,
16
16
  );
17
- const model = getCollectionIndexModel(collections, entries);
17
+ const model = getCollectionIndexModel(collections, entries, siteConfig);
18
18
  const countNoun = {
19
19
  singular: siteConfig.blueprintConfig?.labelSingular ?? "item",
20
20
  plural: siteConfig.blueprintConfig?.labelPlural ?? "items",
21
21
  };
22
+ const seo = model.seo;
22
23
  ---
23
24
  <BaseLayout
24
- title="Collections"
25
- description="Curated and generated directories of related items."
25
+ title={seo?.title ?? "Collections"}
26
+ description={seo?.description ?? "Curated and generated directories of related items."}
27
+ image={seo?.image}
28
+ jsonLd={seo?.jsonLd}
26
29
  site={siteConfig}
27
30
  >
28
31
  <CollectionIndex model={model} headingLevel={1} countNoun={countNoun} />
@@ -16,13 +16,13 @@ import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
16
16
  import EmptyState from "@grove-dev/astro/ui/EmptyState.astro";
17
17
  import { getContributorsPageModel } from "@grove-dev/astro/server";
18
18
 
19
- const { contributors: sorted, total, title, description, contributorsGraphHref, showContributionCount } =
19
+ const { contributors: sorted, total, seo, contributorsGraphHref, showContributionCount } =
20
20
  getContributorsPageModel(siteConfig);
21
21
  ---
22
22
 
23
- <BaseLayout title={title} description={description} site={siteConfig}>
23
+ <BaseLayout title={seo.title} description={seo.description} image={seo.image} jsonLd={seo.jsonLd} site={siteConfig}>
24
24
  <section class="py-12 sm:py-16">
25
- <div class="mx-auto w-full max-w-wide px-5 py-12 sm:px-7 sm:py-16">
25
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
26
26
  <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
27
27
  Community
28
28
  </span>
@@ -51,8 +51,8 @@ const { contributors: sorted, total, title, description, contributorsGraphHref,
51
51
  </section>
52
52
 
53
53
  {sorted.length === 0 ? (
54
- <section class="py-4">
55
- <div class="mx-auto w-full max-w-container px-5 pb-16 sm:px-7">
54
+ <section class="pb-12 sm:pb-16">
55
+ <div class="mx-auto w-full max-w-container px-5 sm:px-7">
56
56
  <EmptyState
57
57
  title="No contributors synced yet"
58
58
  description={`Contributor profiles come from data/generated/contributors.json, written by the weekly sync-contributors workflow. Run "grove sync contributors" (or wait for the scheduled sync) and every contributor avatar lands here.`}
@@ -64,7 +64,7 @@ const { contributors: sorted, total, title, description, contributorsGraphHref,
64
64
  </section>
65
65
  ) : (
66
66
  <section class="py-12 sm:py-16" aria-label="Contributors list">
67
- <div class="mx-auto w-full max-w-wide px-5 pb-16 sm:px-7">
67
+ <div class="mx-auto w-full max-w-container px-5 pb-16 sm:px-7">
68
68
  <ul
69
69
  class="m-0 grid list-none grid-cols-2 gap-3 p-0 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6"
70
70
  aria-label="Contributors"
@@ -10,7 +10,7 @@ import siteConfig from "@grove/generated/site-config.json";
10
10
 
11
11
  const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
12
12
  ---
13
- <BaseLayout title="No results" description="Empty state fixture." site={siteConfig}>
13
+ <BaseLayout title={`No results | ${siteConfig.name}`} description="Empty state fixture." site={siteConfig} noindex>
14
14
  <section class="py-16 sm:py-24">
15
15
  <div class="mx-auto w-full max-w-narrow px-5 sm:px-7">
16
16
  <h1 class="sr-only">No results</h1>
@@ -52,7 +52,7 @@ const teaserEntries = recordsToCollectionEntries(
52
52
  const collectionTeaser = getCollectionTeaserModel(allCollections, teaserEntries, 3);
53
53
  ---
54
54
 
55
- <BaseLayout title={title} description={description} site={siteConfig}>
55
+ <BaseLayout title={title} description={description} image={home.seo.image} site={siteConfig}>
56
56
  <Hero
57
57
  name={`Find ${itemPlural} you can actually`}
58
58
  tagline="run, study, and contribute to."
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
3
- import { filterRecords } from "@grove-dev/core";
4
- import indexPayload from "@grove/generated/records.index.json";
3
+ import { getTaxonomyPageModel, itemLabelPlural } from "@grove-dev/astro/server";
5
4
  import siteConfig from "@grove/generated/site-config.json";
6
5
  import TaxonomyList from "../../components/TaxonomyList.astro";
7
6
 
@@ -15,28 +14,22 @@ export function getStaticPaths() {
15
14
 
16
15
  const { displayName } = Astro.props;
17
16
  const name = Astro.params.name;
18
- const indexRecords = (indexPayload as { records: unknown[] }).records as never;
19
- const licenseRecords = filterRecords(indexRecords, {
20
- licenses: [name],
21
- }) as Array<{
22
- slug: string;
23
- name?: string;
24
- title?: string;
25
- description?: string;
26
- repoUrl?: string;
27
- }>;
17
+ const model = getTaxonomyPageModel("licenses", name, displayName, siteConfig);
28
18
  ---
29
19
 
30
20
  <BaseLayout
31
- title={`${displayName} projects`}
32
- description={`Open-source projects licensed under ${displayName}.`}
21
+ title={model.seo.title}
22
+ description={model.seo.description}
23
+ image={model.seo.image}
24
+ imageAlt={model.seo.imageAlt}
25
+ jsonLd={model.seo.jsonLd}
33
26
  site={siteConfig}
34
27
  >
35
28
  <TaxonomyList
36
29
  name={name}
37
30
  eyebrow="License"
38
31
  displayName={displayName}
39
- lede={`Browse open-source projects in this directory licensed under ${displayName}.`}
40
- records={licenseRecords}
32
+ lede={`Browse ${itemLabelPlural()} in this directory licensed under ${displayName}.`}
33
+ records={model.records}
41
34
  />
42
- </BaseLayout>
35
+ </BaseLayout>
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
3
- import { filterRecords } from "@grove-dev/core";
4
- import indexPayload from "@grove/generated/records.index.json";
3
+ import { getTaxonomyPageModel, itemLabelPlural } from "@grove-dev/astro/server";
5
4
  import siteConfig from "@grove/generated/site-config.json";
6
5
  import TaxonomyList from "../../components/TaxonomyList.astro";
7
6
 
@@ -15,26 +14,22 @@ export function getStaticPaths() {
15
14
 
16
15
  const { displayName } = Astro.props;
17
16
  const name = Astro.params.name;
18
- const indexRecords = (indexPayload as { records: unknown[] }).records as never;
19
- const stackRecords = filterRecords(indexRecords, { stacks: [name] }) as Array<{
20
- slug: string;
21
- name?: string;
22
- title?: string;
23
- description?: string;
24
- repoUrl?: string;
25
- }>;
17
+ const model = getTaxonomyPageModel("stacks", name, displayName, siteConfig);
26
18
  ---
27
19
 
28
20
  <BaseLayout
29
- title={`${displayName} projects`}
30
- description={`Open-source projects built with ${displayName}.`}
21
+ title={model.seo.title}
22
+ description={model.seo.description}
23
+ image={model.seo.image}
24
+ imageAlt={model.seo.imageAlt}
25
+ jsonLd={model.seo.jsonLd}
31
26
  site={siteConfig}
32
27
  >
33
28
  <TaxonomyList
34
29
  name={name}
35
30
  eyebrow="Stack"
36
31
  displayName={displayName}
37
- lede={`Browse open-source projects in this directory built with ${displayName}.`}
38
- records={stackRecords}
32
+ lede={`Browse ${itemLabelPlural()} in this directory built with ${displayName}.`}
33
+ records={model.records}
39
34
  />
40
- </BaseLayout>
35
+ </BaseLayout>
@@ -7,18 +7,21 @@
7
7
  import siteConfig from "@grove/generated/site-config.json";
8
8
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
9
9
  import StackGrid from "@grove-dev/astro/components/StackGrid.astro";
10
- import { getTaxonomyIndexModel, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
10
+ import { getTaxonomyIndexModel, getTaxonomyIndexSeo, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
11
11
 
12
12
  const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
13
13
  // Uncapped: the index page lists EVERY stack (the homepage grid's
14
14
  // 12-item cap is a homepage layout choice, not a data truth).
15
15
  const { stacks } = getTaxonomyIndexModel();
16
16
  const itemNoun = { singular: itemLabel(), plural: itemLabelPlural() };
17
+ const seo = getTaxonomyIndexSeo("stacks", siteConfig);
17
18
  ---
18
19
 
19
20
  <BaseLayout
20
- title={`Stacks — ${siteConfig.name}`}
21
- description={`Browse ${itemLabelPlural()} in ${siteConfig.name} by technology stack.`}
21
+ title={seo.title}
22
+ description={seo.description}
23
+ image={seo.image}
24
+ jsonLd={seo.jsonLd}
22
25
  site={siteConfig}
23
26
  >
24
27
  <StackGrid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grove-dev/cli",
3
- "version": "0.5.4",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "description": "Grove CLI — scaffolds Grove-powered spaces and orchestrates @grove-dev/core commands.",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "lighthouse": "^12.8.2",
48
48
  "typescript": "^5.9.3",
49
49
  "yaml": "^2.6.0",
50
- "@grove-dev/core": "0.5.4"
50
+ "@grove-dev/core": "0.6.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "tsx": "^4.23.0"