Adds a new GET /sync-bank route that runs sync_to_sheets (2026) + infer_payments + flush_cache, capturing all output and displaying it on a styled results page. Adds "Tools: [Sync Bank Data]" nav link to all templates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
157 lines
4.0 KiB
HTML
157 lines
4.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>FUJ - Sync Bank Data</title>
|
|
<style>
|
|
body {
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
background-color: #0c0c0c;
|
|
color: #cccccc;
|
|
padding: 10px;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
font-size: 11px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
h1 {
|
|
color: #00ff00;
|
|
font-family: inherit;
|
|
margin-top: 10px;
|
|
margin-bottom: 20px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.nav {
|
|
margin-bottom: 20px;
|
|
font-size: 12px;
|
|
color: #555;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav > div {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav a {
|
|
color: #00ff00;
|
|
text-decoration: none;
|
|
padding: 2px 8px;
|
|
border: 1px solid #333;
|
|
}
|
|
|
|
.nav a.active {
|
|
color: #000;
|
|
background-color: #00ff00;
|
|
border-color: #00ff00;
|
|
}
|
|
|
|
.nav a:hover {
|
|
color: #fff;
|
|
border-color: #555;
|
|
}
|
|
|
|
.nav-archived a {
|
|
font-size: 10px;
|
|
color: #666;
|
|
border-color: #222;
|
|
}
|
|
|
|
.nav-archived a.active {
|
|
color: #ccc;
|
|
background-color: #333;
|
|
border-color: #555;
|
|
}
|
|
|
|
.nav-archived a:hover {
|
|
color: #999;
|
|
border-color: #444;
|
|
}
|
|
|
|
.output-container {
|
|
background-color: #111;
|
|
border: 1px solid #333;
|
|
padding: 15px;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin-bottom: 30px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.output-container pre {
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
color: {% if success %}#cccccc{% else %}#ff6666{% endif %};
|
|
}
|
|
|
|
.status {
|
|
margin-bottom: 15px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.status-ok { color: #00ff00; }
|
|
.status-error { color: #ff6666; }
|
|
|
|
.footer {
|
|
text-align: center;
|
|
color: #333;
|
|
margin-top: 20px;
|
|
font-size: 10px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="nav">
|
|
<div>
|
|
<a href="/adults">[Adults]</a>
|
|
<a href="/juniors">[Juniors]</a>
|
|
</div>
|
|
<div class="nav-archived">
|
|
<span style="color: #666; margin-right: 5px;">Archived:</span>
|
|
<a href="/fees">[Adult - Attendance/Fees]</a>
|
|
<a href="/fees-juniors">[Junior Attendance/Fees]</a>
|
|
<a href="/reconcile">[Adult Payment Reconciliation]</a>
|
|
<a href="/reconcile-juniors">[Junior Payment Reconciliation]</a>
|
|
<a href="/payments">[Payments Ledger]</a>
|
|
</div>
|
|
<div class="nav-archived">
|
|
<span style="color: #666; margin-right: 5px;">Tools:</span>
|
|
<a href="/sync-bank" class="active">[Sync Bank Data]</a>
|
|
</div>
|
|
</div>
|
|
|
|
<h1>Sync Bank Data</h1>
|
|
|
|
<div class="status">
|
|
{% if success %}
|
|
<span class="status-ok">Sync completed successfully.</span>
|
|
{% else %}
|
|
<span class="status-error">Sync failed - see output below.</span>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="output-container">
|
|
<pre>{{ output }}</pre>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
{{ build_meta.tag }} | {{ build_meta.commit }} | {{ build_meta.build_date }}
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|