Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to new OpenStreetMap backend (WIP) #372

Closed
wants to merge 127 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
a07875f
WIP: Use new OSM backend, remove Wheelmap Classic API
opyh Jun 10, 2022
f3d2069
Update package-lock.json
opyh Jun 10, 2022
124ed24
Use new next routing structure
opyh Jun 14, 2022
235019d
add new next.js routes
bjoernuhlig Jun 15, 2022
7a12466
Move /pages to /src/pages
opyh Jun 15, 2022
2aa616f
WIP: Onboarding route works again
opyh Jun 15, 2022
ef12c14
WIP: Basic structure for loading data, page layout
opyh Jun 16, 2022
05ef163
WIP: Fix environment and server-side loading
opyh Jun 17, 2022
ede11cb
WIP: Fix environment and server-side loading pt. II
opyh Jun 17, 2022
8d9b15a
rebase branch
bjoernuhlig Jun 17, 2022
fea2517
Search + filter visible again
opyh Jun 17, 2022
bd05bff
Search routing works again
opyh Jun 17, 2022
6d50381
Loading events works
opyh Jun 20, 2022
8b34f33
wip: placeinfopanel
bjoernuhlig Jun 20, 2022
0169ec9
placeinfopanel current state
bjoernuhlig Jun 22, 2022
75d52d0
Update TypeScript
opyh Jun 21, 2022
e96598d
MappingEvent context works incl. invalidation
opyh Jun 21, 2022
315dffc
Add mapping event meta tags, fix share bar layout
opyh Jun 22, 2022
bf94e32
Overriding appId works
opyh Jun 22, 2022
63564ed
WIP
opyh Jun 22, 2022
508baa6
Fix error messages on start
opyh Jun 22, 2022
44939ca
placeinfopanel mockup nodeheader
bjoernuhlig Jun 22, 2022
11c1d0f
Don’t crash in Map.tsx on start
opyh Jun 23, 2022
71a3500
Add new map component
opyh Jun 23, 2022
4a55aad
Don’t re-render layout on every page navigation
opyh Jun 30, 2022
55a49b3
Embed single place info page into <Layout>
opyh Jun 30, 2022
181ed00
Add photo upload button to place info panel, cleanup
opyh Jun 30, 2022
e210abd
Fix crashing close link in PlaceInfoPanel
opyh Jun 30, 2022
156c85c
Image uploads work again
opyh Jun 30, 2022
50cfd2d
Large refactoring
opyh Dec 4, 2022
2a23b77
Show more place attributes in details
opyh Dec 5, 2022
1c3f6fd
add useSWRWithErrorToast wrapper for useSWR
bjoernuhlig Dec 6, 2022
5054597
Fix crash on clicking a feature
opyh Feb 3, 2023
f2e7c75
Implement OSM login, add basic feature panel layout
opyh Mar 13, 2023
2787c92
Add profile view, more details
opyh Mar 14, 2023
60cde90
add edit button for a11y section
bjoernuhlig Mar 15, 2023
6cc65f8
Render avatar icon if user has no OSM avatar
opyh Mar 15, 2023
0507a5a
Allow OSM base URL customization
opyh Mar 15, 2023
8e194bf
Fix OSMTagTable
opyh Mar 15, 2023
f901600
Place main menu behind modal dialogs, remove ESC handling
opyh Mar 15, 2023
8dc753c
Remove Escape key handling for Toolbar
opyh Mar 15, 2023
1ea9ddf
Remove Escape key handling for report dialog
opyh Mar 15, 2023
8ad2334
Fix OSM tags layout, add mock tag editing
opyh Mar 15, 2023
6f92327
Work on dialog to submit changesets
opyh Mar 15, 2023
64e498a
Add changeset creation
opyh Mar 16, 2023
530a745
fix category bug on searchpanel
bjoernuhlig Mar 28, 2023
b5eed62
use komoot results with @type
bjoernuhlig Mar 31, 2023
64d6d0b
search results show icon catgeory
bjoernuhlig Mar 31, 2023
130cf57
add WindowContext for vW vH and userAgent
bjoernuhlig Mar 31, 2023
25508cf
create initial jest setup
bjoernuhlig Apr 5, 2023
7af0a94
update inital jest setup
bjoernuhlig Apr 5, 2023
7c9108a
add typescript support for jest
bjoernuhlig Apr 12, 2023
a5d9ae4
add @babel/plugin-proposal-class-properties
bjoernuhlig Apr 12, 2023
b7d217d
add jest-axe standard test setup
bjoernuhlig Apr 13, 2023
1abd537
add mock fixture routes for way node nodes
bjoernuhlig Apr 13, 2023
893b790
ad categories/categoy mockroute
bjoernuhlig Apr 13, 2023
312c6b3
add jest snapshot testig setup
bjoernuhlig Apr 14, 2023
e74d838
add relation route
bjoernuhlig Apr 14, 2023
86431ba
add equipmentinfo route add equipmentinfo fetcher
bjoernuhlig Apr 14, 2023
c970099
mocks and 404 page
bjoernuhlig Apr 20, 2023
0891298
update 404 handling
bjoernuhlig Apr 20, 2023
e75f96e
mocked mail-to-support report
bjoernuhlig Apr 28, 2023
d434ada
start reimplementing report issue button on featurepanel
bjoernuhlig May 2, 2023
1992b36
Add localization for OSM tags
opyh May 4, 2023
7b69a45
Fix localization for OSM tags
opyh May 4, 2023
889072b
Fetch UI vocabulary labels correctly
opyh May 4, 2023
ab856b5
Add temporary tag JSONs for now
opyh May 4, 2023
c3a5804
Improve OSM tag display
opyh May 5, 2023
889d2d7
udpate omitted omstags
bjoernuhlig May 9, 2023
c1d1053
Improve feature details
opyh May 9, 2023
50a2007
More feature panel improvements
opyh May 11, 2023
dd9d923
Add comments to isAccessibilityRelevantOSMKey.tsx
opyh May 11, 2023
8cebfc8
Add more OSM tags
opyh May 11, 2023
348b60f
add osm tags translations
bjoernuhlig May 11, 2023
a894c13
more osm tags
bjoernuhlig May 12, 2023
4638055
Add more OSM tags
opyh May 12, 2023
b71b162
Improve OSM key detail views
opyh May 12, 2023
25fb811
Add rendering for sockets
opyh May 12, 2023
b444300
Add key details to data types
opyh May 12, 2023
ada235c
Improve OSM tag configuration
opyh May 12, 2023
80d06e8
Remove aligned tabs in isAccessibilityRelevantOSMKey.tsx
opyh May 12, 2023
d256ecf
Fix nesting for lgbtq/queer
opyh May 12, 2023
286a871
Add community_centre OSM tag
opyh May 12, 2023
a511629
Use lokal TypeScript SDK in VSCode
opyh May 13, 2023
feb90be
Remove "report issue" button for now
opyh May 13, 2023
63e716c
Improve OSM tag display
opyh May 13, 2023
b25b02b
ESLint fixes
opyh May 15, 2023
aa6bbd2
More feature panel enhancements
opyh May 15, 2023
0eca381
add more osm-tags
bjoernuhlig May 12, 2023
3a69e07
Run npm install
opyh May 15, 2023
3ecb237
Small layout fixes for place details
opyh May 15, 2023
b5f70a5
add more osm-tags
bjoernuhlig May 12, 2023
fa42330
Fix linter errors
opyh May 15, 2023
5fac5cb
Remove lint step for now
opyh May 15, 2023
f9e9b21
Fix linter errors
opyh May 15, 2023
f6866f9
Fix more linter errors
opyh May 15, 2023
b8035ad
Fix various build errors through ignorance™
opyh May 15, 2023
832ad71
Fix more build errors
opyh May 15, 2023
b3e09c4
Fix a TS error in server.ts
opyh May 15, 2023
03340ce
Remove old server.ts
opyh May 15, 2023
f31081e
Fix typescript errors in server compilation
opyh May 15, 2023
ade9992
Less docker context
opyh May 15, 2023
9479f61
Hopefully fix a server start crash
opyh May 15, 2023
d962e6e
Add missing .next directory to build layer
opyh May 15, 2023
0b6760e
Allow requests without accept-language header
opyh May 15, 2023
7f319ef
Migrate to Next.js env feature
opyh May 15, 2023
01647cf
Fix broken Mapbox token references
opyh May 15, 2023
c0b300d
More OSM tag-related improvements
opyh May 15, 2023
db9fc59
Don't include .env in Dockerfile
opyh May 15, 2023
ff3f515
Send JSON in health endpoints
opyh May 15, 2023
675e07e
Don't print environment vars
opyh May 15, 2023
25a8f89
Add health endpoint
opyh May 15, 2023
e64bbf5
Move health endpoint into API
opyh May 15, 2023
20b69b7
Remove dotenv
opyh May 15, 2023
eae93e2
hotkeys helpbutton for toggling JSON Debugmode and OSM Power User Mod…
bjoernuhlig May 15, 2023
421d19d
Fix various next.js related issues
opyh Jun 8, 2023
976ef5d
Don't allow toilet tags on (subway) entrances
opyh Oct 17, 2023
4a98f6c
Add context for process.env
opyh Feb 22, 2024
0d574f2
Remove twelve-factor-dotenv
opyh Feb 26, 2024
6f0a86c
Don't open main menu on resizing window
opyh Feb 26, 2024
f22adac
Polishing for the OSM tag configuration
opyh Feb 26, 2024
a64661c
Improve feature details and map
opyh Feb 26, 2024
4c07a51
Fix server-side crash when rendering feature
opyh Feb 26, 2024
c7862b3
Clean up build
opyh Feb 27, 2024
89a94b6
Remove process.env.NEXT_PUBLIC_WHEELMAP_API_KEY
opyh Feb 27, 2024
6bf575e
Cleanups
opyh Jun 30, 2024
2774bc6
More feature panel cleanups
opyh Jun 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.env
.env.*
.git
!.env.example
node_modules
npm-debug.log
Expand Down
48 changes: 23 additions & 25 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
# NOTE: THIS IS DANGEROUS! It exposes your machine to attacks from the websites you visit.
DANGEROUSLY_DISABLE_HOST_CHECK=true

