Commit 2f85048
committed
Site: swap
* Replace rehype-autolink-headings with svelte-multiselect heading_anchors
- Use heading_ids() preprocessor to add IDs to headings at build time
- Use heading_anchors() attachment in layout for runtime anchor icons
- Add :target CSS styling for headings when navigated to
- Fix link fragment in WBM readme (#links-to-wbm-files)
- Disable MD051 markdownlint rule (link defined at runtime)
* Fix gh-pages workflow to use valid pre-build input
The reusable deno-gh-pages workflow only supports pre-build and post-build
inputs, not post-install. Move matterviz symlink commands into pre-build.
Fix DynamicScatter and MetricsTable test selectors and async handling
- Update DynamicScatter tests to use .controls-row instead of .controls-grid
- Fix checkbox indexing to account for log-toggle checkboxes in DOM order
- Add tick() calls after mount in MetricsTable tests for proper rendering
- Simplify heatmap toggle test assertions
* Delete local TableColumnToggleMenu, import ToggleMenu from matterviz
Now that matterviz is installed from main, use the ToggleMenu component
from matterviz instead of maintaining a local copy. Also adds SvelteKit
sync step to the CI workflow to ensure types are generated before packaging.
* Fix gh-pages workflow: run matterviz build in subshell to preserve working directory
* Install matterviz from main in vitest CI job
* Refactor org logos, fix DynamicScatter types, improve test stability
- Extract Logo component from MetricsTable and [slug]/+page.svelte
- Add icon name validation in labels.ts for matterviz icons
- Remove unused rehype-autolink-headings and rehype-slug packages
- Fix DynamicScatter type errors (remove AxisConfig casts, add y2 to data_loader)
- Add optional chaining to axes.x/y in tooltip for null safety
- Update test selectors to use label titles instead of index-based queries
- Change toBeDefined() to not.toBeNull() for querySelector results
* Fix test failures: matterviz mocks and table-export recursion
- Use importOriginal in matterviz mocks to preserve ICON_DATA export
- Save original createElement before mocking to prevent infinite recursion
* Refactor label keys to use property names for data access
- Add property field to Label type for cases where key differs from
property name (e.g. geo_opt symmetry metrics)
- Update METADATA_COLS, HYPERPARAMS to use actual property names as keys
- Extract get_label_path/get_label_value helpers in DynamicScatter
- Add data_loader to color bar for dynamic property switching
- Update test expectations for new label structure
* Fix test failures from label key refactoring
- Add matterviz/table mock for ToggleMenu component
- Update metadata_cols test to use keys for filtering, labels for header checks
- Update metrics test to use graph_construction_radius key
* Skip tests for ToggleMenu component now from matterviz
The column toggle functionality is now provided by matterviz's
ToggleMenu component which is mocked in tests. Skip tests that
depend on its internal DOM structure (.column-toggles summary).
Move document binding inside describe block for Deno compatibility
The top-level document.createElement.bind(document) was throwing in
non-DOM environments (Deno) before describe.skipIf(IS_DENO) could
skip the tests. Now bound lazily in beforeAll inside the skip block.
Increase timeout for flaky MetricsTable testsrehype-autolink-headings for heading-anchors, use ToggleMenu from matterviz, improve DynamicScatter with interactive axes labels (#315)1 parent 6a52771 commit 2f85048
File tree
33 files changed
+472
-588
lines changed- .github/workflows
- data/wbm
- site
- src
- lib
- routes
- models/[slug]
- tests
- lib
- routes
33 files changed
+472
-588
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
| 52 | + | |
55 | 53 | | |
56 | | - | |
| 54 | + | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
248 | | - | |
| 251 | + | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
254 | | - | |
| 257 | + | |
| 258 | + | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
| |||
0 commit comments