Skip to content

Commit dcb8464

Browse files
Fraetorjfrost-mo
authored andcommitted
WIP Add search capability to CSET UI
Additionally included is a conversion to JSON Lines (In theory it should be more efficient, but in practice we still load the whole string first, so I may revert. At least it looks nicer in the index file.) Finally there are also some experiments with the UI for facets, ahead of getting feedback from the user interviews. The framework is there for facet-based searching, but the current implementation of search is very basic, only doing exact substring matching. Additional functionality should be added to the test function constructed in parse_query.
1 parent 7a02e93 commit dcb8464

File tree

6 files changed

+17898
-70
lines changed

6 files changed

+17898
-70
lines changed

src/CSET/cset_workflow/app/install_website_skeleton/file/html/index.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,37 @@ <h1>CSET</h1>
1717
<button id="clear-plots">⎚ Clear view</button>
1818
<button id="description-toggle">⇲ Hide description</button>
1919
</header>
20+
<search>
21+
<input type="search" name="query" id="filter-query" placeholder="Search...">
22+
<fieldset>
23+
<legend>Facets</legend>
24+
<div>
25+
<input type="checkbox" name="frobnicate" id="filter-foo">
26+
<label for="filter-foo">Frobnicate</label>
27+
</div>
28+
<div>
29+
<label for="filter-start-date">Start</label>
30+
<input type="date" name="start-date" id="filder-start-date">
31+
to
32+
<label for="filter-end-date">End</label>
33+
<input type="date" name="end-date" id="filder-end-date">
34+
</div>
35+
<div>
36+
<label for="filter-field">Field</label>
37+
<select name="field" id="filter-field">
38+
<option value="" selected>Any</option>
39+
<option>temperature_at_screen_level</option>
40+
<option>relative_humidity_at_screen_level</option>
41+
<option>x_wind</option>
42+
<option>y_wind</option>
43+
</select>
44+
</div>
45+
</fieldset>
46+
</search>
2047
<hr>
21-
<!-- Links to diagnostics get inserted here. -->
48+
<ul id="diagnostics">
49+
<!-- Links to diagnostics get inserted here. -->
50+
</ul>
2251
</nav>
2352
<main>
2453
<article id="single-frame">

0 commit comments

Comments
 (0)