aboutsummaryrefslogtreecommitdiff
path: root/app/helpers
Commit message (Collapse)AuthorAgeFilesLines
* Add UUIDResolverhellekin2021-03-221-0/+2
| | | | | | | | | | | | | | | | | 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.
* [FIX] Availability of agentshellekin2021-02-112-1/+9
|
* [FIX] Restore REUSE 3.0 compliancehellekin2021-02-022-0/+8
|
* Remove useless methodhellekin2021-02-021-4/+0
|
* [FIX] Account for users without an avatar or grouphellekin2021-02-021-0/+3
| | | | | | | | | | | | | | | 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-021-0/+20
| | | | | | | | | | | | | 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.
* Move CSS to Webpackhellekin2021-01-231-3/+3
| | | | | | | | | | | | | 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...
* Remove duplicate codev0.1.7hellekin2021-01-221-14/+0
|
* Fix category styleshellekin2021-01-221-2/+2
| | | | | | Make category style independent of database ID to prevent bad surprises between development and production. Instead we use the rank.
* Link to current source code version (per AGPL-3.0)hellekin2021-01-221-0/+11
|
* Add markers and popupshellekin2021-01-222-17/+17
| | | | | - Replace MakiMarkers with ExtraMarkers and ForkAwesome - Add HTML popup binding
* Upgrade Rails and add StimulusJS supporthellekin2021-01-225-20/+50
|
* Add Stimulus Map and Taxonomy (WIP)hellekin2020-11-121-0/+22
| | | | | | | | This commit add StimulusJS interaction for the map and taxonomy, as well as styling. It provides preliminary work to hook up live data on the map from the taxonomy.
* Merged masterhellekin2020-11-127-0/+92
|\
| * REUSE: Add AGPL-3.0-or-later to app/*hellekin2020-10-297-0/+49
| |
| * Add Markdown to format Resource.descriptionhellekin2020-10-271-0/+43
| |
* | Add map supporthellekin2020-11-111-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | This commit creates a dedicated Map model and moves the JavaScript from view to a Stimulus controller. - Stimulus.js https://stimulusjs.org - Leaflet.js https://leafletjs.org Upcoming resources: - https://discourse.stimulusjs.org/t/leafletjs-with-stimulusjs-on-rails-6/1343/4 - https://github.com/ghybs/leaflet-defaulticon-compatibility
* | Remove bork agent_selector_form helperhellekin2020-10-091-7/+0
|/
* Enable switching Agenthellekin2020-10-091-0/+9
| | | | | | | Switching current Agent can help with roles and resource access. Go to your dashboard by clicking the avatar. Select agent and hit "Select"
* Add a selector for categories and sectionshellekin2020-10-091-0/+10
|
* Add permissionshellekin2020-10-091-0/+8
| | | | | - `current_agent` is now a full instance of Agent - provide helpers to verify current user roles
* First pass at something visiblehellekin2020-10-062-0/+4
| | | | This is a first version of the application, to go beyond simple authentication.
* Add Authentication logichellekin2020-10-051-0/+2
| | | | | | | | | | | The ApplicationController provides a `current_user` method (and helper) to access the authenticated user (if any). The WelcomeController provides minimal logic to authenticate against DiscourseSSO. Current state is that one can login and logout. Views need a lot of work.
* rails new incommon-map -d postgresql -C -Thellekin2020-10-051-0/+2