aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [DEV] Make SSO return_url dependent on Rails environment (fixes #1)IN COMMON Collective2021-04-091-5/+8
| | | | | | | | | | | | | | | | Previously the return_url was hardcoded for all environments. It would create an issue where authentication outside of development would redirect to the wrong site. With the previous commit we introduced a staging environment and an environment-specific configuration file allowing to hardcode return_url for each environment. This commit fixes the proper capture of the SSO secret in the current configuration and introduces an SSO::MissingSecretError class that is raised when there's no configured secret. https://gitlab.com/incommon.cc/incommon-map/-/issues/1
* [DEV] WIP: explore sso login alternativeIN COMMON Collective2021-03-2611-9/+161
|
* Merge branch 'main' of code.cepheide.org:incommon-map into mainv0.1.9IN COMMON Collective2021-03-223-0/+36
|\
| * [FIX] Prevent debug from failing without a userhellekin2021-02-121-4/+0
| |
| * [FIX] Prevent debug from failing without a userhellekin2021-02-111-1/+1
| |
| * [FIX] Prevent debug from failing without a userhellekin2021-02-111-1/+1
| |
| * [FEATURE] Link to editv0.1.8hellekin2021-02-112-0/+35
| |
* | [FIX] Honor current Agent selectionIN COMMON Collective2021-03-221-1/+1
| |
* | [FIX] Ensure User agents are up to dateIN COMMON Collective2021-03-221-1/+4
| |
* | [FIX] Fix User avatarIN COMMON Collective2021-03-221-2/+2
| |
* | [FIX] Handle the case where there is no map in the databaseIN COMMON Collective2021-03-221-0/+1
| |
* | [FIX] Keep footer stuck to the bottomIN COMMON Collective2021-03-221-1/+1
| |
* | Merge branch 'uuid-resolver' into mainhellekin2021-03-226-1/+142
|\ \
| * | Add UUIDResolverhellekin2021-03-226-1/+142
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The UUIDResolver adds a route at `/by-uuid/:uuid` that enables applications to request information about a given UUID. The UUID must be a Random UUID (version 4, see RFC 4122). If an invalid UUID is given, the controller will return 422 Unprocessable Entity. If a valid UUID is given: - 404 indicates that the UUID is not assigned to anything known to the system. - 302 indicates that the UUID was assigned to a record, and the User-Agent will be redirected to that record's Location as indicated in the response header. - 200 indicates that the UUID was assigned to more than one record (which is unlikely) and will list those records.
* | [DEV] Remove unnecessary ambiguity with default database hosthellekin2021-03-221-1/+1
| |
* | [DEBUG] Avoid rendering error with nil classhellekin2021-03-221-1/+1
| |
* | Fix Agent URLhellekin2021-03-221-1/+1
|/
* [FIX] Availability of agentshellekin2021-02-1114-25/+82
|
* Deploy from CIhellekin2021-02-051-0/+14
| | | | | | | This commit adds a script originally written by @dvn for DREAM. The script hits a remote URL from the CI to trigger production or staging deployment.
* Fix image linkhellekin2021-02-051-1/+1
| | | | The server changed, and so did the link to the IN COMMON logo.
* [FIX] Restore REUSE 3.0 compliancehellekin2021-02-029-2/+34
|
* Add syntactic sugarhellekin2021-02-021-0/+6
| | | | | | | | | | | | To some it may be more straightforward to think of the members of an Agent as "users". This commit accepts using `Agent#users` instead of `Agent#members`, but warns developers that they should be using the other method. Since Agent has_many Users, the Principle of Least Surprise warrants that `agent.users` does something. But they're really members.
* Remove useless methodhellekin2021-02-021-4/+0
|
* [FIX] Account for users without an avatar or grouphellekin2021-02-024-4/+27
| | | | | | | | | | | | | | | 1. Ensure new users belong to an Agent Users may come without the correct group information, leading to a situation where they have no Agent assigned to them. The application cannot handle this, so we ensure new users are at least associated to the new Anonymous Agent. 2. Introduce a default avatar Users coming without an avatar would see a broken view. Now they're assigned a default avatar, which shows the IN COMMON icon logo instead.
* Introduce an Anonymous Agenthellekin2021-02-024-62/+27
| | | | | | | | | | | | | Since we moved away from Roles it's important to maintain a default Agent that is distinct from the previous default IN COMMON Agent. Previously, a user without a proper group would be granted the `observer` role in the default Agent, enough to create new resources. Now, we consider anonymous users to be part of the Anonymous Agent, which also brings the possibility for them to edit yet to be accepted Resources.
* Add leaflet-geosearchhellekin2021-02-025-1/+21
| | | | | | | | | | | This Leaflet plugin adds a live address search on the map. We anticipate the possibility to find POIs from their address, or to check whether an address is already in the database. For now it enables looking up an address. https://smeijer.github.io/leaflet-geosearch/leaflet-control/
* [FEATURE] Add print buttonhellekin2021-01-313-0/+29
| | | | | | | | Using `leaflet-easyprint`, we can add a button to print a current view of the map. This commit adds the functionality, without customization. Source: https://github.com/rowanwins/leaflet-easyPrint
* Add scale information to the maphellekin2021-01-311-0/+3
|
* Reconfigure the asset pipelinehellekin2021-01-231-1/+1
| | | | | Since we moved CSS to Webpack, also tell that to the asset pipeline.
* Comment out webpack-bundle-analyzerhellekin2021-01-231-0/+3
| | | | | | | Just keep it around but do not use it. It requires `yarn add webpack-bundle-analyzer -D` to install. Moving `* /` to `*/` will disable the JavaScript comment.
* Document extra steps to cleanup imported datahellekin2021-01-231-0/+19
|
* Remove unused Taxonomy target and refactor debughellekin2021-01-233-11/+13
| | | | Cleaning up the code.
* Move CSS to Webpackhellekin2021-01-2326-87/+107
| | | | | | | | | | | | | Using both the asset pipeline and webpack is confusing and leads to unpredictable results in production. This commit moves all (S)CSS to Webpack under `app/javascript/scss` so that we can test whether the development interface results in a consistent production deployment. In order to load the ForkAwesome fonts we used a long path: `$fa-font-path: "../../../node_modules/fork-awesome/fonts";` Not sure whether this works...
* On the way to finding fonts?hellekin2021-01-222-2/+2
|
* Try loading fonts from webpackhellekin2021-01-221-1/+1
|
* Do not validate associated Agenthellekin2021-01-221-1/+1
|
* Remove duplicate codev0.1.7hellekin2021-01-221-14/+0
|
* Fix category styleshellekin2021-01-222-14/+14
| | | | | | Make category style independent of database ID to prevent bad surprises between development and production. Instead we use the rank.
* Add some debug infov0.1.6hellekin2021-01-221-0/+1
|
* Yarn integrity check breaks railsv0.1.5hellekin2021-01-221-0/+3
|
* Ensure tagged version gives right repo URLv0.1.4hellekin2021-01-221-2/+2
|
* Fix this deployment...v0.1.3hellekin2021-01-221-0/+2
|
* Distinguish branch and tagv0.1.2hellekin2021-01-221-2/+4
|
* WIP: display versionv0.1.1hellekin2021-01-221-6/+4
|
* WIP: fix link to source codev0.1.0hellekin2021-01-221-3/+5
|
* Link to current source code version (per AGPL-3.0)hellekin2021-01-224-0/+45
|
* Add markers and popupshellekin2021-01-2212-56/+152
| | | | | - Replace MakiMarkers with ExtraMarkers and ForkAwesome - Add HTML popup binding
* Move map to tophellekin2021-01-222-2/+2
|
* Fix category colors for Dewey taxonomyhellekin2021-01-221-11/+11
| | | | Original colors are kept as comments for future reference.
* Upgrade Rails and add StimulusJS supporthellekin2021-01-2268-277/+1103
|