fix(css): reliably load component stylesheets (progress bar unstyled) #255

Merged
jmiller merged 2 commits from fix/runbackup-css-load into dev 2026-07-13 00:05:45 +00:00
Owner

Component WAM style assets do not emit a on the admin document; attach the external media stylesheets directly so the runbackup progress bar (and admin.css) render.

https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i

Component WAM style assets do not emit a <link> on the admin document; attach the external media stylesheets directly so the runbackup progress bar (and admin.css) render. https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
jmiller added 2 commits 2026-07-13 00:05:42 +00:00
@
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 17s
f5bcc7c457
fix(css): reliably load component stylesheets (progress bar was unstyled)

The full-screen backup progress bar lost all styling after the CSS moved
to the Web Asset Manager: this component's WAM style assets do not emit a
<link> on the admin document. The asset resolves without error (Joomla
lazily registers media/com_mokosuitebackup/joomla.asset.json, so useStyle
does not throw) yet no stylesheet tag is rendered — and the same was
already silently true of com_mokosuitebackup.admin (it was just cosmetic,
so unnoticed). Confirmed live: neither runbackup.css nor admin.css loads,
body stays white, the bar has no track/fill.

Attach the external media stylesheets directly to the document
(addStyleSheet), which renders reliably via <jdoc:include type="styles">.
The joomla.asset.json + useStyle calls are kept so the WAM path resumes
automatically if/when it starts emitting. Fixes both runbackup and the
profile edit screen.

Claude-Session: https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
@
chore(version): pre-release bump to 02.60.01-dev [skip ci]
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
394ad0d607
jmiller merged commit 7106ece393 into dev 2026-07-13 00:05:45 +00:00
jmiller deleted branch fix/runbackup-css-load 2026-07-13 00:05:46 +00:00
Sign in to join this conversation.