@grove-dev/cli 0.5.0-next.0 → 0.5.0

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.
Files changed (36) hide show
  1. package/dist/collection-cli.d.ts +2 -1
  2. package/dist/collection-cli.d.ts.map +1 -1
  3. package/dist/collection-cli.js +33 -25
  4. package/dist/collection-cli.js.map +1 -1
  5. package/dist/index.js +10 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/package.json +1 -1
  8. package/dist/site/data/taxonomy/licenses.yml +0 -8
  9. package/dist/site/data/taxonomy/topics.yml +29 -0
  10. package/dist/site/grove.config.ts +9 -3
  11. package/dist/site/package.json +3 -3
  12. package/dist/site/public/icons/platforms/android.svg +1 -1
  13. package/dist/site/public/icons/platforms/chrome.svg +1 -1
  14. package/dist/site/public/icons/platforms/ios.svg +1 -1
  15. package/dist/site/public/icons/platforms/ubuntu.svg +1 -1
  16. package/dist/site/public/icons/platforms/web.svg +4 -4
  17. package/dist/site/public/icons/platforms/windows.svg +5 -5
  18. package/dist/site/public/icons/stacks/go.svg +1 -1
  19. package/dist/site/public/icons/stacks/python.svg +1 -1
  20. package/dist/site/public/logo.svg +16 -0
  21. package/dist/site/src/components/PipelineStrip.astro +121 -0
  22. package/dist/site/src/components/TaxonomyList.astro +40 -42
  23. package/dist/site/src/pages/404.astro +18 -19
  24. package/dist/site/src/pages/[slug]/[recordSlug].astro +13 -4
  25. package/dist/site/src/pages/[slug]/index.astro +83 -65
  26. package/dist/site/src/pages/about.astro +67 -125
  27. package/dist/site/src/pages/categories/index.astro +30 -0
  28. package/dist/site/src/pages/collections/[slug].astro +4 -0
  29. package/dist/site/src/pages/collections/index.astro +5 -1
  30. package/dist/site/src/pages/contributors.astro +12 -10
  31. package/dist/site/src/pages/empty.astro +19 -3
  32. package/dist/site/src/pages/index.astro +24 -10
  33. package/dist/site/src/pages/stacks/index.astro +32 -0
  34. package/dist/site/src/pages/submit.astro +29 -16
  35. package/dist/site/src/styles/global.css +6 -11
  36. package/package.json +2 -2
@@ -2,42 +2,39 @@
2
2
  /**
3
3
  * About page — generic.
4
4
  *
5
- * Mirrors the openapps section structure: breadcrumb, header with
6
- * two-line intro, then a stack of cards (Why, Value, Data, Generic)
7
- * followed by a CTA row. The copy is generic — references "directory",
8
- * "record", "framework" — so it works for any blueprint.
5
+ * A continuous narrative in three movements: what this site is →
6
+ * how it's built (the file-first pipeline: source files → Grove →
7
+ * multiple outputs → ongoing sync) → how to contribute. Prose
8
+ * sections, not a stack of cards — the reading experience is the
9
+ * point here.
9
10
  *
10
- * Side-by-side comparison with the older "Why" copy:
11
- * - Old: "A directory of real open-source apps. Started from
12
- * the Open Source Flutter Apps collection…"
13
- * - New: "A growing community knowledge site. A curated, health-
14
- * aware developer directory…"
15
- *
16
- * The Tailwind card and button utilities match the
17
- * rest of the framework, and the data fields it references
18
- * (`siteConfig.tagline`, `siteConfig.repoUrl`) all flow from the
19
- * site config — no hardcoded brand or copy.
11
+ * The copy is generic — references "directory", "record",
12
+ * "repository" — so it works for any blueprint, and every dynamic
13
+ * value (`siteConfig.tagline`, `siteConfig.repoUrl`, item labels)
14
+ * flows from the site config.
20
15
  */
21
16
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
22
17
  import Container from "@grove-dev/astro/layouts/Container.astro";
23
18
  import siteConfig from "@grove/generated/site-config.json";
