Replace astro:content getCollection() reads in all 9 content pages with
src/lib/content-source.ts: Appwrite TablesDB (spaghet-home database on
appwrite.spaghet.io) first, bundled src/content/*.md fallback on a
cold-cache outage. Blog/project/legal detail pages flip from prerender
to SSR (content now arrives at request time); sitemap keeps every
detail URL via customPages computed from the bundled .md copies.
- src/lib/appwrite.ts: TablesDB service (node-appwrite), markdown
rendered through Astro's own satteri+shiki pipeline (dual-theme, same
config as astro.config.mjs) — article HTML verified byte-identical to
production. Public reads: tables grant read(any), no secret required.
60s in-process cache, stale-serving on refresh failure.
- src/lib/__tests__/appwrite.test.ts: 11 tests mocking the SDK boundary
(the SDK binds its own fetch, so global stubs do not intercept it).
- Draft posts now 302 to /blog and drop off listings/RSS/search at
request time instead of at build time.
- astro check: 0 errors; vitest: 94 pass; build clean; end-to-end
verified against live Appwrite and against a forced outage.
The /blog and /projects listings previously used byte-identical copies of the same
filtering island, which meant bugs like inconsistent AND-vs-OR tag semantics,
duplicate-case tags, and a missing empty state were duplicated across both.
This commit introduces `FilteredList`, a single shared Solid component that:
- Unifies tag, keyword, and sort filtering for both collections
- Seeds initial filter state from the SSR request URL to avoid hydration mismatches
- Syncs active filters into the address bar via `history.replaceState` so filtered
views survive refreshes and can be shared
- Restores filters on browser back/forward navigation (`popstate`)
- Case-folds and dedupes tags when parsing URL params
Filter logic (collectTags, filterEntries, sortKeys, URL param encoding) is extracted
into `src/lib/filters.ts` with full unit test coverage.
Replace @astrojs/tailwind with @tailwindcss/vite in the Astro config and lockfile to adopt Tailwind CSS v4 and simplify the build setup. Also update Markdown site content with current SpaghetAI/MarvinBlade infrastructure details.
Update README.md and astro.config.mjs to reflect the migration from
Appwrite to self-hosted infrastructure. Remove Appwrite-specific
environment variable schema from Astro config. Add .clinerules and
.cline to .gitignore.