There was an error while loading. Please reload this page.
2 parents b673a86 + 51ccb69 commit 32a3a4eCopy full SHA for 32a3a4e
36 files changed
.github/resources/preview-overrides.yaml
@@ -22,4 +22,3 @@ envVars:
22
RAILS_ENV: production
23
USE_TEST_SUPPLIERS: ${{ vars.USE_TEST_SUPPLIERS }}
24
FF_SMALL_SUPPLIER_STARS: ${{ vars.FF_SMALL_SUPPLIER_STARS }}
25
- FF_NEW_CSR_DATA: ${{ vars.FF_NEW_CSR_DATA }}"
app/components/csr_table/other_scores_component.html.haml
app/components/csr_table/other_scores_component.rb
app/components/csr_table/score_summary_component.html.haml
@@ -16,11 +16,10 @@
16
%p.score-summary__text
17
Contact waiting time
18
= render CsrTable::ScoreComponent.new(score: supplier.contact_rating)
19
- - if Feature.enabled? "FF_NEW_CSR_DATA"
20
- %li.score-summary__item
21
- %p.score-summary__text
- Billing and metering
- = render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
+ %li.score-summary__item
+ %p.score-summary__text
+ Billing and metering
+ = render CsrTable::ScoreComponent.new(score: supplier.bill_accuracy_and_metering_rating)
%li.score-summary__item
26
Customer commitments
app/components/csr_table/supplier_table_component.html.haml
@@ -18,10 +18,9 @@
%th.supplier-table__response{ scope: "col" }
.cads-table__content
- -if Feature.enabled?("FF_NEW_CSR_DATA")
- %th.supplier-table__billing{ scope: "col" }
- .cads-table__content
+ %th.supplier-table__billing{ scope: "col" }
+ .cads-table__content
%th.supplier-table__guarantee{ scope: "col" }
27
app/components/csr_table/supplier_table_row_component.html.haml
@@ -14,10 +14,9 @@
14
%td.supplier-table__response
15
- %td.supplier-table__billing
+ %td.supplier-table__billing
%td.supplier-table__guarantee
= render CsrTable::ScoreComponent.new(score: supplier.guarantee_rating)
app/components/csr_table/unranked_suppliers/stars_summary_component.html.haml
@@ -14,11 +14,10 @@
%p.stars-summary__text
- %li.stars-summary__item
- %p.stars-summary__text
+ %li.stars-summary__item
+ %p.stars-summary__text
%li.stars-summary__item
app/controllers/queries/supplier_detail.rb
@@ -21,12 +21,10 @@ module Queries
},
slug,
rank,
- complaintsRating,
complaintsRatingScore,
complaintsNumber,
contactEmail,
28
contactRating,
29
- contactSocialMedia,
30
contactTime,
31
contactWebchatSync,
32
contactWebchatAsync,
app/controllers/queries/suppliers.rb
@@ -17,12 +17,10 @@ module Queries
guaranteeRating,
overallRating,
app/models/supplier.rb
@@ -7,9 +7,9 @@ class Supplier
7
8
delegate :name, :whitelabel_supplier, :slug, :rank,
9
:complaints_number, :contact_email, :contact_rating,
10
- :contact_social_media, :contact_time, :contact_info,
11
- :other_contact_info, :billing_info, :guarantee_rating,
12
- :guarantee_list, :overall_rating, :data_available, :fuel_mix,
+ :contact_time, :contact_info, :other_contact_info,
+ :billing_info, :guarantee_rating, :guarantee_list,
+ :overall_rating, :data_available, :fuel_mix,
13
:opening_hours, :bill_accuracy_and_metering_rating,
:bills_accuracy_smart, :bills_accuracy_traditional,
:smart_operating, :contact_webchat_sync, :contact_webchat_async,
@@ -54,6 +54,6 @@ def top_three?
54
end
55
56
def complaints_rating
57
- Feature.enabled?("FF_NEW_CSR_DATA") ? data.complaints_rating_score : data.complaints_rating
+ data.complaints_rating_score
58
59
0 commit comments