Skip to content

Commit f9440de

Browse files
committed
changes
2 parents 27a50a3 + 6e845ce commit f9440de

4 files changed

Lines changed: 140 additions & 0 deletions

File tree

examples/custom-frontends/starter/frontend/app.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,37 @@ const state = {
1515
selectedRunIds: [],
1616
};
1717

18+
/*
19+
Trackio routes used by this starter today:
20+
- /api/get_all_projects
21+
- /api/get_runs_for_project
22+
- /api/get_metrics_for_run
23+
- /api/get_metric_values
24+
- /api/get_traces
25+
26+
Useful routes for expanding this starter toward the full dashboard:
27+
- /api/get_system_metrics_for_run
28+
- /api/get_system_logs
29+
- /api/get_system_logs_batch
30+
- /api/get_logs
31+
- /api/get_logs_batch
32+
- /api/get_snapshot
33+
- /api/get_alerts
34+
- /api/query_project
35+
- /api/get_project_summary
36+
- /api/get_run_summary
37+
- /api/get_project_files
38+
- /api/get_settings
39+
- /api/get_run_mutation_status
40+
- /api/delete_run
41+
- /api/rename_run
42+
- /api/force_sync
43+
- /api/bulk_upload_media
44+
- /api/upload
45+
46+
File/media URLs:
47+
- /file?path=ABSOLUTE_PATH_FROM_API
48+
*/
1849
const RUN_COLORS = [
1950
"#1f77b4",
2051
"#ff7f0e",

examples/custom-frontends/starter/frontend/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@
5151
<div class="nav-tabs">
5252
<button class="nav-link active" data-page-target="metrics">Metrics</button>
5353
<button class="nav-link" data-page-target="traces">Traces</button>
54+
<!--
55+
Trackio's full dashboard also includes tabs like these.
56+
Uncomment them when you implement the corresponding page sections.
57+
58+
<button class="nav-link" data-page-target="system">System Metrics</button>
59+
<button class="nav-link" data-page-target="media">Media & Tables</button>
60+
<button class="nav-link" data-page-target="reports">Alerts & Reports</button>
61+
<button class="nav-link" data-page-target="runs">Runs</button>
62+
<button class="nav-link" data-page-target="files">Files</button>
63+
<button class="nav-link" data-page-target="settings">Settings</button>
64+
-->
5465
</div>
5566
</nav>
5667

@@ -88,6 +99,34 @@ <h1>Traces</h1>
8899
</table>
89100
</div>
90101
</section>
102+
103+
<!--
104+
Future page shells you may want to add:
105+
106+
<section class="page" data-page="system">
107+
Build this from /api/get_system_metrics_for_run and /api/get_system_logs.
108+
</section>
109+
110+
<section class="page" data-page="media">
111+
Build this from /api/get_logs, /api/get_snapshot, /api/get_project_files, and /file?path=...
112+
</section>
113+
114+
<section class="page" data-page="reports">
115+
Build this from /api/get_alerts and /api/query_project.
116+
</section>
117+
118+
<section class="page" data-page="runs">
119+
Build this from /api/get_runs_for_project, /api/get_run_summary, /api/delete_run, and /api/rename_run.
120+
</section>
121+
122+
<section class="page" data-page="files">
123+
Build this from /api/get_project_files and /file?path=...
124+
</section>
125+
126+
<section class="page" data-page="settings">
127+
Build this from /api/get_settings, /api/force_sync, and /api/get_run_mutation_status.
128+
</section>
129+
-->
91130
</main>
92131
</div>
93132

trackio/frontend_templates/starter/app.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,37 @@ const state = {
1515
selectedRunIds: [],
1616
};
1717

18+
/*
19+
Trackio routes used by this starter today:
20+
- /api/get_all_projects
21+
- /api/get_runs_for_project
22+
- /api/get_metrics_for_run
23+
- /api/get_metric_values
24+
- /api/get_traces
25+
26+
Useful routes for expanding this starter toward the full dashboard:
27+
- /api/get_system_metrics_for_run
28+
- /api/get_system_logs
29+
- /api/get_system_logs_batch
30+
- /api/get_logs
31+
- /api/get_logs_batch
32+
- /api/get_snapshot
33+
- /api/get_alerts
34+
- /api/query_project
35+
- /api/get_project_summary
36+
- /api/get_run_summary
37+
- /api/get_project_files
38+
- /api/get_settings
39+
- /api/get_run_mutation_status
40+
- /api/delete_run
41+
- /api/rename_run
42+
- /api/force_sync
43+
- /api/bulk_upload_media
44+
- /api/upload
45+
46+
File/media URLs:
47+
- /file?path=ABSOLUTE_PATH_FROM_API
48+
*/
1849
const RUN_COLORS = [
1950
"#1f77b4",
2051
"#ff7f0e",

trackio/frontend_templates/starter/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@
5151
<div class="nav-tabs">
5252
<button class="nav-link active" data-page-target="metrics">Metrics</button>
5353
<button class="nav-link" data-page-target="traces">Traces</button>
54+
<!--
55+
Trackio's full dashboard also includes tabs like these.
56+
Uncomment them when you implement the corresponding page sections.
57+
58+
<button class="nav-link" data-page-target="system">System Metrics</button>
59+
<button class="nav-link" data-page-target="media">Media & Tables</button>
60+
<button class="nav-link" data-page-target="reports">Alerts & Reports</button>
61+
<button class="nav-link" data-page-target="runs">Runs</button>
62+
<button class="nav-link" data-page-target="files">Files</button>
63+
<button class="nav-link" data-page-target="settings">Settings</button>
64+
-->
5465
</div>
5566
</nav>
5667

@@ -88,6 +99,34 @@ <h1>Traces</h1>
8899
</table>
89100
</div>
90101
</section>
102+
103+
<!--
104+
Future page shells you may want to add:
105+
106+
<section class="page" data-page="system">
107+
Build this from /api/get_system_metrics_for_run and /api/get_system_logs.
108+
</section>
109+
110+
<section class="page" data-page="media">
111+
Build this from /api/get_logs, /api/get_snapshot, /api/get_project_files, and /file?path=...
112+
</section>
113+
114+
<section class="page" data-page="reports">
115+
Build this from /api/get_alerts and /api/query_project.
116+
</section>
117+
118+
<section class="page" data-page="runs">
119+
Build this from /api/get_runs_for_project, /api/get_run_summary, /api/delete_run, and /api/rename_run.
120+
</section>
121+
122+
<section class="page" data-page="files">
123+
Build this from /api/get_project_files and /file?path=...
124+
</section>
125+
126+
<section class="page" data-page="settings">
127+
Build this from /api/get_settings, /api/force_sync, and /api/get_run_mutation_status.
128+
</section>
129+
-->
91130
</main>
92131
</div>
93132

0 commit comments

Comments
 (0)