Skip to content

Commit 568f8a3

Browse files
committed
Merge branch 'main' into fossils
2 parents 6d9af32 + cc9e50d commit 568f8a3

File tree

55 files changed

+535
-979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+535
-979
lines changed

.idea/vcs.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
compressionLevel: mixed
22

3-
enableGlobalCache: false
3+
enableGlobalCache: true
44

55
packageExtensions:
66
"@next/react-dev-overlay@*":

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@
6969
"@macrostrat/column-views": "^2.1.2",
7070
"@macrostrat/data-components": "^0.2.0",
7171
"@macrostrat/data-sheet": "^2.0.2",
72-
"@macrostrat/feedback-components": "^1.1.4",
72+
"@macrostrat/feedback-components": "^1.1.7",
7373
"@macrostrat/form-components": "^0.2.1",
7474
"@macrostrat/hyper": "^3.0.6",
75-
"@macrostrat/map-interface": "^1.5.1",
75+
"@macrostrat/map-interface": "^1.5.2",
7676
"@macrostrat/map-styles": "^1.2.0",
7777
"@macrostrat/mapbox-react": "^2.6.0",
7878
"@macrostrat/mapbox-utils": "^1.5.0",
7979
"@macrostrat/style-system": "^0.2.1",
8080
"@macrostrat/svg-map-components": "^1.0.4",
8181
"@macrostrat/timescale": "^2.2.1",
82-
"@macrostrat/ui-components": "^4.4.0",
82+
"@macrostrat/ui-components": "^4.4.4",
8383
"@react-hook/size": "^2.1.2",
8484
"@supabase/postgrest-js": "^1.18.1",
8585
"@turf/bbox": "^6.5.0",
@@ -123,7 +123,7 @@
123123
"history": "^5.3.0",
124124
"immutability-helper": "^3.1.1",
125125
"jose": "^5.1.2",
126-
"mapbox-gl": "^2.15.0",
126+
"mapbox-gl": "^3.13.0",
127127
"new-github-issue-url": "^1.0.0",
128128
"part-regex": "^0.1.2",
129129
"react": "^18.3.0",

packages/column-builder/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
"@macrostrat-web/settings": "workspace:*",
1616
"@macrostrat/column-components": "^1.0.3",
1717
"@macrostrat/data-components": "^0.0.6",
18-
"@macrostrat/form-components": "^0.1.2",
18+
"@macrostrat/form-components": "^0.2.2",
1919
"@macrostrat/hyper": "^3.0.6",
2020
"@macrostrat/ui-components": "^4.1.2",
2121
"@mapbox/mapbox-gl-draw": "^1.3.0",
2222
"@supabase/postgrest-js": "^1.18.1",
2323
"@types/mapbox__mapbox-gl-draw": "^1.2.3",
2424
"axios": "^1.7.9",
2525
"cross-fetch": "^3.1.5",
26-
"mapbox-gl": "^2.8.2",
26+
"mapbox-gl": "^3.0.0",
2727
"react": "^18",
2828
"react-beautiful-dnd": "^13.1.0",
2929
"react-color": "^2.19.3"

pages/columns/+Page.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ import {
77
StickyHeader,
88
} from "~/components";
99
import { AnchorButton, ButtonGroup } from "@blueprintjs/core";
10-
import { Tag } from "@macrostrat/data-components";
11-
import h from "./main.module.sass";
10+
import { Tag } from "@blueprintjs/core";
11+
import hyper from "@macrostrat/hyper";
12+
import styles from "./main.module.sass";
13+
1214
import { useData } from "vike-react/useData";
1315
import { ClientOnly } from "vike-react/ClientOnly";
1416
import { navigate } from "vike/client/router";
1517
import { SearchBar } from "~/components/general";
1618

19+
const h = hyper.styled(styles);
20+
1721
export function Page(props) {
1822
return h(ColumnListPage, props);
1923
}

pages/columns/@column/+data.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function data(pageContext) {
4444
const col = columns?.[0] ?? {};
4545

4646
if (!columns?.[0]?.properties) {
47-
console.warn("Column has no properties:", columns);
47+
console.warn("Column has no properties:", columns);
4848
}
4949

5050
const columnInfo: ColumnSummary = {
@@ -79,8 +79,6 @@ async function getData(
7979
assembleURL(entity, { ...args, status_code: "active" })
8080
);
8181
let data = unwrapResponse(res);
82-
console.log("Received", entity, "data:", data);
83-
8482

8583
if (data.length > 0) {
8684
return data;

pages/columns/@column/column-inspector/modal-panel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ export function ModalUnitPanel(props) {
6262
}
6363

6464
if(unit?.environ_id) {
65-
window.open('/lex/environments/' + unit.environ_id, '_self');
65+
window.open('/lex/environment/' + unit.environ_id, '_self');
6666
}
6767

6868
if(unit?.int_id) {
6969
window.open('/lex/intervals/' + unit.int_id, '_self');
7070
}
7171

7272
if(unit?.strat_name_id) {
73-
window.open('/lex/strat-names/' + unit.strat_name_id, '_self');
73+
window.open('/lex/strat-name/' + unit.strat_name_id, '_self');
7474
}
7575
},
7676
});

pages/columns/groups/@group/+Page.client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010

1111
export function Page() {
1212
const { resData, colData, taxaData, refs } = useData();
13-
14-
const id = resData.environ_id;
13+
14+
const id = resData.col_group_id;
1515
const features = colData?.features || [];
1616
const timescales = resData?.timescales || [];
1717

@@ -25,5 +25,5 @@ export function Page() {
2525
h(Timescales, { timescales }),
2626
];
2727

28-
return LexItemPage({ children, id, refs, resData, siftLink: "environment" });
28+
return LexItemPage({ children, id, refs, resData, siftLink: "groups" });
2929
}

pages/dev/concepts/detrital-zircon/+Page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function Page() {
7474
h(
7575
APIProvider,
7676
{
77-
baseURL: "https://dev2.macrostrat.org/api/v2",
77+
baseURL: "https://dev.macrostrat.org/api/v2",
7878
unwrapResponse: (res) => {
7979
return res.success.data;
8080
},

pages/dev/map/saved-locations/details-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function SpotsPanel({ onSelectPosition, map }) {
3939
const fetchFeatures = async () => {
4040
try {
4141
const response = await fetch(
42-
"https://dev2.macrostrat.org/api/pg/saved_locations"
42+
"https://dev.macrostrat.org/api/pg/saved_locations"
4343
);
4444
if (!response.ok) {
4545
throw new Error(`Error ${response.status}: ${response.statusText}`);

0 commit comments

Comments
 (0)