Skip to content

Commit cce759f

Browse files
authored
Merge pull request #399 from UW-Macrostrat/fixes
Random bugs
2 parents f02aee7 + 3552fb8 commit cce759f

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

pages/integrations/xdd/feedback/@sourceTextID/+Page.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function ExtractionIndex({setPaperID, customFeedback, selectedFeedbackType}) {
123123

124124
const data = getPGData("/kg_context_entities", {
125125
source_text: "eq." + sourceTextID,
126-
user_id: "is.null"
126+
version_id: "gt.0"
127127
});
128128

129129
if (data == null || models == null || entityTypes == null) {

pages/integrations/xdd/feedback/@sourceTextID/human/+Page.client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function Page() {
3030

3131
useEffect(() => {
3232
if (paper_id) {
33-
fetchPGData("kg_publication_entities", { paper_id: "eq." + paper_id })
33+
fetchPGData("/kg_publication_entities", { paper_id: "eq." + paper_id })
3434
.then((paper) => {
3535
setTitle(paper[0]?.citation?.title);
3636
});
@@ -99,13 +99,13 @@ function ExtractionIndex({setPaperID, title}) {
9999
function MultiFeedbackInterface({ data, models, entityTypes, title, ix, setIX }) {
100100
const currentData = data[ix];
101101

102-
const { feedback_id } = currentData;
102+
const { model_run } = currentData;
103103

104104
const autoSelect = window.location.href.split('autoselect=')[1]?.split(",");
105105

106106
return h("div.feedback-interface", [
107107
h('h1', title),
108-
h(FeedbackNotes, { feedback_id }),
108+
h(FeedbackNotes, { feedback_id: model_run }),
109109
h(FeedbackInterface, {
110110
data: currentData,
111111
models,

src/components/lex/map.client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ function ColumnsMapInner({
6464

6565
return h('div.lex-controls', [
6666
h.if(mapUrl !== "")('div.btn', { onClick: () => navigate(map) }, h(Icon, { icon: "map", className: 'icon' })),
67-
h.if(fossilsExist)('div.btn', { onClick: handleFossils }, h(Icon, { icon: "mountain", className: 'icon' })),
68-
h.if(filters.length > 0)('div.btn', { onClick: handleOutcrop }, h(Icon, { icon: "excavator", className: 'icon' })),
69-
h('div.btn', { onClick: handleSatellite }, h(Icon, { icon: "satellite", className: 'icon' })),
67+
h.if(fossilsExist)('div.' + (showFossils ? 'selected' : 'btn'), { onClick: handleFossils }, h(Icon, { icon: "mountain", className: 'icon' })),
68+
h.if(filters.length > 0)('div.' + (showOutcrop ? 'selected' : 'btn'), { onClick: handleOutcrop }, h(Icon, { icon: "excavator", className: 'icon' })),
69+
h('div.' + (showSatellite ? 'selected' : 'btn'), { onClick: handleSatellite }, h(Icon, { icon: "satellite", className: 'icon' })),
7070
])
7171
}
7272

src/components/lex/map.module.sass

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,15 @@
1919
justify-content: center
2020
cursor: pointer
2121

22+
.selected
23+
border-radius: 50%
24+
background-color: var(--secondary-color)
25+
width: 50px
26+
height: 50px
27+
display: flex
28+
align-items: center
29+
justify-content: center
30+
cursor: pointer
31+
2232
.icon
2333
cursor: pointer

0 commit comments

Comments
 (0)