# Theme Catalogue

## Package docs status

This page is generated from package source documentation in `the Capell packages repository` and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.

| Field | Value |
| --- | --- |
| Composer package | `capell-app/theme-catalogue` |
| Package slug | `theme-catalogue` |
| Product group | Capell Themes |
| Tier | premium |
| Bundle | `themes` |
| Runtime contexts | `frontend` |
| Capell version | `^1.0` |
| Source repository | `capell-app/packages` |
| Source path | `packages/theme-catalogue` |
| Docs source | `packages/theme-catalogue/docs` |
| Manifest | [`capell.json`](https://github.com/capell-app/packages/edit/main/packages/theme-catalogue/capell.json) |

<!-- prettier-ignore-start -->

## What This Plugin Adds

Theme Catalogue is an **Available**, **No schema impact** Capell theme in the **Capell Themes** product group. It ships as `capell-app/theme-catalogue` and extends these surfaces: frontend.

Theme Catalogue adds taxonomy filters, dense listing grids, and featured-design sections for catalogue-style Capell sites. It supplies presentation templates only; Capell remains responsible for page and content data.

When the theme is selected, visitors see a reference-library presentation with taxonomy-led browsing. Editors continue to manage the underlying content through Capell.

Evidence: [`src/CatalogueThemeServiceProvider.php`](src/CatalogueThemeServiceProvider.php), [`resources/views/sections/taxonomy-grid-browser.blade.php`](resources/views/sections/taxonomy-grid-browser.blade.php), [`resources/views/sections/latest-designs.blade.php`](resources/views/sections/latest-designs.blade.php), [`capell.json`](capell.json), [`tests/Unit/CatalogueThemeDefinitionTest.php`](tests/Unit/CatalogueThemeDefinitionTest.php), [`tests/Unit/PublicOutputSafetyTest.php`](tests/Unit/PublicOutputSafetyTest.php).

Status details:

- Status: Available
- Tier: premium
- Bundle: themes
- Composer package: `capell-app/theme-catalogue`
- Namespace: `Capell\ThemeCatalogue`
- Theme key: `catalogue`

## Why It Matters

**For developers:** The service provider registers a Foundation-derived theme definition and maps catalogue section keys to package Blade views.

**For teams:** Teams can present large reference collections with consistent filters and listing views without maintaining a separate catalogue frontend.

Evidence: [`src/CatalogueThemeServiceProvider.php`](src/CatalogueThemeServiceProvider.php), [`tests/Unit/CatalogueThemeDefinitionTest.php`](tests/Unit/CatalogueThemeDefinitionTest.php), [`resources/views/sections/filter-hero.blade.php`](resources/views/sections/filter-hero.blade.php), [`resources/views/sections/taxonomy-grid-browser.blade.php`](resources/views/sections/taxonomy-grid-browser.blade.php), [`resources/views/sections/latest-designs.blade.php`](resources/views/sections/latest-designs.blade.php).

## Screens And Workflow

Screenshot contract: `docs/screenshots.json`.

<span class="theme-aware-image">
  <img class="theme-aware-image__light" src="screenshots/catalogue-homepage.png" alt="Catalogue Homepage" loading="lazy" />
  <img class="theme-aware-image__dark" src="screenshots/catalogue-homepage-dark.png" alt="Catalogue Homepage" loading="lazy" />
</span>

<span class="theme-aware-image">
  <img class="theme-aware-image__light" src="screenshots/catalogue-landing.png" alt="Catalogue Landing page" loading="lazy" />
  <img class="theme-aware-image__dark" src="screenshots/catalogue-landing-dark.png" alt="Catalogue Landing page" loading="lazy" />
</span>

Desktop, tablet, and mobile variants remain defined in the screenshot contract; this list groups them by workflow.

- Catalogue Homepage (frontend, required).
- Catalogue Landing page (frontend, required).
- Catalogue Filter archive (frontend, required).
- Catalogue Search results (frontend, required).
- Catalogue Contact form (frontend, required).
- Catalogue Page Not Found (frontend, optional).
- Catalogue Call To Action (frontend, optional).

## Technical Shape

- Service providers: `Capell\ThemeCatalogue\CatalogueThemeServiceProvider`.
- Actions: `InstallCatalogueThemeDemoAction`.
- Command signatures: `capell:theme-catalogue-demo`.
- Console command classes: `DemoCommand`.
- Manifest contributions: `admin-page: Capell\ThemeCatalogue\Manifest\ThemeManagementPageContribution`.
- Health checks: `Capell\ThemeCatalogue\Health\ThemeCatalogueHealthCheck`.
- Blade views: `packages/theme-catalogue/resources/views/page.blade.php`, `packages/theme-catalogue/resources/views/sections/blog-mission.blade.php`, `packages/theme-catalogue/resources/views/sections/content-listing.blade.php`, `packages/theme-catalogue/resources/views/sections/cta--browse.blade.php`, `packages/theme-catalogue/resources/views/sections/cta.blade.php`, `packages/theme-catalogue/resources/views/sections/editor-picks--alternating.blade.php`, `packages/theme-catalogue/resources/views/sections/editor-picks.blade.php`, `packages/theme-catalogue/resources/views/sections/faq-archives--two-column.blade.php`, `packages/theme-catalogue/resources/views/sections/faq-archives.blade.php`, `packages/theme-catalogue/resources/views/sections/filter-hero.blade.php`, `packages/theme-catalogue/resources/views/sections/footer.blade.php`, `packages/theme-catalogue/resources/views/sections/hero.blade.php`, `and 9 more`.
- Cache tags: `theme-catalogue`.

## Data Model

This theme has no schema impact. It relies on core Capell site, page, locale, and theme records instead of declaring package-owned tables.

## Install Impact

- Required packages: `capell-app/core`, `capell-app/theme-foundation`, `capell-app/frontend`.
- Admin navigation: declares `admin-page: ThemeManagementPageContribution`; each Filament page or resource controls its own navigation visibility.
- Admin/editor extensions: none declared.
- Permissions: none declared in `capell.json`.
- Public routes: none declared.
- Database changes: no package migrations declared.
- Config: no package config files.
- Settings: no package settings declared.
- Queues or schedules: none declared.
- Cache tags: `theme-catalogue`.
- Commands: `capell:theme-catalogue-demo`.

## Common Pitfalls

- Keep required Capell packages on compatible v4 releases: `capell-app/core`, `capell-app/theme-foundation`, `capell-app/frontend`.
- Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.
- Custom write integrations must preserve invalidation for `theme-catalogue` cache tags.

## Troubleshooting

| Symptom | Likely cause | Check | Fix |
| --- | --- | --- | --- |
| Package surface is missing after install | Provider or manifest is not loaded | Confirm `capell.json`, package `composer.json`, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Public output leaks unexpected state | Render data, cache variation, or authoring boundary has regressed | Check public Blade, cache tags, and public-output safety tests | Move data loading out of Blade and rerun the package public-output tests |

## Quick Start

1. Install the package: `composer require capell-app/theme-catalogue`.
2. No package-specific setup command or migrations are declared.
3. Open the Catalogue Homepage and confirm the public output renders without admin state.

## Next Steps

- [Package docs](README.md)
- [Overview](overview.md)
- [Troubleshooting](#troubleshooting)
- [Screenshot contract](screenshots.json)
- [Marketplace assets](assets/marketplace/)
- [Capell content language plan](../../docs/CONTENT_LANGUAGE_PLAN.md)
- [Capell documentation design system](../../docs/DESIGN_SYSTEM.md)
- [Capell and package ERD notes](../../docs/erd/capell-and-package-erds.md)
- Related packages: [Theme Foundation](../theme-foundation/README.md), [Newsletter](../newsletter/README.md).
- Focused tests: `vendor/bin/pest packages/theme-catalogue/tests --configuration=phpunit.xml`.

<!-- prettier-ignore-end -->