REACT_APP_AWS_S3_BUCKET_NAME=accessibility-cloud-uploads
# token used by the NodeJS backend
ELASTIC_APM_SECRET_TOKEN=
# URL used by the NodeJS backend
ELASTIC_APM_SERVER_URL=https://rum.wheelmap.org
PUBLIC_URL=http://localhost:3000
BASE_URL=http://localhost:3000
REACT_APP_ACCESSIBILITY_CLOUD_UNCACHED_BASE_URL=https://www.wheelmap.pro
REACT_APP_ACCESSIBILITY_CLOUD_APP_TOKEN=27be4b5216aced82122d7cf8f69e4a07
# REACT_APP_ACCESSIBILITY_CLOUD_APP_TOKEN=90d73be7a3488827d8fca865584b129c
REACT_APP_ACCESSIBILITY_CLOUD_BASE_URL=https://accessibility-cloud.freetls.fastly.net
REACT_APP_ACCESSIBILITY_CLOUD_UNCACHED_BASE_URL=https://www.accessibility.cloud
REACT_APP_ALLOW_ADDITIONAL_DATA_URLS=
# token userd by the frontend
REACT_APP_ELASTIC_APM_SECRET_TOKEN=
# Used by the frontend
REACT_APP_ELASTIC_APM_SERVER_URL=https://rum.wheelmap.org
REACT_APP_MAPBOX_GL_ACCESS_TOKEN="pk....."
# For development, do not set REACT_APP_WHEELMAP_API_BASE_URL here, but use the proxy defined in package.json.
REACT_APP_WHEELMAP_API_BASE_URL=
# REACT_APP_LEGACY_API_BASE_URL=https://legacy-api.wheelmap.org
REACT_APP_LEGACY_API_BASE_URL=http://classic.wheelmap.org
REACT_APP_WHEELMAP_API_KEY=3s8GNQvBCmwm45zro_jP
DATABASE_URL=sqlite://localhost/:memory:?synchronize=true
NEXTAUTH_API_BASE_URL=https://master.apis.dev.openstreetmap.org
NEXTAUTH_BASE_URL=https://master.apis.dev.openstreetmap.org
NEXTAUTH_SECRET=...
NEXTAUTH_URL=http://127.0.0.1:3000
NEXT_PUBLIC_ACCESSIBILITY_CLOUD_APP_TOKEN=...
NEXT_PUBLIC_ACCESSIBILITY_CLOUD_BASE_URL=http://localhost:4000
NEXT_PUBLIC_ACCESSIBILITY_CLOUD_UNCACHED_BASE_URL=http://localhost:4000
NEXT_PUBLIC_ALLOW_ADDITIONAL_DATA_URLS=
NEXT_PUBLIC_AWS_S3_BUCKET_NAME=accessibility-cloud-uploads
NEXT_PUBLIC_MAPBOX_ACCOUNT_ID=sozialhelden
NEXT_PUBLIC_MAPBOX_GL_ACCESS_TOKEN="pk....."
NEXT_PUBLIC_MAPBOX_STYLE_ID=ckwdrjpmz4jox16o7libit9p4
NEXT_PUBLIC_OSM_API_BACKEND_URL=http://localhost:3001/api/v1
NEXT_PUBLIC_OSM_API_BASE_URL=https://master.apis.dev.openstreetmap.org
NEXT_PUBLIC_OSM_API_LEGACY_BASE_URL=http://localhost:3001/api/v1/legacy
NEXT_PUBLIC_OSM_API_TILE_BACKEND_URL=http://localhost:3001/api/v1
NEXT_PUBLIC_OSM_API_TILE_BACKEND_URL_LEGACY=http://localhost:3001/api/v1/legacy
OSM_OAUTH2_CLIENT_ID=...
OSM_OAUTH2_CLIENT_SECRET=...
PUBLIC_URL=http://localhost:3000

