fix(ui): WAM-loaded CSS, per-destination keep-local, tidy destination modal #220
Reference in New Issue
Block a user
Delete Branch "fix/remote-modal-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Targeting dev for the next dev build.
Three UI cleanups you flagged:
<style>): newmedia/com_mokosuitebackup/css/admin.css+media/joomla.asset.json, a<media destination="com_mokosuitebackup" folder="media">entry in the component manifest, anduseStyle('com_mokosuitebackup.admin')in the profile-edit view. This establishes the WAM pattern for the component (ref #175 — remaining inline JS/CSS can migrate the same way).remoteKeepLocal). Dropped the profile-levelremote_keep_localfield and its "Remote" fieldset fromforms/profile.xml.admin.css, not inline).Validated: manifest XML,
joomla.asset.json, andphp -lon the edit view all clean.https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
- Move component admin CSS to the Joomla Web Asset Manager: new media/com_mokosuitebackup/css/admin.css + media/joomla.asset.json, a <media> entry in the manifest, and useStyle('com_mokosuitebackup.admin') in the profile edit view. Removes the inline <style> block (no more inline CSS). - Remove the profile-level "Keep local copy" field/"Remote" fieldset from forms/profile.xml — it is now per remote destination (modal remoteKeepLocal). - Clean up the Add/Edit Destination modal padding/margins (in admin.css). Claude-Session: https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i