Simplify daily review UI and compact header cards

This commit is contained in:
Wyndham ARR committed 2026-10-09 14:30:41 +08:00
1 parent 6d1a98743f
commit 64f4a0d3de
13 files changed
+185 -133

No files matched your search

+7 -2
View File
@@ -47,7 +47,7 @@ class DailyVisualStaticContractTests(unittest.TestCase):
overview_markup,
)
self.assertIn(
".daily-overview { display: grid; grid-template-columns: minmax(220px, 1.15fr) minmax(230px, 1.2fr) minmax(155px, .8fr) minmax(125px, .65fr) minmax(220px, 1.15fr);",
".daily-overview { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .7fr) minmax(0, 1.2fr);",
self.styles,
)
self.assertIn(".daily-overview > .metric-card", self.styles)
@@ -61,7 +61,7 @@ class DailyVisualStaticContractTests(unittest.TestCase):
self.assertIn(".daily-overview { grid-template-columns: 1fr;", self.styles)
self.assertIn("@media (min-width: 701px)", self.styles)
self.assertIn(".daily-overview .dropzone {", self.styles)
self.assertIn("grid-template-columns: 28px minmax(0, 1fr)", self.styles)
self.assertIn("grid-template-columns: 20px minmax(0, 1fr)", self.styles)
self.assertIn("min-height: 72px", self.styles)
self.assertIn(".daily-overview .upload-footer", self.styles)
self.assertIn("min-height: 44px", self.styles)
@@ -69,6 +69,7 @@ class DailyVisualStaticContractTests(unittest.TestCase):
def test_upload_panel_has_compact_action_footer(self) -> None:
self.assertIn('class="panel-heading upload-heading"', self.html)
self.assertIn('class="upload-content"', self.html)
self.assertIn('class="upload-footer"', self.html)
self.assertIn(".upload-panel .primary-button", self.styles)
self.assertIn("min-width: 118px", self.styles)
@@ -152,6 +153,10 @@ class DailyVisualStaticContractTests(unittest.TestCase):
self.assertIn('<h2 id="arr-download-pending-title">需处理日期</h2>', self.html)
self.assertNotIn('<h2 id="daily-price-review-title">', self.html)
self.assertNotIn('<h2 id="arr-data-review-title">', self.html)
self.assertNotIn('id="arr-data-review-copy"', self.html)
self.assertNotIn('id="arr-data-review-progress"', self.html)
self.assertNotIn('id="arr-download-data-review"', self.html)
self.assertIn('id="arr-download-button" type="submit"', self.html)
def test_removed_upload_labels_do_not_return(self) -> None:
upload_start = self.html.index('class="panel upload-panel"')