Skip to content

Commit 20fb625

Browse files
committed
conflicts unresolved
2 parents 0c8ae16 + 17066e8 commit 20fb625

File tree

370 files changed

+22568
-13025
lines changed

Some content is hidden

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

370 files changed

+22568
-13025
lines changed

.github/workflows/autoformat.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Auto-format code
1+
name: Auto-format code and update test coverage
22

33
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
6+
workflow_dispatch:
67

78
permissions:
89
contents: write
@@ -38,3 +39,17 @@ jobs:
3839
commit_user_name: 'LangNav Bot'
3940
commit_user_email: 'noreply@github.com'
4041
skip_dirty_check: false
42+
43+
- name: Compute vitest test coverage, it saves to an untracked JSON file
44+
run: npm run test:coverage
45+
46+
- name: Produce markdown file that's easier to track based on the test coverage
47+
run: node scripts/coverage-summary.mjs > test-coverage.md
48+
49+
- name: Commit changes
50+
uses: stefanzweifel/git-auto-commit-action@v5
51+
with:
52+
commit_message: 'Testing: update test coverage'
53+
commit_user_name: 'LangNav Bot'
54+
commit_user_email: 'noreply@github.com'
55+
skip_dirty_check: false

.github/workflows/test.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7-
permissions:
8-
contents: write
9-
107
jobs:
118
test:
129
if: github.event.pull_request.head.repo.full_name == github.repository
1310
runs-on: ubuntu-latest
1411
steps:
1512
- name: Checkout code
1613
uses: actions/checkout@v4
17-
with:
18-
ref: ${{ github.head_ref }}
19-
token: ${{ secrets.GITHUB_TOKEN }}
2014

2115
- name: Setup Node
2216
uses: actions/setup-node@v4
@@ -29,17 +23,3 @@ jobs:
2923

3024
- name: Run vitest (.test.tsx) tests
3125
run: npm run test:run
32-
33-
- name: Compute vitest test coverage, it saves to an untracked JSON file
34-
run: npm run test:coverage
35-
36-
- name: Produce markdown file that's easier to track based on the test coverage
37-
run: node scripts/coverage-summary.mjs > test-coverage.md
38-
39-
- name: Commit changes to summary
40-
uses: stefanzweifel/git-auto-commit-action@v5
41-
with:
42-
commit_message: 'Tests: Update test coverage'
43-
commit_user_name: 'LangNav Bot'
44-
commit_user_email: 'noreply@github.com'
45-
skip_dirty_check: false

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dist-ssr
1313
*.local
1414

