HifiPlanet-Website/hifi/assets
Maaxxs a3767b1c0f Extend text styling to brand/model names and package text, add bold bullets
Rolls the generic text_styles mechanism out to three more areas (Phase 3/4
of the earlier text-styling plan): brands.name, car_models.name,
packages.description and packages.price_text. Registry entries reuse each
table's existing manage permission (brands.manage/models.manage/
packages.manage). Widgets are gated on an existing row (editingId in
Brands.jsx/Models.jsx, row.existing in Packages.jsx's batch editor), since
a newly-created row has no id yet to key a style on.

Added fieldStyle()/useTextStylesMap() to TextStylesContext.jsx alongside
the existing useTextStyle() - brand/model lists are open-ended, so styling
each one from inside a .map() can't call a hook per item (rules of hooks);
fieldStyle() does a plain lookup against the already-loaded styles map
instead. pkg.name stays unstyled (it's chosen from a fixed tier list, not
free text).

Deleting a brand cascades to its models and their packages in the
database, so BrandController/ModelController::destroy() now collect the
cascaded ids first and clean up their text_styles rows too (mirroring how
they already do this for orphaned uploaded images); SettingsController's
catalog reset endpoints get the same cleanup in bulk.

Separately: package descriptions can now mark individual bullet points
bold. Packages.jsx gained a "Fett" button that wraps the current textarea
selection in **markers** (one line per bullet is unchanged); the public
ModelPage.jsx renders those through a new BoldText.jsx component that
turns **text** into <strong> via a plain regex - no dangerouslySetInnerHTML,
since the only possible output is a <strong> tag. Product-name bullets
(scraped from the linked shop, not admin-authored) are unaffected.

Verified locally: registry rejects packages.name (not free text) and a
non-numeric id, and deleting a test brand correctly cascades text_styles
cleanup through its model and package.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:15:53 +02:00
..
apex-CFy2qup8.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
base-BKOm0Bib.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
bg-dark-DX_vTCv2.png Use the handoff's baked background images for the contact section 2026-07-20 07:24:59 +02:00
bg-light-C_7mxjWZ.png Use the handoff's baked background images for the contact section 2026-07-20 07:24:59 +02:00
clear-DZZMSrMX.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
drive-BE2W1yna.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
elite_r-BRvz_pyr.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-amp-purple-CESAKuOf.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-dash-Cg-7v9qo.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-dash2-CEVCErVK.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-rear-8cIXPC7T.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-speaker-CUXQZ49Q.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
gallery-subs-COSd4seJ.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
hero-highlight-Co4f1Kj5.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
hero-trunk-Dp4_JHDh.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
index-kZ4ovh9r.js Extend text styling to brand/model names and package text, add bold bullets 2026-09-10 03:15:53 +02:00
index-lUKoqEad.css Fix navbar no longer sticking to the top of the viewport 2026-09-10 03:06:22 +02:00
limitless-DDs0S_PU.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
logo-BNfZDkmN.png Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
logo-dark-R-ckaBhx.png Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
lucide-icons-Cg2IxtAO.js Add rich-text formatting and font choice for email templates 2026-09-09 01:49:13 +02:00
prime-BTVNe2Gb.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
statement-pTO-wTPx.webp Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00
youtube-hintergrund-C0osNxn7.mp4 Consolidate the site onto a single branch: main now carries the build output 2026-07-20 06:59:33 +02:00