Skip to content

feat(ui): redesign the PHP settings & file repair section - #212

Merged
nechodom merged 1 commit into
mainfrom
claude/redesign-teto-casti-d0eced
Oct 5, 2026
Merged

nechodom merged 1 commit into
mainfrom
claude/redesign-teto-casti-d0eced

Conversation

@nechodom

@nechodom nechodom commented Oct 5, 2026

Copy link
Copy Markdown
Owner

What

Redesigns the PHP settings & file repair accordion on the hosting detail page (Settings & limits tab). Template-only change in bin/hyperion-web/templates/hostings_detail.html.

  • Each .user.ini directive is now its own setting-row (same pattern as Vhost options): plain-language label ("Largest upload", "Largest request", "Form fields per request", "Show errors on the page"), the directive name as a hint, one line of help, and a narrow right-aligned input.
  • Inputs get type="text" — the global input style keys on it, so before this they rendered as grey, disabled-looking boxes.
  • The long memory_limit / max_execution_time paragraph becomes a "Memory & time limit" row with a PHP-FPM limits → link to #limits.
  • Permission repair sits under its own File ownership group; owner + modes moved into the label hint, help text shortened.
  • Summary meta shows "pool defaults" when no override is set.

Why

The old layout stretched four inputs across the full width with code-chip labels and a dense paragraph, mixing two unrelated concerns in one block; the inputs looked disabled. Operators had to know directive names to understand the fields.

Operator-facing change?

  • No operator-facing change.
  • Operator-facing change — described below:
    • PHP settings & file repair section re-laid out as labelled rows; same fields, same behaviour.

Test plan

  • cargo test -p hyperion-web --test template_lint passes (13/13).
  • Rendered in the local devpanel (tests/devserver.rs) and checked visually.
  • Save round-trip not re-exercised — form field names, _csrf and actions are unchanged.

Anti-scope

No CSS, handler, or route changes. The per-hosting file-permissions panel on the WordPress tab is untouched.

🤖 Generated with Claude Code

Each .user.ini directive gets its own setting-row: a plain-language
name, the directive as a hint, one line on what it does, and a narrow
right-aligned input. The inputs gain type="text", which is what the
global input style keys on — without it they rendered as grey,
disabled-looking boxes. The memory_limit/max_execution_time paragraph
becomes a row linking to PHP-FPM limits, and permission repair moves
under its own "File ownership" group.

Template-only: field names, _csrf tokens and form actions unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nechodom
nechodom merged commit 32e8f57 into main Oct 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant