05/19 Add iOS app support page

This commit is contained in:
2026-05-19 11:50:37 -04:00
parent 4c073e1904
commit 74f3ecc486
2 changed files with 52 additions and 2 deletions
+13 -2
View File
@@ -110,9 +110,14 @@ def index():
recent_inspections = recent_q.limit(5).all()
# ── Pending follow-up inspections ────────────────────────────────────
# follow_ups is a lazy='dynamic' relationship — comparing it to None does
# NOT produce a "has no rows" predicate for dynamic relationships. The
# correct idiom is ~.any(), which generates EXISTS (SELECT 1 FROM inspections
# WHERE parent_inspection_id = inspections.id). This matches the identical
# filter used in routes/inspections.py:follow_up_filter.
followup_q = Inspection.query.filter_by(
follow_up_required=True, status='completed'
).filter(Inspection.follow_ups == None) # noqa: E711 — SQLAlchemy usage
).filter(~Inspection.follow_ups.any())
if is_inspector:
followup_q = followup_q.filter(Inspection.inspector_id == current_user.id)
elif is_customer:
@@ -286,4 +291,10 @@ def facility_trend():
'labels': [str(r.day) for r in rows],
'data': [round(float(r.avg), 2) for r in rows],
'facility': facility.name,
})
})
@bp.route('/support')
def support():
"""Public support page — no login required. Used as App Store Connect Support URL."""
return render_template('support.html', current_year=datetime.utcnow().year)
+39
View File
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JQC App Support — LT Services Inc.</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body { background: #f8f9fa; }
.support-card { max-width: 640px; margin: 60px auto; }
.brand { font-weight: 700; color: #0d6efd; }
</style>
</head>
<body>
<div class="support-card card shadow-sm p-4">
<h1 class="h4 mb-1"><span class="brand">JQC</span> — Janitorial Quality Control</h1>
<p class="text-muted mb-4">LT Services Inc. &mdash; Internal Operations App</p>
<h2 class="h6 text-uppercase text-secondary mb-3">Support</h2>
<p>This app is an internal tool for LT Services Inc. employees and staff. It is not available for public download or use.</p>
<p>If you are an LT Services Inc. employee experiencing an issue with the app, contact your IT administrator:</p>
<ul class="list-unstyled mb-4">
<li><i class="bi bi-envelope-fill me-2 text-primary"></i>
<a href="mailto:support@ltservicesinc.com">support@ltservicesinc.com</a>
</li>
</ul>
<h2 class="h6 text-uppercase text-secondary mb-3">About This App</h2>
<p class="mb-1"><strong>App name:</strong> JQC — Janitorial Quality Control</p>
<p class="mb-1"><strong>Developer:</strong> LT Services Inc.</p>
<p class="mb-1"><strong>Platform:</strong> iPadOS</p>
<p class="mb-4"><strong>Purpose:</strong> Facility inspection management, issue tracking, and quality reporting for internal janitorial operations staff.</p>
<p class="text-muted small">&copy; {{ current_year }} LT Services Inc. All rights reserved.</p>
</div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
</body>
</html>