27 Commits

Author SHA1 Message Date
Erik Thuning
4ce802c37c Removed dead code - this app has no cron functionality 2025-09-12 17:18:18 +02:00
Erik Thuning
a02ae4a587 Added the ability to export map data to TSV
Exporting is allowed for anyone with export permission or above.
Pseudo-versions have been bumped in order to ensure no cache issues.
2025-09-12 17:15:56 +02:00
Erik Thuning
bc6345aad3 Fixed a css bug introduced by updating leaflet
The form popup for editing a marker wasn't breaking lines properly,
setting labels and inputs to block display solved the issue.
2025-09-03 16:41:30 +02:00
Erik Thuning
8afd2fe0bb Bumped pseudo-versions in index-html to force cache bypass on new page loads 2025-09-03 16:31:10 +02:00
Erik Thuning
05dcc7e5d9 Implemented support for roles and comments on each point
Comments are only visible to users with admin rights or who have the new
permission level 'export'.

Also opportunisitally reduced code duplication in script.js
2025-09-03 16:28:20 +02:00
Erik Thuning
593cb4de2c Updated leaflet to v2.0.0-alpha.1
This fixes an annoying popup width bug
2025-09-03 15:32:30 +02:00
Erik Thuning
b0d0a94a3d Greatly improved mobile support by moving the sidebar to the bottom on narrow displays 2025-06-27 15:40:04 +02:00
Erik Thuning
3c648ec20e Fixed a bug preventing uppercase letters in search terms from being matched 2025-06-27 14:54:38 +02:00
Erik Thuning
e03d5ac6b6 Decorators are not as straightforward as they seem
In order to get the @verify_admin decorator to work properly,
two things are required:
 - The decorator must be placed after the @app.route decorator, otherwise it
   is bypassed by flask which will use the result of @app.route for all calls
   regardless of any previous decorators
 - The decorator function must itself use an @wraps deorator for the wrapped
   function, otherwise flask will crash if the decorator is used
   more than once.
2025-06-27 14:13:08 +02:00
Erik Thuning
9819917cda Bumping arguments to css and js files so they are guaranteed to not be cached 2025-06-27 13:38:33 +02:00
Erik Thuning
ad369b88fd Made the active marker always have the highest z-index 2025-06-27 13:34:10 +02:00
Erik Thuning
7c272a1617 Added a read-only mode for the map.
The config item required_entitlement has been replaced by two new items:
 - access_entitlement: grants access to the site
 - admin_entitlement: grants edit rights on the site
2025-06-27 12:08:00 +02:00
Erik Thuning
2c5a129f5b Improved synchronization between search results and markers
Chages to place- or person names are now reflected in the search results.
Also made better use of stored references instead of calls to querySelector()
2025-06-10 16:15:58 +02:00
Erik Thuning
bf57a1d29f CSS tweaks 2025-06-10 15:32:01 +02:00
Erik Thuning
7d7086d903 Added an alert to makeApiRequest to notify the user of network errors 2025-06-10 13:23:49 +02:00
Erik Thuning
49cbd2ed92 Improved handling of denied access. 2025-06-10 13:23:03 +02:00
Erik Thuning
2e016197cf Updated README to reflect reality 2025-06-10 10:38:23 +02:00
Erik Thuning
686015dd35 Fixed bad handling of nonexistent localStorage values for zoom and position 2025-06-10 10:14:01 +02:00
Erik Thuning
30a4e89885 Changed the heuristic for focus in the edit popup
Person now always gets focus unless the location has no name at all
2025-06-09 15:50:10 +02:00
Erik Thuning
96cd09ebaf Graying out markers that are not part of the search result
Also allow clearing the search by searching with an empty string
2025-06-09 15:26:52 +02:00
Erik Thuning
09fac3976f Added a spinner shown while waiting for search results
Search got significantly sped up by moving to async function so it will
probably never be visible.
2025-06-09 14:37:55 +02:00
Erik Thuning
6f77a88a86 Implemented highlighting of active search results, along with further changes:
- Fixed the map no longer working due to z-index -1
 - Fixed focus bug in marker edit popup
 - Sorted search results
 - Tweaked height of search results pane
2025-06-09 14:16:22 +02:00
Erik Thuning
514c82f982 Several changes
- Added toggling of labels
 - Added a search function
 - Moved buttons into a sidebar
 - Eliminated some extraneous css
 - Added the correct map to the repo
 - Zoom levels and map position are remembered across reloads
 - Markes are now draggable
 - The edit form takes a reasonable guess as to where focus should be
 - Fixed a bug preventing marker deletion on the server
2025-06-05 16:37:06 +02:00
Erik Thuning
3e99c530a5 Fully functional MVP.
Searchability needs implementing.
2025-06-04 15:16:28 +02:00
Erik Thuning
8c7095b365 Coming along. Leaflet implemented, points can be placed and modified. 2025-06-04 10:39:35 +02:00
Erik Thuning
0365ac28bc Trying leaflet for map rendering. Not working yet, but hopefully close. 2025-05-28 16:25:14 +02:00
Erik Thuning
bf717aecbe Initial commit, very basic POC 2025-05-26 10:48:14 +02:00