Aug 19 - Update: remove theme switch option
This commit is contained in:
@@ -1047,7 +1047,9 @@ sudo systemctl restart gunicorn
|
|||||||
|
|
||||||
Revision id `phase50_default_modern`. Promotes the phase48 A/B-test design to the default. Two changes, **both required**: the `users.ui_theme` column default becomes `'modern'` (new accounts), and existing rows are moved `'classic'` → `'modern'`. phase48 stored a literal `'classic'` for everyone rather than NULL, so a default change alone would leave every current user on the old design.
|
Revision id `phase50_default_modern`. Promotes the phase48 A/B-test design to the default. Two changes, **both required**: the `users.ui_theme` column default becomes `'modern'` (new accounts), and existing rows are moved `'classic'` → `'modern'`. phase48 stored a literal `'classic'` for everyone rather than NULL, so a default change alone would leave every current user on the old design.
|
||||||
|
|
||||||
**It overwrites a deliberate choice** — phase48 gave no way to tell "I picked classic" from "I never touched it", so anyone who actively preferred classic is moved too. They can switch back from the account menu and that choice then sticks; the switcher is unchanged. `/ui/theme-votes` reads the same column, so the tally reads 100% modern afterwards — capture it first if the numbers matter. `downgrade()` returns *everyone* to classic (individual prior choices were never recorded).
|
**It overwrites a deliberate choice** — phase48 gave no way to tell "I picked classic" from "I never touched it", so anyone who actively preferred classic is moved too.
|
||||||
|
|
||||||
|
**The A/B test is closed (Aug 2026).** Modern is THE design. The **"Back to Classic Design"** switcher and the admin **"Design Vote Tally"** link were removed from the modern account menu, so a user on modern stays there. Two things were deliberately KEPT: the classic layout still offers **"Try the New Design"** (the only way off classic for anyone still on it — removing it would strand them on a retired design), and `ui.switch_theme` / `ui.theme_votes` still work if visited directly, so nothing 404s mid-request and the tally is still readable at `/ui/theme-votes`. Nobody's stored `ui_theme` was changed by this. `/ui/theme-votes` reads the same column, so the tally reads 100% modern afterwards — capture it first if the numbers matter. `downgrade()` returns *everyone* to classic (individual prior choices were never recorded).
|
||||||
|
|
||||||
To change the default without touching saved preferences, set `DEFAULT_UI_THEME=classic` instead of running this.
|
To change the default without touching saved preferences, set `DEFAULT_UI_THEME=classic` instead of running this.
|
||||||
|
|
||||||
|
|||||||
@@ -164,25 +164,11 @@
|
|||||||
<i class="bi bi-bell-slash me-1"></i>Notification Preferences
|
<i class="bi bi-bell-slash me-1"></i>Notification Preferences
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li><hr class="dropdown-divider"></li>
|
{# The design A/B test is over — modern is THE design (Aug 2026).
|
||||||
<li>
|
The switcher and the vote tally are gone from this menu.
|
||||||
{# ── Design switcher (modern → classic) ── #}
|
ui.switch_theme / ui.theme_votes still exist and still work
|
||||||
<form method="POST" action="{{ url_for('ui.switch_theme') }}" class="px-1">
|
if visited directly, so nothing is stranded mid-request;
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
they are simply no longer offered. #}
|
||||||
<input type="hidden" name="theme" value="classic">
|
|
||||||
<input type="hidden" name="next" value="{{ request.full_path }}">
|
|
||||||
<button type="submit" class="dropdown-item">
|
|
||||||
<i class="bi bi-arrow-counterclockwise me-1"></i>Back to Classic Design
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
</li>
|
|
||||||
{% if current_user.role == 'admin' %}
|
|
||||||
<li>
|
|
||||||
<a class="dropdown-item" href="{{ url_for('ui.theme_votes') }}">
|
|
||||||
<i class="bi bi-bar-chart me-1"></i>Design Vote Tally
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
<li><hr class="dropdown-divider"></li>
|
<li><hr class="dropdown-divider"></li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item" href="{{ url_for('auth.logout') }}">
|
<a class="dropdown-item" href="{{ url_for('auth.logout') }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user