diff --git a/app/views/spree/admin/shared/_head.html.haml b/app/views/spree/admin/shared/_head.html.haml index 238052154e..d0fe96ce4a 100644 --- a/app/views/spree/admin/shared/_head.html.haml +++ b/app/views/spree/admin/shared/_head.html.haml @@ -14,7 +14,11 @@ %link{:href => "https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese", :rel => "stylesheet", :type => "text/css"} -= stylesheet_pack_tag 'admin-styles', media: "screen, print" +- if feature?(:admin_style_v3, spree_current_user) + = stylesheet_pack_tag 'admin-style-v3', media: "screen, print" +- else + = stylesheet_pack_tag 'admin-styles', media: "screen, print" + = render "layouts/bugsnag_js" = javascript_include_tag 'admin/all' diff --git a/app/webpacker/packs/admin-style-v3.scss b/app/webpacker/packs/admin-style-v3.scss new file mode 100644 index 0000000000..f06ef083d5 --- /dev/null +++ b/app/webpacker/packs/admin-style-v3.scss @@ -0,0 +1 @@ +@import "../css/admin_v3/all.scss"; diff --git a/lib/open_food_network/feature_toggle.rb b/lib/open_food_network/feature_toggle.rb index 9252fcbcc9..2dc902658f 100644 --- a/lib/open_food_network/feature_toggle.rb +++ b/lib/open_food_network/feature_toggle.rb @@ -11,6 +11,9 @@ module OpenFoodNetwork # We way move this to a YAML file when it becomes too awkward. # **WARNING:** Features not in this list will be removed. CURRENT_FEATURES = { + "admin_style_v3" => <<~DESC, + Test the work-in-progress design updates. + DESC "api_reports" => <<~DESC, An API endpoint for reports at /api/v0/reports/:report_type(/:report_subtype)