Skip to content

Commit 9882744

Browse files
committed
feat: refactor state, use accordion for panel
1 parent 30df364 commit 9882744

Some content is hidden

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

63 files changed

+2730
-3184
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version-file: .node-version
18-
cache: "yarn"
18+
cache: 'yarn'
1919
- name: Install
2020
run: |
2121
yarn install
2222
yarn playwright install
2323
- name: Lint
2424
run: yarn lint
2525
- name: Check formatting
26-
run: yarn run prettier . --check
26+
run: yarn format:check
2727
- name: Test
2828
run: yarn test
2929
- name: Build
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/setup-node@v3
4545
with:
4646
node-version-file: .node-version
47-
cache: "yarn"
47+
cache: 'yarn'
4848
- name: Install
4949
run: yarn install
5050
- id: setup_pages
@@ -92,7 +92,7 @@ jobs:
9292
- uses: actions/setup-node@v3
9393
with:
9494
node-version-file: .node-version
95-
cache: "yarn"
95+
cache: 'yarn'
9696
- name: Install
9797
run: yarn install
9898
- name: Release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ dist-ssr
2323
*.sln
2424
*.sw?
2525
tests/__screenshots__/
26+
codebook.toml

.prettierignore

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Dependencies
2+
node_modules/
3+
yarn.lock
4+
package-lock.json
5+
6+
# Build outputs
7+
dist/
8+
build/
9+
.next/
10+
out/
11+
12+
# Generated files
13+
coverage/
14+
.nyc_output/
15+
16+
# Logs
17+
*.log
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
21+
22+
# Runtime data
23+
pids
24+
*.pid
25+
*.seed
26+
*.pid.lock
27+
28+
# Cache directories
29+
.cache/
30+
.parcel-cache/
31+
32+
# IDE files
33+
.vscode/
34+
.idea/
35+
36+
# OS generated files
37+
.DS_Store
38+
.DS_Store?
39+
._*
40+
.Spotlight-V100
41+
.Trashes
42+
ehthumbs.db
43+
Thumbs.db
44+
45+
# Temporary files
46+
*.tmp
47+
*.temp
48+
49+
# Documentation that shouldn't be auto-formatted
50+
CHANGELOG.md
51+
LICENSE
52+
*.min.js
53+
*.min.css
54+
55+
# Config files that might have specific formatting
56+
.github/

.prettierrc.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
11
tabWidth = 2
2+
semi = true
3+
singleQuote = false
4+
trailingComma = "es5"
5+
printWidth = 80
6+
plugins = ["@trivago/prettier-plugin-sort-imports"]
7+
8+
# Import sorting configuration
9+
importOrder = [
10+
"^react$",
11+
"^react-dom$",
12+
"^react/",
13+
"^react-",
14+
"^@chakra-ui/",
15+
"^@deck\\.gl/",
16+
"^@geoarrow/",
17+
"^@duckdb/",
18+
"^@tanstack/",
19+
"^@turf/",
20+
"^@types/",
21+
"^maplibre-gl",
22+
"^deck\\.gl",
23+
"^apache-arrow",
24+
"^stac-ts",
25+
"^stac-wasm",
26+
"^next-themes",
27+
"^@",
28+
"^[a-z]",
29+
"^\\./",
30+
"^\\.\\./"
31+
]
32+
importOrderSeparation = false
33+
importOrderSortSpecifiers = true
34+
importOrderCaseInsensitive = true

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ export default tseslint.config(
2424
{ allowConstantExport: true },
2525
],
2626
},
27-
},
27+
}
2828
);

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"build": "tsc -b && vite build",
2828
"lint": "eslint .",
2929
"format": "prettier . --write",
30+
"format:check": "prettier . --check",
3031
"preview": "vite preview",
3132
"test": "vitest run"
3233
},
@@ -61,6 +62,7 @@
6162
},
6263
"devDependencies": {
6364
"@eslint/js": "^9.25.0",
65+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
6466
"@types/geojson": "^7946.0.16",
6567
"@types/react": "^19.1.2",
6668
"@types/react-dom": "^19.1.2",

0 commit comments

Comments
 (0)