docbrown/app/views
Julianna Tetreault 71b35f28a0
Remove Roles via Admin (#12582) [deploy]
* Add the ability to remove a role from a non-super_admin in Admin::UsersController
 - Adds a #destroy action to the Admin::UsersController
 - Adds a destroy route for the action

* Add a removal button to non-super_admin roles on admin user pages
  - Pulls Current Roles out of _activity and into own partial
  - Adds a _current_roles partial to /admin/users/show
  - Adds REMOVE buttons to non-super_admin roles
  - Conditionally renders REMOVE buttons for certain roles only

* Add tests around the removal of roles to users_manage_spec

* Adjust formatting of link_to in _current_roles.html.erb

* Use :aggregate_failures in role-related tests in users_manage_spec.rb

* Refactors Admin::UsersController#destroy and role params

* Update admin/users_spec.rb to take into account _current_roles partial

* Replace REMOVE text with X on role removal buttons

* Add additional elsif to handle single_resource_admin removal
  - Adds resource_type params to Admin::UsersController
  - Adds elsif to handle removal of single_resource_admin roles
  - Adds resource_type to the removal button in _current_roles
  - Adds a spec around removing single_resource_admin roles

* Add .constantize to resource_type in Admin::UsersController

* Move .constantize to resource_type arg rather than params in #destroy

* Use .safe_constantize rather than .constantize for params[:resource_type]

* Remove .safe_constantize from params and onto inline var instead

* Add nil check to removal of :single_resource_admin role in #destroy

* Update users_manage_spec.rb to remove proper role in test

* Add resource_name to current user and super admin _current_roles list

* Add additional test around removing :single_resource_admin role
2021-02-16 10:50:10 -07:00
..
admin Remove Roles via Admin (#12582) [deploy] 2021-02-16 10:50:10 -07:00
api/v0 API: Endpoint to get an organization's articles (#12237) 2021-01-13 13:09:58 +01:00
articles Simplify onboarding images and centralize config around primary/secondary logos (#12118) 2021-02-08 13:26:28 -05:00
badges [deploy] Replace #cloudinary with #optimized_image_url (#9876) 2020-08-21 14:46:00 -04:00
chat_channel_memberships [deploy] 🚀 Feature: Chat channel request manager (#9305) 2020-07-22 09:12:09 -04:00
chat_channels 🚀 Ability to allow tag moderators to create chat channels (#9741) 2020-12-08 13:10:36 +07:00
collections Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
comments Improve cumulative layout shift on comment reactions + optimizations (#12309) 2021-01-18 19:29:44 -05:00
credits Set Stripe dynamically instead of at boot (#9862) 2020-08-19 21:24:19 -04:00
dashboards Patch: Fix UI bugs in follow adjustment form (#12137) 2021-01-20 17:23:18 -05:00
devise fix ui issue to display bug (#12365) 2021-01-22 15:47:19 -05:00
doorkeeper [deploy] Replace #cloudinary with #optimized_image_url (#9876) 2020-08-21 14:46:00 -04:00
email_subscriptions Removal of morrrre hardcoded dev.to links (#7390) 2020-04-21 11:50:18 +02:00
events Optimize loading partials as collections (#12276) 2021-01-18 14:18:33 +03:00
feedback_messages Split ReCaptcha service and use verbs instead of pronouns (#11706) 2020-12-02 16:50:42 -06:00
fields Ignore unused users columns (#6954) [deploy] 2020-04-01 10:11:40 +02:00
followings Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
github_repos Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
homepage
kaminari/internal Upgrade erb_lint to support latest Rubocop and fix violations (#9663) 2020-08-07 15:36:48 +02:00
layouts CSS size reduce + cleanups. (#12625) 2021-02-16 13:44:26 +01:00
liquid_embeds Refactor deployed_at and latest_commit_id code (#12224) 2021-01-13 16:53:59 +02:00
liquids Fix image assets in tweets and remove like/retweet counts (#12327) 2021-01-19 10:30:38 -05:00
listings Use anchor tag instead of button for edit/delete links (#12098) 2021-01-04 11:03:15 -05:00
mailers Email confirmation to abuse reports (#12557) 2021-02-03 22:59:50 +03:00
moderations Update dev.to/mods for non-logged in users (#12301) 2021-01-20 13:53:50 -05:00
notifications CSS size reduce + cleanups. (#12625) 2021-02-16 13:44:26 +01:00
onboardings Simplify onboarding images and centralize config around primary/secondary logos (#12118) 2021-02-08 13:26:28 -05:00
open_search Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
organizations Optimize loading partials as collections (#12276) 2021-01-18 14:18:33 +03:00
pages CSS size reduce + cleanups. (#12625) 2021-02-16 13:44:26 +01:00
partnerships Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
podcast_episodes Remove unused podcast episode related code (#12642) 2021-02-10 17:47:39 +01:00
podcasts Fix small ERB linting issues (#11438) 2020-11-16 16:15:37 +01:00
profile_field_groups Add ProfileFieldGroupsController to API (#10124) 2020-09-03 10:12:53 +07:00
reading_list_items Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
response_templates Refactor jbuilder (#7411) 2020-04-24 12:49:12 +02:00
service_worker Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00
shared Only show user count for large userbases (#12238) 2021-01-12 11:58:03 -06:00
shell Bug Fix:ForemInstance.deployed_at is a String, not a datetime (#12498) 2021-01-31 14:57:48 -06:00
sidebars First working version to integrate native bridge image upload (#11838) 2020-12-23 10:02:39 -06:00
sitemaps Replaced ApplicationConfig with app_url in views (#7708) 2020-05-08 13:19:29 +03:00
social_previews Move HexComparer to Hex::Comparer service (#12202) 2021-01-12 11:34:30 -05:00
stories Remove language settings (#12502) 2021-02-04 08:35:00 +07:00
tags Update Tag Link to Route to Proper Admin Page (#12391) [deploy] 2021-01-25 08:25:39 -07:00
users Fix profile field production display area functionality and remove SiteConfig.dev_to? hacks for better generalization (#12015) 2021-02-11 10:05:06 -05:00
video_chats Fix remaining erblint errors (#8405) 2020-06-11 20:03:19 +02:00
videos Replace collective_noun with community_name (#11846) [deploy] 2020-12-28 09:34:17 -07:00