docbrown/spec/requests/admin
Julianna Tetreault c18b0f1ba1
Manage Badges in /admin/badges (#9721) [deploy]
* Add CRUD actions for badge management to Internal::Badges::Controller

* Update sytling of badges index view in index.html.erb
  -Uses a table to display all badges
  -Links to the badge edit page from the badge title
  -Displays a badges slug, title, and badge_image
  -Adds an Award Badge button to the index view

* Adds an edit view, edit.html.erb, for badges
  -Gives the ability to edit a badge title and/or slug
  -Adds an Update Badge button to the left of the view
  -Adds a Back to All Badges button to the right of the view
  -Displays the badge image in the edit form

* Adjusts the path names in #award_badges in Internal::Badges::Controller

* Adds CRUD actions to the Internal::Badges::Controller and needed routes

* Add a description field to the edit.html.erb for badge management

* Add #award to Internal::Badges::Controller with matching view and routes
  -Adds an #award method that sets @badge for #award_badges
  -Adds an award.html.erb view for awarding badges
  -Adds an award path for awarding badges
  -Removes unnecessary code from controller, routes, and views

* Adds image upload functionality to the edit view for badges

* Ensure that usernames are downcased when awarding badges
  -Chains downcase to usernames in #award_badges in
   Internal::Badges::Controller

* Move badge-related views from old Internal folder to the correct Admin folder

Change routes and paths from /internal to /admin

* Refactor badge_params in Admin::Badges::Controller

* Add additional tests around awarding and updating badges in /admin/badge_achievements

* Add a create view to /admin/badges
  -Adds new and create actions to Admin::Badges::Controller
  -Adds a create view for creating badges at new.html.erb
  -Adds a Create Badge button to the index view
  -Moves the Award Badges button to the bottom of the index view

* Add a test around creating badges and clean up existing specs in badges_spec.rb

Adjust path in admin_awards_badges_spec.rb to be correct path

* Adjust routes from /badges/award_badges to /badges/badge_achievements/award_badges

Update paths in admin/badge-related specs

* Adjust paths in badges_spec.rb to be admin_badge_achievements_award_badges_path

* Adjust button styling for Award Badge

* Adjust paths back to /admin/badges in badges_spec.rb

* Add clarification around usernames when awarding badges

* Mark test in black_box_spec.rb as pending due to Travis failure

* Change wording used around usernames and @ symbols in award.html.erb
2020-08-13 08:54:51 -06:00
..
articles_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
badges_spec.rb Manage Badges in /admin/badges (#9721) [deploy] 2020-08-13 08:54:51 -06:00
broadcasts_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
buffer_updates_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
chat_channel_spec.rb Enable Rubocop 0.89 cops and fix Lint/ violations (#9709) 2020-08-10 16:57:12 +02:00
comments_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
configs_spec.rb Enable Rubocop 0.89 cops and fix Lint/ violations (#9709) 2020-08-10 16:57:12 +02:00
events_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
feedback_messages_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
growth_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
invitations_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
listings_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
moderator_actions_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
moderator_logs_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
mods_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
organizations_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
pages_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
permissions_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
podcasts_spec.rb Enable Rubocop 0.89 cops and fix Lint/ violations (#9709) 2020-08-10 16:57:12 +02:00
privileged_reactions_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
profile_fields_spec.rb v1 of adding the groups to the profile fields admin interface (#9744) 2020-08-12 09:49:07 -04:00
reactions_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
response_templates_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
secrets_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
sponsorships_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
tags_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
tools_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
users_manage_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
users_spec.rb Enable Rubocop 0.89 cops and fix Lint/ violations (#9709) 2020-08-10 16:57:12 +02:00
welcome_spec.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00