feat: Clickable placeholder pills for backup dir and archive name #102

Merged
jmiller merged 1 commits from feat/clickable-placeholders into main 2026-06-23 15:48:35 +00:00
Owner

Summary

Backup Directory and Archive Name Format fields now show clickable placeholder tags below the input. Click a tag to insert the placeholder at the cursor position.

  • FolderPickerField: [HOME], [DEFAULT_DIR], [host], [site_name], [date], [profile_id], [profile_name], [type]
  • PlaceholderTextField (new): configurable via placeholders XML attribute, used by archive_name_format with 15 placeholders including [datetime], [random], etc.
  • Uses selectionStart/selectionEnd for cursor-aware insertion
  • Dispatches input event after insert for live status updates

Test Plan

  • Backup Directory: click [HOME] → inserts at cursor
  • Archive Name: click [datetime] → inserts at cursor
  • Cursor position moves after insert
  • Status check updates after placeholder insert
## Summary Backup Directory and Archive Name Format fields now show clickable placeholder tags below the input. Click a tag to insert the placeholder at the cursor position. - **FolderPickerField**: [HOME], [DEFAULT_DIR], [host], [site_name], [date], [profile_id], [profile_name], [type] - **PlaceholderTextField** (new): configurable via `placeholders` XML attribute, used by archive_name_format with 15 placeholders including [datetime], [random], etc. - Uses `selectionStart`/`selectionEnd` for cursor-aware insertion - Dispatches `input` event after insert for live status updates ## Test Plan - [ ] Backup Directory: click [HOME] → inserts at cursor - [ ] Archive Name: click [datetime] → inserts at cursor - [ ] Cursor position moves after insert - [ ] Status check updates after placeholder insert
jmiller added the component: admin label 2026-06-23 15:47:58 +00:00
jmiller added 1 commit 2026-06-23 15:47:59 +00:00
feat: clickable placeholder pills for backup dir and archive name fields
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Blocked by required conditions
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Blocked by required conditions
Joomla: Extension CI / PHPStan Analysis (pull_request) Blocked by required conditions
Joomla: Extension CI / Build RC Pre-Release (pull_request) Blocked by required conditions
Universal: PR Check / Build RC Package (pull_request) Blocked by required conditions
Universal: PR Check / Report Issues (pull_request) Blocked by required conditions
Generic: Repo Health / Scripts governance (pull_request) Blocked by required conditions
Generic: Repo Health / Repository health (pull_request) Blocked by required conditions
Generic: Repo Health / Report Issues (pull_request) Blocked by required conditions
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 6s
Universal: PR Check / Branch Policy (pull_request) Failing after 4s
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 12s
Generic: Repo Health / Access control (pull_request) Successful in 2s
Universal: PR Check / Validate PR (pull_request) Failing after 7s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Universal: PR Check / Secret Scan (pull_request) Successful in 10s
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Successful in 14s
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 26s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 9m59s
456e744d81
Both Backup Directory and Archive Name Format fields now show clickable
placeholder tags below the input. Clicking a tag inserts the placeholder
at the current cursor position using selectionStart/End.

- FolderPickerField: pills for [HOME], [DEFAULT_DIR], [host], [site_name],
  [date], [profile_id], [profile_name], [type]
- PlaceholderTextField: new custom field type used by archive_name_format,
  configurable placeholders via XML attribute
- Cursor position preserved after insert, input event dispatched for
  live status updates
jmiller merged commit 7427cbb043 into main 2026-06-23 15:48:35 +00:00
jmiller deleted branch feat/clickable-placeholders 2026-06-23 15:48:36 +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#102