Commit 0724b35
Add rich HTML table UI for Eric's query results (#32)
Replace raw JSON output with styled, scrollable table featuring:
**Features**:
- Thumbnail images (clickable to full size)
- Placeholder "No image" boxes for samples without thumbnails
- Clickable sample PIDs linking to OpenContext records
- Clickable site names linking to site pages
- Formatted descriptions with proper line breaks
- Geographic coordinates (lat/lon)
- Zebra-striped rows for readability
- Sticky header that stays visible while scrolling
- Result count display
**Layout**:
- Max height: 600px with vertical scrolling
- 5 columns: Thumbnail | Sample | Description | Site | Location
- Responsive sizing with max-widths
- Alternating row colors (#f8f9fa background)
**Handles edge cases**:
- Loading state: shows "Loading samples…"
- Empty results: friendly message about Path 1 requirements
- Missing thumbnails: grey placeholder box
- Long descriptions: max-width with proper wrapping
Significantly improves data exploration experience over raw JSON.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 043db38 commit 0724b35
1 file changed
+80
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
904 | 980 | | |
905 | 981 | | |
906 | 982 | | |
| |||
0 commit comments