karilint 8eb60884ed fix: Lazy load country polygons to prevent UI freeze (#1056)
Fix #1056: Web freezing when loading locality map.

The countryPolygons.ts file is 4.4MB and was being imported synchronously,
causing the main thread to block and the UI to freeze.

Solution:
- Dynamically import countryPolygons using async import()
- Only load the data after the map component mounts
- Add loading state for country borders

This prevents the large module from blocking the main thread during
initial page load.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-29 14:10:44 +03:00
2026-04-08 14:32:57 +03:00
2026-04-14 15:11:05 +03:00
2026-04-14 15:11:05 +03:00

Nowdatabase

NOW - New and Old Worlds - Database of fossil mammals

Rebuild of a fossil database application, old version at https://nowdatabase.luomus.fi/

The new version is not deployed yet.


Developer documentation

Basic commands 💻

  • npm run setup
    • Creates all files and directories required to run the project
  • npm run dev
    • Runs the application in development mode
    • Supports hot reloading
    • Serves frontend by default at http://localhost:5173
  • npm run test:api
    • Runs api-tests inside Docker
    • Requires database to be running (start one with correct data: npm run start:anon:api)
  • npm run test:e2e
    • Runs api-tests inside Docker
    • Requires frontend, backend and database to be running (start all with npm run start:anon)

Further documentation

🚀 Setup app & restore db How to get the app up & running, and initialize database from sql-dumps

⌨️ List of all commands A comprehensive list of all of the most important commands

🙌 Contributing & integration flow Where to commit? Where are tests run? How is the code deployed?

📝 Frontend Explanation of the frontend logic and how to add views

📑 Species synonym creation flow Backend write logic overview used by the synonym API tests

🔎 Validators The readme explains how validators are written

🔎 Class diagram See the relations of relevant tables. Notice that it omits some unimportant tables and does not show most columns.

🌍 Map features Maps' functionality and development notes

DeepWiki documentation for the NOW database can be found here: Ask DeepWiki


Documentation index

See documentation/README.md for the full documentation tree (includes reviewer notes, FAQ, and a complete list of docs).

S
Description
No description provided
Readme MIT
16 MiB
Languages
TypeScript 92.9%
JavaScript 5.6%
CSS 0.6%
Dockerfile 0.5%
PHP 0.3%
Other 0.1%