feat: refine web analytics and history views

This commit is contained in:
Wyndham ARR
2026-08-02 12:56:22 +08:00
parent a891c0ae7a
commit 7e7470821b
37 changed files with 2088 additions and 361 deletions

View File

@@ -204,8 +204,8 @@ class StaticLoginContractTests(unittest.TestCase):
self.assertIn('candidate === "/h5" ? "/h5" : "/"', login_js)
self.assertIn('id="logout-button"', desktop_html)
self.assertIn('id="h5-logout"', mobile_html)
self.assertIn('id="logout-button" type="button" disabled hidden', desktop_html)
self.assertIn('id="h5-logout" type="button" disabled hidden', mobile_html)
self.assertIn('<a class="logout-link" id="logout-button" href="#logout" hidden>', desktop_html)
self.assertIn('<a class="mobile-logout" id="h5-logout" href="#logout" hidden>', mobile_html)
self.assertIn("if (!session.username) return", desktop_js)
self.assertIn("if (session.username)", mobile_js)
self.assertIn("response.status === 401", desktop_js)