# Test Vars
BROWSERSTACK_USERNAME=
BROWSERSTACK_ACCESS_KEY=
# Expected Values: Chrome, Firefox, IE, Safari, Edge, Opera
BROWSERSTACK_TEST_BROWSER=
TEST_DEPLOYMENT_BASE_URL=
TEST_DEPLOYMENT_BASE_URL=

9 changes: 3 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": ["eslint:recommended", "react-app", "plugin:jsx-a11y/recommended"],
"plugins": ["jsx-a11y"],
"rules": {
"no-console": [0],
"jsx-a11y/href-no-hash": [0]
}
"extends": ["next/core-web-vitals", "plugin:jsx-a11y/recommended"],
"plugins": ["jsx-a11y"]
}

5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

13 changes: 6 additions & 7 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"editor.tabSize": 2,
"flow.useNPMPackagedFlow": true,
"search.exclude": {
"build/**/*": true,
"lib/**/*": true,
Expand All @@ -9,12 +8,12 @@
// Custom formatting rules
"editor.wordWrapColumn": 100,
"javascript.validate.enable": false,
"editor.formatOnSave": true,
"eslint.autoFixOnSave": false,
"prettier.requireConfig": true,
"eslint.enable": true,
"tslint.jsEnable": false,
"tslint.autoFixOnSave": false,
"javascript.format.enable": false,
"typescript.format.enable": false
"typescript.format.enable": false,
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
}
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ COPY package-lock.json .
FROM base AS buildenv
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
g++ \
build-essential \
make \
gnupg2 \
dumb-init \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -49,9 +44,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# copy production node_modules to /usr/app

COPY --from=buildenv /usr/app/package.json .
COPY --from=buildenv /usr/app/.env .
COPY --from=buildenv /usr/app/.env.example .
COPY --from=buildenv /usr/app/dist ./dist
COPY --from=buildenv /usr/app/.next ./.next
COPY --from=buildenv /usr/app/public ./public
COPY --from=buildenv /usr/app/node_modules ./node_modules
COPY --from=buildenv /usr/app/tests ./tests
Expand Down
22 changes: 0 additions & 22 deletions Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ npm run dev

You will get some error messages from the Elastic APM client (our error collector for both [server](https://www.elastic.co/products/apm) and [client](https://www.elastic.co/guide/en/apm/agent/rum-js/4.x/getting-started.html)). If you want to test/develop the Elastic APM integration, you can get a valid token from the project maintainers.

You can configure the app using process environment variables or a `.env` file. Process environment variables override values set in the `.env` file. Note that the build configuration [deviates from Webpack’s default behavior](https://github.com/sozialhelden/twelve-factor-dotenv) to improve build and bug reproducibility.
You can configure the app using process environment variables or a `.env` file. Process environment variables override values set in the `.env` file.

### Recompile SVG

Expand Down Expand Up @@ -65,7 +65,7 @@ The app disallows embedding via `<iframe>` if you provide no valid `embedToken`

## Translation process

Ensure the transifex client is setup https://docs.transifex.com/client/client-configuration#-transifexrc
Ensure the transifex client is setup <https://docs.transifex.com/client/client-configuration#-transifexrc>

Use `npm run push-translations` to push a new translation resource to our translation service [transifex](http://transifex.com).

Expand Down
Loading