# VIPO Granite Limited — Milestone 0.4.0

**Scope:** A self-hosted Laravel 13 CMS with comprehensive front-end content control, public documentation, stone media gallery and safer edits. Preserves VIPO's official logo, blue/red palette, previously selected icons, and Manrope/DM Sans defaults.

## New capabilities

1. **Editable public page content:** The CMS `Edit website pages` screen exposes grouped headline, body text, section visibility, photo, legal-copy and CTA fields for the homepage, Products, Services, Gallery, Projects, About, Blogs, Contact, Quote, Privacy, Terms and shared header/footer. Product and service detail-page guidance and FAQs are also configurable on their respective overview page editors.
2. **SEO editor:** Every editable overview has unique optional SEO title and description fields. Product, service and article detail pages retain their own SEO metadata controls. Static/default titles remain page-specific. Duplicate saved SEO metadata across page-copy entries is rejected. Sitemap includes only intended public pages and published collection entries.
3. **Typography system:** Heading, body and main-menu fonts selectable from Manrope, DM Sans, Sintony, Plus Jakarta Sans, Urbanist and Inter; font weight and pixel sizes validated server-side. Blue/red branding and responsive controls preserved.
4. **Managed gallery:** Admin/editor batch upload of up to 12 images/videos, product association, caption, per-file alt text/title, sort order, draft/published status. Public `/gallery` supports product filters, lightbox-friendly linked photos, controlled video playback and the optional homepage preview. Uploaded media is retained when its listing is deleted.
5. **Products and Services dropdowns:** Main menu now populates each submenu directly from published product and service entries; new links appear automatically. The Products submenu also links to Gallery.
6. **Testimonials appear promptly:** Homepage review section displays when one or more authentic, consent-confirmed, published reviews exist, without a fixed minimum of seven. Unapproved/draft reviews remain hidden.
7. **Roles:** Admin can manage user/editor access and private quote inquiries. Content editor can manage public content, design and media, but cannot open private inquiries, exports or user administration.
8. **Public `/docs`:** In-depth, no-login user guide covers editing all components, media safety, SEO, testimonials, admin roles, quote workflow, hosting/upgrade procedures and troubleshooting. Excluded from sitemap; meta robots and `X-Robots-Tag` both use `noindex, nofollow, noarchive, nosnippet`.
9. **Change confirmation & unsaved warnings:** Every administrator/editor write request now opens a modal before posting, including deletions, publication changes, section/page text changes, typography, gallery and staff-access changes. Cancel leaves data untouched; unsaved form data causes browser leave warning. Destructive actions preserve uploaded originals where supported, but DB backup remains essential.
10. **Route hardening:** The quote thank-you page now uses the same shared view context as the rest of the site, avoiding missing variables; project inspiration cards link to the working Services listing instead of assuming fixed database slugs.

## Upgrade from 0.3.0

Back up existing `.env`, database and `storage/app` first. Keep those during replacement. With PHP 8.3+ and Composer installed:

```bash
composer install --no-dev --optimize-autoloader
php artisan optimize:clear
php artisan migrate --force
php artisan db:seed --class=VipoNavigationSeeder --force
php artisan storage:link
php artisan optimize
```

Update the web server's HTTPS configuration as needed. Ensure the document root is the Laravel project's `public/` directory. The frontend production bundle is already compiled in `public/build/`. On a first installation, see `README.md` for environment configuration and secure administrator creation.

## Manual smoke checks on your hosting

- Public `/docs` opens in a private browser session, contains a robots noindex meta, returns `X-Robots-Tag: noindex, nofollow, noarchive, nosnippet` and is **not** in `/sitemap.xml`.
- Public home, Products, Gallery, Services, Projects, About, Blogs, Contact, Quote, Privacy and Terms all load normally. A valid quote redirects to `/quote/thanks` with a confirmation message.
- Menu Products and Services dropdowns work using mouse, keyboard, and mobile toggle; published new entries appear as links, draft entries do not.
- Staff can change homepage hero text, image, a FAQ, and one shared footer/CTA field; confirm the changes and check public rendering. Revert a field from the editor and verify the original returns.
- Site-wide typeface and font size change as selected without clipping the mobile menu.
- Gallery uploads 2+ images in one request and MP4 video in another. Draft media stays hidden; published media appears publicly and in homepage preview. Upload failure messages are understandable.
- A real authorised customer testimonial shows on home immediately after first permission-approved publication; draft/unconsented testimonials do not.
- Deleting media/entries and updating text or user access opens a confirmation dialog. Cancel must leave content unchanged; leaving an unsaved editor form produces the browser's standard warning.
- Editors receive HTTP 403 for `/admin/inquiries` and `/admin/editors`; administrators can see them. Test with separate accounts.
- Verify redirects from `/materials`, `/applications`, `/journal`, and old detail URLs.

## Verification status

This package was checked using Node/Vite production asset compilation, a PHP syntax parser, Blade directive balancing, route reference audits and whitespace diagnostics. **PHP and Composer are not installed in this packaging environment**, so actual `php artisan test` and HTTP end-to-end testing must be executed in a PHP-capable environment before public launch. See feature tests in `tests/Feature/VipoWebsiteTest.php` and run `php artisan test` after setup. Production correctness also requires your hosting's upload, database, SMTP, SSL and file-permissions configuration.

**Editorial note:** No customer identities, testimonials or completed VIPO projects are invented or auto-published. Stock design photos are labelled as illustrative where used. Review the Privacy Notice and Terms for your actual operations before launch.
