Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
203 commits
Select commit Hold shift + click to select a range
2f1f0a8
main page to react
davidsklar99 May 12, 2025
e2a0d5d
updated navbar
davidsklar99 May 12, 2025
f23802d
update footer
davidsklar99 May 12, 2025
7320caa
fix start styling
davidsklar99 May 12, 2025
456b0ae
location styling
davidsklar99 May 12, 2025
5842512
footer styling
davidsklar99 May 12, 2025
ba91bce
btn styling
davidsklar99 May 12, 2025
5fb8fd5
styling updates
davidsklar99 May 12, 2025
049d0ae
make page
davidsklar99 May 13, 2025
5041dfc
styling updates
davidsklar99 May 13, 2025
7fd9d31
dynamically update nnumbers
davidsklar99 May 13, 2025
7de3209
updated people
davidsklar99 May 13, 2025
d9929ec
update about page
davidsklar99 May 13, 2025
629ed8b
stylingn fix
davidsklar99 May 13, 2025
5ca182c
pagination maps page
davidsklar99 May 15, 2025
d516cc0
main oage styling issue
davidsklar99 May 15, 2025
bd3ceba
main page styling
davidsklar99 May 15, 2025
c26fabc
maps styling
davidsklar99 May 15, 2025
ac9cd88
maps page search vbar
davidsklar99 May 16, 2025
1842cfc
pagination
davidsklar99 May 16, 2025
08a2172
collapsable column cards
davidsklar99 May 16, 2025
de7f141
search columns
davidsklar99 May 16, 2025
0f60570
columnn list table
davidsklar99 May 16, 2025
034c7e9
status coloring
davidsklar99 May 16, 2025
ef91837
table styling
davidsklar99 May 16, 2025
e8386ee
added environmetns page
davidsklar99 May 16, 2025
ed1b389
environment list
davidsklar99 May 16, 2025
9daf767
environ table
davidsklar99 May 16, 2025
597f870
group by class
davidsklar99 May 16, 2025
780d52a
group by class then type
davidsklar99 May 16, 2025
5fe21f9
stylign fix
davidsklar99 May 16, 2025
d98d921
styling
davidsklar99 May 16, 2025
886e439
only include typed items
davidsklar99 May 16, 2025
d3698b4
search bar
davidsklar99 May 16, 2025
44af5be
environments added
davidsklar99 May 16, 2025
272dd18
update lex page
davidsklar99 May 16, 2025
807819c
econn var names
davidsklar99 May 16, 2025
ea0ad0e
tooltip added
davidsklar99 May 16, 2025
daa2054
econ popover
davidsklar99 May 16, 2025
866e466
interval added no fiklter
davidsklar99 May 16, 2025
252b53b
search names
davidsklar99 May 16, 2025
333fc43
filter by top and bottom interval
davidsklar99 May 16, 2025
b71153e
add itnerval to lex homepage
davidsklar99 May 16, 2025
fe76661
dedicated page for interval ids
davidsklar99 May 16, 2025
e6481b8
interval updates
davidsklar99 May 16, 2025
4582abb
strat name test page
davidsklar99 May 16, 2025
aeaa4ec
ready to insert map
davidsklar99 May 17, 2025
5df33a6
testing itnerval polygons
davidsklar99 May 17, 2025
e763f4e
no pagination
davidsklar99 May 18, 2025
3076832
obsolete styling and no expand
davidsklar99 May 18, 2025
f3f4422
update column tables
davidsklar99 May 18, 2025
2ac1ab9
moved search bar
davidsklar99 May 18, 2025
81a8623
map with column points
davidsklar99 May 18, 2025
dbf2bfe
added popups on markers
davidsklar99 May 18, 2025
5ad46e0
popup styling
davidsklar99 May 18, 2025
e766238
popup styling
davidsklar99 May 18, 2025
3d397c0
map updates when searching
davidsklar99 May 18, 2025
f85a52e
global link on individual page
davidsklar99 May 18, 2025
b454bda
main styling
davidsklar99 May 18, 2025
95921bd
filter works
davidsklar99 May 18, 2025
a7796c0
page styling
davidsklar99 May 18, 2025
4c75715
minor style
davidsklar99 May 18, 2025
729479d
test page map works
davidsklar99 May 18, 2025
64e4259
map loads
davidsklar99 May 18, 2025
bb13f6d
map styling
davidsklar99 May 18, 2025
92adba3
timescale individual page annd chart
davidsklar99 May 19, 2025
e9f679d
lex homepage update
davidsklar99 May 19, 2025
4bb8e3a
filter moved
davidsklar99 May 19, 2025
d72be11
moved filter
davidsklar99 May 19, 2025
87257ad
one age filter interval
davidsklar99 May 19, 2025
7f8eb93
change header
davidsklar99 May 19, 2025
23c644a
map correct width
davidsklar99 May 19, 2025
74f71ba
map styling
davidsklar99 May 19, 2025
48114bf
color change
davidsklar99 May 19, 2025
cd39903
new strat page
davidsklar99 May 19, 2025
5e7202d
updte breadcrumbs
davidsklar99 May 19, 2025
df27432
slow filter
davidsklar99 May 19, 2025
34e1442
filter using api instead of frontend
davidsklar99 May 19, 2025
f5eb5b3
filter styling
davidsklar99 May 19, 2025
1d115a2
map data fix
davidsklar99 May 19, 2025
567c116
groups page
davidsklar99 May 19, 2025
9640006
added groups
davidsklar99 May 19, 2025
86de7bb
update timescale logic
davidsklar99 May 19, 2025
d062b15
styling
davidsklar99 May 19, 2025
8f0fda0
groups moved to columns page
davidsklar99 May 19, 2025
7167331
images added to project
davidsklar99 May 19, 2025
d322fe3
timescale vertical
davidsklar99 May 19, 2025
180a952
interval map handles click
davidsklar99 May 19, 2025
e8cb867
timescale clicking logic
davidsklar99 May 19, 2025
6b5150b
comment out timescale click handler
davidsklar99 May 19, 2025
1bde5cf
dynamic page
davidsklar99 May 19, 2025
28ebb8f
filter
davidsklar99 May 20, 2025
8dbbe15
employee type tags on filter
davidsklar99 May 20, 2025
b8b9c38
testign new map
davidsklar99 May 20, 2025
e4cbafd
test map works
davidsklar99 May 20, 2025
5810582
use map component
davidsklar99 May 20, 2025
4ed3d8c
timescale clickinng kinda works
davidsklar99 May 20, 2025
5ac7179
handles clicks correctly
davidsklar99 May 20, 2025
06b9a18
handle clicks
davidsklar99 May 20, 2025
8568873
working columns map in test
davidsklar99 May 20, 2025
e29a30c
new map works
davidsklar99 May 20, 2025
0b28913
maap works
davidsklar99 May 20, 2025
91fe035
map works
davidsklar99 May 20, 2025
816ed13
ready to mvoe to component
davidsklar99 May 20, 2025
31f732f
filterable column component
davidsklar99 May 20, 2025
ec39581
starting to develop select column
davidsklar99 May 20, 2025
ef62ce8
map styling
davidsklar99 May 20, 2025
56e133a
select columns doesnt work
davidsklar99 May 20, 2025
2d77ef8
testing
davidsklar99 May 20, 2025
67b5e49
handle no timescales
davidsklar99 May 20, 2025
1664b66
sift link
davidsklar99 May 20, 2025
f2f43a1
sift styling
davidsklar99 May 20, 2025
3eadbd8
filter map
davidsklar99 May 20, 2025
41c8a4a
maop styling
davidsklar99 May 20, 2025
d16b230
map testing
davidsklar99 May 20, 2025
bf3dfa3
prevalent taxa
davidsklar99 May 20, 2025
2984907
all data there
davidsklar99 May 20, 2025
cd15b94
summary data works
davidsklar99 May 20, 2025
0ff5a1a
prevalent taxa container
davidsklar99 May 20, 2025
9c47105
summary data displayed
davidsklar99 May 20, 2025
4b065f1
map stylinh
davidsklar99 May 20, 2025
8cf1899
chart legends
davidsklar99 May 20, 2025
1446c74
link to econs
davidsklar99 May 20, 2025
c37ccbb
less api calls
davidsklar99 May 20, 2025
aa9caf5
area styling
davidsklar99 May 20, 2025
7b2f1e7
component for individual page
davidsklar99 May 26, 2025
92927af
more specific page
davidsklar99 May 26, 2025
4e0f278
environments working
davidsklar99 May 26, 2025
05783a7
economics page
davidsklar99 May 26, 2025
af1e381
sift link works
davidsklar99 May 26, 2025
c598256
link to individual pages
davidsklar99 May 26, 2025
f43e4ea
economics breadcrumbs
davidsklar99 May 26, 2025
25f63a0
lith indv page
davidsklar99 May 26, 2025
3b6d957
correct colors
davidsklar99 May 26, 2025
2aa0349
correct color
davidsklar99 May 26, 2025
d7f8cab
correct colors
davidsklar99 May 26, 2025
baa7e0f
abbrev color
davidsklar99 May 26, 2025
f116731
on click works
davidsklar99 May 26, 2025
5bff755
dev pages shows up if in dev mode
davidsklar99 May 26, 2025
6825491
isdev fcn
davidsklar99 May 26, 2025
26935c2
dev page ready to be main
davidsklar99 May 27, 2025
ff62707
front page moved to front
davidsklar99 May 27, 2025
9d1d0cd
fixing stylinng bleeding issues
davidsklar99 May 27, 2025
4b5614a
module styling
davidsklar99 May 27, 2025
32c8f83
module styling
davidsklar99 May 27, 2025
35428fd
strat name indv page
davidsklar99 May 27, 2025
564e62d
missing some routes possibly
davidsklar99 May 27, 2025
b261606
support light mode
davidsklar99 May 27, 2025
0cff4c8
link to sift
davidsklar99 May 27, 2025
b8e594c
pie chart added
davidsklar99 May 27, 2025
ede1640
styling
davidsklar99 May 27, 2025
542633a
enhanced column filtering
davidsklar99 May 27, 2025
ee5aa9d
correct linking
davidsklar99 May 27, 2025
7682007
fix loading screen
davidsklar99 May 27, 2025
8a45182
new error page
davidsklar99 May 27, 2025
44aa30c
styling
davidsklar99 May 27, 2025
e0a21f2
clean up
davidsklar99 May 27, 2025
c305947
hollow charts, set up hover
davidsklar99 May 27, 2025
d66afa1
chart onn hover works
davidsklar99 May 28, 2025
f559aa2
chart component
davidsklar99 May 28, 2025
3fa34bf
hover on chart label
davidsklar99 May 28, 2025
3ce6bba
clickable chart
davidsklar99 May 28, 2025
1044559
mostly functioning map component
davidsklar99 May 28, 2025
8558a29
hovered column highlighted
davidsklar99 May 28, 2025
506632d
stylign fix
davidsklar99 May 28, 2025
a0adc09
map loads correctly everytime
davidsklar99 May 28, 2025
06958d7
trying to fix map styling
davidsklar99 May 28, 2025
6ebbd61
new map working
davidsklar99 May 28, 2025
a4ae689
something wrong?
davidsklar99 May 28, 2025
2cb834d
only filter when input >=3
davidsklar99 May 28, 2025
59fe817
cleanup
davidsklar99 May 28, 2025
c312989
client rendering fro pages
davidsklar99 May 28, 2025
66c705d
error handling
davidsklar99 May 28, 2025
ed666ce
map styling
davidsklar99 May 28, 2025
d726626
Merge branch 'main' into lex-updates
davidsklar99 May 28, 2025
801313a
update sources
davidsklar99 May 29, 2025
6ac0110
use api for columns
davidsklar99 May 29, 2025
4c3d54a
set up for new columns api call
davidsklar99 May 29, 2025
27a7e7b
map sizing and stopping global styles
davidsklar99 May 29, 2025
aabf50e
works
davidsklar99 May 29, 2025
3dd5f6c
maps uses sources api
davidsklar99 May 29, 2025
3a49a44
prevalent taxa works in dark mode
davidsklar99 May 29, 2025
5801210
removed unneeded modules
davidsklar99 May 29, 2025
d5c3dfd
config change
davidsklar99 May 29, 2025
6449545
reference change
davidsklar99 May 29, 2025
e2cc077
update sift links
davidsklar99 May 29, 2025
5f533db
project fix
davidsklar99 May 29, 2025
a3d17fb
new columns api and faster map
davidsklar99 May 30, 2025
ec54fab
better filter logic
davidsklar99 May 30, 2025
5778928
trying to fix
davidsklar99 May 30, 2025
1f44343
heirarchy works, to many relaods
davidsklar99 May 30, 2025
81869fd
better state management
davidsklar99 May 30, 2025
773cbf0
fit map to columns when little enough columns
davidsklar99 May 30, 2025
e7f90af
dynamically fetch strat names
davidsklar99 May 30, 2025
be8095d
concept info shows
davidsklar99 May 30, 2025
737fb9e
link to strat name concept
davidsklar99 May 30, 2025
b67bcf1
strat name concepts works
davidsklar99 May 30, 2025
5500746
concept hierarchy base created
davidsklar99 May 30, 2025
0740756
add strat name concepts
davidsklar99 May 30, 2025
ce01cdf
incorporated serverside filtering and pagination
davidsklar99 May 30, 2025
49905ad
infinite scroll
davidsklar99 May 30, 2025
5b9356e
using new api
davidsklar99 May 30, 2025
fa877cf
working on new sources page
davidsklar99 May 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"react-router-dom": "^6.8.2",
"react-router-hash-link": "^2.4.3",
"react-spring": "^9.7.3",
"recharts": "^2.13.0",
"reduce-reducers": "^1.0.4",
"redux": "^4.0.5",
"sirv": "^2.0.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/lithology-hierarchy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export default function MacrostratLithologyHierarchy({ width, height }) {
}
const liths: Lith[] = res.success.data;

