Some checks failed
Main Confidence / confidence (push) Failing after 43s
## Summary - implement the website-only core IA for Spec 215 with canonical Home, Product, Trust, Changelog, Contact, Privacy, and Imprint routes - reduce primary navigation to the core buyer journey, retain legal/supporting pages as secondary surfaces, and redirect `/security-trust` to `/trust` - add route metadata, sitemap/canonical handling, changelog publishing, and updated smoke coverage for the new IA contract ## Testing - `corepack pnpm build:website` - `cd apps/website && corepack pnpm exec playwright test` - integrated browser smoke validation for core routes, secondary routes, `/security-trust -> /trust`, hidden optional routes, mobile nav, and Trust/Changelog to Contact paths ## Notes - keeps all changes local to `apps/website` and the Spec 215 artifacts - preserves the website working contract with no `apps/platform` runtime coupling Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #252
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import { glob } from 'astro/loaders';
|
|
import { defineCollection, z } from 'astro:content';
|
|
|
|
const baseContentSchema = z.object({
|
|
title: z.string(),
|
|
description: z.string(),
|
|
publishedAt: z.coerce.date().optional(),
|
|
});
|
|
|
|
const changelogSchema = baseContentSchema.extend({
|
|
draft: z.boolean().default(false),
|
|
publishedAt: z.coerce.date(),
|
|
});
|
|
|
|
const optionalContentSchema = baseContentSchema.extend({
|
|
draft: z.boolean().default(false),
|
|
});
|
|
|
|
const editorialInventorySchema = baseContentSchema.extend({
|
|
draft: z.boolean().default(true),
|
|
});
|
|
|
|
export const collections = {
|
|
articles: defineCollection({
|
|
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/articles' }),
|
|
schema: editorialInventorySchema,
|
|
}),
|
|
changelog: defineCollection({
|
|
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/changelog' }),
|
|
schema: changelogSchema,
|
|
}),
|
|
resources: defineCollection({
|
|
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/resources' }),
|
|
schema: optionalContentSchema,
|
|
}),
|
|
};
|