Skip to content

Commit f7026d2

Browse files
committed
Merge branch 'anna/master' of https://github.com/Countly/countly-server into anna/master
2 parents fab2213 + 05c6371 commit f7026d2

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Version 24.05.15
2+
Enterprise fixes:
3+
- [nps] Fixed UI issues in the widget editor related to the "user consent" section
4+
- [ratings] Fixed rendering issue for escaped values
5+
16
## Version 24.05.14
27
Fixes:
38
- [code] Added better handling for countly servers while deployed using subdirectory

frontend/express/public/javascripts/countly/vue/components/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
<slot name="option-prefix" v-bind="option"></slot>\
303303
</div>\
304304
<slot name="option-label" v-bind="option">\
305-
<div :data-test-id="testId + \'-item-\' + (option.label ? option.label.replaceAll(\' \', \'-\').toLowerCase() : \' \')" class="cly-vue-listbox__item-label" v-tooltip="option.label">{{decodeHtml(option.label)}}</div>\
305+
<div :data-test-id="testId + \'-item-\' + (option.label ? option.label.replaceAll(\' \', \'-\').toLowerCase() : \' \')" class="cly-vue-listbox__item-label" v-tooltip="decodeHtml(option.label)">{{decodeHtml(option.label)}}</div>\
306306
</slot>\
307307
</div>\
308308
<div class="bu-level-right" v-if="hasRemovableOptions || !!$scopedSlots[\'option-suffix\']">\

plugins/star-rating/frontend/public/javascripts/countly.views.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@
11451145
steps: null
11461146
};
11471147
}
1148-
if (Array.isArray(this.widget.links)) {
1148+
if (Array.isArray(this.widget.links) && this.widget.links.length) {
11491149
this.widget.links.forEach(function(link) {
11501150
if (link.linkValue.indexOf('term')) {
11511151
link.text = "Terms and Conditions";
@@ -1162,8 +1162,9 @@
11621162
link.linkValue = link.linkValue.replace(new RegExp('[?&]' + CLY_X_INT + '=[^&]*'), '').replace(/[?&]$/, '');
11631163
});
11641164
this.widget.links = {"link": this.widget.links, "finalText": this.widget.finalText};
1165+
this.widget.consent = true;
11651166
}
1166-
if (!this.widget.links) {
1167+
else {
11671168
this.widget.links = {
11681169
"link": [
11691170
{
@@ -1182,6 +1183,7 @@
11821183
"finalText": "I agree to the Terms and Conditions and Privacy Policy."
11831184

11841185
};
1186+
this.widget.consent = false;
11851187
}
11861188
if (!this.widget.rating_symbol) {
11871189
this.widget.rating_symbol = "emojis";

ui-tests/cypress/e2e/dashboard/feedback/ratings/widgets.cy.js

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Create New Widget', () => {
1616
navigationHelpers.goToFeedbackRatingsWidgetsPage();
1717
});
1818

19-
it('Verify default values of page and create a widget with that values and then update the widget data', function() {
19+
it.skip('Verify default values of page and create a widget with that values and then update the widget data', function() {
2020
widgetsHelpers.clickAddNewWidgetButton();
2121
widgetsHelpers.verifySettingsPageDefaultElements();
2222
widgetsHelpers.typeWidgetName("My New Widget");
@@ -222,6 +222,7 @@ describe('Create New Widget', () => {
222222
contactViaCheckboxLabelText: widget.contactViaCheckboxLabelText,
223223
contactEmail: widgetRate.contactEmail,
224224
submitButtonText: widget.submitButtonText,
225+
hasAggrementCheckbox: true,
225226
selectedMainColor: widget.mainColor,
226227
selectedFontColor: widget.FontColor,
227228
hasPoweredByLogo: true,

ui-tests/cypress/lib/dashboard/feedback/ratings/demoWidgetPage.js

100644100755
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const verifyDemoPageElementsAndRate = ({
5454
submitButtonText,
5555
submitButtonColor,
5656
submitButtonFontColor,
57+
hasAggrementCheckbox = false,
5758
hasPoweredByLogo = true,
5859
thankYouMessageText,
5960
successIconColor
@@ -132,6 +133,12 @@ const verifyDemoPageElementsAndRate = ({
132133
cy.shouldNotExist(demoPageElements.LOGO_IMAGE);
133134
}
134135

136+
if (hasAggrementCheckbox) {
137+
cy.contains('label', 'I agree to the terms and conditions and privacy policy')
138+
.find('input[type="checkbox"]')
139+
.click();
140+
}
141+
135142
cy.clickElement(demoPageElements.SUBMIT_BUTTON);
136143

137144
// cy.window().then((win) => {

0 commit comments

Comments
 (0)