Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
1f567ad
feat: hide close button when url xb is 1
gabrieloliveirapinto May 16, 2025
3ff77f2
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 19, 2025
8448fc6
feat: toggle close button visibility according to xb flag
gabrieloliveirapinto May 19, 2025
06321b9
feat: communicate with SDK when close button is clicked
gabrieloliveirapinto May 19, 2025
1772210
feat: allow fullscreen and add new close handling
gabrieloliveirapinto May 21, 2025
66d1f82
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 21, 2025
bc9eaa7
fix: remove test helpers
gabrieloliveirapinto May 21, 2025
b2c6b5e
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 22, 2025
a83d9a7
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 23, 2025
dd6a217
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 26, 2025
b63c320
fix: remove double slash comments
gabrieloliveirapinto May 26, 2025
cdafdb1
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 26, 2025
6979d62
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 26, 2025
3682777
Merge remote-tracking branch 'origin/master' into fix-prevent-multipl…
gabrieloliveirapinto May 27, 2025
b0a6631
fix: remove es6 literals
gabrieloliveirapinto May 27, 2025
cd136bb
Merge branch 'master' into fix-prevent-multiple-close-button-display-…
can-angun May 27, 2025
eb39d31
Added xb=1 parameter to demo url
can-angun May 27, 2025
d4c20e3
Updated demo page url custom parameter
can-angun May 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion plugins/star-rating/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ function uploadFile(myfile, id, callback) {
params.app_user = params.app_user || {};

var user = JSON.parse(JSON.stringify(params.app_user));
common.db.collection('feedback_widgets').find({"app_id": params.app_id + "", "status": true, type: "rating"}, {_id: 1, popup_header_text: 1, cohortID: 1, type: 1, appearance: 1, showPolicy: 1, trigger_position: 1, hide_sticker: 1, trigger_bg_color: 1, trigger_font_color: 1, trigger_button_text: 1, trigger_size: 1, target_pages: 1}).toArray(function(err, widgets) {
common.db.collection('feedback_widgets').find({"app_id": params.app_id + "", "status": true, type: "rating"}, {_id: 1, popup_header_text: 1, cohortID: 1, type: 1, appearance: 1, showPolicy: 1, trigger_position: 1, hide_sticker: 1, trigger_bg_color: 1, trigger_font_color: 1, trigger_button_text: 1, trigger_size: 1, target_pages: 1, wv: 1}).toArray(function(err, widgets) {
if (err) {
log.e(err);
reject(err);
Expand All @@ -492,6 +492,7 @@ function uploadFile(myfile, id, callback) {
}
widget.tg = widget.target_pages;
widget.name = widget.popup_header_text;
widget.wv = widget.wv?.toString() || null;
// remove this props from response
delete widget.hide_sticker;
delete widget.trigger_position;
Expand Down Expand Up @@ -565,6 +566,11 @@ function uploadFile(myfile, id, callback) {
phone: true,
tablet: true
};
/**
* NOTE: This property is used to help SDK identify if the widget has the new handling for close button and
* allows widget to be fullscreen. Since the server will support this from here on, it can be hardcoded.
*/
widget.wv = 1;

//widget.created_by = common.db.ObjectID(obParams.member._id);
validateCreate(obParams, FEATURE_NAME, function(params) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
.ratings-popup .modal-content {
.hidden {
display: none;
}
}

.disabled {
.disabled {
cursor: auto !important;
opacity: 0.5;
}
}

border-radius: 13px;
background-color: white;
padding: 0px 25px 40px 25px;
Expand All @@ -31,6 +32,17 @@
cursor: pointer;
}
}

/* .ratings-popup .modal-content--fullscreen */
&--fullscreen {
margin: 40px 0;
height: calc(100vh - 100px);

/* .ratings-popup--fullscreen .modal-content__top */
&__top {
margin-top: 0px;
}
}
}

.ratings-popup .emotions-area {
Expand Down Expand Up @@ -228,4 +240,4 @@

.rating-loader-wrapper .rating-loader {
width: 50px;
}
}
Loading
Loading