24
- import { getPageContentHtml, indexSlug, itemLabel } from "@grove-dev/astro/server";
19
+ import { getPageContentHtml, indexSlug, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
20
+ import { buttonClass } from "@grove-dev/astro/ui/button";
25
21
 
26
22
  const githubUrl = siteConfig.repoUrl;
27
23
  const title = `About — ${siteConfig.name}`;
28
24
  const description = `${siteConfig.tagline} Built with Grove.`;
29
25
  const slug = indexSlug();
30
26
  const item = itemLabel();
27
+ const items = itemLabelPlural();
31
28
  const pageContentHtml = getPageContentHtml("about");
32
29
  ---
33
30
 
34
31
  <BaseLayout title={title} description={description} site={siteConfig}>
35
32
  <Container size="narrow">
36
33
  <article class="py-12 sm:py-16">
37
- <nav class="text-2xs text-ink-500 dark:text-ink-400" aria-label="Breadcrumb">
38
- <a href="/" class="hover:text-ink-900 dark:hover:text-ink-100">Home</a>
34
+ <nav class="text-2xs text-muted-foreground" aria-label="Breadcrumb">
35
+ <a href="/" class="hover:text-foreground">Home</a>
39
36
  <span class="mx-1.5 text-ink-300 dark:text-ink-700">/</span>
40
- <span class="text-ink-700 dark:text-ink-300">About</span>
37
+ <span class="text-foreground">About</span>
41
38
  </nav>
42
39
 
43
40
  {pageContentHtml ? (
@@ -45,142 +42,87 @@ const pageContentHtml = getPageContentHtml("about");
45
42
  ) : (
46
43
  <>
47
44
  <header class="mt-5">
48
- <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
45
+ <span class="text-2xs font-medium uppercase tracking-wider text-muted-foreground">
49
46
  About
50
47
  </span>
51
- <h1 class="mt-1 m-0 text-[1.75rem] sm:text-[2.25rem] font-semibold tracking-[-0.02em] leading-[1.1] text-ink-900 dark:text-ink-100">
52
- A growing community knowledge site.
48
+ <h1 class="mt-1 m-0 text-[1.75rem] sm:text-[2.25rem] font-semibold tracking-[-0.02em] leading-[1.1] text-foreground">
49
+ A directory that lives in files.
53
50
  </h1>
54
- <p class="mt-4 m-0 text-[1rem] sm:text-[1.0625rem] leading-relaxed text-ink-700 dark:text-ink-200 max-w-[62ch]">
55
- {siteConfig.name} is a curated, health-aware developer directory —
56
- built so you can find, compare, run, study, and contribute to
57
- open-source {item}s.
58
- </p>
59
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-500 dark:text-ink-400 max-w-[62ch]">
60
- A growing list, forked from the original. Same shape, same
61
- spirit, fresh data.
51
+ <p class="mt-4 m-0 text-[1rem] sm:text-[1.0625rem] leading-relaxed text-foreground max-w-[62ch]">
52
+ {siteConfig.name} is a curated, health-aware directory of open-source
53
+ {items} — and every listing you see here is a plain YAML file in a
54
+ public repository. This website is one of the outputs generated from
55
+ those files.
62
56
  </p>
63
57
  </header>
64
58
 
65
- <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-8 p-5 sm:p-6">
66
- <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
67
- Why
68
- </span>
69
- <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
70
- A curated starting point
59
+ <section class="mt-10">
60
+ <h2 class="m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground">
61
+ Why it exists
71
62
  </h2>
72
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
73
- GitHub search and README lists optimize for the repository
74
- name and description. They rarely tell you whether a project
75
- is a real {item} or a demo, which stack it uses beyond the
76
- headline, how active it really is, or whether it has a clear
77
- license.
63
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
64
+ GitHub search and README lists optimize for the repository name and
65
+ description. They rarely tell you whether a project is a real {item}
66
+ or a demo, which stack it uses beyond the headline, how active it
67
+ really is, or whether it has a clear license.
78
68
  </p>
79
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
80
- {siteConfig.name} turns that flat list into a structured,
81
- health-aware index. Each entry carries the metadata a developer
82
- actually needs to decide whether to open the repo.
69
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
70
+ Each entry here carries the metadata a developer actually needs
71
+ before opening the repo: stack, platforms, license, activity and
72
+ health signals, plus curated notes — best for, why listed, caveats.
73
+ Everything links back to real, runnable source. No SEO spam, no
74
+ affiliate farms, no broken links.
83
75
  </p>
84
76
  </section>
85
77
 
86
- <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
87
- <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
88
- Why real {item}s
89
- </span>
90
- <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
91
- Real, runnable source
78
+ <section class="mt-10">
79
+ <h2 class="m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground">
80
+ How it's built
92
81
  </h2>
93
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
94
- Every {item} links back to its source. Skim, fork, learn — no
95
- paywalls, no broken download links.
82
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
83
+ The source of truth is a folder of files: one YAML record per
84
+ {item}, taxonomy files for categories, stacks, platforms, and
85
+ licenses, and Markdown for long-form notes. <a href="https://github.com/tortuvshin/grove" class="font-medium underline decoration-border underline-offset-2 hover:decoration-ring">Grove</a> validates
86
+ those files, joins in synced GitHub metadata, and publishes them as
87
+ multiple outputs — this website with its search and filters, a
88
+ generated README, an <code class="font-mono text-[0.875em]">llms.txt</code> index
89
+ for machines, and sitemap/SEO data.
96
90
  </p>
97
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
98
- The directory is hand-curated — no SEO spam, no affiliate
99
- farms, no broken links.
91
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
92
+ Automation keeps the outputs current: weekly syncs refresh stars,
93
+ activity, and contributor data, and every change to a source file
94
+ rebuilds everything derived from it. There is no database and no
95
+ server — the output is static HTML, and the content stays portable
96
+ in files you can fork.
100
97
  </p>
101
98
  </section>
102
99
 
103
- <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
104
- <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
105
- What you get
106
- </span>
107
- <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
108
- What every page gives you
100
+ <section class="mt-10">
101
+ <h2 class="m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground">
102
+ How to contribute
109
103
  </h2>
110
- <ul class="m-0 mt-3 list-none space-y-1.5 p-0 text-[0.9375rem] text-ink-700 dark:text-ink-200">
111
- <li class="flex items-baseline gap-2">
112
- <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
113
- <span>Stack, category, and architecture at a glance</span>
114
- </li>
115
- <li class="flex items-baseline gap-2">
116
- <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
117
- <span>Supported platforms and license</span>
118
- </li>
119
- <li class="flex items-baseline gap-2">
120
- <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
121
- <span>Activity and status — last commit, monthly history, health signals</span>
122
- </li>
123
- <li class="flex items-baseline gap-2">
124
- <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
125
- <span>License, stars, and curation tier</span>
126
- </li>
127
- <li class="flex items-baseline gap-2">
128
- <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
129
- <span>Curated notes: best for, why listed, caveats</span>
130
- </li>
131
- <li class="flex items-baseline gap-2">
132
- <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
133
- <span>Filters that respect you — search by stack, platform, license, or status</span>
134
- </li>
135
- </ul>
136
- </section>
137
-
138
- <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
139
- <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
140
- Generic by design
141
- </span>
142
- <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
143
- Generic by design
144
- </h2>
145
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
146
- The framework supports three blueprints: project-directory,
147
- resource-hub, and ecosystem-map. Each can be configured
148
- without touching the components — pages, schema, and
149
- routes all derive from <code class="font-mono">grove.config.ts</code>.
150
- </p>
151
- </section>
152
-
153
- <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
154
- <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
155
- Free to fork, free to extend
156
- </span>
157
- <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
158
- Free to fork, free to extend
159
- </h2>
160
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
161
- The full data lives in this repository as plain YAML. The
162
- static output is plain HTML. No database, no JavaScript
163
- framework, no CDN with sticky sessions.
164
- </p>
165
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
166
- Anyone can suggest a new {item}, fix a typo, or improve the
167
- metadata through a pull request.
104
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
105
+ Because the content is files, contributing is a pull request: add a
106
+ YAML record for a new {item}, fix a typo, or improve the metadata
107
+ behind an existing listing. The <a href="/submit" class="font-medium underline decoration-border underline-offset-2 hover:decoration-ring">submit page</a> drafts
108
+ the YAML for you from a repository URL, and every submission is
109
+ reviewed against the curation bar before it lands.
168
110
  </p>
169
111
  </section>
170
112
 
171
- <section class="mt-8 flex flex-wrap items-center gap-3">
172
- <a href={`/${slug}`} class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90">Browse the directory</a>
113
+ <section class="mt-10 flex flex-wrap items-center gap-3">
114
+ <a href={`/${slug}`} class={buttonClass("primary", "sm")}>Browse the directory</a>
173
115
  {githubUrl && (
174
116
  <a
175
117
  href={githubUrl}
176
118
  target="_blank"
177
119
  rel="noopener noreferrer"
178
- class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 border-border bg-secondary text-foreground hover:bg-accent"
120
+ class={buttonClass("secondary", "sm")}
179
121
  >
180
122
  View on GitHub
181
123
  </a>
182
124
  )}
183
- <a href="/submit" class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground">Submit a {item} →</a>
125
+ <a href="/submit" class={buttonClass("ghost", "sm")}>Submit a {item} →</a>
184
126
  </section>
185
127
  </>
186
128
  )}
@@ -0,0 +1,30 @@
1
+ ---
2
+ /**
3
+ * Categories index — every category with live counts. Linked from the
4
+ * default header nav; each tile opens the browse page pre-filtered to
5
+ * the category (detail pages live at `/categories/<id>/`).
6
+ */
7
+ import siteConfig from "@grove/generated/site-config.json";
8
+ import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
9
+ import CategoryGrid from "@grove-dev/astro/components/CategoryGrid.astro";
10
+ import { getTaxonomyIndexModel, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
11
+
12
+ const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
13
+ const { categories } = getTaxonomyIndexModel();
14
+ const itemNoun = { singular: itemLabel(), plural: itemLabelPlural() };
15
+ ---
16
+
17
+ <BaseLayout
18
+ title={`Categories — ${siteConfig.name}`}
19
+ description={`Browse every category of ${itemLabelPlural()} in ${siteConfig.name}.`}
20
+ site={siteConfig}
21
+ >
22
+ <CategoryGrid
23
+ categories={categories}
24
+ pathPrefix={`/${slug}`}
25
+ itemLabelPlural={itemLabelPlural()}
26
+ itemNoun={itemNoun}
27
+ headingLevel={1}
28
+ hrefFor={(categorySlug: string) => `/categories/${categorySlug}`}
29
+ />
30
+ </BaseLayout>
@@ -33,5 +33,9 @@ const model = getCollectionPageModel(collection, entries, collections);
33
33
  <CollectionPage
34
34
  model={model}
35
35
  eyebrow={model.collection.kind === "curated" ? "Curated collection" : "Generated collection"}
36
+ countNoun={{
37
+ singular: siteConfig.blueprintConfig?.labelSingular ?? "item",
38
+ plural: siteConfig.blueprintConfig?.labelPlural ?? "items",
39
+ }}
36
40
  />
37
41
  </BaseLayout>
@@ -15,11 +15,15 @@ const entries = recordsToCollectionEntries(
15
15
  siteConfig,
16
16
  );
17
17
  const model = getCollectionIndexModel(collections, entries);
18
+ const countNoun = {
19
+ singular: siteConfig.blueprintConfig?.labelSingular ?? "item",
20
+ plural: siteConfig.blueprintConfig?.labelPlural ?? "items",
21
+ };
18
22
  ---
19
23
  <BaseLayout
20
24
  title="Collections"
21
25
  description="Curated and generated directories of related items."
22
26
  site={siteConfig}
23
27
  >
24
- <CollectionIndex model={model} />
28
+ <CollectionIndex model={model} headingLevel={1} countNoun={countNoun} />
25
29
  </BaseLayout>
@@ -13,9 +13,10 @@
13
13
  */
14
14
  import siteConfig from "@grove/generated/site-config.json";
15
15
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
16
+ import EmptyState from "@grove-dev/astro/ui/EmptyState.astro";
16
17
  import { getContributorsPageModel } from "@grove-dev/astro/server";
17
18
 
18
- const { contributors: sorted, total, title, description, contributorsGraphHref } =
19
+ const { contributors: sorted, total, title, description, contributorsGraphHref, showContributionCount } =
19
20
  getContributorsPageModel(siteConfig);
20
21
  ---
21
22
 
@@ -50,14 +51,15 @@ const { contributors: sorted, total, title, description, contributorsGraphHref }
50
51
  </section>
51
52
 
52
53
  {sorted.length === 0 ? (
53
- <section class="py-12 sm:py-16">
54
+ <section class="py-4">
54
55
  <div class="mx-auto w-full max-w-container px-5 pb-16 sm:px-7">
55
- <div class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors flex flex-col items-center gap-3 p-8 text-center">
56
- <p class="m-0 text-sm text-ink-500 dark:text-ink-400">
57
- No contributors synced yet. Once the first sync runs, every
58
- contributor avatar lands here.
59
- </p>
60
- </div>
56
+ <EmptyState
57
+ title="No contributors synced yet"
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.`}
59
+ action={contributorsGraphHref
60
+ ? { label: "View contributors on GitHub", href: contributorsGraphHref }
61
+ : undefined}
62
+ />
61
63
  </div>
62
64
  </section>
63
65
  ) : (
@@ -78,7 +80,7 @@ const { contributors: sorted, total, title, description, contributorsGraphHref }
78
80
  href={href}
79
81
  target="_blank"
80
82
  rel="noopener noreferrer"
81
- class="group rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors flex flex-col items-center gap-2 p-3 text-center no-underline hover:border-ink-300 dark:hover:border-ink-700"
83
+ class="group rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card shadow-none transition-colors flex flex-col items-center gap-2 p-3 text-center no-underline hover:border-ink-300 dark:hover:border-ink-700"
82
84
  data-event="contributor_click"
83
85
  data-event-source="contributors_page"
84
86
  >
@@ -97,7 +99,7 @@ const { contributors: sorted, total, title, description, contributorsGraphHref }
97
99
  <span class="text-2xs text-ink-500 dark:text-ink-400">
98
100
  @{c.username}
99
101
  </span>
100
- {typeof c.contributions === "number" && (
102
+ {showContributionCount && typeof c.contributions === "number" && (
101
103
  <span class="font-mono text-2xs text-ink-400">
102
104
  {c.contributions.toLocaleString()} contributions
103
105
  </span>
@@ -1,8 +1,24 @@
1
1
  ---
2
+ /**
3
+ * Empty-state fixture (`audit.pages` type "empty") — renders the
4
+ * shared `EmptyState` primitive so the audit sample represents what
5
+ * visitors actually see when a directory has nothing to show.
6
+ */
2
7
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
8
+ import EmptyState from "@grove-dev/astro/ui/EmptyState.astro";
3
9
  import siteConfig from "@grove/generated/site-config.json";
10
+
11
+ const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
4
12
  ---
5
13
  <BaseLayout title="No results" description="Empty state fixture." site={siteConfig}>
6
- <h1>No results</h1>
7
- <p>There are no items to show right now.</p>
8
- </BaseLayout>
14
+ <section class="py-16 sm:py-24">
15
+ <div class="mx-auto w-full max-w-narrow px-5 sm:px-7">
16
+ <h1 class="sr-only">No results</h1>
17
+ <EmptyState
18
+ title="Nothing to show right now"
19
+ description="This view has no records yet — new entries land here as soon as their source files are added to the repository."
20
+ action={{ label: `Browse ${slug}`, href: `/${slug}`, variant: "primary" }}
21
+ />
22
+ </div>
23
+ </section>
24
+ </BaseLayout>
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
15
15
  import Hero from "@grove-dev/astro/components/Hero.astro";
16
- import WhyThisExists from "@grove-dev/astro/components/WhyThisExists.astro";
16
+ import PipelineStrip from "../components/PipelineStrip.astro";
17
17
  import RecordSection from "@grove-dev/astro/components/RecordSection.astro";
18
18
  import StackGrid from "@grove-dev/astro/components/StackGrid.astro";
19
19
  import CategoryGrid from "@grove-dev/astro/components/CategoryGrid.astro";
@@ -56,9 +56,8 @@ const collectionTeaser = getCollectionTeaserModel(allCollections, teaserEntries,
56
56
  <Hero
57
57
  name={`Find ${itemPlural} you can actually`}
58
58
  tagline="run, study, and contribute to."
59
- description={description}
60
- eyebrow={`A directory of real curated ${itemPlural}`}
61
- eyebrowBadge="Beta"
59
+ description={`Every listing is a YAML file in a public repository — Grove publishes those files as this site, a README, and machine-readable outputs, and keeps them in sync.`}
60
+ eyebrow="Curated in plain files, published by Grove"
62
61
  stats={{
63
62
  totalApps: stats.apps,
64
63
  totalCategories: stats.categories,
@@ -74,15 +73,14 @@ const collectionTeaser = getCollectionTeaserModel(allCollections, teaserEntries,
74
73
  quickFilters={[
75
74
  { label: `Trending ${itemPlural}`, href: `/${slug}?label=hot` },
76
75
  { label: "Recently added", href: `/${slug}?sort=recently-added` },
77
- { label: "Established", href: `/${slug}?label=mature` },
76
+ { label: "How this site works", href: "#pipeline" },
78
77
  ]}
79
78
  ctas={[
80
79
  { label: `Browse ${itemPlural}`, href: `/${slug}`, variant: "primary" },
81
- { label: `Submit ${itemSingular}`, href: "/submit", variant: "outline" },
82
80
  ]}
83
81
  />
84
82
 
85
- <WhyThisExists />
83
+ <PipelineStrip repoUrl={siteConfig.repoUrl} />
86
84
 
87
85
  <RecordSection
88
86
  id="hot"
@@ -117,15 +115,31 @@ const collectionTeaser = getCollectionTeaserModel(allCollections, teaserEntries,
117
115
  viewAllLabel={`View all established`}
118
116
  />
119
117
 
120
- <StackGrid stacks={stacks} pathPrefix={`/${slug}`} itemLabelPlural={itemPlural} />
121
- <CollectionTeaser model={collectionTeaser} />
122
- <CategoryGrid categories={categories} pathPrefix={`/${slug}`} itemLabelPlural={itemPlural} />
118
+ <StackGrid
119
+ stacks={stacks}
120
+ pathPrefix={`/${slug}`}
121
+ itemLabelPlural={itemPlural}
122
+ itemNoun={{ singular: itemSingular, plural: itemPlural }}
123
+ hrefFor={(stackSlug: string) => `/stacks/${stackSlug}`}
124
+ />
125
+ <CollectionTeaser
126
+ model={collectionTeaser}
127
+ countNoun={{ singular: itemSingular, plural: itemPlural }}
128
+ />
129
+ <CategoryGrid
130
+ categories={categories}
131
+ pathPrefix={`/${slug}`}
132
+ itemLabelPlural={itemPlural}
133
+ itemNoun={{ singular: itemSingular, plural: itemPlural }}
134
+ hrefFor={(categorySlug: string) => `/categories/${categorySlug}`}
135
+ />
123
136
 
124
137
  <ContributorsGrid
125
138
  contributors={contributors}
126
139
  total={contributors.length || undefined}
127
140
  viewAllHref={`/contributors`}
128
141
  viewAllLabel="Meet the community"
142
+ showContributionCount={siteConfig.contributors?.showContributionCount ?? true}
129
143
  />
130
144
 
131
145
  {siteConfig.stats?.originalRepo && (
@@ -0,0 +1,32 @@
1
+ ---
2
+ /**
3
+ * Stacks index — every stack with live counts. Linked from the
4
+ * default header nav; each tile opens the browse page pre-filtered to
5
+ * the stack (detail pages live at `/stacks/<id>/`).
6
+ */
7
+ import siteConfig from "@grove/generated/site-config.json";
8
+ import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
9
+ import StackGrid from "@grove-dev/astro/components/StackGrid.astro";
10
+ import { getTaxonomyIndexModel, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
11
+
12
+ const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
13
+ // Uncapped: the index page lists EVERY stack (the homepage grid's
14
+ // 12-item cap is a homepage layout choice, not a data truth).
15
+ const { stacks } = getTaxonomyIndexModel();
16
+ const itemNoun = { singular: itemLabel(), plural: itemLabelPlural() };
17
+ ---
18
+
19
+ <BaseLayout
20
+ title={`Stacks — ${siteConfig.name}`}
21
+ description={`Browse ${itemLabelPlural()} in ${siteConfig.name} by technology stack.`}
22
+ site={siteConfig}
23
+ >
24
+ <StackGrid
25
+ stacks={stacks}
26
+ pathPrefix={`/${slug}`}
27
+ itemLabelPlural={itemLabelPlural()}
28
+ itemNoun={itemNoun}
29
+ headingLevel={1}
30
+ hrefFor={(stackSlug: string) => `/stacks/${stackSlug}`}
31
+ />
32
+ </BaseLayout>
@@ -4,6 +4,7 @@ import { getSubmissionPageModel } from "@grove-dev/astro/server";
4
4
  import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
5
5
  import Container from "@grove-dev/astro/layouts/Container.astro";
6
6
  import SubmissionClient from "@grove-dev/astro/components/SubmissionClient.astro";
7
+ import { buttonClass } from "@grove-dev/astro/ui/button";
7
8
 
8
9
  const {
9
10
  singular,
@@ -17,6 +18,8 @@ const {
17
18
  existingSlugs,
18
19
  existingFullNames,
19
20
  platformOptions,
21
+ licenseOptions,
22
+ taxonomy,
20
23
  } = getSubmissionPageModel(siteConfig);
21
24
  const goodSubmissions = [
22
25
  ...(copy.good?.length ? copy.good : [
@@ -51,18 +54,17 @@ const pleaseAvoid = [
51
54
  </p>
52
55
  </div>
53
56
 
54
- <ol class="mt-6 grid grid-cols-1 gap-2 text-2xs sm:grid-cols-3 sm:gap-3" aria-label="Submission steps">
57
+ {/* One compact line, not three cards — on mobile the form
58
+ starts within the first viewport. */}
59
+ <ol class="mt-4 flex flex-wrap gap-x-6 gap-y-1.5 text-2xs text-muted-foreground" aria-label="Submission steps">
55
60
  {[
56
- ["1", "Paste a GitHub URL", "We'll pull the metadata automatically."],
57
- ["2", "Edit the draft", "Review the configured taxonomy and project details."],
58
- ["3", "Open a pull request", "Reviewers will validate and merge the record."],
59
- ].map(([number, heading, copy]) => (
60
- <li class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors flex items-start gap-2 p-3">
61
- <span class="mt-0.5 inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-ink-300 font-mono font-semibold text-ink-700 dark:border-ink-700 dark:text-ink-300">{number}</span>
62
- <div>
63
- <div class="font-medium text-ink-900 dark:text-ink-100">{heading}</div>
64
- <div class="text-ink-500 dark:text-ink-400">{copy}</div>
65
- </div>
61
+ ["1", "Paste a GitHub URL"],
62
+ ["2", "Review the draft"],
63
+ ["3", "Open a pull request"],
64
+ ].map(([number, heading]) => (
65
+ <li class="flex items-center gap-1.5">
66
+ <span class="inline-flex h-4.5 w-4.5 shrink-0 items-center justify-center rounded-full border border-border font-mono text-[10px] font-semibold text-foreground">{number}</span>
67
+ <span class="font-medium text-foreground">{heading}</span>
66
68
  </li>
67
69
  ))}
68
70
  </ol>
@@ -74,7 +76,7 @@ const pleaseAvoid = [
74
76
  <span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">GitHub URL</span>
75
77
  <div class="flex flex-col gap-2 sm:flex-row">
76
78
  <input id="repo-url" type="url" required placeholder="https://github.com/owner/repo" class="min-h-10 flex-1 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" />
77
- <button id="fetch-repo" type="button" class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-[var(--radius)] border border-transparent bg-primary px-3 text-sm font-medium leading-none text-primary-foreground no-underline outline-none transition-colors hover:bg-primary/90 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 min-h-10 justify-center">Generate draft</button>
79
+ <button id="fetch-repo" type="button" class={buttonClass("primary", "bare", "min-h-10 whitespace-nowrap px-3 text-sm")}>Generate draft</button>
78
80
  </div>
79
81
  <span class="text-2xs text-muted-foreground">The repository must be public. We never write to it.</span>
80
82
  </label>
@@ -124,13 +126,23 @@ const pleaseAvoid = [
124
126
  </fieldset>}
125
127
 
126
128
  {fields.tags && <label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Tags</span><input id="item-tags" type="text" placeholder="self-hosted, developer-tools, offline-first" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" /></label>}
129
+
130
+ {fields.license && licenseOptions.length > 0 && (
131
+ <label class="grid gap-1.5">
132
+ <span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">License</span>
133
+ <select id="item-license" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35">
134
+ <option value="">Detected from the repository if left empty</option>
135
+ {licenseOptions.map((option) => <option value={option.id}>{option.label}</option>)}
136
+ </select>
137
+ </label>
138
+ )}
127
139
  <label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Website</span><input id="item-website" type="url" placeholder="https://example.com" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" /></label>
128
140
  <label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Best for</span><textarea id="best-for" rows="3" class="min-h-10 resize-y rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" placeholder="One use case per line"></textarea></label>
129
141
  </div>
130
142
  </form>
131
143
 
132
144
  <aside class="flex flex-col gap-4 md:sticky md:top-24">
133
- <div class="rounded-[calc(var(--radius)+0.25rem)] border border-ink-200 bg-muted p-5 dark:border-ink-800">
145
+ <div class="rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card p-5">
134
146
  <h2 class="m-0 text-[0.9375rem] font-semibold text-ink-900 dark:text-ink-100">Submission criteria</h2>
135
147
  <p class="m-0 mt-1 text-2xs text-ink-500 dark:text-ink-400">Use this checklist before opening the draft.</p>
136
148
  <div class="mt-4 grid grid-cols-1 gap-4 text-2xs sm:grid-cols-2 lg:grid-cols-1 xl:grid-cols-2">
@@ -145,12 +157,12 @@ const pleaseAvoid = [
145
157
  </div>
146
158
  </div>
147
159
 
148
- <div class="flex min-h-[360px] flex-col rounded-[calc(var(--radius)+0.25rem)] border border-ink-200 bg-muted p-5 dark:border-ink-800">
160
+ <div class="flex min-h-[360px] flex-col rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card p-5">
149
161
  <div class="flex flex-wrap items-center justify-between gap-3">
150
162
  <h2 class="m-0 text-base font-semibold text-ink-900 dark:text-ink-100">YAML draft</h2>
151
163
  <div class="flex items-center gap-2">
152
- <button id="copy-yaml" type="button" class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-[var(--radius)] border border-border bg-secondary px-3 text-sm font-medium leading-none text-foreground no-underline outline-none transition-colors hover:bg-accent focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 pointer-events-none opacity-50" disabled>Copy YAML</button>
153
- <a id="open-pr-link" href="#" target="_blank" rel="noopener noreferrer" class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-[var(--radius)] border border-border bg-secondary px-3 text-sm font-medium leading-none text-foreground no-underline outline-none transition-colors hover:bg-accent focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 pointer-events-none opacity-50">Open PR draft</a>
164
+ <button id="copy-yaml" type="button" class={buttonClass("secondary", "sm", "whitespace-nowrap pointer-events-none opacity-50")} disabled>Copy YAML</button>
165
+ <a id="open-pr-link" href="#" target="_blank" rel="noopener noreferrer" class={buttonClass("secondary", "sm", "whitespace-nowrap pointer-events-none opacity-50")}>Open PR draft</a>
154
166
  </div>
155
167
  </div>
156
168
  <pre class="mt-4 min-h-0 flex-1 overflow-auto rounded-md border border-ink-200 bg-ink-50 p-3 text-xs leading-relaxed text-ink-800 dark:border-ink-800 dark:bg-ink-900/60 dark:text-ink-200"><code id="yaml-preview">Paste a GitHub URL to generate a draft.</code></pre>
@@ -166,5 +178,6 @@ const pleaseAvoid = [
166
178
  existingFullNames={existingFullNames}
167
179
  repoUrl={repoUrl}
168
180
  fields={fields}
181
+ taxonomy={taxonomy}
169
182
  />
170
183
  </BaseLayout>