From ba3b6b8adf1c8cb7592dafbd07256e9db0f35fc4 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Mon, 24 Feb 2025 16:09:47 -0800 Subject: [PATCH 1/2] Add initial Settings Overview page This gives users a bit more context about their project, and is a starting point to introduce more information. This is a first draft, but curious to get some feedback on what should be included. I'm a little worried about the performance in production, so will put this behind a staff flag for now. --- .../templates/projects/project_overview.html | 179 ++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 readthedocsext/theme/templates/projects/project_overview.html diff --git a/readthedocsext/theme/templates/projects/project_overview.html b/readthedocsext/theme/templates/projects/project_overview.html new file mode 100644 index 00000000..d6d638b7 --- /dev/null +++ b/readthedocsext/theme/templates/projects/project_overview.html @@ -0,0 +1,179 @@ +{% extends "projects/project_edit_base.html" %} + +{% load trans blocktrans from i18n %} + +{% block title %} + {% trans "Project Overview" %} +{% endblock title %} + +{% block project_edit_content_header %} + {% trans "Project Overview" %} +{% endblock project_edit_content_header %} + +{% block project_edit_content %} +
+ {# Key Metrics #} +
+
+
+
+
+
+
{{ total_pageviews|default:"0" }}
+
{% trans "Page Views" %}
+
+
+
{% trans "Last 30 Days" %}
+
+
+
+
+
+
+
+
+
{{ total_searches|default:"0" }}
+
{% trans "Searches" %}
+
+
+
{% trans "Last 30 Days" %}
+
+
+
+
+
+
+
+
+
{{ successful_builds }}
+
{% trans "Builds" %}
+
+
+
{% trans "Last 30 Days" %}
+
+
+
+
+
+
+
+
+
{{ monthly_build_time|default:"0" }}
+
{% trans "Build Minutes" %}
+
+
+
{% trans "Last 30 Days" %}
+
+
+
+
+
+
+ + {# Documentation Setup #} +
+
+
+

+ +
{% trans "Documentation Setup" %}
+

+
+
+
+
{{ active_versions_count }}
+
{% trans "Active Versions" %}
+
+ + {% trans "Manage Versions" %} +
+
+
+
{{ domains_count }}
+
{% trans "Custom Domains" %}
+
+ + {% trans "Configure Domains" %} +
+
+
+
{{ integrations_count }}
+
{% trans "Git Integrations" %}
+
+ + {% trans "Setup Integrations" %} +
+
+
+
+
+ + {# Project Maintenance #} +
+
+
+

+ +
{% trans "Project Maintenance" %}
+

+
+
+
+
{{ redirect_count }}
+
{% trans "Redirects" %}
+
+ + {% trans "Manage Redirects" %} +
+
+
+
{{ webhook_count }}
+
{% trans "Webhooks" %}
+
+ + {% trans "Configure Webhooks" %} +
+
+
+
{{ maintainers_count }}
+
{% trans "Maintainers" %}
+
+ + {% trans "Manage Access" %} +
+
+
+
+
+ + {# Analytics Links #} + +
+{% endblock body %} From 2a84b706931a71da0868137296cd2b8f72e3d171 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Tue, 25 Feb 2025 15:57:51 -0800 Subject: [PATCH 2/2] Address feedback round 1 --- .../theme/templates/projects/edit_base.html | 6 + .../templates/projects/project_overview.html | 345 ++++++++++-------- 2 files changed, 207 insertions(+), 144 deletions(-) diff --git a/readthedocsext/theme/templates/projects/edit_base.html b/readthedocsext/theme/templates/projects/edit_base.html index dd0d362a..6403a563 100644 --- a/readthedocsext/theme/templates/projects/edit_base.html +++ b/readthedocsext/theme/templates/projects/edit_base.html @@ -11,6 +11,12 @@