Improve options review tabs and multi-timeframe uploads.

Add source-type tabs, open an inline journal form from list rows, and match contract-style 5m/15m/1h/4h screenshot slots.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 09:45:44 +08:00
parent 10128d18bc
commit edcc04e88c
5 changed files with 395 additions and 251 deletions
+3 -3
View File
@@ -230,14 +230,14 @@ class OptionsReviewTests(unittest.TestCase):
with tempfile.TemporaryDirectory() as tmp:
folder = options_review_upload_dir(tmp)
fname = build_options_review_slot_filename(
"a" * 32, "chart", ".png", secure_filename_fn=lambda x: x
"a" * 32, "5m", ".png", secure_filename_fn=lambda x: x
)
self.assertTrue(fname.startswith("options_journal_"))
self.assertTrue(is_valid_options_review_file(fname, "a" * 32, "chart"))
self.assertTrue(is_valid_options_review_file(fname, "a" * 32, "5m"))
item = save_options_review_slot_file(
_FakeFile("x.png"),
"a" * 32,
"chart",
"5m",
folder,
secure_filename_fn=lambda x: x,
)