1515
# Editor directories and files
16-
.vscode/*
16+
# .vscode/*
1717
!.vscode/extensions.json
1818
.idea
1919
.DS_Store

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// --- Editor formatting ---
3+
"editor.formatOnSave": true,
4+
// --- Let ESLint run code actions on save ---
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll": "always", // run all fixers (includes prettier if wired)
7+
"source.fixAll.eslint": "always" // explicitly run eslint --fix
8+
},
9+
// --- ESLint integration ---
10+
"eslint.enable": true,
11+
"eslint.run": "onType",
12+
"eslint.format.enable": true,
13+
"eslint.useFlatConfig": true,
14+
"eslint.validate": ["typescript", "typescriptreact", "javascript", "javascriptreact"]
15+
}

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This repository contain a dataset about the world's languages and language-like
55
![Preview of the website](/public/preview.png)
66

77
There are multiple ways to visualize the data
8-
|Card List|Details|Hierarchy|Table|Reports|
9-
|--|--|--|--|--|
10-
|<img src="public/cardlist.png" alt="Card List" style="max-width: 200px;" />|<img src="public/details.png" alt="Details" style="max-width: 200px;" />|<img src="public/hierarchy.png" alt="Hierarchy" style="max-width: 200px;" />|<img src="public/table.png" alt="Table" style="max-width: 200px;" />|<img src="public/reports.png" alt="Reports" style="max-width: 200px;" />
8+
| Card List | Details | Hierarchy | Table | Reports | Map |
9+
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------- |
10+
| <img src="public/cardlist.png" alt="Card List" style="max-width: 200px;" /> | <img src="public/details.png" alt="Details" style="max-width: 200px;" /> | <img src="public/hierarchy.png" alt="Hierarchy" style="max-width: 200px;" /> | <img src="public/table.png" alt="Table" style="max-width: 200px;" /> | <img src="public/reports.png" alt="Reports" style="max-width: 200px;" /> | <img src="public/map.png" alt="Map" style="max-width: 200px;" /> |
1111

1212
## Project Overview
1313

@@ -97,8 +97,8 @@ Here's a list of planned functionality. Completed functions are checked off.
9797
- [x] ISO parent/child connections
9898
- [x] Language families
9999
- [x] Glottolog
100-
- [ ] Digital Support details
101-
- [ ] Vitality details
100+
- [x] Digital Support details
101+
- [x] Vitality details
102102
- [ ] Keyboard availability details
103103
- [x] Territories
104104
- [x] Countries & Dependencies
@@ -110,18 +110,20 @@ Here's a list of planned functionality. Completed functions are checked off.
110110
- [x] Writing Systems
111111
- [x] Basic data
112112
- [x] Relationship w/ other writing systems (containment, lineage)
113-
- [ ] Language Variants / IANA tags
113+
- [x] Language Variants / IANA tags
114114
- [x] Censuses
115115
- [x] Regular censuses
116116
- [x] Include citation information
117-
- [ ] Continue importing new censuses
117+
- [x] Continue importing new censuses
118118
- [ ] Convert other imported datasets into census-like objects
119119
- [x] Views
120120
- [x] Cards
121121
- [x] Details
122122
- [x] Hierarchy
123123
- [x] Table
124-
- [ ] Map
124+
- [x] Map
125+
- [ ] Extend for more data layers
126+
- [ ] Graphs
125127
- [x] Reports
126128
- [x] Language name overlap
127129
- [ ] Invalid languages
@@ -148,7 +150,7 @@ Here's a list of planned functionality. Completed functions are checked off.
148150
- [x] Visual options
149151
- [x] Change locale separator (\_ or -)
150152
- [ ] Selection
151-
- [ ] Export
153+
- [x] Export
152154
- [ ] Manage data sources
153155
- [x] Show results based on different definitions of what a language is
154156
- [x] ISO, Glottolog, CLDR, All

eslint.config.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,27 @@ export default defineConfig([
5050
'import/order': [
5151
'warn',
5252
{
53-
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
53+
groups: [
54+
'builtin', // fs, path, url, etc.
55+
'external', // react, lodash, etc.
56+
'internal', // @shared, @features, ...
57+
'parent', // ../
58+
'sibling', // ./
59+
'index', // ./ (index)
60+
'object', // import('pkg').prop
61+
'type', // import type { X } ...
62+
],
63+
pathGroups: [
64+
{ pattern: '@app/**', group: 'internal', position: 'after' },
65+
{ pattern: '@pages/**', group: 'internal', position: 'after' },
66+
{ pattern: '@widgets/**', group: 'internal', position: 'after' },
67+
{ pattern: '@features/**', group: 'internal', position: 'after' },
68+
{ pattern: '@entities/**', group: 'internal', position: 'after' },
69+
{ pattern: '@shared/**', group: 'internal', position: 'after' },
70+
{ pattern: '@strings/**', group: 'internal', position: 'after' },
71+
{ pattern: '@tests/**', group: 'internal', position: 'after' },
72+
],
73+
pathGroupsExcludedImportTypes: ['builtin'],
5474
'newlines-between': 'always',
5575
alphabetize: { order: 'asc', caseInsensitive: true },
5676
},

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
</head>
88
<body>
99
<div id="root"></div>
10-
<script type="module" src="/src/main.tsx"></script>
10+
<script type="module" src="/src/app/main.tsx"></script>
1111
</body>
1212
</html>

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"name": "lang-nav",
33
"private": true,
44
"version": "0.0.0",
@@ -37,9 +37,9 @@
3737
"@vitejs/plugin-react": "^4.3.4",
3838
"@vitest/coverage-v8": "^3.2.4",
3939
"eslint": "^9.30.1",
40-
"eslint-config-prettier": "^10.1.2",
40+
"eslint-config-prettier": "^10.1.8",
4141
"eslint-plugin-import": "^2.31.0",
42-
"eslint-plugin-prettier": "^5.2.6",
42+
"eslint-plugin-prettier": "^5.5.4",
4343
"eslint-plugin-react": "^7.37.5",
4444
"eslint-plugin-react-hooks": "^5.2.0",
4545
"eslint-plugin-react-refresh": "^0.4.19",

public/data/census/data.un.org/ar.tsv

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
#isoRegionCode AR
44
#yearCollected 2022
55
#datePublished 2024
6-
#eligiblePopulation 382,697
7-
#respondingPopulation 300,541
6+
#eligiblePopulation 46,044,703
87
#notes Census - de jure - complete tabulation
98
#modality Spoken
109
#domain Home

0 commit comments

Comments
 (0)