diff --git a/config/features.rb b/config/features.rb
index 0525be353..a692e8e00 100644
--- a/config/features.rb
+++ b/config/features.rb
@@ -30,4 +30,8 @@
feature :firestone_locator,
default: true,
description: "When on / true, uses the old locator service for Firestone. When off / false uses the new Stackmap service for Firestone."
+
+ feature :harmful_content_feedback,
+ default: false,
+ description: "When on / true, displays the Harmful Content Feedback bar."
end
diff --git a/docs/features.md b/docs/features.md
index 0105355f2..a040e33e8 100644
--- a/docs/features.md
+++ b/docs/features.md
@@ -7,5 +7,11 @@ Unless the feature impacts a controller or initializer (probably better not to u
In order to update the application administrators, update the `ORANGELIGHT_ADMIN_NETIDS` value in princeton_ansible, run the Orangelight playbook and restart the application server.
+#### In development
+In order to use the dashboard in development, run the rails server with the `ORANGELIGHT_ADMIN_NETIDS` environment variable set, e.g.
+```zsh
+ORANGELIGHT_ADMIN_NETIDS="mk8066" bundle exec rails s
+```
+
### Ansible-managed
Currently, `read_only_mode` is managed via Ansible. In order to set this value, change the value of `OL_READ_ONLY_MODE` in princeton_ansible and run the Orangelight playbook on the relevant environment. Because this value is set in an initializer, the application server must be restarted before this will take effect (deploying the application will do this as well).
\ No newline at end of file
diff --git a/spec/system/catalog_show_spec.rb b/spec/system/catalog_show_spec.rb
index 10498082b..cbcd4f71e 100644
--- a/spec/system/catalog_show_spec.rb
+++ b/spec/system/catalog_show_spec.rb
@@ -84,4 +84,15 @@
expect(page).to have_selector('dd.blacklight-isbn_display ul li', count: 4)
end
end
+
+ describe 'giving feedback' do
+ let(:document_id) { '9946093213506421' }
+ before { allow(Flipflop).to receive(:harmful_content_feedback?).and_return(true) }
+
+ it 'shows a feedback bar' do
+ visit "catalog/#{document_id}"
+ expect(page).to have_selector('.harmful-content-feedback')
+ expect(page).to have_content('Report Harmful Language')
+ end
+ end
end