Files
football2801 019a3363c5
CI / test (push) Has been cancelled
feat(design): v2 becomes the default — drop beta conversation
Atmospheric design is now the default for everyone:
- User.getDesignVersion() returns 'v2' when unset (was 'v1')
- All Twig templates default the cookie read to 'v2'
- SettingsView 'Design (beta)' section removed entirely along with the
  selectDesign() handler and currentDesign computed

The /api/user/design endpoint stays in place so the design_version column
can still be set programmatically (or migrated later), but the UI no
longer exposes it as a user-facing choice. Existing users with explicit
'v1' in their DB row continue to see v1 — their preference persists.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 20:22:18 -04:00

41 lines
2.0 KiB
Twig

<!DOCTYPE html>
<html lang="en" data-design="{{ app.request.cookies.get('wevisto_design')|default('v2') }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/svg+xml" href="/build/favicon.svg?v=20260515-vviewfinder">
<link rel="icon" type="image/png" sizes="32x32" href="/build/icons/favicon-32.png?v=20260515-vviewfinder">
<link rel="icon" type="image/png" sizes="16x16" href="/build/icons/favicon-16.png?v=20260515-vviewfinder">
<link rel="apple-touch-icon" sizes="180x180" href="/build/icons/apple-touch-icon.png?v=20260515-vviewfinder">
<link rel="stylesheet" href="/css/wevisto-design.css">
<title>Decline photo — WeVisto</title>
<style>
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:system-ui,sans-serif;min-height:100dvh;background:#fdf6ee;color:#3a2e22;display:flex;align-items:flex-start;justify-content:center;padding:2rem 1rem}
.card{width:100%;max-width:420px}
h1{font-size:1.4rem;font-weight:700;margin-bottom:.25rem}
.sub{font-size:.875rem;color:#8a7060;margin-bottom:1.5rem}
.thumb{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;margin-bottom:1.5rem;background:#e8d9c4}
.btn{display:block;width:100%;padding:.875rem;border:none;border-radius:10px;font-size:1rem;font-weight:700;cursor:pointer;text-align:center;text-decoration:none;margin-bottom:.75rem}
.btn-danger{background:#d93025;color:#fff}
.btn-ghost{background:transparent;border:1.5px solid #e8d9c4;color:#8a7060}
</style>
</head>
<body>
<div class="card">
<h1>Decline this photo?</h1>
<p class="sub">It won't be added to any of your frames.</p>
<img class="thumb" src="/api/images/{{ token.image.id }}/thumbnail" alt="Shared photo">
<form method="post">
<button class="btn btn-danger" type="submit">Yes, decline</button>
</form>
{% if approveUuid %}
<a class="btn btn-ghost" href="/token/{{ approveUuid }}/approve">Actually, I want to add it</a>
{% endif %}
</div>
</body>
</html>