feat(ui): SFTP key file upload + msbackup modal padding frame #222

Merged
jmiller merged 1 commits from fix/modal-msbackup-class into dev 2026-07-06 00:04:48 +00:00
Owner

Targeting dev. Two modal tweaks:

  1. Upload SSH key file — the SFTP key field now has a file input; selecting a key file reads it into the key textarea client-side (FileReader), so no copy/paste needed. Pasting still works, and leaving it blank keeps the existing key. The existing save path (sends the key text) is unchanged.
  2. msbackup padding frame — the modal felt cramped because Bootstrap's .modal-content has no padding of its own. Added a msbackup class to .modal-content with a 1rem frame, scoped in the WAM stylesheet (media/com_mokosuitebackup/css/admin.css), with the inner header/body/footer aligned to it (no double horizontal padding).

php -l clean.

https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i

Targeting **dev**. Two modal tweaks: 1. **Upload SSH key file** — the SFTP key field now has a file input; selecting a key file reads it into the key textarea client-side (`FileReader`), so no copy/paste needed. Pasting still works, and leaving it blank keeps the existing key. The existing save path (sends the key text) is unchanged. 2. **`msbackup` padding frame** — the modal felt cramped because Bootstrap's `.modal-content` has no padding of its own. Added a `msbackup` class to `.modal-content` with a **1rem** frame, scoped in the WAM stylesheet (`media/com_mokosuitebackup/css/admin.css`), with the inner header/body/footer aligned to it (no double horizontal padding). `php -l` clean. https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
jmiller added 1 commit 2026-07-06 00:04:28 +00:00
feat(ui): SFTP key file upload; msbackup modal padding frame
Generic: Project CI / Lint & Validate (pull_request) Successful in 18s
Universal: PR Check / Branch Policy (pull_request) Successful in 3s
Universal: PR Check / Require Docs Update (pull_request) Has been skipped
Universal: PR Check / Wiki Update Reminder (pull_request) Has been skipped
Universal: PR Check / Secret Scan (pull_request) Successful in 8s
Universal: PR Check / Validate PR (pull_request) Failing after 14s
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Successful in 12s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Failing after 5s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
1ab99daaba
- Add/Edit Destination modal: SFTP key can now be UPLOADED as a file (read into
  the key textarea client-side via FileReader) instead of copy/paste; pasting
  still works.
- Give .modal-content a "msbackup" class with a 1rem padding frame — Bootstrap's
  .modal-content has no padding of its own, which made the modal feel cramped.
  Styling lives in the WAM stylesheet (media/.../admin.css), scoped to .msbackup.

Claude-Session: https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
jmiller merged commit 662918db38 into dev 2026-07-06 00:04:48 +00:00
jmiller deleted branch fix/modal-msbackup-class 2026-07-06 00:04:52 +00:00
Sign in to join this conversation.