diff --git a/docs/development.md b/docs/development.md index f230a67..c95806d 100644 --- a/docs/development.md +++ b/docs/development.md @@ -873,10 +873,13 @@ celery -A coulobre worker --pool=solo celery -A coulobre beat ``` -Open an account in **Hosting accounts** and select **Request Apache preview**. +Open an account in **Hosting accounts**, select **History**, and choose +**Request Apache preview**. The preview page shows the request status and the configuration once the worker -finishes. Use **Refresh status** for pending requests or **Web provisioning** to -find earlier previews. Each request captures the primary domain at queue time. +finishes. Use **Refresh status** for pending requests or **Web provisioning → +History** to find earlier previews. **Current configurations** lists the last +successfully applied Apache configuration for each primary website. Each +preview request captures the primary domain at queue time. The preview references the future document root and PHP-FPM socket for the account. Preview generation makes no changes to the hosting services. diff --git a/docs/panel-design.md b/docs/panel-design.md index 7c26ade..f6d8aaa 100644 --- a/docs/panel-design.md +++ b/docs/panel-design.md @@ -27,6 +27,11 @@ only use shared components available in its supported Core versions. each service. Keep metadata compact and link to the relevant workflow for the active role. Distinguish configuration from public reachability or delivery. Use measured usage only when the panel has it. +- Keep current configuration separate from history. Show one current + record per resource in the working view. Use a **History** tab for + time-stamped events and snapshots. Label historical details explicitly + and keep live actions on the current resource or in a dedicated workflow. + Keep history scoped to the viewer’s role, especially internal config. - Use `.surface` for sections, `.section-heading` for ordinary section headers, and `.table-scroll` around tables. Keep horizontal overflow in the table wrapper and give empty or pending states an explicit label. diff --git a/src/coulobre/hosting/templates/hosting/account_detail.html b/src/coulobre/hosting/templates/hosting/account_detail.html index 171bd5b..ae83f2b 100644 --- a/src/coulobre/hosting/templates/hosting/account_detail.html +++ b/src/coulobre/hosting/templates/hosting/account_detail.html @@ -20,6 +20,7 @@ {% if is_tenant or perms.hosting.view_hostingdatabase %}Databases{% endif %} {% if show_account_backups or export_backup_manifest %}Backups{% endif %} {% if can_change_hosting_services or service_change or can_retire_account or is_operator and perms.hosting.change_hostingaccount %}Account management{% endif %} + History {% endblock %} {% block page_content %} @@ -55,6 +56,7 @@
| Event | Domain | Time | Result |
|---|---|---|---|
| Apache preview requested | +{{ plan.primary_domain }} | +{{ plan.requested_at|date:"j M Y, H:i" }} UTC | +{% include "hosting/plan_status.html" %} | +
| Primary website configured | +{{ current_apache_plan.primary_domain }} | +{{ current_apache_plan.activation.finished_at|date:"j M Y, H:i" }} UTC | +Configured | +
| Hosting account created | +— | +{{ account.created_at|date:"j M Y, H:i" }} UTC | +Created | +
This entry records a preview request and does not show the website’s current state. + {% if current_apache_plan %}View current Apache configuration{% endif %} +
+ {% endif %} {% if plan.primary_domain != plan.account.primary_domain %}This preview captures the original domain. The hosting account now uses {{ plan.account.primary_domain }}.
{% endif %} {% if plan.completed_at %}| Primary domain | Hosting account | Applied |
|---|---|---|
| {{ plan.primary_domain }} | +{{ plan.account.name }} | +{{ plan.activation.finished_at|date:"j M Y, H:i" }} UTC | +
No Apache configurations have been applied to current primary websites.
+ {% endif %}| Primary domain | Requested | Status | ||
|---|---|---|---|---|
| Event | Primary domain | Requested | Result | |
| {{ plan.primary_domain }} | +Apache preview requested | +{{ plan.primary_domain }} | {{ plan.requested_at|date:"j M Y, H:i" }} UTC | {% include "hosting/plan_status.html" %} |