robert 2.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robert/__init__.py +9 -0
- robert/__main__.py +20 -0
- robert/_version.py +3 -0
- robert/api.py +646 -0
- robert/aqme.py +280 -0
- robert/argument_parser.py +98 -0
- robert/checkml.py +433 -0
- robert/checkml_score.py +50 -0
- robert/curate.py +217 -0
- robert/evaluate_bot_retrieval.py +125 -0
- robert/evaluate_bot_support.py +102 -0
- robert/evaluate_workflow_summaries.py +87 -0
- robert/export_bot_docs_knowledge.py +1632 -0
- robert/generate.py +249 -0
- robert/generate_utils.py +311 -0
- robert/gui_easyrob/__init__.py +0 -0
- robert/gui_easyrob/assets/gif_easyrob.gif +0 -0
- robert/gui_easyrob/bot/__init__.py +47 -0
- robert/gui_easyrob/bot/answer_metadata.py +198 -0
- robert/gui_easyrob/bot/bot_context.py +679 -0
- robert/gui_easyrob/bot/bot_engine.py +1100 -0
- robert/gui_easyrob/bot/bot_panel.py +1231 -0
- robert/gui_easyrob/bot/bot_rag.py +1178 -0
- robert/gui_easyrob/bot/bot_window.py +39 -0
- robert/gui_easyrob/bot/bot_worker.py +149 -0
- robert/gui_easyrob/bot/credential_store.py +143 -0
- robert/gui_easyrob/bot/error_parser.py +105 -0
- robert/gui_easyrob/bot/evidence_policy.py +164 -0
- robert/gui_easyrob/bot/heuristics.py +859 -0
- robert/gui_easyrob/bot/icons.py +56 -0
- robert/gui_easyrob/bot/input_csv_audit.py +212 -0
- robert/gui_easyrob/bot/knowledge/aqme_context.json +5907 -0
- robert/gui_easyrob/bot/knowledge/robert_context.json +4817 -0
- robert/gui_easyrob/bot/knowledge/ui_context.json +8293 -0
- robert/gui_easyrob/bot/knowledge_schema.py +1252 -0
- robert/gui_easyrob/bot/knowledge_sources/aqme_user_guidance.json +442 -0
- robert/gui_easyrob/bot/knowledge_sources/coverage_manifest.json +95 -0
- robert/gui_easyrob/bot/knowledge_sources/robert_user_guidance.json +471 -0
- robert/gui_easyrob/bot/knowledge_sources/ui_user_guidance.json +1312 -0
- robert/gui_easyrob/bot/llm_providers.py +1573 -0
- robert/gui_easyrob/bot/online_docs.py +105 -0
- robert/gui_easyrob/bot/prompt_policy.py +575 -0
- robert/gui_easyrob/bot/question_intent.py +562 -0
- robert/gui_easyrob/bot/response_quality.py +104 -0
- robert/gui_easyrob/bot/result_insights.py +225 -0
- robert/gui_easyrob/bot/token_usage.py +75 -0
- robert/gui_easyrob/bot/workflow_results.py +1396 -0
- robert/gui_easyrob/checkml_launcher.py +15 -0
- robert/gui_easyrob/easyrob.py +29 -0
- robert/gui_easyrob/easyrob_launcher.py +113 -0
- robert/gui_easyrob/main/__init__.py +9 -0
- robert/gui_easyrob/main/window.py +5152 -0
- robert/gui_easyrob/result_navigation.py +14 -0
- robert/gui_easyrob/tabs/__init__.py +23 -0
- robert/gui_easyrob/tabs/advanced_options.py +370 -0
- robert/gui_easyrob/tabs/aqme.py +1234 -0
- robert/gui_easyrob/tabs/checkml.py +898 -0
- robert/gui_easyrob/tabs/images.py +427 -0
- robert/gui_easyrob/tabs/interactive_predictions.py +555 -0
- robert/gui_easyrob/tabs/molssi.py +447 -0
- robert/gui_easyrob/tabs/predictions.py +484 -0
- robert/gui_easyrob/tabs/result_catalog.py +170 -0
- robert/gui_easyrob/tabs/results.py +490 -0
- robert/gui_easyrob/tabs/results_workspace.py +120 -0
- robert/gui_easyrob/test_bot_input_csv_audit.py +152 -0
- robert/gui_easyrob/test_bot_question_routing.py +383 -0
- robert/gui_easyrob/test_bot_result_analysis.py +356 -0
- robert/gui_easyrob/test_bot_retrieval_evaluation.py +110 -0
- robert/gui_easyrob/test_bot_ui_integration.py +278 -0
- robert/gui_easyrob/test_checkml_app_mode.py +124 -0
- robert/gui_easyrob/test_checkml_completion.py +57 -0
- robert/gui_easyrob/test_checkml_defaults.py +37 -0
- robert/gui_easyrob/test_checkml_result_summary.py +113 -0
- robert/gui_easyrob/test_checkml_web_mode.py +57 -0
- robert/gui_easyrob/test_dialog_layout.py +33 -0
- robert/gui_easyrob/test_gui_bot_regressions.py +320 -0
- robert/gui_easyrob/test_molssi_auto.py +569 -0
- robert/gui_easyrob/test_tutorial_view.py +215 -0
- robert/gui_easyrob/tutorials/check_model.md +25 -0
- robert/gui_easyrob/tutorials/chemdraw.md +49 -0
- robert/gui_easyrob/tutorials/csv.md +53 -0
- robert/gui_easyrob/tutorials/descriptors.md +21 -0
- robert/gui_easyrob/tutorials/overview.md +65 -0
- robert/gui_easyrob/tutorials/predictions.md +25 -0
- robert/gui_easyrob/tutorials/robbot.md +29 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_10.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_11.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_12.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_13.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_8.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_9.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_8.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/csv/csv_9.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_8.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/overview/overview_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_1_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_1.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_2.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_3.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_4.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_5.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_6.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_7.png +0 -0
- robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_8.png +0 -0
- robert/gui_easyrob/utils/__init__.py +0 -0
- robert/gui_easyrob/utils/aqme_utils.py +238 -0
- robert/gui_easyrob/utils/molssi_utils.py +584 -0
- robert/gui_easyrob/utils/predictions_utils.py +985 -0
- robert/gui_easyrob/utils/utils_gui.py +738 -0
- robert/gui_easyrob/version.py +68 -0
- robert/gui_easyrob/web/app.css +484 -0
- robert/gui_easyrob/web/app.html +134 -0
- robert/gui_easyrob/web/app.js +764 -0
- robert/gui_easyrob/web/checkml_brand.png +0 -0
- robert/gui_easyrob/web/easyrob_background.gif +0 -0
- robert/gui_easyrob/web/easyrob_background.png +0 -0
- robert/gui_easyrob/web/images.css +89 -0
- robert/gui_easyrob/web/images.html +39 -0
- robert/gui_easyrob/web/images.js +101 -0
- robert/gui_easyrob/web/results.js +499 -0
- robert/gui_easyrob/web/robert_brand.png +0 -0
- robert/gui_easyrob/web_dialogs.py +64 -0
- robert/gui_easyrob/web_results.py +253 -0
- robert/gui_easyrob/web_shell.py +684 -0
- robert/gui_easyrob/workflow_progress.py +89 -0
- robert/gui_easyrob/workflow_run_lock.py +27 -0
- robert/icons/CheckML_icon.png +0 -0
- robert/icons/Robert_icon.png +0 -0
- robert/icons/Robert_logo.jpg +0 -0
- robert/icons/Robert_logo_transparent.png +0 -0
- robert/icons/documentation_icon.png +0 -0
- robert/icons/info_icon.png +0 -0
- robert/icons/pdf_icon.png +0 -0
- robert/icons/play_icon.png +0 -0
- robert/icons/stop_icon.png +0 -0
- robert/icons/youtube_icon.ico +0 -0
- robert/predict.py +193 -0
- robert/predict_utils.py +410 -0
- robert/report/CheckML_logo.jpg +0 -0
- robert/report/GENERATE.png +0 -0
- robert/report/Robert_icon.ico +0 -0
- robert/report/Robert_logo.jpg +0 -0
- robert/report/Robert_logo1.jpg +0 -0
- robert/report/abbrev.png +0 -0
- robert/report/adv_anal.png +0 -0
- robert/report/checkml_pass.svg +3 -0
- robert/report/checkml_unclear.svg +3 -0
- robert/report/checkml_warning.svg +3 -0
- robert/report/features.png +0 -0
- robert/report/outliers.png +0 -0
- robert/report/pred.png +0 -0
- robert/report/repro.png +0 -0
- robert/report/robust_x.png +0 -0
- robert/report/robust_y_high.png +0 -0
- robert/report/robust_y_low.png +0 -0
- robert/report/score.png +0 -0
- robert/report/score_0.jpg +0 -0
- robert/report/score_1.jpg +0 -0
- robert/report/score_10.jpg +0 -0
- robert/report/score_2.jpg +0 -0
- robert/report/score_3.jpg +0 -0
- robert/report/score_4.jpg +0 -0
- robert/report/score_5.jpg +0 -0
- robert/report/score_6.jpg +0 -0
- robert/report/score_7.jpg +0 -0
- robert/report/score_8.jpg +0 -0
- robert/report/score_9.jpg +0 -0
- robert/report/score_gray_0.jpg +0 -0
- robert/report/score_gray_1.jpg +0 -0
- robert/report/score_gray_10.jpg +0 -0
- robert/report/score_gray_2.jpg +0 -0
- robert/report/score_gray_3.jpg +0 -0
- robert/report/score_gray_4.jpg +0 -0
- robert/report/score_gray_5.jpg +0 -0
- robert/report/score_gray_6.jpg +0 -0
- robert/report/score_gray_7.jpg +0 -0
- robert/report/score_gray_8.jpg +0 -0
- robert/report/score_gray_9.jpg +0 -0
- robert/report/score_w_1_0.jpg +0 -0
- robert/report/score_w_1_1.jpg +0 -0
- robert/report/score_w_2_0.jpg +0 -0
- robert/report/score_w_2_1.jpg +0 -0
- robert/report/score_w_2_2.jpg +0 -0
- robert/report/score_w_2_gray_0.jpg +0 -0
- robert/report/score_w_2_gray_1.jpg +0 -0
- robert/report/score_w_2_gray_2.jpg +0 -0
- robert/report/score_w_3_0.jpg +0 -0
- robert/report/score_w_3_1.jpg +0 -0
- robert/report/score_w_3_2.jpg +0 -0
- robert/report/score_w_3_3.jpg +0 -0
- robert/report/score_w_4_0.jpg +0 -0
- robert/report/score_w_4_1.JPG +0 -0
- robert/report/score_w_4_2.jpg +0 -0
- robert/report/score_w_4_3.jpg +0 -0
- robert/report/score_w_4_4.jpg +0 -0
- robert/report/transpa.png +0 -0
- robert/report/y_distrib.png +0 -0
- robert/report.py +2880 -0
- robert/report_utils.py +2270 -0
- robert/robert.py +181 -0
- robert/utils.py +4763 -0
- robert/verify.py +606 -0
- robert-2.2.0.dist-info/METADATA +55 -0
- robert-2.2.0.dist-info/RECORD +261 -0
- robert-2.2.0.dist-info/WHEEL +5 -0
- robert-2.2.0.dist-info/entry_points.txt +3 -0
- robert-2.2.0.dist-info/licenses/LICENSE +21 -0
- robert-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
font-family: "Segoe UI", Inter, Arial, sans-serif;
|
|
3
|
+
color: #172a36;
|
|
4
|
+
background: #f2f5f5;
|
|
5
|
+
font-synthesis: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
* { box-sizing: border-box; }
|
|
9
|
+
body { margin: 0; min-width: 320px; }
|
|
10
|
+
button { font: inherit; }
|
|
11
|
+
|
|
12
|
+
.shell { max-width: 1480px; margin: 0 auto; padding: 34px 40px 26px; }
|
|
13
|
+
.hero {
|
|
14
|
+
background: #102f39;
|
|
15
|
+
color: #f6fbfa;
|
|
16
|
+
border-radius: 24px;
|
|
17
|
+
padding: 39px 47px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: flex-end;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
gap: 30px;
|
|
22
|
+
position: relative;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
box-shadow: 0 16px 38px rgba(17, 47, 57, .12);
|
|
25
|
+
}
|
|
26
|
+
.hero::after {
|
|
27
|
+
content: "";
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 410px;
|
|
30
|
+
height: 410px;
|
|
31
|
+
right: -125px;
|
|
32
|
+
top: -210px;
|
|
33
|
+
border: 1px solid rgba(175, 231, 217, .22);
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
box-shadow: 0 0 0 64px rgba(175, 231, 217, .035), 0 0 0 126px rgba(175, 231, 217, .025);
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
}
|
|
38
|
+
.hero-copy, .hero-stat { position: relative; z-index: 1; }
|
|
39
|
+
.eyebrow, .section-kicker { letter-spacing: .17em; font-size: 11px; font-weight: 700; }
|
|
40
|
+
.eyebrow { color: #a6d8c9; display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
|
|
41
|
+
.eyebrow-mark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #aee4ca; box-shadow: 0 0 0 4px rgba(174, 228, 202, .12); }
|
|
42
|
+
h1 { font-size: clamp(31px, 4vw, 53px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; margin: 0; }
|
|
43
|
+
.period { color: #aee4ca; }
|
|
44
|
+
.intro { max-width: 550px; color: #c5d8d8; line-height: 1.6; font-size: 14px; margin: 17px 0 0; }
|
|
45
|
+
.hero-stat { min-width: 135px; text-align: right; border-left: 1px solid rgba(255,255,255,.16); padding-left: 28px; }
|
|
46
|
+
.hero-stat span { display: block; font-size: 52px; font-weight: 650; line-height: 1; letter-spacing: -.06em; }
|
|
47
|
+
.hero-stat small { display: block; color: #a7c5c8; margin-top: 9px; font-size: 11px; white-space: nowrap; }
|
|
48
|
+
.workspace { background: #fff; border: 1px solid #e4ebea; border-radius: 21px; margin-top: 25px; padding: 27px 30px 34px; box-shadow: 0 8px 26px rgba(21,48,55,.035); min-height: 340px; }
|
|
49
|
+
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
|
|
50
|
+
.section-kicker { color: #59867b; margin: 0 0 7px; }
|
|
51
|
+
.section-title { font-size: 23px; letter-spacing: -.025em; margin: 0; }
|
|
52
|
+
.stage-count { margin: 0 0 2px; color: #75888e; font-size: 12px; }
|
|
53
|
+
.filters { display: flex; flex-wrap: wrap; gap: 9px; padding: 24px 0 23px; border-bottom: 1px solid #edf1f0; }
|
|
54
|
+
.filter {
|
|
55
|
+
appearance: none; border: 1px solid #dbe5e3; background: #f7faf9; color: #49616a;
|
|
56
|
+
border-radius: 999px; padding: 9px 15px; cursor: pointer; font-size: 12px; font-weight: 600;
|
|
57
|
+
transition: background .16s, border-color .16s, transform .16s;
|
|
58
|
+
}
|
|
59
|
+
.filter:hover { border-color: #8ebdac; transform: translateY(-1px); }
|
|
60
|
+
.filter[aria-pressed="true"] { background: #dff3e9; border-color: #a4d5be; color: #176349; }
|
|
61
|
+
.filter:focus-visible, .action:focus-visible { outline: 3px solid #73b9a1; outline-offset: 2px; }
|
|
62
|
+
.filter-count { opacity: .55; margin-left: 5px; }
|
|
63
|
+
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; padding-top: 24px; }
|
|
64
|
+
.image-card { border: 1px solid #e4ebea; border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .18s, transform .18s; }
|
|
65
|
+
.image-card:hover { box-shadow: 0 12px 27px rgba(19, 50, 57, .1); transform: translateY(-2px); }
|
|
66
|
+
.preview { height: 190px; background: #eef3f1; display: grid; place-items: center; padding: 15px; }
|
|
67
|
+
.preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
|
|
68
|
+
.card-body { padding: 17px 17px 15px; }
|
|
69
|
+
.card-stage { margin: 0 0 7px; color: #548c78; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
|
|
70
|
+
.image-card h2 { color: #1c3440; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; line-height: 1.4; margin: 0 0 18px; }
|
|
71
|
+
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
72
|
+
.action { border: 0; background: transparent; color: #52717a; cursor: pointer; padding: 7px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; }
|
|
73
|
+
.action:hover { background: #edf5f2; color: #145f47; }
|
|
74
|
+
.action.primary { background: #176e53; color: white; padding-inline: 12px; }
|
|
75
|
+
.action.primary:hover { background: #115b45; }
|
|
76
|
+
.empty { grid-column: 1 / -1; text-align: center; padding: 62px 20px; color: #648087; }
|
|
77
|
+
.empty-icon { display: block; font-size: 38px; margin-bottom: 10px; color: #82baa5; }
|
|
78
|
+
.empty strong { display: block; color: #26434d; font-size: 17px; margin-bottom: 7px; }
|
|
79
|
+
.empty p { margin: 0; font-size: 13px; }
|
|
80
|
+
footer { color: #8ca0a4; font-size: 11px; padding: 20px 5px 0; }
|
|
81
|
+
footer span { padding: 0 4px; color: #70aa96; }
|
|
82
|
+
@media (max-width: 680px) {
|
|
83
|
+
.shell { padding: 16px; }
|
|
84
|
+
.hero { padding: 28px; flex-direction: column; align-items: flex-start; }
|
|
85
|
+
.hero-stat { border-left: 0; padding-left: 0; text-align: left; }
|
|
86
|
+
.hero-stat span { font-size: 38px; }
|
|
87
|
+
.workspace { padding: 22px 18px; margin-top: 16px; }
|
|
88
|
+
.gallery { grid-template-columns: 1fr; }
|
|
89
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>easyROB · Workflow gallery</title>
|
|
7
|
+
<link rel="stylesheet" href="images.css">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<main class="shell">
|
|
11
|
+
<header class="hero">
|
|
12
|
+
<div class="hero-copy">
|
|
13
|
+
<p class="eyebrow"><span class="eyebrow-mark"></span> ROBERT / RESULTS</p>
|
|
14
|
+
<h1>Workflow gallery<span class="period">.</span></h1>
|
|
15
|
+
<p class="intro">Explore the visual output of your analysis. Open an image, copy it, or save a separate copy.</p>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="hero-stat" aria-live="polite">
|
|
18
|
+
<span id="image-count">0</span>
|
|
19
|
+
<small>images available</small>
|
|
20
|
+
</div>
|
|
21
|
+
</header>
|
|
22
|
+
|
|
23
|
+
<section class="workspace" aria-label="Generated images">
|
|
24
|
+
<div class="toolbar">
|
|
25
|
+
<div>
|
|
26
|
+
<p class="section-kicker">ANALYSIS OUTPUT</p>
|
|
27
|
+
<h2 class="section-title">Browse by stage</h2>
|
|
28
|
+
</div>
|
|
29
|
+
<p class="stage-count" id="stage-count">No stages</p>
|
|
30
|
+
</div>
|
|
31
|
+
<nav id="stage-filters" class="filters" aria-label="Filter images by workflow stage"></nav>
|
|
32
|
+
<div id="gallery" class="gallery" aria-live="polite"></div>
|
|
33
|
+
</section>
|
|
34
|
+
<footer>easyROB <span>·</span> Local workflow results</footer>
|
|
35
|
+
</main>
|
|
36
|
+
<script src="qrc:///qtwebchannel/qwebchannel.js"></script>
|
|
37
|
+
<script src="images.js"></script>
|
|
38
|
+
</body>
|
|
39
|
+
</html>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
(() => {
|
|
4
|
+
const filters = document.getElementById("stage-filters");
|
|
5
|
+
const gallery = document.getElementById("gallery");
|
|
6
|
+
const imageCount = document.getElementById("image-count");
|
|
7
|
+
const stageCount = document.getElementById("stage-count");
|
|
8
|
+
let state = { stages: [], total: 0 };
|
|
9
|
+
let selectedStage = "all";
|
|
10
|
+
let bridge = null;
|
|
11
|
+
|
|
12
|
+
const make = (tag, className, text) => {
|
|
13
|
+
const element = document.createElement(tag);
|
|
14
|
+
element.className = className;
|
|
15
|
+
if (text !== undefined) element.textContent = text;
|
|
16
|
+
return element;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function renderFilters() {
|
|
20
|
+
filters.replaceChildren();
|
|
21
|
+
const options = [{ id: "all", label: "All images", count: state.total },
|
|
22
|
+
...state.stages.map(stage => ({ id: stage.id, label: stage.label, count: stage.images.length }))];
|
|
23
|
+
for (const option of options) {
|
|
24
|
+
const button = make("button", "filter", option.label);
|
|
25
|
+
button.type = "button";
|
|
26
|
+
button.setAttribute("aria-pressed", String(selectedStage === option.id));
|
|
27
|
+
button.appendChild(make("span", "filter-count", String(option.count)));
|
|
28
|
+
button.addEventListener("click", () => {
|
|
29
|
+
selectedStage = option.id;
|
|
30
|
+
renderFilters();
|
|
31
|
+
renderGallery();
|
|
32
|
+
});
|
|
33
|
+
filters.appendChild(button);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function cardFor(image, stage) {
|
|
38
|
+
const card = make("article", "image-card");
|
|
39
|
+
const preview = make("div", "preview");
|
|
40
|
+
const picture = make("img", "");
|
|
41
|
+
picture.src = image.url;
|
|
42
|
+
picture.alt = image.name;
|
|
43
|
+
picture.loading = "lazy";
|
|
44
|
+
preview.appendChild(picture);
|
|
45
|
+
card.appendChild(preview);
|
|
46
|
+
|
|
47
|
+
const body = make("div", "card-body");
|
|
48
|
+
body.appendChild(make("p", "card-stage", stage.label));
|
|
49
|
+
body.appendChild(make("h2", "", image.name));
|
|
50
|
+
const actions = make("div", "actions");
|
|
51
|
+
for (const [name, label] of [["open", "Open"], ["copy", "Copy"], ["save", "Save as"], ["folder", "Folder"]]) {
|
|
52
|
+
const button = make("button", `action ${name === "open" ? "primary" : ""}`, label);
|
|
53
|
+
button.type = "button";
|
|
54
|
+
button.dataset.action = name;
|
|
55
|
+
button.addEventListener("click", () => {
|
|
56
|
+
if (bridge) bridge.performAction(image.id, name);
|
|
57
|
+
});
|
|
58
|
+
actions.appendChild(button);
|
|
59
|
+
}
|
|
60
|
+
body.appendChild(actions);
|
|
61
|
+
card.appendChild(body);
|
|
62
|
+
return card;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function renderGallery() {
|
|
66
|
+
gallery.replaceChildren();
|
|
67
|
+
const stages = selectedStage === "all" ? state.stages : state.stages.filter(stage => stage.id === selectedStage);
|
|
68
|
+
for (const stage of stages) {
|
|
69
|
+
for (const image of stage.images) gallery.appendChild(cardFor(image, stage));
|
|
70
|
+
}
|
|
71
|
+
if (!gallery.children.length) {
|
|
72
|
+
const empty = make("div", "empty");
|
|
73
|
+
empty.appendChild(make("span", "empty-icon", "◌"));
|
|
74
|
+
empty.appendChild(make("strong", "", "No images in this view"));
|
|
75
|
+
empty.appendChild(make("p", "", "Run a workflow to generate visual results."));
|
|
76
|
+
gallery.appendChild(empty);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
window.easyrobGallery = {
|
|
81
|
+
bridgeReady: false,
|
|
82
|
+
setData(nextState) {
|
|
83
|
+
state = nextState;
|
|
84
|
+
if (selectedStage !== "all" && !state.stages.some(stage => stage.id === selectedStage)) {
|
|
85
|
+
selectedStage = "all";
|
|
86
|
+
}
|
|
87
|
+
imageCount.textContent = String(state.total);
|
|
88
|
+
stageCount.textContent = `${state.stages.length} ${state.stages.length === 1 ? "stage" : "stages"}`;
|
|
89
|
+
renderFilters();
|
|
90
|
+
renderGallery();
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
window.easyrobGallery.setData(state);
|
|
95
|
+
if (window.qt && window.qt.webChannelTransport && window.QWebChannel) {
|
|
96
|
+
new QWebChannel(window.qt.webChannelTransport, channel => {
|
|
97
|
+
bridge = channel.objects.imageActions;
|
|
98
|
+
window.easyrobGallery.bridgeReady = true;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
})();
|