HifiPlanet-Website/hifi-src/src/components
Maaxxs 5f1d4e1092 Add CMS v1: editable business identity and legal pages
Phase 5 of the dashboard roadmap. Business-facing data that was
previously hard-coded (and, for address/hours, duplicated three
independent ways across Footer.jsx, ContactPage.jsx, and the i18n
strings) is now stored in app_settings and editable under Website
settings: logo (light/dark variants, falling back to the bundled
defaults until set), street/zip/city, and a day-by-day business_hours
editor. Footer.jsx and ContactPage.jsx now share one open/closed and
hours-formatting implementation (new utils/businessHours.js) instead
of three separate hard-coded representations of the same thing.

New legal_pages table (impressum/datenschutz/agb) + PageContentController
replaces the three fully hard-coded React pages with fetched, admin-
editable HTML - built-in defaults matching the original page content
kick in until an admin saves anything, so a fresh install isn't blank.
Reuses the Phase 4 RichTextEditor (extended with a heading toggle and
inline-code toggle, since the legal text needs both) via a new
"Rechtstexte" tab in Settings. Legal content lives only in DB and is
authored exclusively by logged-in admins, so dangerouslySetInnerHTML
here doesn't take untrusted input.

IMAGE_COLUMNS in SettingsController (export/import) is now table =>
array of columns instead of table => one column, since app_settings
has three image columns (hero/logo/logo_dark) - this also retroactively
fixes hero_image_path never having been wired into export/import at
all. app_settings and legal_pages both got TABLE_COLUMNS/IMPORT_SECTIONS
entries so they round-trip through a hoster-migration export like
everything else.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 02:03:59 +02:00
..
Accordion.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
AdminLayout.jsx Address second round of client feedback 2026-07-18 12:51:10 +02:00
CookieConsentBanner.jsx Add Google Analytics integration with consent-gated loading 2026-07-07 01:32:44 +02:00
CustomCursor.jsx Add a site-wide custom cursor in the logo's orbital motif 2026-07-09 04:54:56 +02:00
DynamicIcon.jsx Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
ExternalEmbed.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
Footer.jsx Add CMS v1: editable business identity and legal pages 2026-09-09 02:03:59 +02:00
GoogleAnalytics.jsx Add Google Analytics integration with consent-gated loading 2026-07-07 01:32:44 +02:00
IconPicker.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
ImageUploadField.jsx Add remove-image button and actually delete orphaned upload files 2026-09-09 01:32:40 +02:00
Lightbox.jsx Add German/English language toggle for the storefront 2026-07-06 21:51:32 +02:00
MaintenanceBypassBanner.jsx Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
MaintenanceNotice.jsx Add German/English language toggle for the storefront 2026-07-06 21:51:32 +02:00
Navbar.jsx Add CMS v1: editable business identity and legal pages 2026-09-09 02:03:59 +02:00
ProtectedRoute.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
PublicLayout.jsx Add CMS v1: editable business identity and legal pages 2026-09-09 02:03:59 +02:00
RequirePermission.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
Reveal.jsx Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
RichTextEditor.jsx Add CMS v1: editable business identity and legal pages 2026-09-09 02:03:59 +02:00
ScrollProgress.jsx Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
ScrollToTop.jsx Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
SetupGate.jsx Redesign navbar mobile menu and rework site color palette 2026-07-06 16:21:48 +02:00
StarRating.jsx Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
TestimonialSlider.jsx Fix wildly uneven testimonial card heights, add avatar polish 2026-07-21 01:54:07 +02:00
ThemeToggle.jsx Add German/English language toggle for the storefront 2026-07-06 21:51:32 +02:00