console.log("Liths", liths);

return h("div.flex.row", [
h("div.example-container", [
h(Hierarchy, { width, height, data: nestLiths(liths) }),
Expand Down
2 changes: 2 additions & 0 deletions packages/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const burwellTileDomain = getRuntimeConfig(
);
export const apiDomain = getRuntimeConfig("MACROSTRAT_API_DOMAIN");
export const tileserverDomain = burwellTileDomain;
export const isDev = getRuntimeConfig("MACROSTRAT_INSTANCE") === "Development";

export const gddDomain = "https://xdd.wisc.edu";
export const pbdbDomain = "https://paleobiodb.org";
Expand Down Expand Up @@ -67,4 +68,5 @@ export const SETTINGS = {
apiV2Prefix,
mapPagePrefix,
routerBasename,
isDev,
};
1 change: 1 addition & 0 deletions packages/sift/src/js/components/Attributes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ class _Attributes extends React.Component {
}

if (this.state.liths.length) {
console.log("liths", this.state.liths)
totalCharts += 1;
lithChart = (
<div>
Expand Down
2 changes: 2 additions & 0 deletions packages/sift/src/js/components/StratName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ class _StratName extends React.Component {
stratHierarchy = <StratNameHierarchy stratNameID={this.state.id} />;
}

console.log(this.state.strat_names)

return (
<div className="page-content">
<Loading loading={this.state.loading} />
Expand Down
128 changes: 128 additions & 0 deletions pages/+Page.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
import { Image, Navbar, Footer, useMacrostratAPI } from "./index";
import h from "./main.module.sass";
import { PanelCard } from "@macrostrat/map-interface";
import { LinkCard } from "~/components/cards";
import { useState } from 'react';
import { SETTINGS } from "@macrostrat-web/settings";
import { Loading } from "./index"

export function Page() {
const result = useMacrostratAPI('/stats?all')?.success.data;

if(!result) {
return h(Loading)
}

let columns = 0;
let units = 0;
let polygons = 0;

result.forEach(project => {
columns += project.columns;
units += project.units;
polygons += project.t_polys;
});

return h('div.total', [
h(Navbar),

h('div.start', [
h(Image, { className: "back-img cover-image", src: 'cover_large.jpg' }),
h('div.text', [
h('div.header', {}, [
h('h1.main-title','Macrostrat'),
h('h2.version','v2')
]),
h('div.stats', {}, [
h('div.stat', {}, [
h('span.top-stat#n_columns', {}, formatNumber(columns)),
h('span.top-stat-label', {}, 'Regional Rock Columns')
]),
h('div.stat', {}, [
h('span.top-stat#n_units', {}, formatNumber(units)),
h('span.top-stat-label', {}, 'Rock Units')
]),
h('div.stat', {}, [
h('span.top-stat#n_polys', {}, formatNumber(polygons)),
h('span.top-stat-label', {}, 'Geologic Map Polygons')
]),
h('div.stat', {}, [
h('span.top-stat#n_names', {}, formatNumber(result.length)),
h('span.top-stat-label', {}, 'Projects')
])
]),
h('p.big-text', {}, 'A platform for geological data exploration, integration, and analysis'),
])
]),
h('div.buttons', [
// h(LinkCard, { title: 'Search', href: '/sift/#/' }),
h(LinkCard, { title: "Geologic Map", href: '/map/#3/40.78/-94.13' }, [
h('p', { className: 'long'}, [
h('div.temp', {}, [
'With over 225 maps from data providers around the world across every scale, Macrostrat is the world\'s largest homogenized geologic map database. Our data processing pipeline links geologic map polygons to Macrostrat column polygons, external stratigraphic name lexicons, and geochronological intervals, enabling the enhancement of the original map data and allowing for direct links into ',
h('a', { href: 'https://xdd.wisc.edu', target: '_blank' }, 'xDD'),
' (formly GeoDeepDive).'
]),
h('div.temp', {}, [
'Are you affiliated with a state or national geologic survey? ',
h('a', { href: 'mailto:[email protected]?Subject=Geologic%20Map%20Collaboration' }, 'Get in touch'),
' with us - we\'d love to collaborate and help publicize your maps!'
]),
h('div.temp', {}, [
'Get started by ',
h('a', { href: '/map' }, 'exploring the map'),
' or ',
h('a', { href: '/map/sources' }, 'taking a look at'),
' which maps are currently a part of Macrostrat.'
])
]),
]),
h(LinkCard, { title: 'Maps', href: '/maps'}, [
h('p', "The spatial footprint of rocks on the Earth\'s surface")
]),
h(LinkCard, { title: 'Columns', href: '/columns'}, [
h('p', 'Stratigraphic and geological columns showing the organization of rocks in time')
]),
h(LinkCard, { title: 'Geologic Lexicon', href: '/lex'}, [
h('p', 'Geologic units and data dictionaries')
]),
h(LinkCard, { title: 'Projects', href: '/projects'}, [
h('p', 'Projects for specific regions or geological problems')
]),
h(LinkCard, { title: h('div.rockd-button-container', [
h(Image, { className: "rockd-png", src: 'rockd.png', width: '22px' }),
h('p', 'Rockd')
]), href: 'https://rockd.org'}, [
h('p', 'Go mobile!')
]),
h.if(SETTINGS.isDev)(LinkCard, { title: 'Dev Apps', href: '/dev'},
h('p', 'Layers and testbed apps that aren\'t ready for prime time'),
),
h.if(SETTINGS.isDev)(LinkCard, { title: 'Documentation', href: '/docs'},
h('p', "Macrostrat documentation")
),
]),
Donate,
h(Footer),
])
}

const Donate =
h('div.donate-container', {}, [
h(Image, { className: "back-img donate-img", src: 'donate_medium.jpg' }),
h('div.text-donate', [
h('a', { href: 'https://secure.supportuw.org/give/?id=E0A03FA3-B2A0-431C-83EE-A121A04EEB5D', target: '_blank' }, [
h('h1.title.donate-title', 'Donate Now'),
]),
h('div.donate-info', {}, [
'Grant funding, principally from the ',
h('a', { href: 'http://www.nsf.gov', target: '_blank' }, 'U.S. National Science Foundation'),
', got Macrostrat off the ground and keeps us innovating, but maintaining and growing a free and open digital resource involves ongoing expenses beyond the grant cycle, like annual certificate renewals, cloud server hosting and backup storage that keep your connection safe, domain name registrations that keep us located on the web, and system upgrades to keep us fast and efficient. If you would like to help us continue to grow and provide free resources, you can do so with a one-time or recurring gift to the UW Foundation Paleontology Program Fund in Geology. Thank you!'
])
])
]);


function formatNumber(num) {
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
40 changes: 0 additions & 40 deletions pages/+Page.mdx

This file was deleted.

22 changes: 17 additions & 5 deletions pages/_error/+Page.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import h from "@macrostrat/hyper";
import h from "./main.module.styl";
import { CenteredContentPage } from "~/layouts";
import { PageHeader } from "~/components";
import { usePageContext } from "vike-react/usePageContext";
import { ClientOnly } from "vike-react/ClientOnly";
import { Spinner, Button } from "@blueprintjs/core";
import { Spinner, Button, Card } from "@blueprintjs/core";
import { BlankImage } from "../index";
import { LinkCard } from "~/components";

export function Page() {
const ctx = usePageContext();
const is404 = ctx.is404;

return h(CenteredContentPage, [h(PageHeader), h(PageContent)]);
}

Expand All @@ -17,9 +22,16 @@ function PageContent() {
const reason = ctx.abortReason;

if (is404) {
return h([
h("h1", [h("code.bp5-code", "404"), " Page Not Found"]),
h("p", ["Could not find a page at path ", h("code.bp5-code", path), "."]),
return h('div.error404', [
h(BlankImage, { src: "https://storage.macrostrat.org/assets/web/earth-crust.jpg", className: "error-image", width: "100%", height: "100%" }),
h('div.error-text', [
h('h1', "404"),
h('h2', "The rock you are looking for doesn't exist. Keep digging."),
h('div.buttons', [
h('button', { className: "btn", onClick: () => history.back() }, "Go back"),
h('a', { className: "btn", href: "/" }, "Go home")
]),
])
]);
} else if (statusCode == 401) {
return h([
Expand Down
47 changes: 47 additions & 0 deletions pages/_error/main.module.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.error404
background: black
height: 100vh
text-align: center
color: black

h1
margin-top 0
font-size 100px

.error-text
position absolute
z-index 2
top 30%
left 50%
transform translate(-50%, -50%)
color white

.error-image
position absolute
z-index 1
top 0
left 0
opacity .5

.buttons
display flex
gap 100px
justify-content center
margin-top 50px

a
text-decoration none


button:hover
background-color var(--secondary-background-color)
color: var(text-emphasized-color) !important

.btn
background-color var(--background-color)
color: var(text-emphasized-color) !important
cursor: pointer
margin 14px 0

a
color: var(--text-emphasized-color) !important
Loading