v12.0.0
Huge update! First of all, the project name was changed from a bit cryptic TresDB to the more appropriate Georap. There are lots of features to list here so let us get to it.
Update instructions
- Backup everything, and especially the database (see readme for backup instructions)
- Shut down the server
- Shut down the worker
- Fetch the v12 code (git pull)
- Update your config/index.js (see through config-sample/index.js)
- Copy new symbols from config-sample/images/markers
- Remove your package-lock.json and node_modules
- Install new deps with
npm install
- Migrate database with
npm run migrate
- Run worker once
npm run worker
- Build client
npm run build
- Start up the worker
- Start up the server
New configuration parameters
rewards
to configure the number of points users receive from activityentryFlags
to configure how users can flag posts. Avisit
is an example of a flag.entries
to configure how many entries should be listed initially and how many to fetch per load.comments.secondsEditable
to configure how long comments stay editable for the author.
New features
- Multi-attachment posts. Now you can add multiple file attachments to posts and order them.
- Comment attachment. Comments can contain one file attachment.
- Drag-n-drop upload. Attachments can be uploaded by dragging files or selecting files as traditionally.
- Photo attachment rotation. Photo attachment rotation can be corrected if they somehow upload sideways.
- Upload progress bar. Now you can see the file upload progress.
- Pinpointer tool. Pinpointer provides a crosshair to inspect map and view any position on external services.
- New statistics. Now you can quickly see number of posts, attachments, and comments hosted on the site.
- Location thumbnails. You can set a thumbnail images for locations. These thumbnails show up in multiple places.
- Latest activity with thumbnails. Latest activity list items now show location thumbnails.
- Latest locations tab. In addition to latest general activity, you can list the latest added locations.
- Latest posts tab. In addition to latest general activity, you can view the latest posts and comments from various locations on a single list.
- New default marker symbols: mansion, building, movietheatre, workshop, firestation, watchtower, restaurant, roadhouse
- Search results include one or few geographical places, such as cities and streets, in addition to the created locations.
- Post move feature. You can move posts between locations for example to merge locations together.
- Load more latest activity. Now you can browse the latest activity farther by pressing Load More button.
- Ranking of most active users during the last 365 days
- Format -specific thumbnail images for file attachments such as .xls and .pdf
- New default external map services, mostly beneficial for users in Finland
Improved features
- Site statistics are now visible to all members, not just admins.
- My geolocation -feature is now able to start up the GPS.
- Post and comment drafts persists over page refresh (sessionStorage) and include also attachment and flag (e.g. is visit) data.
- Most views are now loaded dynamically and only when needed. This makes the initial page load a bit quicker.
- Closable error messages. Not yet used thoroughly but still a good start.
- Improved and consistent content deletion component.
- Improved responsive button groups.
- Improved some dark theme details: borders, link color
- Proper focus and cursor position on post and comment text fields
- User reward computation now handles changes and deletions better
- A bit transparent menu background
- Reverse geocoding is now able to name natural features such as seas
- Reverse geocoding bugfix: worker should not retry locations that have received empty geocode results already
- Improved timestamp tooltip visibility in tight layouts
- Show syntax help link in comment creation and edit forms
- Sanitize markdown content server-side before insert instead of client-side before render
Removed features
- Post preview was replaced by the location thumbnail selector. The preview acted as a good table of contents for the posts. It might come back at some point when more time can be put to balance it well with the thumbnail selector that looks a bit same.
Improved developer features
- Separate attachments collection from entries collection
- A boilerplate component to document the default view component code structure
- Initial JSON schema definitions for data structures
- Improved and stricter JSON schema for site configuration
- More functional client-side design: handle plain objects instead of Model classes.
- More consistent socket event handling on client-side: hook to georap-bus.
- Server code updated to ES6 style (mainly const, let, and arrow functions)
- Multiple lengthy handler and dal files split into submodules
- Handy new local modules: georap-components, georap-middleware, georap-models, georap-key
- Handy helper methods to destruct components: ui.offAll .unbindAll
- Upgraded deps: sharp, marked, eslint, jquery
- Relaxed eslint conf: disable no-magic-numbers
- Client watchbuild renamed to build:watch
- Client build:watch now builds also stylesheets. Before, a server restart was required to update the css.
- Record attachment file sizes
- Geometry API to get coordinates in alternative coordinate systems when needed