Skip to content

Commit 44fb16e

Browse files
committed
Merge branch 'main' into add-ui
2 parents 34e6596 + c3d9085 commit 44fb16e

File tree

26 files changed

+1306
-240
lines changed

26 files changed

+1306
-240
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ concurrency:
1515
on:
1616
push:
1717
branches: [main]
18+
pull_request:
19+
branches: [main]
20+
21+
env:
22+
VITE_MAPBOX_API_TOKEN: ${{ secrets.VITE_MAPBOX_API_TOKEN }}
1823

1924
jobs:
2025
test:
@@ -47,12 +52,14 @@ jobs:
4752
curl https://rclone.org/install.sh | sudo bash
4853
4954
- name: Upload to S3
55+
if: github.event_name == 'push'
5056
env:
5157
S3_BUCKET: ${{ vars.S3_BUCKET }}
5258
S3_PATH: ${{ vars.S3_PATH }}
5359
S3_ENDPOINT: ${{ vars.S3_ENDPOINT }}
5460
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
5561
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
62+
VITE_MAPBOX_API_TOKEN: ${{ secrets.VITE_MAPBOX_API_TOKEN }}
5663
run: |
5764
echo "Uploading to S3 bucket: $S3_BUCKET"
5865
rclone sync ./storybook-static \

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
"vite": "^5.4.11"
6565
},
6666
"resolutions": {
67-
"@types/react": "18.3.12"
67+
"@types/react": "18.3.12",
68+
"react": "^18.3.1",
69+
"react-dom": "^18.3.1"
6870
},
6971
"workspaces": [
7072
"packages/*",

packages/column-components/src/notes/connector.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const NotePositioner = forwardRef(function (
3131
x: paddingLeft - outerPad,
3232
y,
3333
height: noteHeight + 2 * outerPad,
34+
overflow: "visible",
3435
style: { overflowY: "visible" },
3536
},
3637
[

packages/column-components/src/notes/note.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ export function NotesList(props: NoteListProps) {
6868
return h(
6969
"g",
7070
notesInfo.map(({ note, pixelOffset, pixelHeight, spacing }) => {
71+
// If the note has a bad pixelOffset, skip it
72+
73+
if (pixelOffset == null || pixelHeight == null) {
74+
return null;
75+
}
76+
7177
return h(Note, {
7278
key: note.id,
7379
note,
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "@macrostrat/column-creator",
3+
"version": "0.0.1",
4+
"description": "Interface for defining stratigraphic columns in a standardized format",
5+
"type": "module",
6+
"source": "src/index.ts",
7+
"main": "dist/esm/index.js",
8+
"types": "dist/esm/index.d.ts",
9+
"node": "dist/node/index.js",
10+
"sideEffects": [
11+
"**/*.css"
12+
],
13+
"exports": {
14+
".": {
15+
"source": "./src/index.ts",
16+
"import": "./dist/esm/index.js",
17+
"types": "./dist/esm/index.d.ts",
18+
"node": "./dist/node/index.js"
19+
}
20+
},
21+
"targets": {
22+
"node": {
23+
"engines": {
24+
"node": ">=14"
25+
}
26+
}
27+
},
28+
"scripts": {
29+
"build": "rm -rf dist && parcel build"
30+
},
31+
"dependencies": {
32+
"@macrostrat/column-components": "workspace:^",
33+
"@macrostrat/column-views": "workspace:^",
34+
"@macrostrat/hyper": "^3.0.6",
35+
"zustand": "^5.0.3",
36+
"zustand-computed": "^2.0.2"
37+
},
38+
"peerDependencies": {
39+
"react": "^16.8.6||^17.0.0||^18.0.0"
40+
},
41+
"repository": {
42+
"type": "git",
43+
"url": "https://github.com/UW-Macrostrat/web-components.git",
44+
"directory": "packages/column-creator"
45+
},
46+
"devDependencies": {
47+
"parcel": "^2.14.4"
48+
},
49+
"files": [
50+
"dist",
51+
"src"
52+
]
53+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
div.data-editor-content
2+
width: 800px

0 commit comments

Comments
 (0)