aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/welcome_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* [DEV] WIP: explore sso login alternativeIN COMMON Collective2021-03-261-1/+1
|
* [FIX] Availability of agentshellekin2021-02-111-7/+14
|
* [FIX] Account for users without an avatar or grouphellekin2021-02-021-4/+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.
* Add Stimulus Map and Taxonomy (WIP)hellekin2020-11-121-0/+1
| | | | | | | | 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-121-0/+4
|\
| * REUSE: Add AGPL-3.0-or-later to app/*hellekin2020-10-291-0/+4
| |
* | Add map supporthellekin2020-11-111-0/+1
|/ | | | | | | | | | | | 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
* Avoid errors on missing Taxonomyhellekin2020-10-091-4/+4
|
* Add some statshellekin2020-10-091-0/+20
|
* Make map more beautifulhellekin2020-10-081-0/+2
| | | | | | | | | | | | | This commit introduces a few things: 1. New `content_for` hooks for :debug, :head, and :body_end so that views code remains consistent and clean 2. Fullscreen map! 3. Welcome#index view, the Rails way It also moves controller-related code to the controller, Enjoy!
* Refactor authentication method to make it a bit more readablehellekin2020-10-061-35/+67
|
* Extract Role check to a background jobhellekin2020-10-061-9/+3
| | | | | | | When using SSO, the Discourse sends a list of the user groups. We take the opportunity to update Agency information for the user. This is performed as a background job, as it involves networked requests to the Discourse, e.g., to verify group ownership...
* Add Authentication logichellekin2020-10-051-0/+82
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.