Skip to content

Commit 350f230

Browse files
committed
Merge branch 'main' of https://github.com/UW-Macrostrat/web
* 'main' of https://github.com/UW-Macrostrat/web: Fixed correlation spacing Updated modules to fix correlation chart page Remove log Remove console log Fix feedback Map buttons highlight on click
2 parents 12d25b0 + 723f0a6 commit 350f230

File tree

11 files changed

+209
-206
lines changed

11 files changed

+209
-206
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,23 @@
6161
"@macrostrat-web/sift": "workspace:*",
6262
"@macrostrat-web/text-toolchain": "workspace:*",
6363
"@macrostrat-web/utility-functions": "workspace:*",
64-
"@macrostrat/api-types": "^1.1.3",
64+
"@macrostrat/api-types": "^1.1.4",
6565
"@macrostrat/color-utils": "^1.1.2",
66-
"@macrostrat/column-components": "^1.4.0",
67-
"@macrostrat/column-views": "^2.3.1",
66+
"@macrostrat/column-components": "^1.4.2",
67+
"@macrostrat/column-views": "^2.4.3",
6868
"@macrostrat/data-components": "^0.2.2",
69-
"@macrostrat/data-sheet": "^2.2.1",
69+
"@macrostrat/data-sheet": "^2.2.2",
7070
"@macrostrat/feedback-components": "^1.1.10",
7171
"@macrostrat/form-components": "^0.2.5",
7272
"@macrostrat/hyper": "^3.0.6",
7373
"@macrostrat/map-interface": "^1.6.0",
7474
"@macrostrat/map-styles": "^1.2.4",
7575
"@macrostrat/mapbox-react": "^2.6.4",
7676
"@macrostrat/mapbox-utils": "^1.6.1",
77-
"@macrostrat/style-system": "^0.2.3",
78-
"@macrostrat/svg-map-components": "^1.0.6",
79-
"@macrostrat/timescale": "^2.3.0",
80-
"@macrostrat/ui-components": "^4.5.2",
77+
"@macrostrat/style-system": "^0.2.4",
78+
"@macrostrat/svg-map-components": "^1.0.7",
79+
"@macrostrat/timescale": "^2.3.2",
80+
"@macrostrat/ui-components": "^4.5.3",
8181
"@react-hook/size": "^2.1.2",
8282
"@supabase/postgrest-js": "^1.18.1",
8383
"@turf/bbox": "^6.5.0",

packages/column-builder/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"@blueprintjs/popover2": "^1.2.1",
1414
"@blueprintjs/select": "^5.2.1",
1515
"@macrostrat-web/settings": "workspace:*",
16-
"@macrostrat/column-components": "^1.4.0",
17-
"@macrostrat/data-components": "^0.0.6",
18-
"@macrostrat/form-components": "^0.2.2",
16+
"@macrostrat/column-components": "^1.4.2",
17+
"@macrostrat/data-components": "^0.2.2",
18+
"@macrostrat/form-components": "^0.2.5",
1919
"@macrostrat/hyper": "^3.0.6",
20-
"@macrostrat/ui-components": "^4.1.2",
20+
"@macrostrat/ui-components": "^4.5.3",
2121
"@mapbox/mapbox-gl-draw": "^1.3.0",
2222
"@supabase/postgrest-js": "^1.18.1",
2323
"@types/mapbox__mapbox-gl-draw": "^1.2.3",

packages/globe-dev/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"@macrostrat/cesium-vector-provider": "2.0.2",
1919
"@macrostrat/cesium-viewer": "^1.2.1",
2020
"@macrostrat/hyper": "^3.0.6",
21-
"@macrostrat/mapbox-react": "^2.6.0",
22-
"@macrostrat/mapbox-utils": "^1.5.0",
21+
"@macrostrat/mapbox-react": "^2.6.4",
22+
"@macrostrat/mapbox-utils": "^1.6.1",
2323
"cesium": "^1.135.0",
2424
"resium": "^1.19.0"
2525
}

packages/lithology-hierarchy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"@macrostrat-web/settings": "workspace:^",
88
"@macrostrat/hyper": "^3.0.6",
9-
"@macrostrat/ui-components": "^4.1.2",
9+
"@macrostrat/ui-components": "^4.5.3",
1010
"@visx/gradient": "^3.3.0",
1111
"@visx/group": "^3.3.0",
1212
"@visx/hierarchy": "^3.3.0",

packages/section-editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@blueprintjs/core": "^5.10.3",
1313
"@macrostrat/hyper": "^3.0.6",
14-
"@macrostrat/ui-components": "^4.1.2",
14+
"@macrostrat/ui-components": "^4.5.3",
1515
"chroma-js": "^2.0.6",
1616
"d3": "^5.12.0",
1717
"labella": "^1.1.4",

pages/columns/correlation/main.module.sass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ $map-size-inset: 12em
102102
height: 100%
103103
display: flex
104104
flex-direction: column
105+
// Padding should be included in the fullscreen page, probably
106+
padding: 2em
105107

106108

107109
.correlation-chart-inner

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)