Skip to content

Commit 295bce6

Browse files
authored
Merge branch 'master' into SER-2434
2 parents 3d5a236 + c05c1b0 commit 295bce6

File tree

4 files changed

+59
-23
lines changed

4 files changed

+59
-23
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## Version 25.03.x
1+
## Version 25.03.6
22
Enterprise Features:
3+
- [journey_engine] Publish toggle is converted into button and rearranged
34
- [journey_engine] Record Event block added
45
- [llm interaction] Add LLM interaction event
56
- [oidc] PKCE Flow support added
@@ -18,6 +19,7 @@ Enterprise Fixes:
1819
- Do not wait for result calculation when requesting experiments
1920
- Do not calculate result for completed experiments
2021
- [drill] [license] Shorten warning period from 14 days to 3 days
22+
- [drill] Fix query for users in drill that leads to severe server slowdown
2123
- [license] Fix chart legend
2224

2325
Dependencies:

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

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
type: String
6767
},
6868

69+
saveButtonTooltip: {
70+
default: null,
71+
type: String
72+
},
73+
6974
status: {
7075
default: () => ({
7176
label: 'Status',
@@ -119,11 +124,13 @@
119124
'tab-change'
120125
],
121126

122-
data: () => ({
123-
currentTab: null,
124-
125-
isReadonlyInput: true
126-
}),
127+
data() {
128+
return {
129+
currentTab: null,
130+
isReadonlyInput: true,
131+
showActionsPopup: false
132+
};
133+
},
127134

128135
computed: {
129136
activeTab: {
@@ -136,6 +143,15 @@
136143
}
137144
},
138145

146+
localValue: {
147+
get() {
148+
return countlyCommon.unescapeHtml(this.value);
149+
},
150+
set(value) {
151+
this.$emit('input', value);
152+
}
153+
},
154+
139155
closeButtonIcon() {
140156
return this.closeButton ? 'cly-io-x' : 'cly-io-arrow-sm-left';
141157
},
@@ -152,15 +168,6 @@
152168
return !!this.options.length;
153169
},
154170

155-
localValue: {
156-
get() {
157-
return countlyCommon.unescapeHtml(this.value);
158-
},
159-
set(value) {
160-
this.$emit('input', value);
161-
}
162-
},
163-
164171
toggleLocalValue: {
165172
get() {
166173
return this.toggleValue;
@@ -196,6 +203,10 @@
196203
this.$emit('save');
197204
},
198205

206+
onPublishButtonClick() {
207+
this.toggleLocalValue = !this.toggleLocalValue;
208+
},
209+
199210
toggleInputReadonlyState() {
200211
this.isReadonlyInput = !this.isReadonlyInput;
201212
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,19 @@
806806
});
807807
}
808808

809+
if (countlyGlobal.plugins.indexOf('journey_engine') !== -1) {
810+
preparedEventList.push({
811+
"label": this.i18n('internal-events.[CLY]_journey_engine'),
812+
"name": "Journey",
813+
"options": [
814+
{ label: this.i18n('internal-events.[CLY]_journey_engine_start'), value: '[CLY]_journey_engine_start' },
815+
{ label: this.i18n('internal-events.[CLY]_journey_engine_end'), value: '[CLY]_journey_engine_end' },
816+
{ label: this.i18n('internal-events.[CLY]_content_shown'), value: '[CLY]_content_shown' },
817+
{ label: this.i18n('internal-events.[CLY]_content_interacted'), value: '[CLY]_content_interacted' }
818+
]
819+
});
820+
}
821+
809822
// {
810823
// "label": this.i18n('internal-events.[CLY]_push_action'),
811824
// "name": "[CLY]_push_action",

frontend/express/public/javascripts/countly/vue/templates/content/content-header.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@
1313
:class="closeButtonIcon"
1414
/>
1515
</div>
16-
<el-switch
17-
v-if="toggle"
18-
v-tooltip.right="toggleTooltip"
19-
v-model="toggleLocalValue"
20-
class="cly-vue-content-builder-header__toggle"
21-
test-id="journey-publish"
22-
:disabled="isToggleDisabled"
23-
/>
16+
2417
<div class="cly-vue-content-builder-header__info">
2518
<div
2619
v-tooltip="inputTooltip"
@@ -69,17 +62,34 @@
6962
:label="status.label"
7063
:mode="status.mode"
7164
/>
65+
7266
<el-button
7367
v-if="!hideSaveButton"
7468
class="cly-vue-content-builder-header__save-button"
7569
data-test-id="content-header-save-button"
7670
:disabled="disableSaveButton"
7771
size="small"
7872
type="success"
73+
v-tooltip="saveButtonTooltip"
7974
@click="onSaveButtonClick"
8075
>
8176
{{ saveButtonLabel }}
8277
</el-button>
78+
<el-button
79+
v-if="toggle"
80+
v-tooltip.down="toggleTooltip"
81+
:disabled="isToggleDisabled"
82+
class="cly-vue-content-builder-header__save-button"
83+
test-id="journey-publish"
84+
:type="toggleLocalValue ? 'warning' : 'success'"
85+
size="small"
86+
@click="onPublishButtonClick"
87+
>
88+
<template v-if="toggleLocalValue">
89+
<i class="cly-is cly-is-pause" style="margin-right: 4px;"></i>
90+
</template>
91+
{{ toggleLocalValue ? 'Pause': 'Publish' }}
92+
</el-button>
8393
<cly-more-options
8494
v-if="isOptionsButtonVisible"
8595
class="cly-vue-content-builder-header__options-button"

0 commit comments

Comments
 (0)