fix: Placeholder resolution display + CSRF token on Run Backup button #125

Merged
jmiller merged 2 commits from fix/placeholder-resolution-display into main 2026-06-23 16:36:46 +00:00
Owner

Two fixes

1. Placeholder resolution display

Below the Backup Directory input, shows badges for each placeholder in use with its resolved value:

  • [HOME] = /home/mokoconsulting_dev
  • [host] = suite.dev.mokoconsulting.tech
  • Plus the full resolved path: Resolves to: /home/.../backups
  • Updates live as user types or clicks placeholder pills

2. CSRF token fix for Run Backup button

The "Run Backup Now" button on profile edit sends the CSRF token as a GET parameter (link button). BackupsController::start() was using $this->checkToken() which only checks POST. Now checks both GET and POST.

Test Plan

  • Edit profile with [HOME]/backups → see resolved values below
  • Click placeholder pills → resolution updates
  • Click "Run Backup Now" on profile edit → no CSRF error
## Two fixes ### 1. Placeholder resolution display Below the Backup Directory input, shows badges for each placeholder in use with its resolved value: - `[HOME] = /home/mokoconsulting_dev` - `[host] = suite.dev.mokoconsulting.tech` - Plus the full resolved path: `Resolves to: /home/.../backups` - Updates live as user types or clicks placeholder pills ### 2. CSRF token fix for Run Backup button The "Run Backup Now" button on profile edit sends the CSRF token as a GET parameter (link button). `BackupsController::start()` was using `$this->checkToken()` which only checks POST. Now checks both GET and POST. ## Test Plan - [ ] Edit profile with `[HOME]/backups` → see resolved values below - [ ] Click placeholder pills → resolution updates - [ ] Click "Run Backup Now" on profile edit → no CSRF error
jmiller added the component: admin label 2026-06-23 16:36:09 +00:00
jmiller added 1 commit 2026-06-23 16:36:10 +00:00
fix: placeholder resolution display + CSRF token on Run Backup button
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 26s
fc41e1801a
FolderPickerField: shows resolved placeholder values below input as
badges (e.g. [HOME]=/home/user, [host]=example.com), plus full
resolved path. Updates live as user types.

BackupsController::start(): accept CSRF token from both GET and POST
so the "Run Backup Now" link button on profile edit works without
triggering "security token did not match" error.
jmiller added 1 commit 2026-06-23 16:36:13 +00:00
chore(version): pre-release bump to 01.38.02-dev [skip ci]
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 7s
Generic: Repo Health / Access control (pull_request) Successful in 3s
Universal: PR Check / Validate PR (pull_request) Failing after 8s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 13s
Universal: PR Check / Secret Scan (pull_request) Successful in 12s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
Publish to Composer / Publish Package (release) Failing after 45s
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Successful in 48s
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 31s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 3m46s
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Has been cancelled
Joomla: Extension CI / PHPStan Analysis (pull_request) Has been cancelled
Joomla: Extension CI / Build RC Pre-Release (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
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report Issues (pull_request) Has been cancelled
e7f165ac96
jmiller merged commit 044e57adf3 into main 2026-06-23 16:36:46 +00:00
jmiller deleted branch fix/placeholder-resolution-display 2026-06-23 16:36:49 +00:00
Sign in to join this conversation.
No Reviewers
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteBackup#125