Commit ca72a51
Revamp UI: share ord-app's look-and-feel and stack; add landing page
Rebuild the search/browse SPA on the same foundation as the ord-app
contribute/editor frontend so the two ORD frontends look and feel like
one product, and shared code can be extracted later:
- Mantine 7 with ord-app's theme and design tokens ported verbatim
(marked to keep in sync until extracted to a shared package), Tabler
icons, SCSS modules, and ports of ord-app's PaperButton, Pagination,
DataTable, and NotFound components.
- ord-schema-protobufjs bindings (same package and range as ord-app)
replacing the google-protobuf ord-schema bindings; display components
now type against the shared ord.I* interfaces.
- wouter routing (replacing react-router-dom) and axios (replacing
bare fetch), matching ord-app.
- ketcher-react + ketcher-standalone from npm (lazy-loaded chunk)
replacing the static Ketcher 2.5.1 iframe bundle; the manual
"download Ketcher into app/public" dev step and the Docker copy step
are gone (the legacy Flask editor keeps its own bundle).
- New landing page: hero with natural-language search (routes to /ask),
live reaction/dataset stats, action tiles, featured datasets and news
curated via src/data/homeContent.ts, and a citation card.
- All views rebuilt in the shared visual language: browse (DataTable),
search filters (Accordion/SegmentedControl/RangeSlider), result
cards, dataset view, reaction detail, selected set, NL search, About.
- Drop Bootstrap, jQuery, DataTables, and Material Icons CDN tags.
Fixes found during the migration: axios was transmitting protobufjs's
whole shared pool buffer for /api/compound_svg (HTTP 500); peak
wavelengths were formatted with Length units; yield precision displayed
raw float32 noise.
Verified against the in-process test backend: all routes render with no
console errors; substructure search, dataset charts, and reaction
detail work end-to-end. tsc -b, vite build, eslint, and prettier are
green.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 8cafe29 commit ca72a51
104 files changed
Lines changed: 10324 additions & 6068 deletions
File tree
- app
- public/img
- src
- assets
- components
- data
- hooks
- styles
- types
- utils
- views
- browse
- selected-set
- dataset-view
- nl-search
- reaction-view
- search
- ord_interface
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
63 | 61 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 62 | | |
77 | | - | |
| 63 | + | |
78 | 64 | | |
79 | 65 | | |
80 | 66 | | |
| |||
0 commit comments